Files
trihuy-russian/web/assets/js/model/setting.js
T

55 lines
1.5 KiB
JavaScript
Raw Normal View History

2023-12-05 18:13:36 +01:00
class AllSetting {
constructor(data) {
this.webListen = "";
this.webDomain = "";
2023-12-10 15:06:42 +01:00
this.webPort = 2053;
2023-12-05 18:13:36 +01:00
this.webCertFile = "";
this.webKeyFile = "";
this.webBasePath = "/";
2024-08-06 13:44:48 +02:00
this.sessionMaxAge = 0;
2024-07-01 21:11:42 +02:00
this.pageSize = 50;
2024-08-06 21:17:12 +02:00
this.expireDiff = 0;
this.trafficDiff = 0;
2023-12-08 20:31:17 +01:00
this.remarkModel = "-ieo";
2024-01-02 09:32:21 +01:00
this.datepicker = "gregorian";
2023-12-05 18:13:36 +01:00
this.tgBotEnable = false;
this.tgBotToken = "";
this.tgBotProxy = "";
2023-12-05 18:13:36 +01:00
this.tgBotChatId = "";
this.tgRunTime = "@daily";
this.tgBotBackup = false;
2024-08-06 21:17:12 +02:00
this.tgBotLoginNotify = true;
this.tgCpu = 80;
2023-12-10 15:06:42 +01:00
this.tgLang = "en-US";
this.xrayTemplateConfig = "";
this.secretEnable = false;
2023-12-05 18:13:36 +01:00
this.subEnable = false;
this.subListen = "";
2024-08-06 17:06:39 +02:00
this.subPort = 2096;
2023-12-05 18:13:36 +01:00
this.subPath = "/sub/";
2024-02-21 14:17:52 +03:30
this.subJsonPath = "/json/";
2023-12-05 18:13:36 +01:00
this.subDomain = "";
this.subCertFile = "";
this.subKeyFile = "";
2024-08-06 21:17:12 +02:00
this.subUpdates = 12;
2023-12-05 18:13:36 +01:00
this.subEncrypt = true;
2024-08-06 21:17:12 +02:00
this.subShowInfo = true;
2024-03-12 19:44:51 +03:30
this.subURI = "";
this.subJsonURI = "";
this.subJsonFragment = "";
this.subJsonMux = "";
this.subJsonRules = "";
2023-12-05 18:13:36 +01:00
this.timeLocation = "Asia/Tehran";
if (data == null) {
return
}
ObjectUtil.cloneProps(this, data);
}
equals(other) {
return ObjectUtil.equals(this, other);
}
}