From 477f6829d9cc2a82cd1d7a1b36aeafa6bf1660a6 Mon Sep 17 00:00:00 2001 From: Rhen Cloud Date: Sun, 18 Jan 2026 12:32:55 +0800 Subject: [PATCH] update --- .gitignore | 6 +- app/app.vue | 30 ++++++++- app/components/main/footer.vue | 76 +++++------------------ app/config/index.ts | 14 ++--- app/plugins/umami.client.ts | 29 --------- app/types/nav.ts | 15 ++--- content/about.md | 4 +- content/posts/my-browser-hostory/index.md | 2 +- nuxt.config.ts | 8 --- 9 files changed, 60 insertions(+), 124 deletions(-) delete mode 100644 app/plugins/umami.client.ts diff --git a/.gitignore b/.gitignore index b5141ca..c781343 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,6 @@ node_modules bun.lock yarn.lock - -.vercel -.env*.local +.edgeone/ +.vercel +.env*.local diff --git a/app/app.vue b/app/app.vue index 4e70374..90c876f 100644 --- a/app/app.vue +++ b/app/app.vue @@ -9,8 +9,8 @@ useHead({ // meta: () => siteMetaData, }); -const desktopBg = siteConfig.theme.background || ""; -const mobileBg = siteConfig.theme.backgroundMobile || ""; +const desktopBg = siteConfig.theme?.background || ""; +const mobileBg = siteConfig.theme?.backgroundMobile || ""; // 将 siteConfig.theme.color 转换为 CSS 变量 const hexToRgb = (hex: string) => { @@ -20,15 +20,39 @@ const hexToRgb = (hex: string) => { : "189, 131, 243"; }; -const primaryColor = siteConfig.theme.color || "#bd83f3"; +const primaryColor = siteConfig.theme?.color || "#bd83f3"; const primaryRgb = hexToRgb(primaryColor); +// Parse traceConfig.script (which may contain raw diff --git a/app/components/main/footer.vue b/app/components/main/footer.vue index dcc8bcf..493cf41 100644 --- a/app/components/main/footer.vue +++ b/app/components/main/footer.vue @@ -9,11 +9,6 @@ · {{ fromWho }}

- -

- 👁️ {{ visitors }} · 📊 {{ pageviews }} -

-

-
-