From 8b88433d1f7d6d844e53c3e31de1537fef543376 Mon Sep 17 00:00:00 2001 From: ggyy <34892002@qq.com> Date: Sat, 25 Apr 2026 23:27:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=89=88=E6=9C=AC=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global.d.ts | 3 ++ package.json | 1 + pages/+Layout.vue | 1 + pages/admin/+Layout.vue | 81 ++++++++++++++++++++++++++++------------- vite.config.ts | 14 +++++++ 5 files changed, 75 insertions(+), 25 deletions(-) diff --git a/global.d.ts b/global.d.ts index 1ea5578..694e200 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1,3 +1,6 @@ +declare const __GIT_HASH__: string; +declare const __APP_VERSION__: string; + import { Session } from "@auth/core/types"; import type { PrismaClient } from "./generated/prisma/client"; import type { getPublicSiteInfo } from "./modules/site/service"; diff --git a/package.json b/package.json index 553dbaf..072ea05 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "version": "1.1.0", "scripts": { "dev": "vike dev", "build": "bun run db:generate && vike build", diff --git a/pages/+Layout.vue b/pages/+Layout.vue index 59d753f..96eef6f 100644 --- a/pages/+Layout.vue +++ b/pages/+Layout.vue @@ -81,6 +81,7 @@ const siteName = computed(() => pageContext.site?.siteName); const siteLogo = computed(() => pageContext.site?.logo || logoUrl); const supportContactItems = computed(() => { const raw = pageContext.site?.supportContact ?? ""; + if (!raw) return []; return raw.split("\n").map(line => line.trim()).filter(Boolean).map(line => { const idx = line.indexOf("|"); if (idx === -1) return { label: line, href: "" }; diff --git a/pages/admin/+Layout.vue b/pages/admin/+Layout.vue index 94ae504..b519a6b 100644 --- a/pages/admin/+Layout.vue +++ b/pages/admin/+Layout.vue @@ -32,13 +32,13 @@
- +