setting.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.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.subJsonNoise = "";
  41. this.subJsonMux = "";
  42. this.subJsonRules = "";
  43. this.timeLocation = "Asia/Tehran";
  44. if (data == null) {
  45. return
  46. }
  47. ObjectUtil.cloneProps(this, data);
  48. }
  49. equals(other) {
  50. return ObjectUtil.equals(this, other);
  51. }
  52. }