feat: 移除无用依赖
aboutme / deploy (push) Successful in 53s

This commit is contained in:
2026-08-20 11:04:35 +08:00
parent eeadf1886f
commit 2c6b0cf706
3 changed files with 25 additions and 58 deletions
+24 -22
View File
@@ -1,44 +1,46 @@
import { Analytics } from '@vercel/analytics/next'
import type { Metadata, Viewport } from 'next'
import { Inter, Noto_Sans_SC } from 'next/font/google'
import './globals.css'
import type { Metadata, Viewport } from "next";
import { Inter, Noto_Sans_SC } from "next/font/google";
import "./globals.css";
const _inter = Inter({ subsets: ['latin'] })
const _notoSansSC = Noto_Sans_SC({ subsets: ['latin'], weight: ['400', '500'] })
const _inter = Inter({ subsets: ["latin"] });
const _notoSansSC = Noto_Sans_SC({
subsets: ["latin"],
weight: ["400", "500"]
});
export const metadata: Metadata = {
title: 'AboutMe',
description: '精选项目、技术栈与 AI 工作流展示',
title: "AboutMe",
description: "精选项目、技术栈与 AI 工作流展示",
icons: {
icon: [
{
url: '/icon-dark-32x32.png',
url: "/icon-dark-32x32.png"
},
{
url: '/icon.svg',
type: 'image/svg+xml',
},
url: "/icon.svg",
type: "image/svg+xml"
}
],
apple: '/apple-icon.png',
},
}
apple: "/apple-icon.png"
}
};
export const viewport: Viewport = {
colorScheme: 'dark',
themeColor: '#0a0a0a',
}
colorScheme: "dark",
themeColor: "#0a0a0a"
};
export default function RootLayout({
children,
children
}: Readonly<{
children: React.ReactNode
children: React.ReactNode;
}>) {
return (
<html lang="zh-CN" className="bg-background">
<body className="antialiased font-sans">
{children}
{process.env.NODE_ENV === 'production' && <Analytics />}
{process.env.NODE_ENV === "production"}
</body>
</html>
)
);
}
+1 -2
View File
@@ -10,7 +10,6 @@
},
"dependencies": {
"@base-ui/react": "^1.5.0",
"@vercel/analytics": "1.6.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"gsap": "^3.15.0",
@@ -38,4 +37,4 @@
"hono": "4.12.25"
}
}
}
}
-34
View File
@@ -11,9 +11,6 @@ importers:
'@base-ui/react':
specifier: ^1.5.0
version: 1.5.0(@date-fns/tz@1.4.1)(@types/react@19.2.14)(date-fns@4.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
'@vercel/analytics':
specifier: 1.6.1
version: 1.6.1(next@16.3.0(@babel/core@7.29.7)(@types/node@24.10.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -746,32 +743,6 @@ packages:
'@ungap/structured-clone@1.3.3':
resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==}
'@vercel/analytics@1.6.1':
resolution: {integrity: sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg==}
peerDependencies:
'@remix-run/react': ^2
'@sveltejs/kit': ^1 || ^2
next: '>= 13'
react: ^18 || ^19 || ^19.0.0-rc
svelte: '>= 4'
vue: ^3
vue-router: ^4
peerDependenciesMeta:
'@remix-run/react':
optional: true
'@sveltejs/kit':
optional: true
next:
optional: true
react:
optional: true
svelte:
optional: true
vue:
optional: true
vue-router:
optional: true
accepts@2.0.0:
resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}
engines: {node: '>= 0.6'}
@@ -3027,11 +2998,6 @@ snapshots:
'@ungap/structured-clone@1.3.3': {}
'@vercel/analytics@1.6.1(next@16.3.0(@babel/core@7.29.7)(@types/node@24.10.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)':
optionalDependencies:
next: 16.3.0(@babel/core@7.29.7)(@types/node@24.10.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
react: 19.2.4
accepts@2.0.0:
dependencies:
mime-types: 3.0.2