Commit Graph

25 Commits (1d83c68cb52e0636824667085a7e1c248a6aba94)

Author SHA1 Message Date
Steven 1d83c68cb5 chore: update type definitions 1 year ago
Steven ed32b20c9e chore: update frontend dependencies 1 year ago
Steven 4a407668bc chore: tweak dialog close button 1 year ago
boojack b13042d644
chore: move buf generated code to gitignore (#2236) 2 years ago
Steven d09e3c3658 chore: remove buf es generator 2 years ago
Steven fb1490c183 feat: impl resources list page 2 years ago
Steven 3df550927d chore: update user profile page 2 years ago
boojack b5a6f1f997
chore: regenerate pnpm lock file (#2056)
* chore: regenerate pnpm lock file

* chore: update

* chore: update
2 years ago
boojack d114b630d2
feat: add prettier sort import plugin (#2058) 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
Athurg Gooth e6c9f2a00e
feat: add support for download resource from link (#1800)
* Add support for download resource from link

* Parse external link and add file ext name from mime info

* Add zh-Hans locale for `download-link`

* fix typo on code and comments

* Update server/resource.go

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack b40571095d
feat: update memo detail page (#1682)
* feat: update memo detail page

* chore: update
2 years ago
Stephen Zhou ff447ad22b
feat: support file sorting when uploading (#1627) 2 years ago
Fog3211 a654a1cb88
fix: toast overload max size error (#1531)
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
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 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
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
boojack df04e852bf
feat: implement openai integration (#1245)
* feat: implement openai integration

* chore: update
2 years ago
boojack dd625d8edc
chore: update links reference (#1243) 2 years ago
Zeng1998 4284fd0469
fix: omission of long filename (#1170) 2 years ago
Yoshino-s bbc5ac9f0e
feat: make file uplaod support drag/drop (#1129) 2 years ago
boojack b11d2130a0
chore: validate external link (#1069) 2 years ago
boojack dd5a23e36e
feat: support creating resource with external link (#988) 2 years ago