Commit Graph

56 Commits

Author SHA1 Message Date
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
2023-07-15 10:27:37 +08:00
Ajay Kumbhare 8ca2dac184
fix: incorrect localization key for sign-up failure message (#1953) 2023-07-14 21:43:46 +08:00
boojack d4b88c6c86
chore: remove auto signout in auth page (#1927) 2023-07-12 00:16:32 +08:00
boojack da70917b08
chore: update auth page (#1920)
* chore: update auth page

* chore: update
2023-07-09 21:13:26 +08:00
boojack b34aded376
refactor: migration idp api (#1842)
* refactor: migration idp api

* chore: update
2023-06-17 22:35:17 +08:00
boojack a07d5d38d6
feat: memo relation part1 (#1677)
* feat: memo relation part1

* chore: update
2023-05-18 21:29:28 +08:00
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
2023-04-15 08:56:03 +08:00
boojack f48d91539e
chore: update locale file structure (#1478) 2023-04-06 00:07:10 +08:00
boojack 11cd9b21de
chore: update auth form (#1445) 2023-04-02 14:25:38 +08:00
boojack 1ea65c0b60
chore: update logo (#1442)
* chore: update logo

* chore: update
2023-04-02 09:54:52 +08:00
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2023-04-01 16:03:14 +08:00
boojack f86816fea2
feat: use react-hot-toast (#1321) 2023-03-09 08:54:14 +08:00
boojack e150599274
chore: upgrade version to `v0.11.1` (#1247) 2023-03-04 18:49:50 +08:00
Zeng1998 57479b250a
chore: remove validators on the frontend (#1156)
* chore: update minlength of username

* remove the validator on frontend

* update
2023-02-25 14:59:29 +08:00
Yoshino-s afaaec8492
feat(mode): add demo mode (#1121)
* feat(mode): add demo mode

* chroe: Update store/db/db.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

* chroe: Update store/db/db.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-02-19 13:36:45 +08:00
boojack d0b8b076cf
feat: implement sign in with SSO (#1119)
* feat: implement sign in with SSO

* chore: update

* chore: update

* chore: update
2023-02-19 09:50:30 +08:00
boojack aad97c4c54
chore: update signup api (#1067) 2023-02-11 15:15:56 +08:00
Zeng1998 771ef44d82
feat: support enter to signin (#1014) 2023-02-06 20:03:33 +08:00
boojack a797280e3f
chore: update middleware skipper (#887)
* chore: update middleware skipper

* chore: update
2023-01-01 23:26:21 +08:00
boojack 9f25badde3
chore: update logo format to png (#830) 2022-12-23 00:21:53 +08:00
boojack 7efa749c66
feat: customize system profile (#828) 2022-12-22 19:48:44 +08:00
PublicHer0 a23de50bb8
feat: update spanish locale (#786)
* Adding spanish version

* update spanish locale

Co-authored-by: boojack <stevenlgtm@gmail.com>
2022-12-20 13:18:21 +00:00
boojack b67ed1ee13
feat: customize system profile (#774)
* feat: system setting for customized profile

* chore: update

* feat: update frontend

* chore: update
2022-12-18 21:18:30 +08:00
boojack ef621a444f
refactor: introducing `use{Module}Store` instead of service (#768)
* refactor: introducing `useEditorStore`

* refactor: update

* chore: update
2022-12-18 15:25:18 +08:00
PublicHer0 5520605ccc
feat: add spanish locale (#741) 2022-12-13 09:12:22 +08:00
Jasper Platenburg 79bf365d78
Dutch locale (#687) 2022-12-06 08:11:21 +08:00
Maurice Bauer 492a1370ab
feat: add German i18n item (#686) 2022-12-06 07:42:17 +08:00
Andreas Backström 53cf6ebb79
feat: add swedish/svenska translation (#668)
Add swedish / svenska translation
2022-12-03 21:38:25 +08:00
boojack d1007950e0
chore: remove emoji picker (#667) 2022-12-03 15:28:37 +08:00
boojack a467a7c173
feat: upgrade dev version to `0.8.1` (#656)
* feat: upgrade version to `0.8.1`

* chore: update
2022-12-02 21:09:11 +08:00
boojack 7c6d7226f5
feat: update appearance selector (#645) 2022-12-01 20:57:19 +08:00
boojack 6384f5af74
feat: dark mode for main pages (#637)
* feat: update dark mode styles for auth and explore page

* feat: dark mode for home page
2022-11-29 21:44:52 +08:00
Zeng1998 52038d26d2
chore: update i18n for validator message (#636) 2022-11-29 21:35:40 +08:00
boojack 55f37664ef
chore: add theme file for joyui (#635) 2022-11-29 20:15:16 +08:00
boojack db1d223448
fix: apperance select (#585) 2022-11-26 17:45:16 +08:00
Stephen Zhou 90c85103c3
feat: dark mode support for auth page (#569)
* feat: dark mode support for auth page

* chore: update
2022-11-26 11:20:22 +08:00
boojack a0b35f7aa9
feat: add French i18n item (#547)
feat: add French i18n
2022-11-24 08:42:38 +08:00
boojack 2042737004
feat: add username field (#544)
* feat: add username field

* chore: update
2022-11-23 22:27:21 +08:00
boojack a0667abec8
chore: update data initial requests (#538) 2022-11-22 23:45:11 +08:00
Yarden Shoham d8adc0afe9
feat: extend validation config max length (#523) 2022-11-22 18:21:12 +08:00
boojack 0d6281ef6b
chore: update signin page (#410)
* chore: update signin page

* chore: update version `v0.7.1`
2022-11-04 12:28:16 +00:00
boojack cf75054106
feat: add system setting to allow user signup (#407) 2022-11-03 21:47:36 +08:00
f97 2acd5d4af2
chore: support html form (#236) 2022-09-21 14:12:16 +08:00
Steven 6c1cc1d283 chore: use conditional rendering instead of OnlyWhen 2022-09-20 23:30:25 +08:00
Steven 366afdd1e4 feat: use `i18next` 2022-09-19 22:27:50 +08:00
Steven 307483e499 feat: use `react-router` 2022-09-19 21:53:27 +08:00
Steven 1591fdf61c chore: update i18n structures 2022-09-16 21:25:39 +08:00
f97 811f3340e9
feat: add vietnamese (#218) 2022-09-16 21:09:59 +08:00
ChasLui 7e8d1128f8
chore: update i18n (#215) 2022-09-15 06:53:51 +08:00
Steven b884327a53 chore: update eslint rules 2022-09-04 06:48:19 +08:00