diff --git a/.github/diy/patches/vantage.patch b/.github/diy/patches/vantage.patch index 01b37609c..0252def85 100644 --- a/.github/diy/patches/vantage.patch +++ b/.github/diy/patches/vantage.patch @@ -203,15 +203,15 @@ --- a/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut +++ b/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut -@@ -12,6 +12,8 @@ - if (type(tls) == 'string') - tls = split(tls, /\s+/); - const tls_ports = uniq(filter(map(tls, e => +(match(e, /\d+$/)?.[0] ?? 0)), p => (p > 0 && p <= 65535))); +@@ -17,6 +17,8 @@ + const look = (opt, ok) => { const v = uci.get('vantage_theme', 'appearance', opt); return (type(v) == 'string' && index(ok, v) >= 0) ? v : ''; }; + const look_theme = look('theme', [ 'auto', 'light', 'dark' ]); + const look_login = look('login', [ 'grid', 'stars', 'none' ]); + const boardinfo = ubus.call("system", "board"); + const hostname = striptags(boardinfo?.hostname ?? '?'); -%} - + @@ -37,8 +39,18 @@