Commit Graph

30 Commits (781b1f7b3ab6f06cf4c236fbdbf48b0380887531)

Author SHA1 Message Date
David Angel 781b1f7b3a
chore: add classnames for easy logo/server name customizations via CSS. (#1828)
Update MemoDetail.tsx
2 years ago
boojack b40571095d
feat: update memo detail page (#1682)
* feat: update memo detail page

* chore: update
2 years ago
boojack a07d5d38d6
feat: memo relation part1 (#1677)
* feat: memo relation part1

* chore: update
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
boojack f48d91539e
chore: update locale file structure (#1478) 2 years ago
boojack d71bfce1a0
chore: add usage into heatmap (#1443) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
Zeng1998 7f44a73fd0
fix: show full content in detail page (#1375) 2 years ago
boojack a9218ed5f0
refactor: filter store (#1331) 2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
boojack 904a6bd97f
fix: find memo list order (#1149) 2 years ago
boojack 29124f56bb
chore: update memo service (#1138)
* chore: update memo service

* chore: update
2 years ago
boojack 9f25badde3
chore: update logo format to png (#830) 2 years ago
boojack b67ed1ee13
feat: customize system profile (#774)
* feat: system setting for customized profile

* chore: update

* feat: update frontend

* chore: update
2 years ago
boojack ef621a444f
refactor: introducing `use{Module}Store` instead of service (#768)
* refactor: introducing `useEditorStore`

* refactor: update

* chore: update
2 years ago
boojack a467a7c173
feat: upgrade dev version to `0.8.1` (#656)
* feat: upgrade version to `0.8.1`

* chore: update
2 years ago
boojack c5200ca31b
feat: dark mode for dialogs (#643) 2 years ago
Stephen Zhou fbe7b604ef
feat: dark mode support for memo detail (#604)
* feat: dark mode support for memo detail

* chore: update

* chore: update

* chore: update
2 years ago
boojack 2042737004
feat: add username field (#544)
* feat: add username field

* chore: update
3 years ago
boojack 2743268fd7
chore: remove unused visibility selector (#457) 3 years ago
Zeng1998 1e3b8315a0
chore: update MemoResources props (#432) 3 years ago
boojack 2a4fc7dcc3
chore: update memo display time (#327)
* chore: update memo display time

* chore: update
3 years ago
steven a323689ee6 chore: update copy button style 3 years ago
f97 2ea612e2fe
feat: add copy button to memo (#267)
* feat: copy-content

* Update web/src/less/memo-detail.less

Co-authored-by: boojack <stevenlgtm@gmail.com>
3 years ago
Steven b992d07f3e chore: update memo detail header 3 years ago
Steven 77a3513a6b chore: update memo detail page 3 years ago
Steven 0dd2337663 chore: update router 3 years ago
Steven 63468dbaf3 chore: update memo detail access handler 3 years ago
Steven 6c1cc1d283 chore: use conditional rendering instead of OnlyWhen 3 years ago
Steven 15cfc9e1f5 chore: add memo detail page 3 years ago