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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-01 20:28:00 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-01 20:28:00 +0300
commit1885a8c0bf0cc58d2866d64b3a11d4bfa3a22e46 (patch)
treec4b391fa4bc4ac6aa051c421b88ac3b2a14e1aaa /web/html/xui/form/protocol
parent4ce53920fe4e12777c6c89993e2696bb670751e5 (diff)
fixed - set Default Cert for Xtls
Diffstat (limited to 'web/html/xui/form/protocol')
-rw-r--r--web/html/xui/form/protocol/socks.html2
-rw-r--r--web/html/xui/form/protocol/trojan.html54
-rw-r--r--web/html/xui/form/protocol/vless.html40
-rw-r--r--web/html/xui/form/protocol/vmess.html63
4 files changed, 76 insertions, 83 deletions
diff --git a/web/html/xui/form/protocol/socks.html b/web/html/xui/form/protocol/socks.html
index 5857d413..2662f1d6 100644
--- a/web/html/xui/form/protocol/socks.html
+++ b/web/html/xui/form/protocol/socks.html
@@ -1,6 +1,6 @@
{{define "form/socks"}}
<a-form layout="inline">
-<!-- <a-form-item label="Password authentication">-->
+ <!-- <a-form-item label="Password authentication">-->
<a-form-item label='{{ i18n "password" }}'>
<a-switch :checked="inbound.settings.auth === 'password'"
@change="checked => inbound.settings.auth = checked ? 'password' : 'noauth'"></a-switch>
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index b775a98b..b52c4dd9 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -1,21 +1,19 @@
{{define "form/trojan"}}
<a-form layout="inline">
-<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.trojans.slice(0,1)" v-if="!isEdit">
+<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.trojans.slice(0,1)" v-if="!isEdit">
<a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
- <a-form layout="inline">
- <a-form-item>
- <span slot="label">
- <span>{{ i18n "pages.inbounds.Email" }}</span>
- <a-tooltip>
- <template slot="title">
- <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
- </template>
- <a-icon @click="getNewEmail(client)" type="sync"> </a-icon>
- </a-tooltip>
- </span>
- <a-input v-model.trim="client.email" style="width: 150px;" ></a-input>
- </a-form-item>
- </a-form>
+ <a-form-item>
+ <span slot="label">
+ <span>{{ i18n "pages.inbounds.Email" }}</span>
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
+ </template>
+ <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ </a-tooltip>
+ </span>
+ <a-input v-model.trim="client.email" style="width: 150px;"></a-input>
+ </a-form-item>
<a-form-item label="Password">
<a-input v-model.trim="client.password" style="width: 150px;"></a-input>
</a-form-item>
@@ -25,18 +23,18 @@
<a-form-item label="Telegram Username" v-if="client.email">
<a-input v-model.trim="client.tgId"></a-input>
</a-form-item>
- <a-form-item>
- <span slot="label">
- <span>{{ i18n "pages.inbounds.IPLimit" }}</span>
- <a-tooltip>
- <template slot="title">
- <span>{{ i18n "pages.inbounds.IPLimitDesc" }}</span>
- </template>
- <a-icon type="question-circle" theme="filled"></a-icon>
- </a-tooltip>
- </span>
- <a-input type="number" v-model.number="client.limitIp" min="0" style="width: 70px;" ></a-input>
- </a-form-item>
+ <a-form-item>
+ <span slot="label">
+ <span>{{ i18n "pages.inbounds.IPLimit" }}</span>
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.IPLimitDesc" }}</span>
+ </template>
+ <a-icon type="question-circle" theme="filled"></a-icon>
+ </a-tooltip>
+ </span>
+ <a-input type="number" v-model.number="client.limitIp" min="0" style="width: 70px;" ></a-input>
+ </a-form-item>
<a-form-item v-if="inbound.xtls" label="Flow">
<a-select v-model="client.flow" style="width: 150px" :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
<a-select-option value="">{{ i18n "none" }}</a-select-option>
@@ -66,7 +64,7 @@
</a-tooltip>
</span>
<a-date-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss"
- :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''"
+ :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''"
v-model="client._expiryTime" style="width: 170px;"></a-date-picker>
</a-form-item>
</a-collapse-panel>
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index 5a496b89..1d733d02 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -1,23 +1,21 @@
{{define "form/vless"}}
<a-form layout="inline">
-<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vlesses.slice(0,1)" v-if="!isEdit">
+<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vlesses.slice(0,1)" v-if="!isEdit">
<a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
- <a-form layout="inline">
- <a-form-item>
- <span slot="label">
- <span>{{ i18n "pages.inbounds.Email" }}</span>
- <a-tooltip>
- <template slot="title">
- <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
- </template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
- </a-tooltip>
- </span>
- <a-input v-model.trim="client.email" style="width: 150px;" ></a-input>
- </a-form-item>
- </a-form>
+ <a-form-item>
+ <span slot="label">
+ <span>{{ i18n "pages.inbounds.Email" }}</span>
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
+ </template>
+ <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ </a-tooltip>
+ </span>
+ <a-input v-model.trim="client.email" style="width: 150px;"></a-input>
+ </a-form-item>
<a-form-item label="ID">
- <a-input v-model.trim="client.id" style="width: 300px;" ></a-input>
+ <a-input v-model.trim="client.id" style="width: 300px;"></a-input>
</a-form-item>
<a-form-item label="Subscription" v-if="client.email">
<a-input v-model.trim="client.subId"></a-input>
@@ -25,7 +23,7 @@
<a-form-item label="Telegram Username" v-if="client.email">
<a-input v-model.trim="client.tgId"></a-input>
</a-form-item>
- <a-form-item>
+ <a-form-item>
<span slot="label">
<span>{{ i18n "pages.inbounds.IPLimit" }}</span>
<a-tooltip>
@@ -36,8 +34,8 @@
</a-tooltip>
</span>
<a-input type="number" v-model.number="client.limitIp" min="0" style="width: 70px;" ></a-input>
- </a-form-item>
- <a-form-item v-if="inbound.xtls" label="Flow">
+ </a-form-item>
+ <a-form-item v-if="inbound.xtls" label="Flow">
<a-select v-model="inbound.settings.vlesses[index].flow" style="width: 200px" :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
<a-select-option value="" selected>{{ i18n "none" }}</a-select-option>
<a-select-option v-for="key in XTLS_FLOW_CONTROL" :value="key">[[ key ]]</a-select-option>
@@ -75,7 +73,7 @@
:dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''"
v-model="client._expiryTime" style="width: 170px;"></a-date-picker>
</a-form-item>
- </a-collapse-panel>
+ </a-collapse-panel>
</a-collapse>
<a-collapse v-else>
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.vlesses.length">
@@ -100,7 +98,7 @@
</a-row>
</a-form-item>
</a-form>
-
+
<!-- vless fallbacks -->
<a-form v-for="(fallback, index) in inbound.settings.fallbacks" layout="inline">
<a-divider>
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html
index 574271b6..9cd48544 100644
--- a/web/html/xui/form/protocol/vmess.html
+++ b/web/html/xui/form/protocol/vmess.html
@@ -1,45 +1,43 @@
{{define "form/vmess"}}
<a-form layout="inline">
-<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vmesses.slice(0,1)" v-if="!isEdit">
+<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vmesses.slice(0,1)" v-if="!isEdit">
<a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
- <a-form layout="inline">
- <a-form-item>
- <span slot="label">
- <span>{{ i18n "pages.inbounds.Email" }}</span>
- <a-tooltip>
- <template slot="title">
- <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
- </template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
- </a-tooltip>
- </span>
- <a-input v-model.trim="client.email" style="width: 150px;"></a-input>
- </a-form-item>
- </a-form>
- <a-form-item label="ID">
- <a-input v-model.trim="client.id" style="width: 300px;"></a-input>
+ <a-form-item>
+ <span slot="label">
+ <span>{{ i18n "pages.inbounds.Email" }}</span>
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.EmailDesc" }}</span>
+ </template>
+ <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ </a-tooltip>
+ </span>
+ <a-input v-model.trim="client.email" style="width: 150px;"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "additional" }} ID'>
<a-input type="number" v-model.number="client.alterId" style="width: 70px;"></a-input>
</a-form-item>
+ <a-form-item label="ID">
+ <a-input v-model.trim="client.id" style="width: 300px;"></a-input>
+ </a-form-item>
<a-form-item label="Subscription" v-if="client.email">
<a-input v-model.trim="client.subId"></a-input>
</a-form-item>
<a-form-item label="Telegram Username" v-if="client.email">
<a-input v-model.trim="client.tgId"></a-input>
</a-form-item>
- <a-form-item>
- <span slot="label">
- <span>{{ i18n "pages.inbounds.IPLimit" }}</span>
- <a-tooltip>
- <template slot="title">
- <span>{{ i18n "pages.inbounds.IPLimitDesc" }}</span>
- </template>
- <a-icon type="question-circle" theme="filled"></a-icon>
- </a-tooltip>
- </span>
- <a-input type="number" v-model.number="client.limitIp" min="0" style="width: 70px;"></a-input>
- </a-form-item>
+ <a-form-item>
+ <span slot="label">
+ <span>{{ i18n "pages.inbounds.IPLimit" }}</span>
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.IPLimitDesc" }}</span>
+ </template>
+ <a-icon type="question-circle" theme="filled"></a-icon>
+ </a-tooltip>
+ </span>
+ <a-input type="number" v-model.number="client.limitIp" min="0" style="width: 70px;"></a-input>
+ </a-form-item>
<a-form-item>
<span slot="label">
<span >{{ i18n "pages.inbounds.totalFlow" }}</span>(GB)
@@ -63,10 +61,10 @@
</a-tooltip>
</span>
<a-date-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss"
- :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''"
- v-model="client._expiryTime" style="width: 170px;"></a-date-picker>
+ :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''"
+ v-model="client._expiryTime" style="width: 170px;"></a-date-picker>
</a-form-item>
- </a-collapse-panel>
+ </a-collapse-panel>
</a-collapse>
<a-collapse v-else>
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.vmesses.length">
@@ -85,5 +83,4 @@
<a-switch v-model.number="inbound.settings.disableInsecure"></a-switch>
</a-form-item>
</a-form>
-
{{end}}