mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-09 21:47:59 +08:00
🎨 Sync 2026-10-09 01:04:17
This commit is contained in:
1 parent
eb76e89012
commit
812da7f08b
154 files changed
+10613
-3987
No files matched your search
@@ -17,10 +17,13 @@
|
||||
-#}
|
||||
|
||||
</div>
|
||||
<!-- added style="text-wrap: auto" but on this page it is still not the best solution. I will take it to consideration next time :) -->
|
||||
<footer style="text-wrap: auto">
|
||||
<div>
|
||||
<a class="luci-link" href="{{ version.disturl }}" target="_blank">{{ version.distname }} {{ version.distversion }}-{{ version.distrevision }}</a>
|
||||
{%
|
||||
const luci_info = 'Powered by ' + version.luciname + ' (' + version.luciversion + ')';
|
||||
const firmware_info = version.distname + ' ' + version.distversion + '-' + version.distrevision;
|
||||
%}
|
||||
<footer>
|
||||
<div title="{{ entityencode(luci_info + ' · ArgonTheme · ' + firmware_info, true) }}">
|
||||
<a class="luci-link" href="{{ version.disturl }}" target="_blank" title="{{ entityencode(firmware_info, true) }}">{{ version.distname }} {{ version.distversion }}<span class="login-footer-detail">-{{ version.distrevision }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -28,12 +31,6 @@
|
||||
<script>
|
||||
// thanks for Jo-Philipp Wich <jow@openwrt.org>
|
||||
var luciLocation = {{ ctx.path }};
|
||||
const loginContainer = document.querySelector(
|
||||
'div[class="login-container"][style*="backdrop-filter: blur(0px)"]'
|
||||
);
|
||||
if (loginContainer) {
|
||||
loginContainer.style.margin = '0 auto';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -27,6 +27,14 @@
|
||||
import { cursor } from 'uci';
|
||||
|
||||
let cfg = cursor();
|
||||
// Only known layouts may select login page styles; old configs stay classic.
|
||||
let login_style = 'classic';
|
||||
if (fs.access('/etc/config/argon')) {
|
||||
let configured_style = cfg.get_first('argon', 'global', 'login_style');
|
||||
if (configured_style == 'classic' || configured_style == 'centered')
|
||||
login_style = configured_style;
|
||||
}
|
||||
|
||||
// Per-request pseudo-random state for selecting local backgrounds.
|
||||
let lcgState = (+time()) % 2147483648;
|
||||
|
||||
@@ -63,7 +71,7 @@
|
||||
let mimeType = "";
|
||||
|
||||
if (fs.access("/etc/config/argon")) {
|
||||
online_wallpaper = cfg.get_first('argon', 'global', 'online_wallpaper') ?? (cfg.get_first('argon', 'global', 'bing_background') == '1' ? 'bing' : null);
|
||||
let online_wallpaper = cfg.get_first('argon', 'global', 'online_wallpaper') ?? (cfg.get_first('argon', 'global', 'bing_background') == '1' ? 'bing' : null);
|
||||
if (online_wallpaper && online_wallpaper != "none") {
|
||||
const picurl = ubus.call("luci.argon_wallpaper", "get_url") ?? {};
|
||||
if (type(picurl?.url) == 'string' && match(picurl.url, /^https:\/\/[^[:space:]"'<>]+$/)) {
|
||||
@@ -93,7 +101,7 @@
|
||||
|
||||
%}
|
||||
<!-- Login Page Start -->
|
||||
<div class="login-page {{ online_wallpaper == 'default' ? ' defwallpaper' : '' }}">
|
||||
<div class="login-page" data-login-style="{{ login_style }}">
|
||||
{% if ( bgArry.backgroundType == "Video" ): %}
|
||||
<!-- Video Player Start -->
|
||||
<div class="video">
|
||||
|
||||
Reference in new issue
Block a user