setting.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 = 60;
  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.tgBotAPIServer = "";
  19. this.tgBotChatId = "";
  20. this.tgRunTime = "@daily";
  21. this.tgBotBackup = false;
  22. this.tgBotLoginNotify = true;
  23. this.tgCpu = 80;
  24. this.tgLang = "en-US";
  25. this.xrayTemplateConfig = "";
  26. this.secretEnable = false;
  27. this.subEnable = false;
  28. this.subListen = "";
  29. this.subPort = 2096;
  30. this.subPath = "/sub/";
  31. this.subJsonPath = "/json/";
  32. this.subDomain = "";
  33. this.subCertFile = "";
  34. this.subKeyFile = "";
  35. this.subUpdates = 12;
  36. this.subEncrypt = true;
  37. this.subShowInfo = true;
  38. this.subURI = "";
  39. this.subJsonURI = "";
  40. this.subJsonFragment = "";
  41. this.subJsonNoises = "";
  42. this.subJsonMux = "";
  43. this.subJsonRules = "";
  44. this.timeLocation = "Asia/Tehran";
  45. if (data == null) {
  46. return
  47. }
  48. ObjectUtil.cloneProps(this, data);
  49. }
  50. equals(other) {
  51. return ObjectUtil.equals(this, other);
  52. }
  53. }