-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
2,474 additions
and
2,474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
public-hoist-pattern[]=*@nextui-org/* | ||
public-hoist-pattern[]=*@heroui/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
/* | ||
* @Author: 白雾茫茫丶<baiwumm.com> | ||
* @Date: 2024-12-06 10:05:33 | ||
* @LastEditors: 白雾茫茫丶<baiwumm.com> | ||
* @LastEditTime: 2025-01-03 17:09:47 | ||
* @Description: 布局文件 | ||
*/ | ||
import './globals.scss'; | ||
|
||
import { NextUIProvider } from '@nextui-org/react'; | ||
import type { Metadata } from 'next'; | ||
import { NextIntlClientProvider } from 'next-intl'; | ||
import { getLocale, getMessages } from 'next-intl/server'; | ||
|
||
import UmamiAnalytics from '@/components/Analytics/UmamiAnalytics'; // Umami Analytics | ||
import FullLoading from '@/components/FullLoading'; // 全局 Loading | ||
import GlobalLayout from '@/components/GlobalLayout'; // 全局布局 | ||
import ThemeProvider from '@/components/ThemeProvider'; | ||
import { Toaster } from '@/components/ui/sonner'; | ||
|
||
export const metadata: Metadata = { | ||
title: process.env.NEXT_PUBLIC_PROJECT_NAME, | ||
description: process.env.NEXT_PUBLIC_PROJECT_DESC, | ||
}; | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
const locale = await getLocale(); | ||
const messages = await getMessages(); | ||
return ( | ||
<html lang={locale} suppressHydrationWarning> | ||
{/* umami - 站点统计分析 */} | ||
<UmamiAnalytics /> | ||
<body> | ||
<NextUIProvider> | ||
<NextIntlClientProvider messages={messages}> | ||
<ThemeProvider attribute="class" defaultTheme="light"> | ||
{/* 全局 Loading */} | ||
<FullLoading /> | ||
<GlobalLayout>{children}</GlobalLayout> | ||
</ThemeProvider> | ||
</NextIntlClientProvider> | ||
<Toaster position="top-center" /> | ||
</NextUIProvider> | ||
</body> | ||
</html> | ||
); | ||
} | ||
/* | ||
* @Author: 白雾茫茫丶<baiwumm.com> | ||
* @Date: 2024-12-06 10:05:33 | ||
* @LastEditors: 白雾茫茫丶<baiwumm.com> | ||
* @LastEditTime: 2025-01-03 17:09:47 | ||
* @Description: 布局文件 | ||
*/ | ||
import './globals.scss'; | ||
|
||
import { HeroUIProvider } from '@heroui/react'; | ||
import type { Metadata } from 'next'; | ||
import { NextIntlClientProvider } from 'next-intl'; | ||
import { getLocale, getMessages } from 'next-intl/server'; | ||
|
||
import UmamiAnalytics from '@/components/Analytics/UmamiAnalytics'; // Umami Analytics | ||
import FullLoading from '@/components/FullLoading'; // 全局 Loading | ||
import GlobalLayout from '@/components/GlobalLayout'; // 全局布局 | ||
import ThemeProvider from '@/components/ThemeProvider'; | ||
import { Toaster } from '@/components/ui/sonner'; | ||
|
||
export const metadata: Metadata = { | ||
title: process.env.NEXT_PUBLIC_PROJECT_NAME, | ||
description: process.env.NEXT_PUBLIC_PROJECT_DESC, | ||
}; | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
const locale = await getLocale(); | ||
const messages = await getMessages(); | ||
return ( | ||
<html lang={locale} suppressHydrationWarning> | ||
{/* umami - 站点统计分析 */} | ||
<UmamiAnalytics /> | ||
<body> | ||
<HeroUIProvider> | ||
<NextIntlClientProvider messages={messages}> | ||
<ThemeProvider attribute="class" defaultTheme="light"> | ||
{/* 全局 Loading */} | ||
<FullLoading /> | ||
<GlobalLayout>{children}</GlobalLayout> | ||
</ThemeProvider> | ||
</NextIntlClientProvider> | ||
<Toaster position="top-center" /> | ||
</HeroUIProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.