From a14160ba1b29cd3bfb6478c56096255e947013c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E9=97=B4?= Date: Sat, 14 Feb 2026 20:42:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D'?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95'=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index bf02dbf1..8c3bb5c5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -16,6 +16,7 @@ const siteConfig = { showLink: process.env.SHOW_LINK === "true" || true, platform: process.env.DEPLOYMENT_PLATFORM || "cloudflare", version: pkg.version, + hasPassword: !!process.env.SITE_PASSWORD, }; export default defineNuxtConfig({ From c09a8ca04969090685dee5ee6a02224f193e4c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E9=97=B4?= Date: Sat, 14 Feb 2026 20:45:27 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D'?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95'=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/SiteNav.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/SiteNav.vue b/app/components/SiteNav.vue index 6c663786..cd313cec 100644 --- a/app/components/SiteNav.vue +++ b/app/components/SiteNav.vue @@ -93,7 +93,7 @@ const navMenu = computed(() => [ { key: "logout", label: t("nav.logout"), - show: statusStore.loginStatus, + show: statusStore.loginStatus && config.public.hasPassword, icon: renderIcon("icon:logout"), props: { onClick: () => { From 377627a781fcdd5615878b60dee95510bc626840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E9=97=B4?= Date: Sun, 15 Feb 2026 00:19:10 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=98=BE=E7=A4=BA=E5=8F=98=E9=87=8F=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 8c3bb5c5..3434c9a3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -13,7 +13,7 @@ const siteConfig = { siteLogo: process.env.SITE_LOGO || "/favicon.ico", siteIcp: process.env.SITE_ICP || "", countDays: Number(process.env.COUNT_DAYS || 60), - showLink: process.env.SHOW_LINK === "true" || true, + showLink: process.env.SHOW_LINK === "true", platform: process.env.DEPLOYMENT_PLATFORM || "cloudflare", version: pkg.version, hasPassword: !!process.env.SITE_PASSWORD, From 2dcdd74a4e1851a333cfa95d705b375a376ee2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E9=97=B4?= Date: Sun, 15 Feb 2026 00:19:54 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=98=BE=E7=A4=BA=E5=8F=98=E9=87=8F=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index ff04ea00..f9e52ea0 100644 --- a/.env.example +++ b/.env.example @@ -35,12 +35,12 @@ SITE_ICP="" ## You are advised to fill in 30 - 90 COUNT_DAYS=60 -# Show Links +# Show Link ## Whether to show sites links -SHOW_LINKS=true +SHOW_LINK=true # Password ## If you want to protect the data, you can set a password SITE_PASSWORD="" ## Key used for jwt verification, required -SITE_SECRE_KEY="site-status" \ No newline at end of file +SITE_SECRE_KEY="site-status"