Commit Graph

35 Commits (f5802a7d82a87abf91b0202c859c0f3aa853e76c)

Author SHA1 Message Date
Steven f5802a7d82 chore: update access token ui 2 years ago
Steven 33d9c13b7e chore: remove openid field from user 2 years ago
Steven 3ad0832516 chore: use user v2 api in frontend 2 years ago
boojack d3bd3ddab0
chore: update some detail styles (#2168)
* chore: update some detail styls

* 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 a7573d5705
refactor: migrate memo to apiv1 (#1907)
* refactor: migrate memo to apiv1

* chore: update

* chore: update

* chore: update

* chore: upate

* chore: update

* chore: update
2 years ago
boojack db8b8f0d58
chore: remove unused kit components (#1871) 2 years ago
boojack 847b4605f4
chore: update dark mode style (#1864) 2 years ago
boojack 6b3748e2a3
chore: update setting page styles (#1863)
* chore: update setting page styles

* chore: update
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 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
boojack bcee0bbf3a
feat: add avatar to user in frontend (#1108) 2 years ago
Zeng1998 55695f2189
feat: `esc` key to exit multiple dialogs (#692)
* fix: `esc` key to exit multiple dialogs

* update

* update

* update

* Update web/src/components/Dialog/BaseDialog.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>
3 years ago
boojack ef621a444f
refactor: introducing `use{Module}Store` instead of service (#768)
* refactor: introducing `useEditorStore`

* refactor: update

* chore: update
3 years ago
Zeng1998 2d5d734da4
chore: update i18n for account settings (#582) 3 years ago
boojack 072851e3ba
chore: update dialog style (#574)
* chore: update tests

* chore: update dialog styles
3 years ago
boojack 2042737004
feat: add username field (#544)
* feat: add username field

* chore: update
3 years ago
Steven 366afdd1e4 feat: use `i18next` 3 years ago
Steven 13aa61bbc0 chore: update i18n for change password dialog 3 years ago
ChasLui 7e8d1128f8
chore: update i18n (#215) 3 years ago
boojack 50fa560d4a
chore: update username validate config (#209) 3 years ago
Steven b884327a53 chore: update eslint rules 3 years ago
Steven f06a3d171b chore: update error message handler 3 years ago
Steven a7a01df79a chore: update i18n 3 years ago
boojack 2b8078a19b chore: add `CommonDialog` 3 years ago
boojack d371cfd78d chore: update member list action buttons 3 years ago
boojack 0e8d3e6907 chore: fix memos amount 3 years ago
boojack 3be5ea34a4 chore: update popup button styles 3 years ago
boojack 2e5b120986 chore: update store selector 3 years ago
boojack a580df5c9f chore: update redux store and service 3 years ago
boojack c2e5a1a524 refactor: use `redux` 3 years ago
boojack 6fe1db42b5 chore: update store types 3 years ago
boojack c492317ffe feat: member manage section in setting dialog 3 years ago