Add animated UI version marker
This commit is contained in:
1 parent
c4373b6e17
commit
ea0b3a906e
3 files changed
+16
-3
No files matched your search
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
KEY_FILE="${KEY_FILE:-/etc/owrt-remote/web.key}"
|
KEY_FILE="${KEY_FILE:-/etc/owrt-remote/web.key}"
|
||||||
AGENT="${AGENT:-/usr/sbin/owrt-remote}"
|
AGENT="${AGENT:-/usr/sbin/owrt-remote}"
|
||||||
|
OWRT_REMOTE_UI_VERSION="2026-06-29-animated-bg-v2"
|
||||||
PARAMS_FILE="${TMPDIR:-/tmp}/owrt-remote-cgi.$$"
|
PARAMS_FILE="${TMPDIR:-/tmp}/owrt-remote-cgi.$$"
|
||||||
RESULT_TITLE=""
|
RESULT_TITLE=""
|
||||||
RESULT_BODY=""
|
RESULT_BODY=""
|
||||||
@@ -240,10 +241,12 @@ render_page() {
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="owrt-remote-ui-version" content="$OWRT_REMOTE_UI_VERSION">
|
||||||
<title>OpenWrt Remote</title>
|
<title>OpenWrt Remote</title>
|
||||||
<style>
|
<style>
|
||||||
:root{color-scheme:dark;--bg:#07040f;--panel:rgba(19,14,32,.88);--text:#f7f2ff;--muted:#b9adc9;--line:rgba(169,126,255,.24);--blue:#7c3aed;--green:#22c55e;--red:#fb7185;--amber:#f59e0b;--teal:#a855f7;--grid:rgba(168,85,247,.16)}
|
:root{color-scheme:dark;--bg:#07040f;--panel:rgba(19,14,32,.88);--text:#f7f2ff;--muted:#b9adc9;--line:rgba(169,126,255,.24);--blue:#7c3aed;--green:#22c55e;--red:#fb7185;--amber:#f59e0b;--teal:#a855f7;--grid:rgba(168,85,247,.16)}
|
||||||
*{box-sizing:border-box}body{min-height:100vh;margin:0;background-color:var(--bg);background-image:radial-gradient(circle at 12% 8%,rgba(168,85,247,.34),transparent 30%),radial-gradient(circle at 82% 12%,rgba(79,70,229,.25),transparent 28%),radial-gradient(circle at 50% 105%,rgba(236,72,153,.16),transparent 34%),linear-gradient(145deg,#07040f,#120a24 48%,#05030a),repeating-linear-gradient(0deg,transparent 0 30px,var(--grid) 31px),repeating-linear-gradient(90deg,transparent 0 30px,var(--grid) 31px);background-attachment:fixed;color:var(--text);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
|
*{box-sizing:border-box}body{min-height:100vh;margin:0;background-color:var(--bg);background-image:radial-gradient(circle at 12% 8%,rgba(168,85,247,.38),transparent 31%),radial-gradient(circle at 82% 12%,rgba(79,70,229,.30),transparent 30%),radial-gradient(circle at 50% 105%,rgba(236,72,153,.20),transparent 35%),linear-gradient(145deg,#07040f,#120a24 48%,#05030a),repeating-linear-gradient(0deg,transparent 0 30px,var(--grid) 31px),repeating-linear-gradient(90deg,transparent 0 30px,var(--grid) 31px);background-size:120% 120%,130% 130%,125% 125%,100% 100%,31px 31px,31px 31px;background-attachment:fixed;color:var(--text);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;animation:bgFlow 18s ease-in-out infinite alternate}
|
||||||
|
@keyframes bgFlow{0%{background-position:0% 0%,100% 0%,50% 100%,0 0,0 0,0 0}50%{background-position:18% 12%,72% 18%,42% 88%,0 0,10px 18px,18px 10px}100%{background-position:34% 20%,58% 30%,66% 74%,0 0,22px 4px,4px 22px}}
|
||||||
.wrap{max-width:1180px;margin:0 auto;padding:22px}.hero{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:20px 0 18px;border-bottom:1px solid var(--line)}
|
.wrap{max-width:1180px;margin:0 auto;padding:22px}.hero{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:20px 0 18px;border-bottom:1px solid var(--line)}
|
||||||
.brand{display:flex;gap:14px;align-items:center}.titleRow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
|
.brand{display:flex;gap:14px;align-items:center}.titleRow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
|
||||||
h1{margin:0;font-size:28px;letter-spacing:0}.sub{margin:4px 0 0;color:var(--muted)}.links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.links a{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.08);color:#f3e8ff;padding:5px 10px;text-decoration:none;font-weight:750}.topActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.returnCard{display:inline-flex;align-items:center;border:1px solid rgba(245,158,11,.46);border-radius:999px;background:linear-gradient(135deg,rgba(245,158,11,.24),rgba(168,85,247,.14));padding:3px;box-shadow:0 14px 30px rgba(0,0,0,.24)}.backBtn{border:0;border-radius:999px;background:#f59e0b;color:#160f06;padding:8px 14px;font-weight:900;text-decoration:none;box-shadow:0 10px 22px rgba(245,158,11,.22);white-space:nowrap}
|
h1{margin:0;font-size:28px;letter-spacing:0}.sub{margin:4px 0 0;color:var(--muted)}.links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.links a{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.08);color:#f3e8ff;padding:5px 10px;text-decoration:none;font-weight:750}.topActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.returnCard{display:inline-flex;align-items:center;border:1px solid rgba(245,158,11,.46);border-radius:999px;background:linear-gradient(135deg,rgba(245,158,11,.24),rgba(168,85,247,.14));padding:3px;box-shadow:0 14px 30px rgba(0,0,0,.24)}.backBtn{border:0;border-radius:999px;background:#f59e0b;color:#160f06;padding:8px 14px;font-weight:900;text-decoration:none;box-shadow:0 10px 22px rgba(245,158,11,.22);white-space:nowrap}
|
||||||
|
|||||||
+10
-1
@@ -101,6 +101,12 @@ router_ip() {
|
|||||||
printf '192.168.1.1'
|
printf '192.168.1.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installed_ui_version() {
|
||||||
|
local file
|
||||||
|
file="$(target_path www/cgi-bin/owrt-remote)"
|
||||||
|
awk -F '"' '/^OWRT_REMOTE_UI_VERSION=/ { print $2; exit }' "$file" 2>/dev/null || true
|
||||||
|
}
|
||||||
|
|
||||||
install_file "usr/sbin/owrt-remote" 0755
|
install_file "usr/sbin/owrt-remote" 0755
|
||||||
install_file "etc/init.d/owrt-remote" 0755
|
install_file "etc/init.d/owrt-remote" 0755
|
||||||
install_config
|
install_config
|
||||||
@@ -122,9 +128,12 @@ fi
|
|||||||
|
|
||||||
key="$(make_key)"
|
key="$(make_key)"
|
||||||
ip="$(router_ip)"
|
ip="$(router_ip)"
|
||||||
|
ui_version="$(installed_ui_version)"
|
||||||
|
|
||||||
info "OpenWrt Remote установлен."
|
info "OpenWrt Remote установлен."
|
||||||
|
if [ -n "$ui_version" ]; then
|
||||||
|
info "UI: $ui_version"
|
||||||
|
fi
|
||||||
info "LuCI: Службы -> OpenWrt Remote"
|
info "LuCI: Службы -> OpenWrt Remote"
|
||||||
info "Панель: http://$ip/cgi-bin/owrt-remote?key=$key"
|
info "Панель: http://$ip/cgi-bin/owrt-remote?key=$key"
|
||||||
info "CLI: owrt-remote doctor"
|
info "CLI: owrt-remote doctor"
|
||||||
|
|
||||||
@@ -427,7 +427,8 @@ def dashboard_html(routers, token):
|
|||||||
<title>{APP_NAME}</title>
|
<title>{APP_NAME}</title>
|
||||||
<style>
|
<style>
|
||||||
:root{{color-scheme:dark;--bg:#07040f;--panel:rgba(19,14,32,.88);--text:#f7f2ff;--muted:#b9adc9;--line:rgba(169,126,255,.24);--blue:#7c3aed;--green:#22c55e;--red:#fb7185;--amber:#f59e0b;--teal:#a855f7;--grid:rgba(168,85,247,.16)}}
|
:root{{color-scheme:dark;--bg:#07040f;--panel:rgba(19,14,32,.88);--text:#f7f2ff;--muted:#b9adc9;--line:rgba(169,126,255,.24);--blue:#7c3aed;--green:#22c55e;--red:#fb7185;--amber:#f59e0b;--teal:#a855f7;--grid:rgba(168,85,247,.16)}}
|
||||||
*{{box-sizing:border-box}}body{{min-height:100vh;margin:0;background-color:var(--bg);background-image:radial-gradient(circle at 12% 8%,rgba(168,85,247,.34),transparent 30%),radial-gradient(circle at 82% 12%,rgba(79,70,229,.25),transparent 28%),radial-gradient(circle at 50% 105%,rgba(236,72,153,.16),transparent 34%),linear-gradient(145deg,#07040f,#120a24 48%,#05030a),repeating-linear-gradient(0deg,transparent 0 30px,var(--grid) 31px),repeating-linear-gradient(90deg,transparent 0 30px,var(--grid) 31px);background-attachment:fixed;color:var(--text);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}}
|
*{{box-sizing:border-box}}body{{min-height:100vh;margin:0;background-color:var(--bg);background-image:radial-gradient(circle at 12% 8%,rgba(168,85,247,.38),transparent 31%),radial-gradient(circle at 82% 12%,rgba(79,70,229,.30),transparent 30%),radial-gradient(circle at 50% 105%,rgba(236,72,153,.20),transparent 35%),linear-gradient(145deg,#07040f,#120a24 48%,#05030a),repeating-linear-gradient(0deg,transparent 0 30px,var(--grid) 31px),repeating-linear-gradient(90deg,transparent 0 30px,var(--grid) 31px);background-size:120% 120%,130% 130%,125% 125%,100% 100%,31px 31px,31px 31px;background-attachment:fixed;color:var(--text);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;animation:bgFlow 18s ease-in-out infinite alternate}}
|
||||||
|
@keyframes bgFlow{{0%{{background-position:0% 0%,100% 0%,50% 100%,0 0,0 0,0 0}}50%{{background-position:18% 12%,72% 18%,42% 88%,0 0,10px 18px,18px 10px}}100%{{background-position:34% 20%,58% 30%,66% 74%,0 0,22px 4px,4px 22px}}}}
|
||||||
.wrap{{max-width:1220px;margin:0 auto;padding:22px}}.top{{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:4px 0 18px}}
|
.wrap{{max-width:1220px;margin:0 auto;padding:22px}}.top{{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:4px 0 18px}}
|
||||||
.brand{{display:flex;align-items:center;gap:14px}}
|
.brand{{display:flex;align-items:center;gap:14px}}
|
||||||
h1{{margin:0;font-size:29px;letter-spacing:0}}.muted{{color:var(--muted)}}.top p{{margin:4px 0 0}}.links{{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}}.links a{{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.08);color:#f3e8ff;padding:5px 10px;text-decoration:none;font-weight:750}}.headerActions{{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}}.badge{{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:8px 12px;color:var(--muted);white-space:nowrap}}
|
h1{{margin:0;font-size:29px;letter-spacing:0}}.muted{{color:var(--muted)}}.top p{{margin:4px 0 0}}.links{{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}}.links a{{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.08);color:#f3e8ff;padding:5px 10px;text-decoration:none;font-weight:750}}.headerActions{{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}}.badge{{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:8px 12px;color:var(--muted);white-space:nowrap}}
|
||||||
|
|||||||
Reference in new issue
Block a user