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>2024-08-06 22:17:12 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-08-06 22:17:12 +0300
commit2c7c6c260a86039387864cc5764a13d5cdb93949 (patch)
tree3f88d965bc9d2517aa0a270e528b91196078e38d
parentb8c3555b09d716d877b69b477a7f390e8acbc9af (diff)
default setting
-rw-r--r--web/assets/js/model/setting.js12
-rw-r--r--web/service/setting.go2
2 files changed, 7 insertions, 7 deletions
diff --git a/web/assets/js/model/setting.js b/web/assets/js/model/setting.js
index 9f745ae8..607fd069 100644
--- a/web/assets/js/model/setting.js
+++ b/web/assets/js/model/setting.js
@@ -9,8 +9,8 @@ class AllSetting {
this.webBasePath = "/";
this.sessionMaxAge = 0;
this.pageSize = 50;
- this.expireDiff = "";
- this.trafficDiff = "";
+ this.expireDiff = 0;
+ this.trafficDiff = 0;
this.remarkModel = "-ieo";
this.datepicker = "gregorian";
this.tgBotEnable = false;
@@ -19,8 +19,8 @@ class AllSetting {
this.tgBotChatId = "";
this.tgRunTime = "@daily";
this.tgBotBackup = false;
- this.tgBotLoginNotify = false;
- this.tgCpu = "";
+ this.tgBotLoginNotify = true;
+ this.tgCpu = 80;
this.tgLang = "en-US";
this.xrayTemplateConfig = "";
this.secretEnable = false;
@@ -32,9 +32,9 @@ class AllSetting {
this.subDomain = "";
this.subCertFile = "";
this.subKeyFile = "";
- this.subUpdates = 0;
+ this.subUpdates = 12;
this.subEncrypt = true;
- this.subShowInfo = false;
+ this.subShowInfo = true;
this.subURI = "";
this.subJsonURI = "";
this.subJsonFragment = "";
diff --git a/web/service/setting.go b/web/service/setting.go
index 74755b86..ec69f9c8 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -45,7 +45,7 @@ var defaultValueMap = map[string]string{
"tgRunTime": "@daily",
"tgBotBackup": "false",
"tgBotLoginNotify": "true",
- "tgCpu": "0",
+ "tgCpu": "80",
"tgLang": "en-US",
"secretEnable": "false",
"subEnable": "false",