chore: fix lint and format issues

This commit is contained in:
javayhu 2025-06-20 01:18:48 +08:00
parent 71b9807433
commit 0739c717d8
3 changed files with 12 additions and 12 deletions

View File

@ -64,14 +64,14 @@ export default async function DocsRootLayout({
}, },
...(websiteConfig.metadata.social?.twitter ...(websiteConfig.metadata.social?.twitter
? [ ? [
{ {
type: 'icon' as const, type: 'icon' as const,
icon: <XTwitterIcon />, icon: <XTwitterIcon />,
text: 'X', text: 'X',
url: websiteConfig.metadata.social.twitter, url: websiteConfig.metadata.social.twitter,
secondary: true, secondary: true,
}, },
] ]
: []), : []),
], ],
themeSwitch: { themeSwitch: {

View File

@ -4,7 +4,7 @@ import { ActiveThemeProvider } from '@/components/layout/active-theme-provider';
import { PaymentProvider } from '@/components/layout/payment-provider'; import { PaymentProvider } from '@/components/layout/payment-provider';
import { TooltipProvider } from '@/components/ui/tooltip'; import { TooltipProvider } from '@/components/ui/tooltip';
import { websiteConfig } from '@/config/website'; import { websiteConfig } from '@/config/website';
import { Translations } from 'fumadocs-ui/i18n'; import type { Translations } from 'fumadocs-ui/i18n';
import { RootProvider } from 'fumadocs-ui/provider'; import { RootProvider } from 'fumadocs-ui/provider';
import { useTranslations } from 'next-intl'; import { useTranslations } from 'next-intl';
import { ThemeProvider, useTheme } from 'next-themes'; import { ThemeProvider, useTheme } from 'next-themes';

View File

@ -56,11 +56,11 @@ const searchAPI = createI18nSearchAPI('advanced', {
/** /**
* Fumadocs 15.2.8 fixed the bug that the `locale` is not passed to the search API * Fumadocs 15.2.8 fixed the bug that the `locale` is not passed to the search API
* *
* ref: * ref:
* https://x.com/indie_maker_fox/status/1913457083997192589 * https://x.com/indie_maker_fox/status/1913457083997192589
* *
* NOTICE: * NOTICE:
* Fumadocs 15.1.2 has a bug that the `locale` is not passed to the search API * Fumadocs 15.1.2 has a bug that the `locale` is not passed to the search API
* 1. Wrap the GET handler for debugging docs search * 1. Wrap the GET handler for debugging docs search
* 2. Detect locale from referer header, and add the locale parameter to the search API * 2. Detect locale from referer header, and add the locale parameter to the search API