Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-12-10 17:42:52 +0300
committerGitHub <noreply@github.com>2023-12-10 17:42:52 +0300
commite3f1d3c892a1af48f27fdc36f273a55f38d13b40 (patch)
treeb11d0c1ed3c15c8f6f891a5e6df8e021d5db8ab6 /web/html/xui/inbound_modal.html
parent36cf7c0a8fda915b51e75958ce729fd9a61a5c90 (diff)
parent9fbe80f87f950673058f0001b3704251fa8b9243 (diff)
huge changes
Diffstat (limited to 'web/html/xui/inbound_modal.html')
-rw-r--r--web/html/xui/inbound_modal.html32
1 files changed, 13 insertions, 19 deletions
diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html
index a18d7731..4ef8f2d6 100644
--- a/web/html/xui/inbound_modal.html
+++ b/web/html/xui/inbound_modal.html
@@ -1,7 +1,7 @@
{{define "inboundModal"}}
<a-modal id="inbound-modal" v-model="inModal.visible" :title="inModal.title" @ok="inModal.ok"
:confirm-loading="inModal.confirmLoading" :closable="true" :mask-closable="false"
- :class="themeSwitcher.darkCardClass"
+ :class="themeSwitcher.currentTheme"
:ok-text="inModal.okText" cancel-text='{{ i18n "close" }}'>
{{template "form/inbound"}}
</a-modal>
@@ -43,15 +43,6 @@
loading(loading) {
inModal.confirmLoading = loading;
},
- getClients(protocol, clientSettings) {
- switch (protocol) {
- case Protocols.VMESS: return clientSettings.vmesses;
- case Protocols.VLESS: return clientSettings.vlesses;
- case Protocols.TROJAN: return clientSettings.trojans;
- case Protocols.SHADOWSOCKS: return clientSettings.shadowsockses;
- default: return null;
- }
- },
};
new Vue({
@@ -70,7 +61,7 @@
return inModal.isEdit;
},
get client() {
- return inModal.getClients(this.inbound.protocol, this.inbound.settings)[0];
+ return inModal.inbound.clients[0];
},
get delayedExpireDays() {
return this.client && this.client.expiryTime < 0 ? this.client.expiryTime / -86400000 : 0;
@@ -78,22 +69,25 @@
set delayedExpireDays(days) {
this.client.expiryTime = -86400000 * days;
},
- get multiDomain() {
- return this.inbound.stream.tls.settings.domains.length > 0;
+ get externalProxy() {
+ return this.inbound.stream.externalProxy.length > 0;
},
- set multiDomain(value) {
+ set externalProxy(value) {
if (value) {
- inModal.inbound.stream.tls.server = "";
- inModal.inbound.stream.tls.settings.domains = [{ remark: "", domain: window.location.hostname }];
+ inModal.inbound.stream.externalProxy = [{
+ forceTls: "same",
+ dest: window.location.hostname,
+ port: inModal.inbound.port,
+ remark: ""
+ }];
} else {
- inModal.inbound.stream.tls.server = "";
- inModal.inbound.stream.tls.settings.domains = [];
+ inModal.inbound.stream.externalProxy = [];
}
}
},
methods: {
streamNetworkChange() {
- if (!inModal.inbound.canSetTls()) {
+ if (!inModal.inbound.canEnableTls()) {
this.inModal.inbound.stream.security = 'none';
}
if (!inModal.inbound.canEnableReality()) {