From 65933beb142df6124f245a0ab9c272a788507e87 Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 21:29:55 +0800
Subject: [PATCH 1/5] luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
---
luci-app-ssr-plus/luasrc/view/shadowsocksr/check.htm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/check.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/check.htm
index 5f6a673a6d0..4a16adce695 100644
--- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/check.htm
+++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/check.htm
@@ -13,9 +13,9 @@
if (s)
{
if (rv.ret=="0")
- s.innerHTML =""+"<%:Connect OK%>"+"";
+ s.innerHTML =""+"<%:Connect OK%>"+"";
else
- s.innerHTML =""+"<%:Connect Error%>"+"";
+ s.innerHTML =""+"<%:Connect Error%>"+"";
}
btn.disabled = false;
btn.value = '<%:Check Connect%>';
From 80847275b52a810297c4260308fce2ebf7a32811 Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 21:32:41 +0800
Subject: [PATCH 2/5] luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
---
luci-app-ssr-plus/luasrc/view/shadowsocksr/refresh.htm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/refresh.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/refresh.htm
index da89fd53778..ea4113d878b 100644
--- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/refresh.htm
+++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/refresh.htm
@@ -15,13 +15,13 @@
switch (rv.ret)
{
case 0:
- s.innerHTML =""+"<%:Refresh OK!%> "+"<%:Total Records:%>"+rv.retcount+"";
+ s.innerHTML =""+"<%:Refresh OK!%> "+"<%:Total Records:%>"+rv.retcount+"";
break;
case 1:
- s.innerHTML =""+"<%:No new data!%> "+"";
+ s.innerHTML =""+"<%:No new data!%> "+"";
break;
default:
- s.innerHTML =""+"<%:Refresh Error!%> "+"";
+ s.innerHTML =""+"<%:Refresh Error!%> "+"";
break;
}
}
From 14e1cbac469b9abd2713528b99ccab34a0b44b5f Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 21:34:34 +0800
Subject: [PATCH 3/5] luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
---
luci-app-ssr-plus/luasrc/view/shadowsocksr/reset.htm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/reset.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/reset.htm
index 1882ac568ae..ff0c4860f2d 100644
--- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/reset.htm
+++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/reset.htm
@@ -7,7 +7,7 @@
return false;
}
if (reset != "reset") {
- s.innerHTML = "<%:The content entered is incorrect!%>";
+ s.innerHTML = "<%:The content entered is incorrect!%>";
return false;
}
btn.disabled = true;
@@ -15,7 +15,7 @@
murl=dataname;
XHR.get('<%=luci.dispatcher.build_url("admin", "services", "shadowsocksr","reset")%>', { set:murl }, function(x,rv) {
btn.value = '<%:Reset complete%>';
- s.innerHTML = "<%:Reset complete%>";
+ s.innerHTML = "<%:Reset complete%>";
});
return false;
}
From 1a1645b260eab4aba7657f55ea72411c8283fbc9 Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 21:39:04 +0800
Subject: [PATCH 4/5] luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
---
.../luasrc/view/shadowsocksr/ssrurl.htm | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
index 5eecbee6a51..479d7e2f5af 100644
--- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
+++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
@@ -69,9 +69,9 @@
textarea.select();
try {
document.execCommand("copy"); // Security exception may be thrown by some browsers.
- s.innerHTML = "<%:Copy SSR to clipboard successfully.%>";
+ s.innerHTML = "<%:Copy SSR to clipboard successfully.%>";
} catch (ex) {
- s.innerHTML = "<%:Unable to copy SSR to clipboard.%>";
+ s.innerHTML = "<%:Unable to copy SSR to clipboard.%>";
} finally {
document.body.removeChild(textarea);
}
@@ -83,7 +83,7 @@
if (!s) return false;
var ssrurl = prompt("<%:Paste sharing link here%>", "");
if (ssrurl == null || ssrurl == "") {
- s.innerHTML = "<%:User cancelled.%>";
+ s.innerHTML = "<%:User cancelled.%>";
return false;
}
s.innerHTML = "";
@@ -118,7 +118,7 @@
document.getElementsByName('cbid.shadowsocksr.' + sid + '.insecure')[0].checked = params.get("insecure") ? true : false;
document.getElementsByName('cbid.shadowsocksr.' + sid + '.alias')[0].value = url.hash ? decodeURIComponent(url.hash.slice(1)) : "";
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
return false;
case "ss":
var url0, param = "";
@@ -164,7 +164,7 @@
if (param != undefined) {
document.getElementsByName('cbid.shadowsocksr.' + sid + '.alias')[0].value = decodeURI(param);
}
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
} else {
var sstr = b64decsafe(url0);
document.getElementsByName('cbid.shadowsocksr.' + sid + '.type')[0].value = ssu[0];
@@ -179,7 +179,7 @@
if (param != undefined) {
document.getElementsByName('cbid.shadowsocksr.' + sid + '.alias')[0].value = decodeURI(param);
}
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
}
return false;
case "ssr":
@@ -212,7 +212,7 @@
document.getElementsByName('cbid.shadowsocksr.' + sid + '.protocol_param')[0].value = dictvalue(pdict, 'protoparam');
var rem = pdict['remarks'];
if (typeof (rem) != 'undefined' && rem != '' && rem.length > 0) document.getElementsByName('cbid.shadowsocksr.' + sid + '.alias')[0].value = b64decutf8safe(rem);
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
return false;
case "trojan":
try {
@@ -234,7 +234,7 @@
document.getElementsByName('cbid.shadowsocksr.' + sid + '.tls')[0].dispatchEvent(event);
document.getElementsByName('cbid.shadowsocksr.' + sid + '.tls_host')[0].value = url.searchParams.get("sni");
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
return false;
case "vmess":
var sstr = b64DecodeUnicode(ssu[1]);
@@ -287,7 +287,7 @@
}
document.getElementsByName('cbid.shadowsocksr.' + sid + '.mux')[0].checked = true;
document.getElementsByName('cbid.shadowsocksr.' + sid + '.mux')[0].dispatchEvent(event);
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
return false;
case "vless":
try {
@@ -357,10 +357,10 @@
}
break;
}
- s.innerHTML = "<%:Import configuration information successfully.%>";
+ s.innerHTML = "<%:Import configuration information successfully.%>";
return false;
default:
- s.innerHTML = "<%:Invalid format.%>";
+ s.innerHTML = "<%:Invalid format.%>";
return false;
}
}
From d4eafcf073a706fcfeef849a1ab4fab4c333befd Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Mon, 26 Feb 2024 21:41:30 +0800
Subject: [PATCH 5/5] luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
---
.../luasrc/view/shadowsocksr/server_list.htm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/luci-app-ssr-plus/luasrc/view/shadowsocksr/server_list.htm b/luci-app-ssr-plus/luasrc/view/shadowsocksr/server_list.htm
index 259cb7fff96..d0b77f10f8c 100644
--- a/luci-app-ssr-plus/luasrc/view/shadowsocksr/server_list.htm
+++ b/luci-app-ssr-plus/luasrc/view/shadowsocksr/server_list.htm
@@ -18,7 +18,7 @@
const wsPath = wsPaths[index];
const tls = tlss[index];
if (!dom) res()
- port.innerHTML = 'connect';
+ port.innerHTML = 'connect';
XHR.get('<%=luci.dispatcher.build_url("admin/services/shadowsocksr/ping")%>', {
index,
domain: dom.getAttribute("hint"),
@@ -34,11 +34,11 @@
if (result.ping < 200) col = '#ff7700';
if (result.ping < 100) col = '#249400';
}
- dom.innerHTML = `${(result.ping ? result.ping : "--") + " ms"}`
+ dom.innerHTML = `${(result.ping ? result.ping : "--") + " ms"}`
if (result.socket) {
- port.innerHTML = 'ok';
+ port.innerHTML = 'ok';
} else {
- port.innerHTML = 'fail';
+ port.innerHTML = 'fail';
}
res();
});