setting.js 1.3 KB

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