Commit Graph

41 Commits

Author SHA1 Message Date
Steven d95a6ce898 chore: add ar locale item 2023-10-14 00:25:01 +08:00
Steven 771fe394fd chore: fix initial guide 2023-10-05 15:50:16 +08:00
Steven 16dad8b00d chore: update logo 2023-10-05 08:40:25 +08:00
Steven 936fe5ac9d chore: update state initial loader 2023-09-15 08:31:19 +08:00
Steven 416e07cb1f fix: inject additional style and scripts 2023-09-12 23:43:32 +08:00
Steven b6d1ded668 chore: adjust initial states 2023-09-10 23:44:06 +08:00
boojack d114b630d2
feat: add prettier sort import plugin (#2058) 2023-07-31 22:26:45 +08:00
boojack e3496ac1a2
refactor: memo editor components (#1625) 2023-05-03 19:13:37 +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 1ea65c0b60
chore: update logo (#1442)
* chore: update logo

* chore: update
2023-04-02 09:54:52 +08:00
Dmitry Shemin b03778fa73
feat: update RU i18n locale (#1422)
* feat: Fix i18n and RU locale

* fix: eslint issues

* change the position of deps

---------

Co-authored-by: CorrectRoadH <a778917369@gmail.com>
2023-04-01 15:35:25 +08:00
boojack a9218ed5f0
refactor: filter store (#1331) 2023-03-11 09:13:54 +08:00
boojack f86816fea2
feat: use react-hot-toast (#1321) 2023-03-09 08:54:14 +08:00
M. Gschwandtner 278b4d21b4
fix: prioritize user css by moving it to the body end (#847)
Co-authored-by: M. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com>
2022-12-24 09:35:30 +08:00
boojack 9f25badde3
chore: update logo format to png (#830) 2022-12-23 00:21:53 +08: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
boojack 5e978e2cfc
chore: update color scheme listener (#735) 2022-12-11 23:18:25 +08:00
boojack 4a64a4dea8
fix: html lang attr (#718) 2022-12-10 10:42:10 +08:00
boojack 4a9314c476
chore: rename `enableFoldMemo` (#671)
* chore: rename `enableFoldMemo`

* chore: update
2022-12-04 15:34:03 +08:00
boojack 4767ee3293
feat: support follow system appearance (#670) 2022-12-04 12:23:29 +08:00
boojack 14f9f29348
chore: update user setting appearance (#654) 2022-12-02 20:00:34 +08:00
boojack 7c6d7226f5
feat: update appearance selector (#645) 2022-12-01 20:57:19 +08:00
boojack c5200ca31b
feat: dark mode for dialogs (#643) 2022-11-30 20:34:16 +08:00
Wence b8f24af5ae
feat: dynamic lazy loading route with simple loading page (#632)
* feat: dynamic loading route with simple loading page

* fix: lint fix

* Update web/src/less/loading.less

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

Co-authored-by: boojack <stevenlgtm@gmail.com>
2022-11-29 22:13:22 +00:00
boojack 55f37664ef
chore: add theme file for joyui (#635) 2022-11-29 20:15:16 +08:00
boojack a0667abec8
chore: update data initial requests (#538) 2022-11-22 23:45:11 +08:00
boojack a2831b37c4
feat: add database filesize in UI (#488) 2022-11-18 21:17:52 +08:00
boojack ceac53b6d0
feat: additional script system setting (#467) 2022-11-14 22:21:19 +08:00
boojack a142d975d7
feat: additional style system setting (#444)
* feat: additional style system setting

* feat: remove editor font setting
2022-11-11 23:42:44 +08:00
boojack cf75054106
feat: add system setting to allow user signup (#407) 2022-11-03 21:47:36 +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 5bdf7654fc chore: update detail styles 2022-08-27 08:57:29 +08:00
boojack 90b881502d
feat: add `user_setting` model (#145)
* feat: add `user_setting` model

* chore: add global store

* chore: update settings in web

* chore: update `i18n` example
2022-08-13 14:35:33 +08:00
boojack 58e68f8f80 chore: update signin button in visitor mode 2022-07-25 21:50:25 +08:00
boojack 346d219cd5
chore: reorder imports manually (#106)
* chore: reorder imports manually

* chore: remove unused less
2022-07-07 22:02:40 +08:00
boojack c2e5a1a524 refactor: use `redux` 2022-05-21 12:21:06 +08:00
email 8f7445c299 feat: remove mobile styles 2022-03-11 05:07:04 +08:00
steven 527745ad15 update github oauth callback api 2021-12-10 15:14:20 +08:00
LeeShuang 06bffd0ba5 migrate frontend 2021-12-08 23:43:52 +08:00