添加sing-box订阅按钮,删除clash订阅按钮

This commit is contained in:
wyx2685 2023-11-05 00:28:24 +09:00
parent 13167778f4
commit 21d753819a
No known key found for this signature in database
GPG Key ID: 8827A30FF1DB1379
4 changed files with 7 additions and 10 deletions

View File

@ -121,7 +121,7 @@ class SingBox
}
protected function buildVmess($uuid, $server)
protected function buildVmess($uuid, $server)
{
$array = [];
$array['tag'] = $server['name'];
@ -289,7 +289,7 @@ class SingBox
]
];
if ($server['version'] == 1) {
if (is_null($server['version']) || $server['version'] == 1) {
$array['auth_str'] = $password;
$array['tag'] = $server['name'];
$array['type'] = 'hysteria';

View File

@ -102100,7 +102100,7 @@
}, y.a.createElement("div", {
className: "form-group col-md-3 col-xs-12"
}, y.a.createElement("label", null, "HYSTERIA\u7248\u672c"), y.a.createElement(N["a"], {
value: parseInt(e.version),
value: parseInt(e.version) ? 2 : 1,
style: {
width: "100%"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1037,7 +1037,10 @@
renderSubscribeBox() {
var e = this.props.subscribeUrl
, t = [];
return (Object(u["i"])() || Object(u["j"])()) && (t.push({
return t.push({
title: "Sing-box",
href: "sing-box://import-remote-profile?url=" + encodeURIComponent(e + "&flag=sing-box") + "#" + window.settings.title
}), (Object(u["i"])() || Object(u["j"])()) && (t.push({
title: "Shadowrocket",
href: "shadowrocket://add/sub://" + window.btoa(e + "&flag=shadowrocket").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "") + "?remark=" + window.settings.title
}),
@ -1062,9 +1065,6 @@
Object(u["n"])() && (t.push({
title: "ClashMeta",
href: "clash://install-config?url=" + encodeURIComponent(e + "&flag=meta") + "&name=" + window.settings.title
}) && t.push({
title: "Clash For Windows",
href: "clash://install-config?url=" + encodeURIComponent(e) + "&name=" + window.settings.title
})),
Object(u["g"])() && (t.push({
title: "NekoBox For Android",
@ -1072,9 +1072,6 @@
}) && t.push({
title: "ClashMeta For Android",
href: "clash://install-config?url=" + encodeURIComponent(e + "&flag=meta") + "&name=" + window.settings.title
}) && t.push({
title: "Clash For Android",
href: "clash://install-config?url=" + encodeURIComponent(e) + "&name=" + window.settings.title
}),
t.push({
title: "Surfboard",