Commit Graph

41 Commits (dca90fb5d2bf03673654d2547fef96e36d2aea5d)

Author SHA1 Message Date
Steven dca90fb5d2 chore: update header 2 years ago
Steven 4499f45b67 chore: deprecate daily review offset local setting 2 years ago
Steven 39a0e69b04 chore: update function name 2 years ago
Steven e60e47f76f chore: update user definition 2 years ago
Steven ef820a1138 chore: fix memo editor padding in daily review 2 years ago
Steven a6fcdfce05 chore: update memo comment i18n 2 years ago
Steven 12fd8f34be chore: fix styles 2 years ago
Steven 7b25b8c1e1 feat: update daily review 2 years ago
Athurg Gooth 22d331d6c4
chore: switch storage of selected date in DailyReview (#2399)
Switch storage of selected date in DailyReview
2 years ago
Steven 203b2d9181 chore: fix container styles 2 years ago
Steven dd83358850 chore: update some styles 2 years ago
Steven 7cdc5c711c chore: update key of daily memo 2 years ago
Steven e2b82929ab chore: fix daily review params 2 years ago
Steven 936fe5ac9d chore: update state initial loader 2 years ago
Athurg Gooth 41e26f56e9
chore: persist selected date of DailyReview page (#2219)
* Persist selected date of DailyReview page

* Use hook useLocalStorage instead of useState

* Update web/src/pages/DailyReview.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>
Signed-off-by: Athurg Gooth <athurg@gooth.org>

---------

Signed-off-by: Athurg Gooth <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Steven 58429f88a0 fix: memo filter in daily review 2 years ago
Steven 319f679e30 chore: fix timestamp type 2 years ago
Steven b6d1ded668 chore: adjust initial states 2 years ago
Steven 3df550927d chore: update user profile page 2 years ago
boojack d3bd3ddab0
chore: update some detail styles (#2168)
* chore: update some detail styls

* chore: update
2 years ago
boojack b9b795bf0e
chore: add react use (#2157)
* chore: add react use

* chore: update
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 83b771d5cd
fix: disable selection of future dates in daily review section (#1983)
* #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

* chore: Disallow destructuring 't' from useTranslation

This commit adds a linting rule to disallow the destructuring of the 't' property from the result of the useTranslation function call. The no-restricted-syntax rule in the ESLint configuration has been updated to enforce this restriction. The intention is to promote alternative approaches like using the useTranslate hook for localization.

* fix: typo fixed for memoChat

* fix: copy code button toast message

Refactored the code for the "Copy Code" button to utilize i18 strings for displaying the success message. Replaced the hard-coded value with the appropriate i18 string "Code copied successfully."

* fix: #1980 disable selection of future dates in daily review section
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 847b4605f4
chore: update dark mode style (#1864) 2 years ago
boojack 32e2f1d339
chore: update page routes (#1790)
chore: update routers
2 years ago
boojack e0e59c5831
feat: display memo with updated ts (#1760) 2 years ago
Athurg Gooth 5e792236af
fix: infinite loop while daily memos more than DEFAULT_MEMO_LIMIT (#1730)
Co-authored-by: Athurg Feng <athurg@gooth.org>
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
Zeng1998 5652bb76d4
fix: incorrect date parsing (#1527)
* fix: incorrect date parsing

* fix eslint
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
boojack f48d91539e
chore: update locale file structure (#1478) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
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>
2 years ago
CoffDream af3d3c2c9b
fix: daily review page & setting dialog style (#1392) 2 years ago
boojack 50f36e3ed5
chore: upgrade version to `0.11.2` (#1336) 2 years ago
boojack 7c92805aac
fix: daily review page style (#1332) 2 years ago
boojack f3f0efba1e
feat: update page router (#1330) 2 years ago