diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-04 14:20:24 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-04 14:20:24 +0300 |
| commit | e19061d513b8c4fb2207b4a553a96ea086089612 (patch) | |
| tree | 8a05450f0f6d3e8a2a182976b1a38bf5cca824ea /web/html/settings | |
| parent | 51e2fb6dbfb6f3f21b3f578c15c3dc0d47c4a66e (diff) | |
TLS: Remove ECH Force Query
Diffstat (limited to 'web/html/settings')
| -rw-r--r-- | web/html/settings/panel/general.html | 21 | ||||
| -rw-r--r-- | web/html/settings/panel/subscription/general.html | 18 | ||||
| -rw-r--r-- | web/html/settings/panel/subscription/subpage.html | 13 | ||||
| -rw-r--r-- | web/html/settings/xray/balancers.html | 8 | ||||
| -rw-r--r-- | web/html/settings/xray/basics.html | 105 | ||||
| -rw-r--r-- | web/html/settings/xray/dns.html | 3 | ||||
| -rw-r--r-- | web/html/settings/xray/outbounds.html | 51 |
7 files changed, 85 insertions, 134 deletions
diff --git a/web/html/settings/panel/general.html b/web/html/settings/panel/general.html index 6969a1b4..ffc2cda1 100644 --- a/web/html/settings/panel/general.html +++ b/web/html/settings/panel/general.html @@ -162,7 +162,8 @@ <a-setting-list-item paddings="small"> <template #title>LDAP Port</template> <template #control> - <a-input-number :min="1" :max="65535" v-model="allSetting.ldapPort" :style="{ width: '100%' }"></a-input-number> + <a-input-number :min="1" :max="65535" v-model="allSetting.ldapPort" + :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> @@ -239,10 +240,13 @@ <template #title>Inbound tags</template> <template #description>Select inbounds to manage (auto create/delete)</template> <template #control> - <a-select mode="multiple" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }" v-model="ldapInboundTagList"> - <a-select-option v-for="opt in inboundOptions" :key="opt.value" :value="opt.value">[[ opt.label ]]</a-select-option> + <a-select mode="multiple" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }" + v-model="ldapInboundTagList"> + <a-select-option v-for="opt in inboundOptions" :key="opt.value" :value="opt.value">[[ opt.label + ]]</a-select-option> </a-select> - <div v-if="inboundOptions.length==0" style="margin-top:6px;color:#999">No inbounds found. Please create one in Inbounds.</div> + <div v-if="inboundOptions.length==0" style="margin-top:6px;color:#999">No inbounds found. Please create + one in Inbounds.</div> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> @@ -260,19 +264,22 @@ <a-setting-list-item paddings="small"> <template #title>Default total (GB)</template> <template #control> - <a-input-number :min="0" v-model="allSetting.ldapDefaultTotalGB" :style="{ width: '100%' }"></a-input-number> + <a-input-number :min="0" v-model="allSetting.ldapDefaultTotalGB" + :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> <template #title>Default expiry (days)</template> <template #control> - <a-input-number :min="0" v-model="allSetting.ldapDefaultExpiryDays" :style="{ width: '100%' }"></a-input-number> + <a-input-number :min="0" v-model="allSetting.ldapDefaultExpiryDays" + :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> <template #title>Default Limit IP</template> <template #control> - <a-input-number :min="0" v-model="allSetting.ldapDefaultLimitIP" :style="{ width: '100%' }"></a-input-number> + <a-input-number :min="0" v-model="allSetting.ldapDefaultLimitIP" + :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> </a-collapse-panel> diff --git a/web/html/settings/panel/subscription/general.html b/web/html/settings/panel/subscription/general.html index 725a9359..a7b58e46 100644 --- a/web/html/settings/panel/subscription/general.html +++ b/web/html/settings/panel/subscription/general.html @@ -46,8 +46,7 @@ <template #description>{{ i18n "pages.settings.subPortDesc"}}</template> <template #control> - <a-input-number v-model="allSetting.subPort" :min="1" - :min="65535" + <a-input-number v-model="allSetting.subPort" :min="1" :min="65535" :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> @@ -67,8 +66,7 @@ <template #description>{{ i18n "pages.settings.subURIDesc"}}</template> <template #control> - <a-input type="text" - placeholder="(http|https)://domain[:port]/path/" + <a-input type="text" placeholder="(http|https)://domain[:port]/path/" v-model="allSetting.subURI"></a-input> </template> </a-setting-list-item> @@ -104,8 +102,7 @@ <template #description>{{ i18n "pages.settings.subSupportUrlDesc"}}</template> <template #control> - <a-input type="text" v-model="allSetting.subSupportUrl" - placeholder="https://example.com"></a-input> + <a-input type="text" v-model="allSetting.subSupportUrl" placeholder="https://example.com"></a-input> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> @@ -113,8 +110,7 @@ <template #description>{{ i18n "pages.settings.subProfileUrlDesc"}}</template> <template #control> - <a-input type="text" v-model="allSetting.subProfileUrl" - placeholder="https://example.com"></a-input> + <a-input type="text" v-model="allSetting.subProfileUrl" placeholder="https://example.com"></a-input> </template> </a-setting-list-item> <a-setting-list-item paddings="small"> @@ -141,8 +137,7 @@ <template #description>{{ i18n "pages.settings.subRoutingRulesDesc"}}</template> <template #control> - <a-textarea v-model="allSetting.subRoutingRules" - placeholder="happ://routing/add/..."></a-textarea> + <a-textarea v-model="allSetting.subRoutingRules" placeholder="happ://routing/add/..."></a-textarea> </template> </a-setting-list-item> </a-collapse-panel> @@ -170,8 +165,7 @@ <template #description>{{ i18n "pages.settings.subUpdatesDesc"}}</template> <template #control> - <a-input-number :min="1" v-model="allSetting.subUpdates" - :style="{ width: '100%' }"></a-input-number> + <a-input-number :min="1" v-model="allSetting.subUpdates" :style="{ width: '100%' }"></a-input-number> </template> </a-setting-list-item> </a-collapse-panel> diff --git a/web/html/settings/panel/subscription/subpage.html b/web/html/settings/panel/subscription/subpage.html index 2b3c7939..48f0ecfb 100644 --- a/web/html/settings/panel/subscription/subpage.html +++ b/web/html/settings/panel/subscription/subpage.html @@ -100,7 +100,8 @@ <a-form-item> <a-space direction="vertical" align="center"> <a-row type="flex" :gutter="[8,8]" justify="center" style="width:100%"> - <a-col :xs="24" :sm="app.subJsonUrl || app.subClashUrl ? 12 : 24" style="text-align:center;"> + <a-col :xs="24" :sm="app.subJsonUrl || app.subClashUrl ? 12 : 24" + style="text-align:center;"> <tr-qr-box class="qr-box"> <a-tag color="purple" class="qr-tag"> <span>{{ i18n @@ -270,11 +271,11 @@ </a-layout> <!-- Bootstrap data for external JS --> -<template id="subscription-data" data-sid="{{ .sId }}" data-sub-url="{{ .subUrl }}" data-subjson-url="{{ .subJsonUrl }}" data-subclash-url="{{ .subClashUrl }}" - data-download="{{ .download }}" data-upload="{{ .upload }}" data-used="{{ .used }}" data-total="{{ .total }}" - data-remained="{{ .remained }}" data-expire="{{ .expire }}" data-lastonline="{{ .lastOnline }}" - data-downloadbyte="{{ .downloadByte }}" data-uploadbyte="{{ .uploadByte }}" data-totalbyte="{{ .totalByte }}" - data-datepicker="{{ .datepicker }}"></template> +<template id="subscription-data" data-sid="{{ .sId }}" data-sub-url="{{ .subUrl }}" data-subjson-url="{{ .subJsonUrl }}" + data-subclash-url="{{ .subClashUrl }}" data-download="{{ .download }}" data-upload="{{ .upload }}" + data-used="{{ .used }}" data-total="{{ .total }}" data-remained="{{ .remained }}" data-expire="{{ .expire }}" + data-lastonline="{{ .lastOnline }}" data-downloadbyte="{{ .downloadByte }}" data-uploadbyte="{{ .uploadByte }}" + data-totalbyte="{{ .totalByte }}" data-datepicker="{{ .datepicker }}"></template> <textarea id="subscription-links" style="display:none">{{ range .result }}{{ . }} {{ end }}</textarea> diff --git a/web/html/settings/xray/balancers.html b/web/html/settings/xray/balancers.html index af7def75..5a193cdf 100644 --- a/web/html/settings/xray/balancers.html +++ b/web/html/settings/xray/balancers.html @@ -5,7 +5,8 @@ <span>{{ i18n "pages.xray.balancer.addBalancer"}}</span> </a-button> <a-table :columns="balancerColumns" bordered :row-key="r => r.key" :data-source="balancersData" - :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> + :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text, balancer, index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> @@ -18,7 +19,7 @@ </a-menu-item> <a-menu-item @click="deleteBalancer(index)"> <span :style="{ color: '#FF4D4F' }"> - <a-icon type="delete"></a-icon> + <a-icon type="delete"></a-icon> <span>{{ i18n "delete"}}</span> </span> </a-menu-item> @@ -32,7 +33,8 @@ <a-tag :style="{ margin: '0' }" v-if="balancer.strategy=='leastPing'" color="green">Least Ping</a-tag> </template> <template slot="selector" slot-scope="text, balancer, index"> - <a-tag class="info-large-tag" :style="{ margin: '1' }" v-for="sel in balancer.selector">[[ sel ]]</a-tag> + <a-tag class="info-large-tag" :style="{ margin: '1' }" v-for="sel in balancer.selector">[[ sel + ]]</a-tag> </template> </a-table> <a-radio-group v-if="observatoryEnable || burstObservatoryEnable" v-model="obsSettings" @change="changeObsCode" diff --git a/web/html/settings/xray/basics.html b/web/html/settings/xray/basics.html index c637e30a..3ac2349a 100644 --- a/web/html/settings/xray/basics.html +++ b/web/html/settings/xray/basics.html @@ -4,8 +4,7 @@ <a-row :xs="24" :sm="24" :lg="12"> <a-alert type="warning" :style="{ textAlign: 'center' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.generalConfigsDesc" }}</span> </template> </a-alert> @@ -15,11 +14,9 @@ <template #description>{{ i18n "pages.xray.FreedomStrategyDesc" }}</template> <template #control> - <a-select v-model="freedomStrategy" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="freedomStrategy" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> - <a-select-option v-for="s in OutboundDomainStrategies" - :value="s"> + <a-select-option v-for="s in OutboundDomainStrategies" :value="s"> <span>[[ s ]]</span> </a-select-option> </a-select> @@ -30,11 +27,9 @@ <template #description>{{ i18n "pages.xray.RoutingStrategyDesc" }}</template> <template #control> - <a-select v-model="routingStrategy" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="routingStrategy" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> - <a-select-option v-for="s in routingDomainStrategies" - :value="s"> + <a-select-option v-for="s in routingDomainStrategies" :value="s"> <span>[[ s ]]</span> </a-select-option> </a-select> @@ -45,8 +40,7 @@ <template #description>{{ i18n "pages.xray.outboundTestUrlDesc" }}</template> <template #control> - <a-input v-model="outboundTestUrl" - :placeholder="'https://www.google.com/generate_204'" + <a-input v-model="outboundTestUrl" :placeholder="'https://www.google.com/generate_204'" :style="{ width: '100%' }"></a-input> </template> </a-setting-list-item> @@ -93,8 +87,7 @@ <a-row :xs="24" :sm="24" :lg="12"> <a-alert type="warning" :style="{ textAlign: 'center' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.logConfigsDesc" }}</span> </template> </a-alert> @@ -104,8 +97,7 @@ <template #description>{{ i18n "pages.xray.logLevelDesc" }}</template> <template #control> - <a-select v-model="logLevel" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="logLevel" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> <a-select-option v-for="s in log.loglevel" :value="s"> <span>[[ s ]]</span> @@ -118,8 +110,7 @@ <template #description>{{ i18n "pages.xray.accessLogDesc" }}</template> <template #control> - <a-select v-model="accessLog" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="accessLog" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> <a-select-option value> <span>Empty</span> @@ -135,8 +126,7 @@ <template #description>{{ i18n "pages.xray.errorLogDesc" }}</template> <template #control> - <a-select v-model="errorLog" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="errorLog" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> <a-select-option value> <span>Empty</span> @@ -152,8 +142,7 @@ <template #description>{{ i18n "pages.xray.maskAddressDesc" }}</template> <template #control> - <a-select v-model="maskAddressLog" - :dropdown-class-name="themeSwitcher.currentTheme" + <a-select v-model="maskAddressLog" :dropdown-class-name="themeSwitcher.currentTheme" :style="{ width: '100%' }"> <a-select-option value> <span>Empty</span> @@ -176,8 +165,7 @@ <a-row :xs="24" :sm="24" :lg="12"> <a-alert type="warning" :style="{ textAlign: 'center' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.blockConfigsDesc" }}</span> </template> </a-alert> @@ -191,8 +179,7 @@ <a-row :xs="24" :sm="24" :lg="12"> <a-alert type="warning" :style="{ textAlign: 'center' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.blockConnectionsConfigsDesc" }}</span> </template> @@ -201,11 +188,9 @@ <a-setting-list-item paddings="small"> <template #title>{{ i18n "pages.xray.blockips" }}</template> <template #control> - <a-select mode="tags" v-model="blockedIPs" - :style="{ width: '100%' }" + <a-select mode="tags" v-model="blockedIPs" :style="{ width: '100%' }" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.IPsOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.IPsOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> @@ -214,22 +199,18 @@ <a-setting-list-item paddings="small"> <template #title>{{ i18n "pages.xray.blockdomains" }}</template> <template #control> - <a-select mode="tags" v-model="blockedDomains" - :style="{ width: '100%' }" + <a-select mode="tags" v-model="blockedDomains" :style="{ width: '100%' }" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.BlockDomainsOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.BlockDomainsOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> </template> </a-setting-list-item> <a-row :xs="24" :sm="24" :lg="12"> - <a-alert type="warning" - :style="{ textAlign: 'center', marginTop: '20px' }"> + <a-alert type="warning" :style="{ textAlign: 'center', marginTop: '20px' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.directConnectionsConfigsDesc" }}</span> </template> @@ -238,11 +219,9 @@ <a-setting-list-item paddings="small"> <template #title>{{ i18n "pages.xray.directips" }}</template> <template #control> - <a-select mode="tags" :style="{ width: '100%' }" - v-model="directIPs" + <a-select mode="tags" :style="{ width: '100%' }" v-model="directIPs" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.IPsOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.IPsOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> @@ -251,22 +230,18 @@ <a-setting-list-item paddings="small"> <template #title>{{ i18n "pages.xray.directdomains" }}</template> <template #control> - <a-select mode="tags" :style="{ width: '100%' }" - v-model="directDomains" + <a-select mode="tags" :style="{ width: '100%' }" v-model="directDomains" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.DomainsOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.DomainsOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> </template> </a-setting-list-item> <a-row :xs="24" :sm="24" :lg="12"> - <a-alert type="warning" - :style="{ textAlign: 'center', marginTop: '20px' }"> + <a-alert type="warning" :style="{ textAlign: 'center', marginTop: '20px' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> <span>{{ i18n "pages.xray.ipv4RoutingDesc" }}</span> </template> </a-alert> @@ -274,22 +249,18 @@ <a-setting-list-item paddings="small"> <template #title>{{ i18n "pages.xray.ipv4Routing" }}</template> <template #control> - <a-select mode="tags" :style="{ width: '100%' }" - v-model="ipv4Domains" + <a-select mode="tags" :style="{ width: '100%' }" v-model="ipv4Domains" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.ServicesOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.ServicesOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> </template> </a-setting-list-item> <a-row :xs="24" :sm="24" :lg="12"> - <a-alert type="warning" - :style="{ textAlign: 'center', marginTop: '20px' }"> + <a-alert type="warning" :style="{ textAlign: 'center', marginTop: '20px' }"> <template slot="message"> - <a-icon type="exclamation-circle" theme="filled" - :style="{ color: '#FFA031' }"></a-icon> + <a-icon type="exclamation-circle" theme="filled" :style="{ color: '#FFA031' }"></a-icon> {{ i18n "pages.xray.warpRoutingDesc" }} </template> </a-alert> @@ -298,18 +269,15 @@ <template #title>{{ i18n "pages.xray.warpRouting" }}</template> <template #control> <template v-if="WarpExist"> - <a-select mode="tags" :style="{ width: '100%' }" - v-model="warpDomains" + <a-select mode="tags" :style="{ width: '100%' }" v-model="warpDomains" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.ServicesOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.ServicesOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> </template> <template v-else> - <a-button type="primary" icon="cloud" - @click="showWarp()">WARP</a-button> + <a-button type="primary" icon="cloud" @click="showWarp()">WARP</a-button> </template> </template> </a-setting-list-item> @@ -317,11 +285,9 @@ <template #title>{{ i18n "pages.xray.nordRouting" }}</template> <template #control> <template v-if="NordExist"> - <a-select mode="tags" :style="{ width: '100%' }" - v-model="nordDomains" + <a-select mode="tags" :style="{ width: '100%' }" v-model="nordDomains" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="p.value" :label="p.label" - v-for="p in settingsData.ServicesOptions"> + <a-select-option :value="p.value" :label="p.label" v-for="p in settingsData.ServicesOptions"> <span>[[ p.label ]]</span> </a-select-option> </a-select> @@ -333,8 +299,7 @@ </template> </a-setting-list-item> </a-collapse-panel> - <a-collapse-panel key="6" - header='{{ i18n "pages.settings.resetDefaultConfig"}}'> + <a-collapse-panel key="6" header='{{ i18n "pages.settings.resetDefaultConfig"}}'> <a-space direction="horizontal" :style="{ padding: '0 20px' }"> <a-button type="danger" @click="resetXrayConfigToDefault"> <span>{{ i18n "pages.settings.resetDefaultConfig" }}</span> diff --git a/web/html/settings/xray/dns.html b/web/html/settings/xray/dns.html index 8a18bbb4..7935be52 100644 --- a/web/html/settings/xray/dns.html +++ b/web/html/settings/xray/dns.html @@ -29,7 +29,8 @@ <template #control> <a-select v-model="dnsStrategy" :style="{ width: '100%' }" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option :value="l" :label="l" v-for="l in ['UseSystem', 'UseIP', 'UseIPv4', 'UseIPv6']"> + <a-select-option :value="l" :label="l" + v-for="l in ['UseSystem', 'UseIP', 'UseIPv4', 'UseIPv6']"> <span>[[ l ]]</span> </a-select-option> </a-select> diff --git a/web/html/settings/xray/outbounds.html b/web/html/settings/xray/outbounds.html index 232fe55e..f5e83a99 100644 --- a/web/html/settings/xray/outbounds.html +++ b/web/html/settings/xray/outbounds.html @@ -7,21 +7,16 @@ <span v-if="!isMobile">{{ i18n "pages.xray.outbound.addOutbound" }}</span> </a-button> - <a-button type="primary" icon="cloud" - @click="showWarp()">WARP</a-button> - <a-button type="primary" icon="api" - @click="showNord()">NordVPN</a-button> + <a-button type="primary" icon="cloud" @click="showWarp()">WARP</a-button> + <a-button type="primary" icon="api" @click="showNord()">NordVPN</a-button> </a-space> </a-col> <a-col :xs="12" :sm="12" :lg="12" :style="{ textAlign: 'right' }"> <a-button-group> - <a-button icon="sync" @click="refreshOutboundTraffic()" - :loading="refreshing"></a-button> - <a-popconfirm placement="topRight" - @confirm="resetOutboundTraffic(-1)" + <a-button icon="sync" @click="refreshOutboundTraffic()" :loading="refreshing"></a-button> + <a-popconfirm placement="topRight" @confirm="resetOutboundTraffic(-1)" title='{{ i18n "pages.inbounds.resetTrafficContent"}}' - :overlay-class-name="themeSwitcher.currentTheme" - ok-text='{{ i18n "reset"}}' + :overlay-class-name="themeSwitcher.currentTheme" ok-text='{{ i18n "reset"}}' cancel-text='{{ i18n "cancel"}}'> <a-icon slot="icon" type="question-circle-o" :style="{ color: themeSwitcher.isDarkTheme ? '#008771' : '#008771' }"></a-icon> @@ -30,10 +25,8 @@ </a-button-group> </a-col> </a-row> - <a-table :columns="outboundColumns" bordered :row-key="r => r.key" - :data-source="outboundData" - :scroll="isMobile ? {} : { x: 800 }" :pagination="false" - :indent-size="0" + <a-table :columns="outboundColumns" bordered :row-key="r => r.key" :data-source="outboundData" + :scroll="isMobile ? {} : { x: 800 }" :pagination="false" :indent-size="0" :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text, outbound, index"> <span>[[ index+1 ]]</span> @@ -41,8 +34,7 @@ <a-icon @click="e => e.preventDefault()" type="more" :style="{ fontSize: '16px', textDecoration: 'bold' }"></a-icon> <a-menu slot="overlay" :theme="themeSwitcher.currentTheme"> - <a-menu-item v-if="index>0" - @click="setFirstOutbound(index)"> + <a-menu-item v-if="index>0" @click="setFirstOutbound(index)"> <a-icon type="vertical-align-top"></a-icon> <span>{{ i18n "pages.xray.rules.first"}}</span> </a-menu-item> @@ -66,8 +58,7 @@ </a-dropdown> </template> <template slot="address" slot-scope="text, outbound, index"> - <p :style="{ margin: '0 5px' }" - v-for="addr in findOutboundAddress(outbound)">[[ addr ]]</p> + <p :style="{ margin: '0 5px' }" v-for="addr in findOutboundAddress(outbound)">[[ addr ]]</p> </template> <template slot="protocol" slot-scope="text, outbound, index"> <a-tag :style="{ margin: '0' }" color="purple">[[ outbound.protocol @@ -76,11 +67,8 @@ v-if="[Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(outbound.protocol)"> <a-tag :style="{ margin: '0' }" color="blue">[[ outbound.streamSettings.network ]]</a-tag> - <a-tag :style="{ margin: '0' }" - v-if="outbound.streamSettings.security=='tls'" - color="green">tls</a-tag> - <a-tag :style="{ margin: '0' }" - v-if="outbound.streamSettings.security=='reality'" + <a-tag :style="{ margin: '0' }" v-if="outbound.streamSettings.security=='tls'" color="green">tls</a-tag> + <a-tag :style="{ margin: '0' }" v-if="outbound.streamSettings.security=='reality'" color="green">reality</a-tag> </template> </template> @@ -91,10 +79,7 @@ <a-tooltip> <template slot="title">{{ i18n "pages.xray.outbound.test" }}</template> - <a-button - type="primary" - shape="circle" - icon="thunderbolt" + <a-button type="primary" shape="circle" icon="thunderbolt" :loading="outboundTestStates[index] && outboundTestStates[index].testing" @click="testOutbound(index)" :disabled="(outbound.protocol === 'blackhole' || outbound.tag === 'blocked') || (outboundTestStates[index] && outboundTestStates[index].testing)"> @@ -102,24 +87,20 @@ </a-tooltip> </template> <template slot="testResult" slot-scope="text, outbound, index"> - <div - v-if="outboundTestStates[index] && outboundTestStates[index].result"> - <a-tag v-if="outboundTestStates[index].result.success" - color="green"> + <div v-if="outboundTestStates[index] && outboundTestStates[index].result"> + <a-tag v-if="outboundTestStates[index].result.success" color="green"> [[ outboundTestStates[index].result.delay ]]ms <span v-if="outboundTestStates[index].result.statusCode"> ([[ outboundTestStates[index].result.statusCode ]])</span> </a-tag> - <a-tooltip v-else - :title="outboundTestStates[index].result.error"> + <a-tooltip v-else :title="outboundTestStates[index].result.error"> <a-tag color="red"> Failed </a-tag> </a-tooltip> </div> - <span - v-else-if="outboundTestStates[index] && outboundTestStates[index].testing"> + <span v-else-if="outboundTestStates[index] && outboundTestStates[index].testing"> <a-icon type="loading" /> </span> <span v-else>-</span> |
