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