Commit Graph

42 Commits (21f18f7c56d8af2f28a44aef654a6a4f53c97248)

Author SHA1 Message Date
Steven 21f18f7c56 chore: tweak activity service definition 9 months ago
Steven 31e07c083d chore: fix types 11 months ago
Steven b8763905ba chore: tweak naming 11 months ago
Steven 320963098f refactor: update storage setting 12 months ago
Steven 1b291422e7 refactor: api version 12 months ago
Steven 8f51529c78 chore: implement storage service 1 year ago
Steven 707e5caf89 chore: update workspace setting store 1 year ago
Steven 755d5b83c6 chore: retire legacy setting api 1 year ago
Steven 7f5148d490 chore: clean dropdown 1 year ago
Steven 1994c20c54 chore: tweak setting page 1 year ago
Steven 73baeaa0ad chore: tweak dark mode styles 1 year ago
Steven 2ee4d7d745 chore: add startTransition to links 1 year ago
Steven f950750d56 chore: tweak storage list title 1 year ago
Steven 3266c3a58a chore: update link styles 1 year ago
Steven c26417de70 chore: update docs links 2 years ago
Steven 7058f0c8c2 chore: add docs link in settings 2 years ago
Steven 9859d77cba chore: update links 2 years ago
guopeng 73f59eaf09
fix: storage setting changed don't take effect (#2385)
* fix: Storage setting changed don't take effect

* fix: Storage setting changed don't take effect

* fix: Storage setting changed don't take effect
2 years ago
Steven 1489feb054 chore: update common dialog default color 2 years ago
Steven 34ae9b0687 chore: update default storage back to database 2 years ago
Steven 3df550927d chore: update user profile page 2 years ago
boojack 238f896907
feat: add system service (#2083)
* feat: add system service

* chore: update
2 years ago
boojack d114b630d2
feat: add prettier sort import plugin (#2058) 2 years ago
Ajay Kumbhare 1780225da5
feat: add typeScript support to enforce valid translation keys (#1954)
* #1952 Fix incorrect localization key for sign-up failure message

* feat: add typeScript support to enforce valid translation keys

* feat: add typeScript support to enforce valid translation keys

* fix lint errors

* fix lint error
2 years ago
boojack 0292f472e0
chore: add data empty placeholder (#1913) 2 years ago
boojack 5b6c98582e
refactor: migrate storage to apiv1 (#1890)
* refactor: migrate storage to apiv1

* chore: update

* chore: update

* chore: update
2 years ago
boojack 921d4b996d
chore: update help button style (#1656) 2 years ago
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
2 years ago
Lincoln Nogueira 557278fac0
feat: improve i18n support as a whole (#1526)
* feat: improve i18n support as a whole

- Remove dayjs in favor of /helpers/datetime.ts, which uses
Intl.DateTimeFormat and Date. Dayjs is not exactly i18n friendly
and has several locale related opened issues.

- Move/refactor date/time code from /helpers/utils.ts to
/helpers/datetime.ts.

- Fix Daily Review weekday not changing according to selected date.

- Localize Daily review weekday and month.

- Load i18n listed strings from /locales/{locale}.json in a dynamic way.
This makes much easier to add new locales, by just adding a properly
named json file and listing it only in /web/src/i18n.ts and
/api/user_setting.go.

- Fallback languages are now set in /web/src/i18n.ts.

- Full language codes are now preffered, but they fallback to 2-letter
codes when not available.

- The locale dropdown is now populated dynamically from the available
locales. Locale names are populated by the browser via
Intl.DisplayNames(locale).

- /web/src/i18n.ts now exports a type TLocale from availableLocales
array. This is used only by findNearestLanguageMatch(). As I was unable
to use this type in ".d.ts" files, I switched the Locale type from
/web/src/types/i18n.d.ts to string.

- Move pretty much all hardcoded text strings to i18n strings.

- Add pt-BR translation.

- Remove site.ts and move its content to a i18n string.

- Rename zh.json to zh-Hans.json to get the correct language name on
selector dropdown.

- Remove pt_BR.json and replace with pt-BR.json.

- Some minor layout spacing fixes to accommodate larger texts.

- Improve some error messages.

* Delete .yarnrc.yml

* Delete package-lock.json

* fix: 158:28  error  Insert `⏎`  prettier/prettier
2 years ago
boojack 91a24ef9ce
chore: update memo header (#1497)
* chore: update memo header

* chore: update
2 years ago
boojack 680b8ede6c
chore: adjust header style (#1493) 2 years ago
Zeng1998 6ceafc1827
fix: unexpected reset of the storage setting (#1475) 2 years ago
boojack 4f2adfef7b
chore: update system setting name convention (#1448) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
Zeng1998 f3090b115d
feat: support local storage (#1383)
* feat: support local storage

* update

* update

* update

* update
2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
Zeng1998 c1903df374
fix: correct the storage service state (#1288) 2 years ago
boojack f7cd039819
chore: rename common to base component (#1279) 2 years ago
boojack 9c5b44d070
feat: update storage schema (#1142) 2 years ago
boojack 84fb8b2288
feat: update storage setting section (#1140) 2 years ago
boojack 3394380ffa
chore: update storage components (#1091) 2 years ago
Zeng1998 2493bb0fb7
feat: storage service frontend (#1088) 2 years ago