| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -10,6 +10,7 @@ import "@/less/settings/system-section.less";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					interface State {
 | 
					 | 
					 | 
					 | 
					interface State {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  dbSize: number;
 | 
					 | 
					 | 
					 | 
					  dbSize: number;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  allowSignUp: boolean;
 | 
					 | 
					 | 
					 | 
					  allowSignUp: boolean;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  ignoreUpgrade: boolean;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  disablePublicMemos: boolean;
 | 
					 | 
					 | 
					 | 
					  disablePublicMemos: boolean;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  additionalStyle: string;
 | 
					 | 
					 | 
					 | 
					  additionalStyle: string;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  additionalScript: string;
 | 
					 | 
					 | 
					 | 
					  additionalScript: string;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -31,6 +32,7 @@ const SystemSection = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const [state, setState] = useState<State>({
 | 
					 | 
					 | 
					 | 
					  const [state, setState] = useState<State>({
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    dbSize: systemStatus.dbSize,
 | 
					 | 
					 | 
					 | 
					    dbSize: systemStatus.dbSize,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    allowSignUp: systemStatus.allowSignUp,
 | 
					 | 
					 | 
					 | 
					    allowSignUp: systemStatus.allowSignUp,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    ignoreUpgrade: systemStatus.ignoreUpgrade,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    additionalStyle: systemStatus.additionalStyle,
 | 
					 | 
					 | 
					 | 
					    additionalStyle: systemStatus.additionalStyle,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    additionalScript: systemStatus.additionalScript,
 | 
					 | 
					 | 
					 | 
					    additionalScript: systemStatus.additionalScript,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    disablePublicMemos: systemStatus.disablePublicMemos,
 | 
					 | 
					 | 
					 | 
					    disablePublicMemos: systemStatus.disablePublicMemos,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -75,6 +77,17 @@ const SystemSection = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    });
 | 
					 | 
					 | 
					 | 
					    });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  };
 | 
					 | 
					 | 
					 | 
					  };
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  const handleIgnoreUpgradeChanged = async (value: boolean) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    setState({
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      ...state,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      ignoreUpgrade: value,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    await api.upsertSystemSetting({
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      name: "ignore-upgrade",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      value: JSON.stringify(value),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  };
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const handleUpdateCustomizedProfileButtonClick = () => {
 | 
					 | 
					 | 
					 | 
					  const handleUpdateCustomizedProfileButtonClick = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    showUpdateCustomizedProfileDialog();
 | 
					 | 
					 | 
					 | 
					    showUpdateCustomizedProfileDialog();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  };
 | 
					 | 
					 | 
					 | 
					  };
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -189,6 +202,10 @@ const SystemSection = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <span className="normal-text">{t("setting.system-section.allow-user-signup")}</span>
 | 
					 | 
					 | 
					 | 
					        <span className="normal-text">{t("setting.system-section.allow-user-signup")}</span>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <Switch checked={state.allowSignUp} onChange={(event) => handleAllowSignUpChanged(event.target.checked)} />
 | 
					 | 
					 | 
					 | 
					        <Switch checked={state.allowSignUp} onChange={(event) => handleAllowSignUpChanged(event.target.checked)} />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					      </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      <div className="form-label">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <span className="normal-text">Ignore version upgrade</span>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <Switch checked={state.ignoreUpgrade} onChange={(event) => handleIgnoreUpgradeChanged(event.target.checked)} />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div className="form-label">
 | 
					 | 
					 | 
					 | 
					      <div className="form-label">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <span className="normal-text">{t("setting.system-section.disable-public-memos")}</span>
 | 
					 | 
					 | 
					 | 
					        <span className="normal-text">{t("setting.system-section.disable-public-memos")}</span>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <Switch checked={state.disablePublicMemos} onChange={(event) => handleDisablePublicMemosChanged(event.target.checked)} />
 | 
					 | 
					 | 
					 | 
					        <Switch checked={state.disablePublicMemos} onChange={(event) => handleDisablePublicMemosChanged(event.target.checked)} />
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |