Steven
d6656db20d
feat: implement part of full-screen layout
2023-12-18 22:10:36 +08:00
Steven
15a091fe4c
chore: fix offset params in explore page
2023-12-18 20:54:51 +08:00
Steven
8095d94c97
chore: deprecate marked
2023-12-17 11:02:16 +08:00
Steven
bcfcd59642
chore: deprecate old MemoContent
2023-12-17 10:58:22 +08:00
Steven
5d677c3c57
chore: implement node renderer components
2023-12-17 10:49:49 +08:00
Steven
a9812592fe
chore: tweak editor border styles
2023-12-15 21:35:31 +08:00
Steven
fa34a7af4b
chore: tweak memo parent styles
2023-12-09 19:32:16 +08:00
Steven
77b75aa6c4
chore: tweak memo display
2023-12-09 18:57:59 +08:00
Steven
9faee68dab
chore: code clean
2023-12-09 18:57:18 +08:00
Steven
33dda9bf87
chore: fix auth status checks
2023-12-06 23:03:24 +08:00
t.yang
055a327b5e
fix: detail page user-avatar size have unexpected height ( #2576 )
...
Co-authored-by: tyangs.yang <tyangs.yang@hstong.com>
2023-12-06 10:58:33 +08:00
Steven
e83d483454
refactor(frontend): use auth service
2023-12-01 09:15:02 +08:00
Steven
6d469fd997
chore: fix image size
2023-11-30 19:36:12 +08:00
Steven
472afce98f
chore: fix current user store
2023-11-25 22:58:17 +08:00
Steven
d317b03832
feat: add search box in resources dashboard
2023-11-23 22:12:15 +08:00
Steven
45d7d0d5f6
chore: migrate get current user
2023-11-23 08:50:33 +08:00
Steven
dfa14689e4
chore: add click away event to date picker
2023-11-19 10:41:08 +08:00
Steven
94c71cb834
chore: fix loading status
2023-11-19 09:38:04 +08:00
Vespa314
65022beb0d
fix: duplicate memo filter in user profile page ( #2502 )
2023-11-11 23:20:53 +08:00
Steven
c288d49138
chore: fix decouple user name
2023-11-10 23:08:11 +08:00
Steven
0ea0645258
chore: add use reponsive width
2023-11-10 11:22:32 +08:00
steven
eb6b0ddead
chore: update navigation
2023-11-09 08:46:26 +08:00
Steven
dca90fb5d2
chore: update header
2023-11-09 08:27:46 +08:00
Steven
65a34ee41a
chore: update home sidebar
2023-11-08 22:18:12 +08:00
Steven
5ff0234c71
chore: update response styles
2023-11-08 22:10:15 +08:00
Steven
4499f45b67
chore: deprecate daily review offset local setting
2023-11-08 21:49:03 +08:00
Steven
834b58fbbd
feat: add version update inbox message
2023-11-06 22:53:55 +08:00
Steven
39a0e69b04
chore: update function name
2023-11-05 23:28:09 +08:00
Steven
e60e47f76f
chore: update user definition
2023-11-05 23:03:43 +08:00
Steven
ef820a1138
chore: fix memo editor padding in daily review
2023-11-05 21:42:02 +08:00
Christopher
a62f1e15a6
fix: private memos being public ( #2480 )
...
* fix(web/memo): filter out public option
Filter out the public option if we have disabled public memos
* feat(api/memo): sanity check for disabled public memos
In case something goes wrong, we check the system setting on the backend in order to valdiate if we can create a public memo
* refactor(web/memo): disable public option
Seems like a better option than removing it, as it looks werid if you are looking at a memo that is previously public
* fix(web/memo): use translation keys
* chore(web/editor): remove unsused tooltip
* revert(api/memo): sanity check
* fix(web/memo): allow admins to create public memos
* chore(web/memo): remove unused import
* fix(web/memo): check for both host and admin
* fix(web/memo): remove warning text from MemoDetail
2023-11-05 01:19:54 +08:00
Zexi
8b0083ffc5
fix: auto fetch more ( #2472 )
...
* fix: auto fetch more
* feat: use union type
2023-11-03 05:16:55 +08:00
Steven
a6fcdfce05
chore: update memo comment i18n
2023-10-28 11:39:10 +08:00
Steven
3c36cc2953
feat: add inbox ui
2023-10-28 02:43:46 +08:00
Zexi
035d71e07c
fix: visibility translation ( #2429 )
...
* fix: visibility translation
* refactor: remove useless file
* feat: add visibility icon
2023-10-23 08:06:59 +08:00
Steven
12fd8f34be
chore: fix styles
2023-10-21 01:23:21 +08:00
Steven
7b25b8c1e1
feat: update daily review
2023-10-21 00:57:44 +08:00
Steven
6f2ca6c87a
chore: update find memo api
2023-10-20 08:48:52 +08:00
Steven
c87b679f41
chore: add memo relation list
2023-10-19 21:26:38 +08:00
Athurg Gooth
0bfcff676c
feat: add support for remember sign in ( #2402 )
2023-10-18 20:38:49 -05:00
Steven
21c70e7993
feat: update memo relations dialog
2023-10-19 00:18:07 +08:00
Athurg Gooth
22d331d6c4
chore: switch storage of selected date in DailyReview ( #2399 )
...
Switch storage of selected date in DailyReview
2023-10-18 09:06:34 -05:00
Steven
203b2d9181
chore: fix container styles
2023-10-18 06:02:39 +08:00
Steven
1755c9dc79
chore: update button style
2023-10-17 23:49:26 +08:00
Steven
5359d5a66d
chore: add container-queries tailwind plugin
2023-10-14 14:13:55 +08:00
Steven
cfc5599334
chore: cleanup less files
2023-10-14 12:06:24 +08:00
Steven
dd83358850
chore: update some styles
2023-10-14 01:12:41 +08:00
Steven
20e5597104
chore: fix memo container max width
2023-10-13 23:26:56 +08:00
Steven
3822c26e32
chore: update memo props
2023-10-09 21:09:17 +08:00
Steven
b938c8d7b6
chore: only show comments in memo detail page
2023-10-08 00:42:02 +08:00
Steven
1cdd70e008
chore: update dark mode styles
2023-10-05 16:16:02 +08:00
Steven
6a11fc571d
chore: update empty icon
2023-10-05 15:52:16 +08:00
Steven
42e8d51550
chore: update i18n
2023-10-05 15:07:03 +08:00
Steven
fd7043ea40
chore: fix editor cache
2023-10-05 14:20:35 +08:00
Steven
e465b2f0e8
chore: update i18n for auth pages
2023-10-05 12:48:40 +08:00
Steven
01ff3f73f8
chore: update auth pages
2023-10-05 12:38:46 +08:00
Steven
8aae0d00cd
chore: fix fetch comments
2023-10-05 08:58:44 +08:00
Steven
16dad8b00d
chore: update logo
2023-10-05 08:40:25 +08:00
Steven
91f7839b31
chore: update memo detail styles
2023-10-03 00:25:22 +08:00
Steven
078bc164d5
chore: update memo relations view
2023-10-02 08:26:15 +08:00
Steven
e40621eb0f
chore: implement memo content views
2023-10-01 22:14:25 +08:00
Steven
952225d1da
chore: add back to top button
2023-09-30 02:04:13 +08:00
Steven
fbbfb11916
chore: adjust memo elements
2023-09-28 08:59:55 +08:00
Steven
53090a7273
chore: show unused resources in dashboard
2023-09-27 08:09:30 +08:00
Steven
0bddbba00e
chore: fix frontend linter
2023-09-27 00:45:15 +08:00
Steven
4f10198ec0
chore: add tooltip to icon buttons
2023-09-26 23:48:34 +08:00
Steven
7722c41680
chore: add edit button to memo detail page
2023-09-26 23:46:58 +08:00
Steven
7cdc5c711c
chore: update key of daily memo
2023-09-26 23:34:35 +08:00
Steven
8c2f89edc5
chore: update demo username
2023-09-25 09:10:39 +08:00
Steven
89c24415a6
chore: update not found page
2023-09-23 20:39:01 +08:00
Steven
0d803bf45f
chore: update dark mode styles
2023-09-23 20:30:47 +08:00
Steven
d4e54f343d
feat: update memo detail page
2023-09-23 20:14:07 +08:00
Steven
14adcb56da
chore: update resource description
2023-09-18 22:46:24 +08:00
Steven
e2b82929ab
chore: fix daily review params
2023-09-18 22:38:52 +08:00
Steven
bff41a8957
fix: invalid username checks
2023-09-18 22:34:31 +08:00
boojack
b13042d644
chore: move buf generated code to gitignore ( #2236 )
2023-09-17 20:55:05 +08:00
Steven
d09e3c3658
chore: remove buf es generator
2023-09-17 20:14:45 +08:00
Steven
72ca4e74ee
refactor: impl part of grpcweb
2023-09-17 19:20:03 +08:00
Steven
51137e01ef
chore: update resource description
2023-09-16 11:53:16 +08:00
Steven
fb1490c183
feat: impl resources list page
2023-09-16 11:48:53 +08:00
Steven
723e6bcdae
refactor: update resources page
2023-09-15 22:25:07 +08:00
Steven
d1156aa755
chore: update account setting styles
2023-09-15 22:09:51 +08:00
Steven
936fe5ac9d
chore: update state initial loader
2023-09-15 08:31:19 +08:00
Steven
f5802a7d82
chore: update access token ui
2023-09-15 08:18:30 +08:00
Athurg Gooth
41e26f56e9
chore: persist selected date of DailyReview page ( #2219 )
...
* Persist selected date of DailyReview page
* Use hook useLocalStorage instead of useState
* Update web/src/pages/DailyReview.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
Signed-off-by: Athurg Gooth <athurg@gooth.org>
---------
Signed-off-by: Athurg Gooth <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-09-14 19:57:44 +08:00
Steven
04595a5fb1
chore: update resource icons
2023-09-13 09:12:51 +08:00
Steven
58429f88a0
fix: memo filter in daily review
2023-09-12 23:38:13 +08:00
Steven
319f679e30
chore: fix timestamp type
2023-09-10 23:52:35 +08:00
Steven
b6d1ded668
chore: adjust initial states
2023-09-10 23:44:06 +08:00
Steven
93f062d0b9
chore: update user v2 api
2023-09-10 18:56:24 +08:00
Steven
866937787c
chore: clean duplicated requests
2023-09-10 11:43:38 +08:00
Steven
3df550927d
chore: update user profile page
2023-09-10 10:33:22 +08:00
boojack
c67a69629e
chore: update user menu items ( #2179 )
2023-08-26 23:11:45 +08:00
boojack
4af0d03e93
chore: add user profile page ( #2175 )
...
chore: some enhancements
2023-08-25 23:10:51 +08:00
boojack
8c312e647d
chore: remove auto collapse setting ( #2169 )
2023-08-24 22:00:48 +08:00
boojack
d3bd3ddab0
chore: update some detail styles ( #2168 )
...
* chore: update some detail styls
* chore: update
2023-08-24 21:52:16 +08:00
boojack
b9b795bf0e
chore: add react use ( #2157 )
...
* chore: add react use
* chore: update
2023-08-21 02:35:53 +08:00
boojack
218159bf83
chore: remove openai setting section ( #2084 )
2023-08-05 21:39:12 +08:00
boojack
238f896907
feat: add system service ( #2083 )
...
* feat: add system service
* chore: update
2023-08-05 21:30:23 +08:00
boojack
aa26cc30d7
chore: remove memo chat components ( #2073 )
2023-08-03 23:37:46 +08:00
boojack
d114b630d2
feat: add prettier sort import plugin ( #2058 )
2023-07-31 22:26:45 +08:00
Lilith
c1cbfd5766
feat: add system setting to disable password-based login ( #2039 )
...
* system setting to disable password login
* fix linter warning
* fix indentation warning
* Prohibit disable-password-login if no identity providers are configured
* Warnings and explicit confirmation when en-/disabling password-login
- Disabling password login now gives a warning and requires a second
confirmation which needs to be explicitly typed.
- (Re)Enabling password login now also gives a simple warning.
- Removing an identity provider while password-login is disabled now
also warns about possible problems.
* Fix formatting
* Fix code-style
---------
Co-authored-by: traumweh <5042134-traumweh@users.noreply.gitlab.com>
2023-07-30 21:22:02 +08:00
boojack
a6a1898c41
refactor: user v1 store ( #2047 )
2023-07-29 18:57:09 +08:00
Gerald
95675cdf07
fix: show full content in detail page ( #2041 )
...
fix #1373 again
2023-07-28 15:52:50 +00:00
boojack
d8d6de9fca
fix: get user by username api ( #2034 )
2023-07-26 22:41:21 +08:00
Harry Tran
9da0ca5cb3
feat: add search bar in archived and explore pages ( #2025 )
...
* feat: add search bar in archived and explore pages
* Update web/src/pages/Archived.tsx
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-07-24 11:09:30 +00:00
Ajay Kumbhare
5604129105
fix: empty state display issue with resourceList style Grid ( #2018 )
2023-07-23 19:10:33 +08:00
boojack
4231ec5a1a
chore: upgrade version to 0.14.1 ( #2004 )
2023-07-22 09:58:03 +08:00
Alexandr Tumaykin
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
Jerry Wang
7b5c13b712
fix: delete multiple resources
...
* fix: delete multiple resources, close #1986
* chore: remove useless comment
2023-07-19 21:36:02 +08:00
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
2023-07-18 22:21:08 +08:00
Ajay Kumbhare
4ac63ba1f0
chore: disallow destructuring 't' from useTranslation ( #1973 )
2023-07-16 21:26:26 +08:00
boojack
589b104671
chore: upgrade version to v0.14.0 ( #1970 )
...
* chore: upgrade version
* chore: update
* chore: update
2023-07-16 13:48:10 +08:00
boojack
220cba84ae
chore: add dev guard for memo chat ( #1968 )
2023-07-16 13:02:52 +08:00
boojack
01f4780655
chore: update detail styles ( #1964 )
2023-07-15 22:57:57 +08:00
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
2023-07-15 10:27:37 +08:00
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>
2023-07-15 10:01:40 +08:00
Ajay Kumbhare
8ca2dac184
fix: incorrect localization key for sign-up failure message ( #1953 )
2023-07-14 21:43:46 +08:00
CorrectRoadH
39351970d0
feat: implement memo chat frontend ( #1938 )
...
* feat: implment backend function
* feat: implment frontend component
* stash
* eslint
* eslint
* eslint
* delete node
* stash
* refactor the style
* eslint
* eslint
* eslint
* fix build error
* add dep
* Update web/src/components/MemosChat/ConversationTab.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* Update web/src/components/MemosChat/ConversationTab.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* feat: change the name
* disable for vistor
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-07-14 13:09:21 +08:00
boojack
d4b88c6c86
chore: remove auto signout in auth page ( #1927 )
2023-07-12 00:16:32 +08:00
boojack
da70917b08
chore: update auth page ( #1920 )
...
* chore: update auth page
* chore: update
2023-07-09 21:13:26 +08:00
boojack
0292f472e0
chore: add data empty placeholder ( #1913 )
2023-07-08 13:04:12 +08:00
boojack
7e391bd53d
chore: remove resource public id ( #1912 )
...
* chore: remove resource public id
* chore: update
2023-07-08 11:29:50 +08:00
boojack
847b4605f4
chore: update dark mode style ( #1864 )
2023-06-30 08:40:13 +08:00
boojack
6b3748e2a3
chore: update setting page styles ( #1863 )
...
* chore: update setting page styles
* chore: update
2023-06-29 23:17:01 +08:00
boojack
b34aded376
refactor: migration idp api ( #1842 )
...
* refactor: migration idp api
* chore: update
2023-06-17 22:35:17 +08:00
David Angel
781b1f7b3a
chore: add classnames for easy logo/server name customizations via CSS. ( #1828 )
...
Update MemoDetail.tsx
2023-06-14 21:03:38 +08:00
boojack
32e2f1d339
chore: update page routes ( #1790 )
...
chore: update routers
2023-06-03 13:03:22 +08:00
boojack
e0e59c5831
feat: display memo with updated ts ( #1760 )
2023-05-28 01:50:09 +08:00
Athurg Gooth
5e792236af
fix: infinite loop while daily memos more than DEFAULT_MEMO_LIMIT ( #1730 )
...
Co-authored-by: Athurg Feng <athurg@gooth.org>
2023-05-24 20:22:16 +08:00
boojack
b40571095d
feat: update memo detail page ( #1682 )
...
* feat: update memo detail page
* chore: update
2023-05-20 08:39:39 +08:00
boojack
a07d5d38d6
feat: memo relation part1 ( #1677 )
...
* feat: memo relation part1
* chore: update
2023-05-18 21:29:28 +08:00
Stephen Zhou
ff447ad22b
feat: support file sorting when uploading ( #1627 )
2023-05-03 19:18:29 +08:00
CorrectRoadH
f7a1680f72
fix: only delete last file when select multiple files #1576 ( #1578 )
...
* fix the bug can't delete multiple files #1576
* using useEvent instead of useRef
* delete unused code
* delete unused code
* change hook file name
* refactor the useEvent
* delete unnecessary export
* fix import
* Apply suggestions from code review
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-28 16:17:08 +00:00
boojack
541fd9c044
chore: update window resize listener ( #1535 )
2023-04-16 10:00:49 +08:00
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
2023-04-15 08:56:03 +08:00
Zeng1998
5652bb76d4
fix: incorrect date parsing ( #1527 )
...
* fix: incorrect date parsing
* fix eslint
2023-04-15 00:54:48 +08:00
boojack
91a24ef9ce
chore: update memo header ( #1497 )
...
* chore: update memo header
* chore: update
2023-04-09 11:05:09 +08:00
boojack
680b8ede6c
chore: adjust header style ( #1493 )
2023-04-08 21:50:07 +08:00
boojack
f48d91539e
chore: update locale file structure ( #1478 )
2023-04-06 00:07:10 +08:00
boojack
1cab30f32f
feat: add public id field to resource ( #1451 )
...
* feat: add public id field to resource
* feat: support reset resource link
2023-04-03 13:41:27 +08:00
boojack
11cd9b21de
chore: update auth form ( #1445 )
2023-04-02 14:25:38 +08:00
boojack
d71bfce1a0
chore: add usage into heatmap ( #1443 )
2023-04-02 11:56:09 +08:00
boojack
1ea65c0b60
chore: update logo ( #1442 )
...
* chore: update logo
* chore: update
2023-04-02 09:54:52 +08:00
CorrectRoadH
424f10e180
feat: request pagination for resource( #1425 )
...
* feat: add support for resource page on frontend
* [WIP]feat: add backend support for limit and offset search
* feat: add reducer to add resource
* support fetch all resource when first search
* beautify the fetch ui
* restore file
* feat: add all resource before clear resource
* eslint
* i18n
* chore:change the nane
* chore: change the name of param
* eslint
* feat: setIsComplete to true when first loading resource fully
* fix the bug of fetch
* feat change finally to then
* feat: add await and async to clear and search
* feat: return all resource when fetch
* chore: change variable name
* Update web/src/pages/ResourcesDashboard.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* fix missing const value
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-01 16:51:20 +08:00
boojack
fab3dac70a
chore: remove useListStyle hook ( #1434 )
2023-04-01 16:38:39 +08:00
boojack
89ab57d738
refactor: update import prefix with alias ( #1433 )
2023-04-01 16:03:14 +08:00
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>
2023-04-01 15:35:25 +08:00
CorrectRoadH
526fbbba45
feat: empty selected resource when search resource ( #1423 )
...
* feat: empty selected resource when search resource
* eslint
2023-03-29 18:59:51 +08:00
CorrectRoadH
6b703c4678
feat: add empty placeholder when search result is empty ( #1416 )
...
* feat: add empty placeholder when search result is empty
* Update web/src/pages/ResourcesDashboard.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-03-26 13:07:08 +00:00