memos/store
Lincoln Nogueira 96021e518a
feat: add max upload size setting to UI & UI improvements (#1646)
* 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
2023-05-13 22:27:28 +08:00
..
db chore: add memo_relation (#1585) 2023-04-25 22:26:45 +08:00
activity.go chore: add vacuum memo relation to dev guard (#1644) 2023-05-09 09:02:59 +08:00
cache.go feat: update store cache (#1066) 2023-02-11 14:19:26 +08:00
error.go feat: store/db module with sqlite 2022-05-22 00:59:22 +08:00
idp.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
memo_organizer.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
memo_relation.go feat: implement memo relation server (#1618) 2023-05-01 16:09:41 +08:00
memo_resource.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
memo.go fix: return pinned status after edit (#1629) 2023-05-09 09:03:09 +08:00
resource.go chore: add vacuum memo relation to dev guard (#1644) 2023-05-09 09:02:59 +08:00
shortcut.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
storage.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
store.go chore: add vacuum memo relation to dev guard (#1644) 2023-05-09 09:02:59 +08:00
system_setting.go feat: add max upload size setting to UI & UI improvements (#1646) 2023-05-13 22:27:28 +08:00
tag.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
user_setting.go fix: golangci-lint version (#1381) 2023-03-18 22:34:22 +08:00
user.go chore: seed data for new user (#1655) 2023-05-13 22:25:15 +08:00