diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-12-10 17:42:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-10 17:42:52 +0300 |
| commit | e3f1d3c892a1af48f27fdc36f273a55f38d13b40 (patch) | |
| tree | b11d0c1ed3c15c8f6f891a5e6df8e021d5db8ab6 /web/assets/js/model/setting.js | |
| parent | 36cf7c0a8fda915b51e75958ce729fd9a61a5c90 (diff) | |
| parent | 9fbe80f87f950673058f0001b3704251fa8b9243 (diff) | |
huge changes
Diffstat (limited to 'web/assets/js/model/setting.js')
| -rw-r--r-- | web/assets/js/model/setting.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/web/assets/js/model/setting.js b/web/assets/js/model/setting.js new file mode 100644 index 00000000..86bea983 --- /dev/null +++ b/web/assets/js/model/setting.js @@ -0,0 +1,48 @@ +class AllSetting { + + constructor(data) { + this.webListen = ""; + this.webDomain = ""; + this.webPort = 2053; + this.webCertFile = ""; + this.webKeyFile = ""; + this.webBasePath = "/"; + this.sessionMaxAge = ""; + this.pageSize = 0; + this.expireDiff = ""; + this.trafficDiff = ""; + this.remarkModel = "-ieo"; + this.tgBotEnable = false; + this.tgBotToken = ""; + this.tgBotChatId = ""; + this.tgRunTime = "@daily"; + this.tgBotBackup = false; + this.tgBotLoginNotify = false; + this.tgCpu = ""; + this.tgLang = "en-US"; + this.xrayTemplateConfig = ""; + this.secretEnable = false; + this.subEnable = false; + this.subListen = ""; + this.subPort = "2096"; + this.subPath = "/sub/"; + this.subDomain = ""; + this.subCertFile = ""; + this.subKeyFile = ""; + this.subUpdates = 0; + this.subEncrypt = true; + this.subShowInfo = false; + this.subURI = ''; + + this.timeLocation = "Asia/Tehran"; + + if (data == null) { + return + } + ObjectUtil.cloneProps(this, data); + } + + equals(other) { + return ObjectUtil.equals(this, other); + } +}
\ No newline at end of file |
