diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 7cbb44a2..3f4680fe 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -33,21 +33,22 @@
- {{ i18n "pages.setting.save" }}
- {{ i18n "pages.setting.restartPanel" }}
+ {{ i18n "pages.settings.save" }}
+ {{ i18n "pages.settings.restartPanel" }}
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -74,148 +75,153 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "confirm" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "confirm" }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "confirm" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "confirm" }}
+
+
+
-
+
+
- {{ i18n "pages.setting.actions"}}
+ {{ i18n "pages.settings.actions"}}
- {{ i18n "pages.setting.resetDefaultConfig" }}
+ {{ i18n "pages.settings.resetDefaultConfig" }}
- {{ i18n "pages.setting.basicTemplate"}}
-
-
-
-
-
- {{ i18n "pages.setting.generalConfigsDesc" }}
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.setting.countryConfigsDesc" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.setting.ipv4ConfigsDesc" }}
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.setting.warpConfigsDesc" }}
-
-
-
-
-
-
-
-
+ {{ i18n "pages.settings.templates.title"}}
- {{ i18n "pages.setting.advancedTemplate"}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.setting.completeTemplate"}}
-
+
+
+
+
+
+
+
+ {{ i18n "pages.settings.templates.generalConfigsDesc" }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.settings.templates.countryConfigsDesc" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.settings.templates.ipv4ConfigsDesc" }}
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.settings.templates.warpConfigsDesc" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -294,9 +300,8 @@
}
},
methods: {
- loading(spinning = true , obj) {
- if(obj == null)
- this.spinning = spinning;
+ loading(spinning = true, obj) {
+ if (obj == null) this.spinning = spinning;
},
async getAllSetting() {
this.loading(true);
@@ -329,8 +334,8 @@
async restartPanel() {
await new Promise(resolve => {
this.$confirm({
- title: '{{ i18n "pages.setting.restartPanel" }}',
- content: '{{ i18n "pages.setting.restartPanelDesc" }}',
+ title: '{{ i18n "pages.settings.restartPanel" }}',
+ content: '{{ i18n "pages.settings.restartPanelDesc" }}',
okText: '{{ i18n "sure" }}',
cancelText: '{{ i18n "cancel" }}',
onOk: () => resolve(),
@@ -345,41 +350,39 @@
location.reload();
}
},
- async getUserSecret(){
- const user_msg = await HttpUtil.post("/xui/setting/getUserSecret", this.user);
- if (user_msg.success){
- this.user = user_msg.obj;
- }
- this.loading(false);
+ async getUserSecret() {
+ const user_msg = await HttpUtil.post("/xui/setting/getUserSecret", this.user);
+ if (user_msg.success) {
+ this.user = user_msg.obj;
+ }
+ this.loading(false);
},
- async updateSecret(){
- this.loading(true);
- const msg = await HttpUtil.post("/xui/setting/updateUserSecret", this.user);
- if (msg.success){
- this.user = msg.obj;
- window.location.replace("/logout")
- }
- this.loading(false);
- await this.updateAllSetting();
+ async updateSecret() {
+ this.loading(true);
+ const msg = await HttpUtil.post("/xui/setting/updateUserSecret", this.user);
+ if (msg.success) {
+ this.user = msg.obj;
+ window.location.replace("/logout")
+ }
+ this.loading(false);
+ await this.updateAllSetting();
},
- async getNewSecret(){
- this.loading(true);
- await PromiseUtil.sleep(1000);
- var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
- var string = '';
- var len = 64;
- for(var ii=0; ii