mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-19 08:23:03 +00:00
chore: update sub page URL (#3505)
* Fix: Shadowrocket link using base64 encoding * chore: update url
This commit is contained in:
parent
170d24499e
commit
c720008187
2 changed files with 18 additions and 5 deletions
|
@ -127,6 +127,18 @@
|
||||||
const base64Url = btoa(rawUrl);
|
const base64Url = btoa(rawUrl);
|
||||||
const remark = encodeURIComponent(this.app.sId || 'Subscription');
|
const remark = encodeURIComponent(this.app.sId || 'Subscription');
|
||||||
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;
|
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;
|
||||||
|
},
|
||||||
|
v2boxUrl() {
|
||||||
|
return `v2box://install-sub?url=${encodeURIComponent(this.app.subUrl)}&name=${encodeURIComponent(this.app.sId)}`;
|
||||||
|
},
|
||||||
|
streisandUrl() {
|
||||||
|
return `streisand://import/${encodeURIComponent(this.app.subUrl)}`;
|
||||||
|
},
|
||||||
|
v2raytunUrl() {
|
||||||
|
return this.app.subUrl;
|
||||||
|
},
|
||||||
|
npvtunUrl() {
|
||||||
|
return this.app.subUrl;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -235,14 +235,15 @@
|
||||||
<a-menu-item key="ios-shadowrocket"
|
<a-menu-item key="ios-shadowrocket"
|
||||||
@click="open(shadowrocketUrl)">Shadowrocket</a-menu-item>
|
@click="open(shadowrocketUrl)">Shadowrocket</a-menu-item>
|
||||||
<a-menu-item key="ios-v2box"
|
<a-menu-item key="ios-v2box"
|
||||||
@click="open('v2box://install-sub?url=' + encodeURIComponent(app.subUrl) + '&name=' + encodeURIComponent(app.sId))">V2Box</a-menu-item>
|
@click="open(v2boxUrl)">V2Box</a-menu-item>
|
||||||
<a-menu-item key="ios-streisand"
|
<a-menu-item key="ios-streisand"
|
||||||
@click="open('streisand://import/' + encodeURIComponent(app.subUrl))">Streisand</a-menu-item>
|
@click="open(streisandUrl)">Streisand</a-menu-item>
|
||||||
<a-menu-item key="ios-v2raytun"
|
<a-menu-item key="ios-v2raytun"
|
||||||
@click="copy(app.subUrl)">V2RayTun</a-menu-item>
|
@click="copy(v2raytunUrl)">V2RayTun</a-menu-item>
|
||||||
<a-menu-item key="ios-npvtunnel"
|
<a-menu-item key="ios-npvtunnel"
|
||||||
@click="copy(app.subUrl)">NPV
|
@click="copy(npvtunUrl)">NPV
|
||||||
Tunnel</a-menu-item>
|
Tunnel
|
||||||
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
Loading…
Reference in a new issue