mirror of
				https://github.com/usememos/memos.git
				synced 2025-06-05 22:09:59 +02:00 
			
		
		
		
	* Add preliminar Windows support for both development and production environments. Default profile.Data will be set to "C:\ProgramData\memos" on Windows. Folder will be created if it does not exist, as this behavior is expected for Windows applications. System service installation can be achieved with third-party tools, explained in docs/windows-service.md. Not sure if it's worth using https://github.com/kardianos/service to make service support built-in. This could be a nice addition alongside #1583 (add Windows artifacts) * feat: improve Windows support - Fix local file storage path handling on Windows - Improve Windows dev script * feat: add max upload size setting to UI & more - feat: add max upload size setting to UI - feat: max upload size setting is checked on UI during upload, but also enforced by the server - fix: overflowing mobile layout for Create SSO, Create Storage and other Settings dialogs - feat: add HelpButton component with some links to docs were appropriate - remove LearnMore component in favor of HelpButton - refactor: change some if/else to switch statements - refactor: inline some err == nil checks ! Existing databases without the new setting 'max-upload-size-mib' will show an upload error, but this can be user-fixed by simply setting the value on system settings UI. * improvements requested by @boojack
		
			
				
	
	
		
			30 lines
		
	
	
		
			930 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			930 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package api
 | |
| 
 | |
| import "github.com/usememos/memos/server/profile"
 | |
| 
 | |
| type SystemStatus struct {
 | |
| 	Host    *User           `json:"host"`
 | |
| 	Profile profile.Profile `json:"profile"`
 | |
| 	DBSize  int64           `json:"dbSize"`
 | |
| 
 | |
| 	// System settings
 | |
| 	// Allow sign up.
 | |
| 	AllowSignUp bool `json:"allowSignUp"`
 | |
| 	// Ignore upgrade
 | |
| 	IgnoreUpgrade bool `json:"ignoreUpgrade"`
 | |
| 	// Disable public memos.
 | |
| 	DisablePublicMemos bool `json:"disablePublicMemos"`
 | |
| 	// Max upload size.
 | |
| 	MaxUploadSizeMiB int `json:"maxUploadSizeMiB"`
 | |
| 	// Additional style.
 | |
| 	AdditionalStyle string `json:"additionalStyle"`
 | |
| 	// Additional script.
 | |
| 	AdditionalScript string `json:"additionalScript"`
 | |
| 	// Customized server profile, including server name and external url.
 | |
| 	CustomizedProfile CustomizedProfile `json:"customizedProfile"`
 | |
| 	// Storage service ID.
 | |
| 	StorageServiceID int `json:"storageServiceId"`
 | |
| 	// Local storage path
 | |
| 	LocalStoragePath string `json:"localStoragePath"`
 | |
| }
 |