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 @@
- +