Skip to content

Commit

Permalink
default setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Aug 6, 2024
1 parent b8c3555 commit 2c7c6c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions web/assets/js/model/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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 = "";
Expand Down
2 changes: 1 addition & 1 deletion web/service/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2c7c6c2

Please sign in to comment.