Update vantage.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-11-06 17:40:47 +08:00
1 parent 34937a15df
commit 1ebb01f4e8
1 file changed
+5 -5
+5 -5
View File
@@ -203,15 +203,15 @@
--- a/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut --- a/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut
+++ b/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut +++ b/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut
@@ -12,6 +12,8 @@ @@ -17,6 +17,8 @@
if (type(tls) == 'string') const look = (opt, ok) => { const v = uci.get('vantage_theme', 'appearance', opt); return (type(v) == 'string' && index(ok, v) >= 0) ? v : ''; };
tls = split(tls, /\s+/); const look_theme = look('theme', [ 'auto', 'light', 'dark' ]);
const tls_ports = uniq(filter(map(tls, e => +(match(e, /\d+$/)?.[0] ?? 0)), p => (p > 0 && p <= 65535))); const look_login = look('login', [ 'grid', 'stars', 'none' ]);
+ const boardinfo = ubus.call("system", "board"); + const boardinfo = ubus.call("system", "board");
+ const hostname = striptags(boardinfo?.hostname ?? '?'); + const hostname = striptags(boardinfo?.hostname ?? '?');
-%} -%}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ entityencode(dispatcher.lang ?? 'en', true) }}" data-darkmode="true"> <html lang="{{ entityencode(dispatcher.lang ?? 'en', true) }}" data-darkmode="true" data-vt-look-theme="{{ look_theme }}" data-vt-look-login="{{ look_login }}">
@@ -37,8 +39,18 @@ @@ -37,8 +39,18 @@
<main class="vt-login"> <main class="vt-login">
<div class="vt-login-card"> <div class="vt-login-card">