Commit Graph

27 Commits (c9ab03e1a088e63eb85b286185a60bed2978da57)

Author SHA1 Message Date
Steven c9ab03e1a0 refactor: user service 2 weeks ago
Johnny f5c64849d2 chore: upgrade tailwindcss to v4 3 weeks ago
Steven 606924b4c9 chore: unify form styles 2 months ago
Johnny 372fc3655a refactor: retire less 4 months ago
Johnny 5a2f18da69 refactor(frontend): retire redux 5 months ago
Steven db2b34a850 chore: update input source 8 months ago
Steven 963706aebd refactor: update button source 8 months ago
Michel Heusschen 2dbf92f7f1
perf: reduce bundle size by 21% with direct icon imports (#3844) 10 months ago
Steven 1b291422e7 refactor: api version 1 year ago
Steven 3e6e56b008 refactor: update workspace store definition 1 year ago
Steven ed32b20c9e chore: update frontend dependencies 1 year ago
Steven 4a407668bc chore: tweak dialog close button 1 year ago
Steven df5aeb6d88 chore: remove v1 prefix in store name 2 years ago
Steven df3303dcd3 chore: update list users 2 years ago
Steven e83d483454 refactor(frontend): use auth service 2 years ago
Steven 39a0e69b04 chore: update function name 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
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 f48d91539e
chore: update locale file structure (#1478) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
Zeng1998 57479b250a
chore: remove validators on the frontend (#1156)
* chore: update minlength of username

* remove the validator on frontend

* update
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 52038d26d2
chore: update i18n for validator message (#636) 3 years ago
Zeng1998 b67a37453d
feat: member management enhancement (#617)
* feat: member management enhancement

* update

* update

* update

* update
3 years ago