setting.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.tgBotProxy = "";
  18. this.tgBotChatId = "";
  19. this.tgRunTime = "@daily";
  20. this.tgBotBackup = false;
  21. this.tgBotLoginNotify = false;
  22. this.tgCpu = "";
  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.subDomain = "";
  31. this.subCertFile = "";
  32. this.subKeyFile = "";
  33. this.subUpdates = 0;
  34. this.subEncrypt = true;
  35. this.subShowInfo = false;
  36. this.subURI = '';
  37. this.timeLocation = "Asia/Tehran";
  38. if (data == null) {
  39. return
  40. }
  41. ObjectUtil.cloneProps(this, data);
  42. }
  43. equals(other) {
  44. return ObjectUtil.equals(this, other);
  45. }
  46. }