📈 Add track code

This commit is contained in:
LittleSheep 2024-02-24 22:56:29 +08:00
parent 4a028de43c
commit f9a4c12919
2 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { AppRouterCacheProvider } from "@mui/material-nextjs/v13-appRouter";
import { CssBaseline } from "@mui/material"; import { CssBaseline } from "@mui/material";
import { SITE_DESCRIPTION, SITE_NAME } from "@/app/consts"; import { SITE_DESCRIPTION, SITE_NAME } from "@/app/consts";
import { theme } from "@/app/theme"; import { theme } from "@/app/theme";
import { SpeedInsights } from "@vercel/speed-insights/next";
import "@fontsource/roboto/300.css"; import "@fontsource/roboto/300.css";
import "@fontsource/roboto/400.css"; import "@fontsource/roboto/400.css";
@ -34,11 +35,19 @@ export default function RootLayout({ children }: Readonly<{
<body> <body>
<AppRouterCacheProvider> <AppRouterCacheProvider>
<CssBaseline /> <CssBaseline />
<NextTopLoader showAtBottom color="#4a5099" /> <SpeedInsights />
<NextTopLoader color="#ffffff" />
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<AppShell>{children}</AppShell> <AppShell>{children}</AppShell>
</ThemeProvider> </ThemeProvider>
</AppRouterCacheProvider> </AppRouterCacheProvider>
<script
async
src="https://analytics.smartsheep.studio/script.js"
data-website-id="bbe87bab-bd5b-416b-8767-b29088c75ab2"
/>
</body> </body>
</html> </html>
); );

View File

@ -27,6 +27,7 @@
"@sanity/ui": "^2.0", "@sanity/ui": "^2.0",
"@sanity/vision": "3", "@sanity/vision": "3",
"@types/mdx": "^2.0.11", "@types/mdx": "^2.0.11",
"@vercel/speed-insights": "^1.0.10",
"feed": "^4.2.2", "feed": "^4.2.2",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"next": "^14.1", "next": "^14.1",