mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 16:55:13 +08:00
Update luci-app-passwall.patch
This commit is contained in:
1 parent
c4c907f357
commit
52bad63809
1 file changed
+9
-11
@@ -251,8 +251,13 @@ new file mode 100644
|
||||
index 000000000000..a00fff9c79b3
|
||||
--- /dev/null
|
||||
+++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm
|
||||
@@ -0,0 +1,132 @@
|
||||
@@ -0,0 +1,130 @@
|
||||
+<style>
|
||||
+.pure-1-2 {
|
||||
+ width: 50%;
|
||||
+ display: inline-block;
|
||||
+ letter-spacing: normal;
|
||||
+}
|
||||
+.pure-img {
|
||||
+ max-height: 100%;
|
||||
+ width: auto;
|
||||
@@ -274,7 +279,7 @@ index 000000000000..a00fff9c79b3
|
||||
+}
|
||||
+
|
||||
+.status-bar .inner {
|
||||
+ margin: 0.5em;
|
||||
+ padding: 0.5em;
|
||||
+}
|
||||
+
|
||||
+.status-bar .inner .flag {
|
||||
@@ -310,11 +315,11 @@ index 000000000000..a00fff9c79b3
|
||||
+<div class="status-bar">
|
||||
+ <div class="inner">
|
||||
+ <div class="pure-g">
|
||||
+ <div class="pure-u-1-2">
|
||||
+ <div class="pure-1-2">
|
||||
+ <span class="flag"><img src="/luci-static/passwall/flags/loading.svg" class="pure-img"></span> <span
|
||||
+ class="status-info">获取中...</span>
|
||||
+ </div>
|
||||
+ <div class="pure-u-1-2">
|
||||
+ <div class="pure-1-2">
|
||||
+ <div class="icon-con">
|
||||
+ <img src="/luci-static/passwall/img/site_icon1_01.png" class="pure-img i1">
|
||||
+ <img src="/luci-static/passwall/img/site_icon1_02.png" class="pure-img i2">
|
||||
@@ -330,13 +335,9 @@ index 000000000000..a00fff9c79b3
|
||||
+const _ASSETS = '/luci-static/passwall/';
|
||||
+const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>';
|
||||
+
|
||||
+let mainContent = document.getElementById("maincontent");
|
||||
+let statusBar = document.querySelector(".status-bar");
|
||||
+
|
||||
+function resize() {
|
||||
+ wW = window.innerWidth;
|
||||
+ let lw = document.querySelector(".main-left, :root[data-layout='sidebar'] .fs-sidebar")?.offsetWidth ?? 5;
|
||||
+ statusBar.style.width = (wW - lw) + 'px';
|
||||
+ let flagElement = statusBar.querySelector(".flag");
|
||||
+ flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
||||
+
|
||||
@@ -380,9 +381,6 @@ index 000000000000..a00fff9c79b3
|
||||
+});
|
||||
+
|
||||
+window.addEventListener('resize', resize);
|
||||
+if (mainContent && window.getComputedStyle(mainContent).getPropertyValue("contain")=== "paint") {
|
||||
+document.body.appendChild(statusBar);
|
||||
+}
|
||||
+</script>
|
||||
|
||||
--- a/luci-app-passwall/root/usr/share/passwall/0_default_config
|
||||
|
||||
Reference in new issue
Block a user