setting.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 = "";
  10. this.pageSize = 0;
  11. this.expireDiff = "";
  12. this.trafficDiff = "";
  13. this.remarkModel = "-ieo";
  14. this.tgBotEnable = false;
  15. this.tgBotToken = "";
  16. this.tgBotChatId = "";
  17. this.tgRunTime = "@daily";
  18. this.tgBotBackup = false;
  19. this.tgBotLoginNotify = false;
  20. this.tgCpu = "";
  21. this.tgLang = "en-US";
  22. this.xrayTemplateConfig = "";
  23. this.secretEnable = false;
  24. this.subEnable = false;
  25. this.subListen = "";
  26. this.subPort = "2096";
  27. this.subPath = "/sub/";
  28. this.subDomain = "";
  29. this.subCertFile = "";
  30. this.subKeyFile = "";
  31. this.subUpdates = 0;
  32. this.subEncrypt = true;
  33. this.subShowInfo = false;
  34. this.subURI = '';
  35. this.timeLocation = "Asia/Tehran";
  36. if (data == null) {
  37. return
  38. }
  39. ObjectUtil.cloneProps(this, data);
  40. }
  41. equals(other) {
  42. return ObjectUtil.equals(this, other);
  43. }
  44. }