setting.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. class AllSetting {
  2. constructor(data) {
  3. this.webListen = "";
  4. this.webDomain = "";
  5. this.webPort = 2053;
  6. this.webCertFile = "";
  7. this.webKeyFile = "";
  8. this.webBasePath = "/";
  9. this.sessionMaxAge = 0;
  10. this.pageSize = 50;
  11. this.expireDiff = 0;
  12. this.trafficDiff = 0;
  13. this.remarkModel = "-ieo";
  14. this.datepicker = "gregorian";
  15. this.tgBotEnable = false;
  16. this.tgBotToken = "";
  17. this.tgBotProxy = "";
  18. this.tgBotChatId = "";
  19. this.tgRunTime = "@daily";
  20. this.tgBotBackup = false;
  21. this.tgBotLoginNotify = true;
  22. this.tgCpu = 80;
  23. this.tgLang = "en-US";
  24. this.xrayTemplateConfig = "";
  25. this.secretEnable = false;
  26. this.subEnable = false;
  27. this.subListen = "";
  28. this.subPort = 2096;
  29. this.subPath = "/sub/";
  30. this.subJsonPath = "/json/";
  31. this.subDomain = "";
  32. this.subCertFile = "";
  33. this.subKeyFile = "";
  34. this.subUpdates = 12;
  35. this.subEncrypt = true;
  36. this.subShowInfo = true;
  37. this.subURI = "";
  38. this.subJsonURI = "";
  39. this.subJsonFragment = "";
  40. this.subJsonMux = "";
  41. this.subJsonRules = "";
  42. this.timeLocation = "Asia/Tehran";
  43. if (data == null) {
  44. return
  45. }
  46. ObjectUtil.cloneProps(this, data);
  47. }
  48. equals(other) {
  49. return ObjectUtil.equals(this, other);
  50. }
  51. }