Commit Graph

335 Commits (c26417de70e55aa88c1b7e625d171be287d06df4)

Author SHA1 Message Date
Zexi 035d71e07c
fix: visibility translation (#2429)
* fix: visibility translation

* refactor: remove useless file

* feat: add visibility icon
2 years ago
Steven 7b25b8c1e1 feat: update daily review 2 years ago
Steven 21c70e7993 feat: update memo relations dialog 2 years ago
Steven cfc5599334 chore: cleanup less files 2 years ago
Steven c02f3c0a7d chore: remove less files in editor 2 years ago
Steven dd83358850 chore: update some styles 2 years ago
Steven 89c24415a6 chore: update not found page 2 years ago
Steven b233eaea97 chore: update docs link 2 years ago
Steven 4424c8a231 chore: add resource service definition 2 years ago
Steven 04595a5fb1 chore: update resource icons 2 years ago
Steven 7ec5d07cb8 chore: remove fullscreen button 2 years ago
boojack 4af0d03e93
chore: add user profile page (#2175)
chore: some enhancements
2 years ago
Maciej Kasprzyk 735cfda768
fix: tag suggestions positioning (#2151) 2 years ago
Moris 8747c58c7d
feat: fixed heat map colors, updated it.json (#2106)
* Update it.json

* Add files via upload

* Add files via upload
2 years ago
boojack d1b0b0da10
chore: remove shortcuts in frontend (#2071) 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
boojack 220cba84ae
chore: add dev guard for memo chat (#1968) 2 years ago
Alexandr Tumaykin 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>
2 years ago
boojack 0292f472e0
chore: add data empty placeholder (#1913) 2 years ago
Athurg Gooth 811c3e8844
fix: auto expand height of setting page (#1885) 2 years ago
boojack 847b4605f4
chore: update dark mode style (#1864) 2 years ago
boojack 6b3748e2a3
chore: update setting page styles (#1863)
* chore: update setting page styles

* chore: update
2 years ago
boojack 11a385cda6
chore: update upgrade version view (#1791) 2 years ago
boojack 32e2f1d339
chore: update page routes (#1790)
chore: update routers
2 years ago
boojack dd8c10743d
feat: memo editor dialog (#1772)
* feat: memo editor dialog

* chore: update mark

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

* chore: update
2 years ago
boojack e3496ac1a2
refactor: memo editor components (#1625) 2 years ago
boojack edf934efbb
chore: update memo style (#1581) 2 years ago
boojack 5f8aae69e4
chore: update save button style (#1542) 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 df30304d00
chore: update share memo buttons (#1498) 2 years ago
boojack 91a24ef9ce
chore: update memo header (#1497)
* chore: update memo header

* chore: update
2 years ago
boojack 8cdc662745
chore: update memo visibility display (#1485) 2 years ago
boojack 11cd9b21de
chore: update auth form (#1445) 2 years ago
boojack d71bfce1a0
chore: add usage into heatmap (#1443) 2 years ago
boojack 2e14561bfc
chore: update logo assets (#1407) 2 years ago
Stephen Zhou 166e57f1ef
fix: image preview dialog overlapping (#1405)
* fix: image preview dialog overlapping

* Update web/src/less/preview-image-dialog.less

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
CoffDream af3d3c2c9b
fix: daily review page & setting dialog style (#1392) 2 years ago
boojack c189654cd9
chore: update resource dashboard style (#1362) 2 years ago
CorrectRoadH 0a66c5c269
feat: new resource dashboard (#1346)
* feat: refator the file dashboard

* feat: support select resouce file

* feat: suppor delete select files

* feat: support share menu, implement rename and delete

* chore: change the color of hover

* chore: refator file dashboard to page

* feat: add i18n for button

* feat: beautify the button

* fix: the error position of button

* feat: only select when click circle instead of whole card

* feat: beautify file dashboard

* chore: factor the filecard code

* feat: using dropdown component intead of component

* feat: add i18n for delete selected resource button

* feat: delete the unused style of title

* chore: refactor file cover

* feat: support more type file cover

* feat: use memo to reduce unused computing in filecover

* feat: when no file be selected, click the delete will error

* feat: store the select resource id instead of source to save memory

* chore: delete unused code

* feat: refactor the file card

* chore: delete unused style file

* chore: change file to resource

* chore: delete unused import

* chore: fix the typo

* fix: the error of handle check click

* fix: the error of handle of uncheck

* chore: change the name of selectList to selectedList

* chore: change the name of selectList to selectedList

* chore: change the name of selectList to selectedList

* chore: delete unused import

* feat: support Responsive Design

* feat: min display two card in a line

* feat: adjust the num of a line in responsive design

* feat: adjust the num of a line to 6 when using md

* feat: add the color of hover source card when dark

* chore: refactor resource cover css to reduce code

* chore: delete unnessnary change

* chore: change the type of callback function

* chore: delete unused css code

* feat: add zh-hant i18n

* feat: change the position of buttons

* feat: add title for the icon button

* feat: add opacity for icon

* feat: refactor searchbar

* feat:move Debounce to search

* feat: new resource search bar

* feat: reduce the size of cover

* support file search

* Update web/src/pages/ResourcesDashboard.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* Update web/src/components/ResourceCard.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* chore: reduce css code

* feat: support lowcase and uppercase search

* chore: reserve the searchbar

* feat: refator resource Search bar

* chore: change the param name

* feat: resource bar support dark mode

* feat: beautify the UI of dashboard

* chore: extract positionClassName from actionsClassName

* feat: reduce the length of search bar

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Wujiao233 28242d3268
fix: expand btn display in front of menu (#1342)
* Docker

* fix:expand btn display issue

* restore Dockerfile

* change Header z-index to 2

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

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
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
boojack ccdcd3d154
feat: fold memo when content overflow (#1327)
* feat: fold memo when content overflow

* chore: update
2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
boojack 390e29f850
chore: remove part of less files (#1314) 2 years ago
boojack 3a466ad2a1
chore: update style of home sidebar (#1311) 2 years ago
boojack 483c1d5782
feat: update responsible layout (#1306)
* feat: update responsible layout

* chore: update
2 years ago
boojack 595dbdb0ec
feat: add root layout (#1294) 2 years ago