refactor(project): 全面清理项目代码并重命名项目 #18

Merged
zhangxiang merged 9 commits from refactor/google-analytics into dev 2026-04-29 21:48:39 +08:00
10 changed files with 12980 additions and 11 deletions
Showing only changes of commit ec3e89f591 - Show all commits
+12962
View File
File diff suppressed because it is too large Load Diff
+18 -11
View File
@@ -1,5 +1,4 @@
import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono, Noto_Sans_SC, Ma_Shan_Zheng } from "next/font/google";
import localFont from "next/font/local";
import "./globals.css";
import { Suspense } from "react";
@@ -17,32 +16,40 @@ import { BackToTop } from "@/components/ui/back-to-top";
const GA_MEASUREMENT_ID = process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID || '';
const geistSans = Geist({
const geistSans = localFont({
src: [
{ path: "./fonts/geist-sans/geist-sans-latin-400-normal.woff2", weight: "400" },
{ path: "./fonts/geist-sans/geist-sans-latin-700-normal.woff2", weight: "700" },
],
variable: "--font-geist-sans",
subsets: ["latin"],
display: "swap",
preload: false,
});
const geistMono = Geist_Mono({
const geistMono = localFont({
src: [
{ path: "./fonts/geist-mono/geist-mono-latin-400-normal.woff2", weight: "400" },
{ path: "./fonts/geist-mono/geist-mono-latin-700-normal.woff2", weight: "700" },
],
variable: "--font-geist-mono",
subsets: ["latin"],
display: "swap",
preload: false,
});
const notoSansSC = Noto_Sans_SC({
weight: ["400", "500", "700"],
const notoSansSC = localFont({
src: [
{ path: "./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2", weight: "400" },
{ path: "./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-500-normal.woff2", weight: "500" },
{ path: "./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-700-normal.woff2", weight: "700" },
],
variable: "--font-noto-sans-sc",
subsets: ["latin"],
display: "swap",
preload: true,
});
const maShanZheng = Ma_Shan_Zheng({
weight: "400",
const maShanZheng = localFont({
src: "./fonts/ma-shan-zheng/ma-shan-zheng-chinese-simplified-400-normal.woff2",
variable: "--font-ma-shan-zheng",
subsets: ["latin"],
display: "swap",
preload: true,
});