From 5a5196e2d6496a59b9158fdb11986e098936074b Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sun, 8 Nov 2026 23:47:58 +0800 Subject: [PATCH] Update vantage.patch --- .github/diy/patches/vantage.patch | 34 +++++-------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/diy/patches/vantage.patch b/.github/diy/patches/vantage.patch index 0252def85..18935cdb4 100644 --- a/.github/diy/patches/vantage.patch +++ b/.github/diy/patches/vantage.patch @@ -165,16 +165,7 @@ --- a/luci-theme-vantage/ucode/template/themes/vantage/header.ut +++ b/luci-theme-vantage/ucode/template/themes/vantage/header.ut -@@ -53,6 +53,8 @@ - }); - return would ? 'relogin' : 'no'; - })(); -+const boardinfo = ubus.call("system", "board"); -+const hostname = striptags(boardinfo?.hostname ?? '?'); - -%} - - -@@ -73,7 +75,7 @@ +@@ -74,7 +74,7 @@ return ok[0]; } var p = look('theme', 'vantage.theme.own', 'vantage.theme', [ 'auto', 'light', 'dark' ]), rail = ''; @@ -183,7 +174,7 @@ var dark = (p === 'dark') || (p !== 'light' && !!(window.matchMedia && matchMedia('(prefers-color-scheme: dark)').matches)); r.setAttribute('data-darkmode', dark ? 'true' : 'false'); r.setAttribute('data-theme', p); -@@ -50,7 +52,15 @@ +@@ -99,7 +99,14 @@ {% if (authed): %}