mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-07 04:34:05 +08:00
Update vantage.patch
This commit is contained in:
1 parent
6f5bbf015d
commit
d4d1807247
1 file changed
+16
-2
@@ -188,11 +188,21 @@
|
||||
|
||||
--- a/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut
|
||||
+++ b/luci-theme-vantage/ucode/template/themes/vantage/sysauth.ut
|
||||
@@ -37,7 +37,14 @@
|
||||
@@ -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)));
|
||||
+ const boardinfo = ubus.call("system", "board");
|
||||
+ const hostname = striptags(boardinfo?.hostname ?? '?');
|
||||
-%}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ entityencode(dispatcher.lang ?? 'en', true) }}" data-darkmode="true">
|
||||
@@ -37,8 +39,18 @@
|
||||
<main class="vt-login">
|
||||
<div class="vt-login-card">
|
||||
<div class="vt-login-head">
|
||||
- <svg class="vt-login-mark" viewBox="0 0 32 32" width="44" height="44" aria-hidden="true"><rect x="1" y="1" width="30" height="30" rx="7" class="vt-brand-tile"/><path d="M9 10.5 16 22" class="vt-brand-l"/><path d="M16 22 23 10.5" class="vt-brand-r"/><circle cx="23" cy="10.5" r="1.9" class="vt-brand-dot"/></svg>
|
||||
- <h1 class="vt-login-title">{{ entityencode(_('Authorization Required'), true) }}</h1>
|
||||
+ <svg class="vt-login-mark" viewBox="0 0 32 32" width="44" height="44" aria-hidden="true">
|
||||
+ <rect x="1" y="1" width="30" height="30" rx="7" class="vt-brand-tile"></rect>
|
||||
+ <path d="M10 10.5 10 21.5" class="vt-brand-l"></path>
|
||||
@@ -201,9 +211,13 @@
|
||||
+ <circle cx="21.5" cy="10.5" r="1.9" class="vt-brand-dot"></circle>
|
||||
+ <circle cx="21.5" cy="21.5" r="1.9" class="vt-brand-dot"></circle>
|
||||
+ </svg>
|
||||
<h1 class="vt-login-title">{{ entityencode(_('Authorization Required'), true) }}</h1>
|
||||
+ <div>
|
||||
+ <h1 class="vt-login-title">{{ hostname }}</h1>
|
||||
+ <p class="vt-login-sub"><span class="vt-login-dot" aria-hidden="true"></span>{{ entityencode(_('Authorization Required'), true) }}</p>
|
||||
+ </div>
|
||||
</div>
|
||||
|
||||
{% if (fuser): %}
|
||||
diff --git a/luci-theme-vantage/htdocs/luci-static/vantage/pattern.svg b/luci-theme-vantage/htdocs/luci-static/vantage/pattern.svg
|
||||
new file mode 100644
|
||||
index 000000000..72eb03cdc
|
||||
|
||||
Reference in new issue
Block a user