Commit Graph

43 Commits

Author SHA1 Message Date
0d803bf45f chore: update dark mode styles 2023-09-23 20:30:47 +08:00
866937787c chore: clean duplicated requests 2023-09-10 11:43:38 +08:00
c67a69629e chore: update user menu items (#2179) 2023-08-26 23:11:45 +08:00
4af0d03e93 chore: add user profile page (#2175)
chore: some enhancements
2023-08-25 23:10:51 +08:00
d3bd3ddab0 chore: update some detail styles (#2168)
* chore: update some detail styls

* chore: update
2023-08-24 21:52:16 +08:00
d114b630d2 feat: add prettier sort import plugin (#2058) 2023-07-31 22:26:45 +08:00
220cba84ae chore: add dev guard for memo chat (#1968) 2023-07-16 13:02:52 +08:00
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
6b17a27a13 feat: update russian translate and new translate message (#1958)
* feat: add russian translate and new translate message

* fix

---------

Co-authored-by: Александр Тумайкин <AATumaykin@tsum.ru>
2023-07-15 10:01:40 +08:00
66e65e4dc1 refactor: migrate definition to api v1 (#1879)
* refactor: user api v1

* refactor: system setting to apiv1

* chore: remove unused definition

* chore: update

* chore: refactor: system setting

* chore: update

* refactor: migrate tag

* feat: migrate activity store

* refactor: migrate shortcut apiv1

* chore: update
2023-07-02 18:56:25 +08:00
847b4605f4 chore: update dark mode style (#1864) 2023-06-30 08:40:13 +08:00
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
91a24ef9ce chore: update memo header (#1497)
* chore: update memo header

* chore: update
2023-04-09 11:05:09 +08:00
89ab57d738 refactor: update import prefix with alias (#1433) 2023-04-01 16:03:14 +08:00
7f30e2e6ff chore: fix typo (#1355) 2023-03-15 07:39:09 +08:00
f86816fea2 feat: use react-hot-toast (#1321) 2023-03-09 08:54:14 +08:00
f7cd039819 chore: rename common to base component (#1279) 2023-03-05 23:08:02 +08:00
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>
2022-12-18 10:09:12 +00:00
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
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
7c6d7226f5 feat: update appearance selector (#645) 2022-12-01 20:57:19 +08:00
c5200ca31b feat: dark mode for dialogs (#643) 2022-11-30 20:34:16 +08:00
1078132b12 fix: member menu dropdown position (#639)
* fix: member menu dropdown position

* chore: cleanup

* chore: cleanup
2022-11-30 20:18:39 +08:00
b67a37453d feat: member management enhancement (#617)
* feat: member management enhancement

* update

* update

* update

* update
2022-11-28 19:59:11 +08:00
f883dd9c1d feat: create user repeat password (#614)
* feat: create user repeat password

* update
2022-11-28 19:32:53 +08:00
3472a6db26 fix: password field visible (#609) 2022-11-27 21:53:10 +08:00
2042737004 feat: add username field (#544)
* feat: add username field

* chore: update
2022-11-23 22:27:21 +08:00
b959acc69d fix: update marked test cases 2022-10-04 14:35:07 +08:00
0c80654cc2 chore: update dropdown action button style 2022-09-26 22:06:06 +08:00
004713d4cd chore: update dropdown component 2022-09-20 21:11:33 +08:00
366afdd1e4 feat: use i18next 2022-09-19 22:27:50 +08:00
1591fdf61c chore: update i18n structures 2022-09-16 21:25:39 +08:00
7e8d1128f8 chore: update i18n (#215) 2022-09-15 06:53:51 +08:00
b884327a53 chore: update eslint rules 2022-09-04 06:48:19 +08:00
f06a3d171b chore: update error message handler 2022-08-20 07:34:39 +08:00
a7a01df79a chore: update i18n 2022-08-19 21:30:31 +08:00
fd44255668 chore: use dropdown in member section 2022-08-07 01:35:20 +08:00
9994b1fabc chore: update member setting styles 2022-07-29 19:52:16 +08:00
2b8078a19b chore: add CommonDialog 2022-07-28 20:19:14 +08:00
d371cfd78d chore: update member list action buttons 2022-07-26 22:36:24 +08:00
b52c16c43f chore: use axios instead of fetch 2022-05-22 12:02:58 +08:00
6fe1db42b5 chore: update store types 2022-05-19 18:32:49 +08:00
c492317ffe feat: member manage section in setting dialog 2022-05-16 22:19:39 +08:00