mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-30 20:02:51 +00:00 
			
		
		
		
	 fe3b1c9b52
			
		
	
	
		fe3b1c9b52
		
			
		
	
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Build and Release 3X-UI / build (386) (push) Has been cancelled
				
			Build and Release 3X-UI / build (amd64) (push) Has been cancelled
				
			Build and Release 3X-UI / build (arm64) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv5) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv6) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv7) (push) Has been cancelled
				
			Build and Release 3X-UI / build (s390x) (push) Has been cancelled
				
			* chore: implement 2fa auth from #2786 * chore: format code * chore: replace two factor token input with qr-code * chore: requesting confirmation of setting/removing two-factor authentication otpauth library was taken from cdnjs * chore: revert changes in `ClipboardManager` don't need it. * chore: removing twoFactor prop in settings page * chore: remove `twoFactorQr` object in `mounted` function
		
			
				
	
	
		
			61 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 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.twoFactorEnable = false;
 | |
|         this.twoFactorToken = "";
 | |
|         this.xrayTemplateConfig = "";
 | |
|         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);
 | |
|     }
 | |
| } |