mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 01:33:56 +08:00
🎄 Sync 2026-08-23 03:16:04
This commit is contained in:
1 parent
9a449e520c
commit
ae8bf1dc81
4 files changed
+12
-14
No files matched your search
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-passwall2
|
PKG_NAME:=luci-app-passwall2
|
||||||
PKG_VERSION:=26.8.20
|
PKG_VERSION:=26.8.20
|
||||||
PKG_RELEASE:=94
|
PKG_RELEASE:=95
|
||||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
|||||||
@@ -78,10 +78,13 @@
|
|||||||
const _ASSETS = '/luci-static/passwall2/';
|
const _ASSETS = '/luci-static/passwall2/';
|
||||||
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall2]], [[ip]])%>';
|
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall2]], [[ip]])%>';
|
||||||
|
|
||||||
let statusBar = document.querySelector(".status-bar");
|
let mainContent = document.getElementById("maincontent");
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px';
|
wW = window.innerWidth;
|
||||||
|
let lw = document.querySelector(".main-left, .fs-sidebar")?.offsetWidth ?? 5;
|
||||||
|
let statusBar = document.querySelector(".status-bar");
|
||||||
|
statusBar.style.width = (wW - lw) + 'px';
|
||||||
let flagElement = statusBar.querySelector(".flag");
|
let flagElement = statusBar.querySelector(".flag");
|
||||||
flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
||||||
|
|
||||||
@@ -123,7 +126,3 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
})
|
})
|
||||||
.catch(error => console.error('Error:', error));
|
.catch(error => console.error('Error:', error));
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('resize', resize);
|
|
||||||
document.body.appendChild(statusBar);
|
|
||||||
</script>
|
|
||||||
@@ -4,7 +4,7 @@ LUCI_TITLE:=luci-app-ssr-plus
|
|||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=196
|
PKG_VERSION:=196
|
||||||
PKG_RELEASE:=61
|
PKG_RELEASE:=62
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
|
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
|
||||||
|
|||||||
@@ -78,10 +78,13 @@
|
|||||||
const _ASSETS = '/luci-static/shadowsocksr/';
|
const _ASSETS = '/luci-static/shadowsocksr/';
|
||||||
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[shadowsocksr]], [[ip]])%>';
|
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[shadowsocksr]], [[ip]])%>';
|
||||||
|
|
||||||
let statusBar = document.querySelector(".status-bar");
|
let mainContent = document.getElementById("maincontent");
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px';
|
wW = window.innerWidth;
|
||||||
|
let lw = document.querySelector(".main-left, .fs-sidebar")?.offsetWidth ?? 5;
|
||||||
|
let statusBar = document.querySelector(".status-bar");
|
||||||
|
statusBar.style.width = (wW - lw) + 'px';
|
||||||
let flagElement = statusBar.querySelector(".flag");
|
let flagElement = statusBar.querySelector(".flag");
|
||||||
flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
||||||
|
|
||||||
@@ -123,7 +126,3 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
})
|
})
|
||||||
.catch(error => console.error('Error:', error));
|
.catch(error => console.error('Error:', error));
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('resize', resize);
|
|
||||||
document.body.appendChild(statusBar);
|
|
||||||
</script>
|
|
||||||
Reference in new issue
Block a user