mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-31 12:22:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			60 lines
		
	
	
		
			No EOL
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			No EOL
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| class AllSetting {
 | |
| 
 | |
|     constructor(data) {
 | |
|         this.webListen = "";
 | |
|         this.webDomain = "";
 | |
|         this.webPort = 2053;
 | |
|         this.webCertFile = "";
 | |
|         this.webKeyFile = "";
 | |
|         this.webBasePath = "/";
 | |
|         this.sessionMaxAge = 60;
 | |
|         this.pageSize = 50;
 | |
|         this.expireDiff = 0;
 | |
|         this.trafficDiff = 0;
 | |
|         this.remarkModel = "-ieo";
 | |
|         this.datepicker = "gregorian";
 | |
|         this.tgBotEnable = false;
 | |
|         this.tgBotToken = "";
 | |
|         this.tgBotProxy = "";
 | |
|         this.tgBotAPIServer = "";
 | |
|         this.tgBotChatId = "";
 | |
|         this.tgRunTime = "@daily";
 | |
|         this.tgBotBackup = false;
 | |
|         this.tgBotLoginNotify = true;
 | |
|         this.tgCpu = 80;
 | |
|         this.tgLang = "en-US";
 | |
|         this.xrayTemplateConfig = "";
 | |
|         this.secretEnable = false;
 | |
|         this.subEnable = false;
 | |
|         this.subTitle = "";
 | |
|         this.subListen = "";
 | |
|         this.subPort = 2096;
 | |
|         this.subPath = "/sub/";
 | |
|         this.subJsonPath = "/json/";
 | |
|         this.subDomain = "";
 | |
|         this.externalTrafficInformEnable = false;
 | |
|         this.externalTrafficInformURI = "";
 | |
|         this.subCertFile = "";
 | |
|         this.subKeyFile = "";
 | |
|         this.subUpdates = 12;
 | |
|         this.subEncrypt = true;
 | |
|         this.subShowInfo = true;
 | |
|         this.subURI = "";
 | |
|         this.subJsonURI = "";
 | |
|         this.subJsonFragment = "";
 | |
|         this.subJsonNoises = "";
 | |
|         this.subJsonMux = "";
 | |
|         this.subJsonRules = "";
 | |
| 
 | |
|         this.timeLocation = "Local";
 | |
| 
 | |
|         if (data == null) {
 | |
|             return
 | |
|         }
 | |
|         ObjectUtil.cloneProps(this, data);
 | |
|     }
 | |
| 
 | |
|     equals(other) {
 | |
|         return ObjectUtil.equals(this, other);
 | |
|     }
 | |
| } | 
