mirror of
https://github.com/v2board/v2board.git
synced 2025-03-13 06:04:42 +08:00
添加sing-box订阅按钮,删除clash订阅按钮
This commit is contained in:
parent
13167778f4
commit
21d753819a
@ -121,7 +121,7 @@ class SingBox
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected function buildVmess($uuid, $server)
|
protected function buildVmess($uuid, $server)
|
||||||
{
|
{
|
||||||
$array = [];
|
$array = [];
|
||||||
$array['tag'] = $server['name'];
|
$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['auth_str'] = $password;
|
||||||
$array['tag'] = $server['name'];
|
$array['tag'] = $server['name'];
|
||||||
$array['type'] = 'hysteria';
|
$array['type'] = 'hysteria';
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
@ -102100,7 +102100,7 @@
|
|||||||
}, y.a.createElement("div", {
|
}, y.a.createElement("div", {
|
||||||
className: "form-group col-md-3 col-xs-12"
|
className: "form-group col-md-3 col-xs-12"
|
||||||
}, y.a.createElement("label", null, "HYSTERIA\u7248\u672c"), y.a.createElement(N["a"], {
|
}, y.a.createElement("label", null, "HYSTERIA\u7248\u672c"), y.a.createElement(N["a"], {
|
||||||
value: parseInt(e.version),
|
value: parseInt(e.version) ? 2 : 1,
|
||||||
style: {
|
style: {
|
||||||
width: "100%"
|
width: "100%"
|
||||||
},
|
},
|
||||||
|
BIN
public/theme/v2board/assets/images/icon/Sing-box.png
Normal file
BIN
public/theme/v2board/assets/images/icon/Sing-box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
11
public/theme/v2board/assets/umi.js
vendored
11
public/theme/v2board/assets/umi.js
vendored
@ -1037,7 +1037,10 @@
|
|||||||
renderSubscribeBox() {
|
renderSubscribeBox() {
|
||||||
var e = this.props.subscribeUrl
|
var e = this.props.subscribeUrl
|
||||||
, t = [];
|
, 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",
|
title: "Shadowrocket",
|
||||||
href: "shadowrocket://add/sub://" + window.btoa(e + "&flag=shadowrocket").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "") + "?remark=" + window.settings.title
|
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({
|
Object(u["n"])() && (t.push({
|
||||||
title: "ClashMeta",
|
title: "ClashMeta",
|
||||||
href: "clash://install-config?url=" + encodeURIComponent(e + "&flag=meta") + "&name=" + window.settings.title
|
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({
|
Object(u["g"])() && (t.push({
|
||||||
title: "NekoBox For Android",
|
title: "NekoBox For Android",
|
||||||
@ -1072,9 +1072,6 @@
|
|||||||
}) && t.push({
|
}) && t.push({
|
||||||
title: "ClashMeta For Android",
|
title: "ClashMeta For Android",
|
||||||
href: "clash://install-config?url=" + encodeURIComponent(e + "&flag=meta") + "&name=" + window.settings.title
|
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({
|
t.push({
|
||||||
title: "Surfboard",
|
title: "Surfboard",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user