Commit Graph

116 Commits

Author SHA1 Message Date
8c312e647d chore: remove auto collapse setting (#2169) 2023-08-24 22:00:48 +08:00
d3bd3ddab0 chore: update some detail styles (#2168)
* chore: update some detail styls

* chore: update
2023-08-24 21:52:16 +08:00
9f8a0a8dd3 fix: lazy rendering checks (#2130) 2023-08-13 23:19:29 +08:00
843850675f chore: update image displays (#2093) 2023-08-06 10:42:30 +08:00
7189ba40d3 feat: add lazy rendering in home page (#2085) 2023-08-05 22:14:17 +08:00
d114b630d2 feat: add prettier sort import plugin (#2058) 2023-07-31 22:26:45 +08:00
a6a1898c41 refactor: user v1 store (#2047) 2023-07-29 18:57:09 +08:00
95675cdf07 fix: show full content in detail page (#2041)
fix #1373 again
2023-07-28 15:52:50 +00:00
f91f09adea feat: use username instead of uid (#1977)
* #1916 replace userId to username

* resolve

---------

Co-authored-by: Александр Тумайкин <AATumaykin@tsum.ru>
2023-07-20 19:48:39 +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
0292f472e0 chore: add data empty placeholder (#1913) 2023-07-08 13:04:12 +08:00
db8b8f0d58 chore: remove unused kit components (#1871) 2023-07-01 12:34:37 +08:00
dd8c10743d feat: memo editor dialog (#1772)
* feat: memo editor dialog

* chore: update mark

* chore: update
2023-05-30 20:23:26 +08:00
e0e59c5831 feat: display memo with updated ts (#1760) 2023-05-28 01:50:09 +08:00
2e34ce90a1 chore: upgrade version 0.13.1 (#1754) 2023-05-27 09:09:41 +08:00
ae1d9adf65 fix: initial system locale (#1684) 2023-05-20 09:39:20 +08:00
b40571095d feat: update memo detail page (#1682)
* feat: update memo detail page

* chore: update
2023-05-20 08:39:39 +08:00
a07d5d38d6 feat: memo relation part1 (#1677)
* feat: memo relation part1

* chore: update
2023-05-18 21:29:28 +08:00
edf934efbb chore: update memo style (#1581) 2023-04-21 14:46:41 +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
df30304d00 chore: update share memo buttons (#1498) 2023-04-09 11:38:30 +08:00
91a24ef9ce chore: update memo header (#1497)
* chore: update memo header

* chore: update
2023-04-09 11:05:09 +08:00
680b8ede6c chore: adjust header style (#1493) 2023-04-08 21:50:07 +08:00
8cdc662745 chore: update memo visibility display (#1485) 2023-04-07 08:53:20 +08:00
609366da6e chore: add "copy link" for each memo (#1474) 2023-04-06 07:12:12 +08:00
89ab57d738 refactor: update import prefix with alias (#1433) 2023-04-01 16:03:14 +08:00
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
8b20cb9fd2 fix: make creation time a link to the detail page (#1379) 2023-03-18 22:06:44 +08:00
a9218ed5f0 refactor: filter store (#1331) 2023-03-11 09:13:54 +08:00
f3f0efba1e feat: update page router (#1330) 2023-03-11 08:43:45 +08:00
ccdcd3d154 feat: fold memo when content overflow (#1327)
* feat: fold memo when content overflow

* chore: update
2023-03-09 23:32:35 +08:00
f86816fea2 feat: use react-hot-toast (#1321) 2023-03-09 08:54:14 +08:00
dd625d8edc chore: update links reference (#1243) 2023-03-04 15:06:01 +08:00
6ab58f294e feat: update home layout (#1242) 2023-03-04 13:49:53 +08:00
29124f56bb chore: update memo service (#1138)
* chore: update memo service

* chore: update
2023-02-22 20:07:55 +08:00
b92da8f123 fix: check localsetting exists (#1076) 2023-02-11 22:54:13 +08:00
7cd474dbb7 feat: add setting for double-click of memos (#1036)
* feat: add setting for double-click of memos

* update

* update
2023-02-07 20:35:41 +08:00
96798e10b4 feat: support embed memo with iframe (#912) 2023-01-07 01:56:02 +08:00
0f8ce3dd16 refactor: return jsx element instead of string in marked (#910)
* refactor: return jsx element instead of string in marked

* chore: update
2023-01-07 00:13:49 +08:00
92a8a4ac0c feat: support code copy (#901)
* feat: support code copy

* update
2023-01-03 23:05:00 +08: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
a7374cf998 fix: generate sharing memo image (#663) 2022-12-03 09:41:52 +08:00
c5200ca31b feat: dark mode for dialogs (#643) 2022-11-30 20:34:16 +08:00
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
ce795a2a7d chore: show content image (#602) 2022-11-27 09:01:19 +08:00
e1e5121dd7 fix: get markdown image from backend (#581) 2022-11-26 10:20:49 +08:00
5f3cade810 feat: highlight the searched text in memo content (#514)
* feat: highlight the searched text in memo content

* update

* update

* update

* update

Co-authored-by: boojack <stevenlgtm@gmail.com>
2022-11-25 21:59:21 +08:00
50d41c456b chore: change memo created time (#556) 2022-11-24 19:55:52 +08:00
66f9bc48bb chore: remove mark memo (#476) 2022-11-15 21:22:08 +08:00