[ui] small changes

This commit is contained in:
Alireza Ahmadi
2024-02-18 23:00:37 +01:00
parent 2520994b13
commit f4c565b208
10 changed files with 20 additions and 27 deletions

View File

@@ -155,7 +155,7 @@
}
ObjectUtil.execute(clientsBulkModal.confirm, clients, clientsBulkModal.dbInbound.id);
},
show({ title='', okText='{{ i18n "sure" }}', dbInbound=null, confirm=(inbound, dbInbound)=>{} }) {
show({ title='', okText='{{ i18n "confirm" }}', dbInbound=null, confirm=(inbound, dbInbound)=>{} }) {
this.visible = true;
this.title = title;
this.okText = okText;

View File

@@ -29,7 +29,7 @@
ObjectUtil.execute(clientModal.confirm, clientModalApp.client, clientModal.dbInbound.id);
}
},
show({ title='', okText='{{ i18n "sure" }}', index=null, dbInbound=null, confirm=()=>{}, isEdit=false }) {
show({ title='', okText='{{ i18n "confirm" }}', index=null, dbInbound=null, confirm=()=>{}, isEdit=false }) {
this.visible = true;
this.title = title;
this.okText = okText;

View File

@@ -75,8 +75,6 @@
data: {
dnsModal: dnsModal,
},
methods: {
},
computed: {
isAdvanced: {
get: function () { return dnsModal.dnsServer.domains.length>0 }

View File

@@ -10,7 +10,7 @@
title: '',
visible: false,
confirmLoading: false,
okText: '{{ i18n "sure" }}',
okText: '{{ i18n "confirm" }}',
isEdit: false,
confirm: null,
inbound: new Inbound(),
@@ -18,7 +18,7 @@
ok() {
ObjectUtil.execute(inModal.confirm, inModal.inbound, inModal.dbInbound);
},
show({ title='', okText='{{ i18n "sure" }}', inbound=null, dbInbound=null, confirm=(inbound, dbInbound)=>{}, isEdit=false }) {
show({ title='', okText='{{ i18n "confirm" }}', inbound=null, dbInbound=null, confirm=(inbound, dbInbound)=>{}, isEdit=false }) {
this.title = title;
this.okText = okText;
if (inbound) {

View File

@@ -203,7 +203,7 @@
<template slot="title">
{{ i18n "pages.index.upSpeed" }}
</template>
<strong>UL:</strong> [[ sizeFormat(status.netIO.up) ]]/s
<strong>Up:</strong> [[ sizeFormat(status.netIO.up) ]]/s
</a-tooltip>
</a-col>
<a-col :span="12">
@@ -212,7 +212,7 @@
<template slot="title">
{{ i18n "pages.index.downSpeed" }}
</template>
<strong>DL:</strong> [[ sizeFormat(status.netIO.down) ]]/s
<strong>Down:</strong> [[ sizeFormat(status.netIO.down) ]]/s
</a-tooltip>
</a-col>
</a-row>
@@ -400,7 +400,7 @@
this.xray = data.xray;
switch (this.xray.state) {
case State.Running:
this.xray.color = '#3dbd7d';
this.xray.color = 'blue';
break;
case State.Stop:
this.xray.color = "orange";

View File

@@ -290,7 +290,7 @@
title: '{{ i18n "pages.settings.restartPanel" }}',
content: '{{ i18n "pages.settings.restartPanelDesc" }}',
class: themeSwitcher.currentTheme,
okText: '{{ i18n "sure" }}',
okText: '{{ i18n "confirm" }}',
cancelText: '{{ i18n "cancel" }}',
onOk: () => resolve(),
});

View File

@@ -141,13 +141,11 @@
description='{{ i18n "pages.xray.RoutingStrategyDesc" }}'/>
</a-col>
<a-col :lg="24" :xl="12">
<template>
<a-select
v-model="routingStrategy"
style="width: 100%" :dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option v-for="s in routingDomainStrategies" :value="s">[[ s ]]</a-select-option>
</a-select>
</template>
<a-select
v-model="routingStrategy"
style="width: 100%" :dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option v-for="s in routingDomainStrategies" :value="s">[[ s ]]</a-select-option>
</a-select>
</a-col>
</a-row>
</a-list-item>
@@ -1300,7 +1298,7 @@
if (newValue) {
newTemplateSettings.dns = this.settingsData.familyProtectDNS;
} else {
delete newTemplateSettings.dns;
newTemplateSettings.dns?.servers?.filter(data => !this.settingsData.familyProtectDNS.servers.includes(data))
}
this.templateSettings = newTemplateSettings;
},

View File

@@ -11,7 +11,7 @@
title: '',
visible: false,
confirmLoading: false,
okText: '{{ i18n "sure" }}',
okText: '{{ i18n "confirm" }}',
isEdit: false,
confirm: null,
outbound: new Outbound(),
@@ -25,7 +25,7 @@
ok() {
ObjectUtil.execute(outModal.confirm, outModal.outbound.toJson());
},
show({ title='', okText='{{ i18n "sure" }}', outbound, confirm=(outbound)=>{}, isEdit=false, tags=[] }) {
show({ title='', okText='{{ i18n "confirm" }}', outbound, confirm=(outbound)=>{}, isEdit=false, tags=[] }) {
this.title = title;
this.okText = okText;
this.confirm = confirm;

View File

@@ -38,7 +38,6 @@
:options="reverseModal.inboundTags"></a-checkbox-group>
</a-form-item>
</template>
</table>
</a-form>
</a-modal>
<script>
@@ -46,7 +45,7 @@
title: '',
visible: false,
confirmLoading: false,
okText: '{{ i18n "sure" }}',
okText: '{{ i18n "confirm" }}',
isEdit: false,
confirm: null,
reverse: {
@@ -74,7 +73,7 @@
}
ObjectUtil.execute(reverseModal.confirm, reverseModal.reverse, reverseModal.rules);
},
show({ title='', okText='{{ i18n "sure" }}', reverse, rules, confirm=(reverse, rules)=>{}, isEdit=false }) {
show({ title='', okText='{{ i18n "confirm" }}', reverse, rules, confirm=(reverse, rules)=>{}, isEdit=false }) {
this.title = title;
this.okText = okText;
this.confirm = confirm;
@@ -131,8 +130,6 @@
data: {
reverseModal: reverseModal,
reverseTypes: { bridge: '{{ i18n "pages.xray.outbound.bridge" }}', portal:'{{ i18n "pages.xray.outbound.portal" }}'},
},
methods: {
}
});

View File

@@ -116,7 +116,7 @@
title: '',
visible: false,
confirmLoading: false,
okText: '{{ i18n "sure" }}',
okText: '{{ i18n "confirm" }}',
isEdit: false,
confirm: null,
rule: {
@@ -142,7 +142,7 @@
newRule = ruleModal.getResult();
ObjectUtil.execute(ruleModal.confirm, newRule);
},
show({ title='', okText='{{ i18n "sure" }}', rule, confirm=(rule)=>{}, isEdit=false }) {
show({ title='', okText='{{ i18n "confirm" }}', rule, confirm=(rule)=>{}, isEdit=false }) {
this.title = title;
this.okText = okText;
this.confirm = confirm;