Commit Graph
1136 Commits
Author SHA1 Message Date
Innei d0bf0fb657 refactor: replace useGetCommand with getCommand for improved command retrieval
- Updated the command retrieval method in various hooks and components to use the new getCommand function instead of the deprecated useGetCommand.
- Refactored related tests to ensure type correctness with the new command retrieval approach.
- Enhanced the PictureWaterFallItem component by optimizing mouse event handling with useCallback for better performance.
- Improved animation handling in the PictureWaterFallItem component for smoother transitions.

This change streamlines command access and enhances component performance.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 00:32:28 +08:00
Stephen Zhou d4905fd008 feat: email verification 2024-12-16 22:02:55 +08:00
Innei 8ad40c004e feat(settings): clean web app service worker cache
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-16 20:15:13 +08:00
Innei efcbecbd94 perf(external): hydrate auth providers
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-16 19:53:12 +08:00
7a6edb4575 feat: register or login with email and password (#2075)
* feat: login with password

* chore: auto-fix linting and formatting issues

* feat: show email

* refactor: login form

* chore: update

* fix: show login error

* chore: update

* credential provider

* feat: confirm password

* chore: update

* revokeOtherSessions when update password

* changelog

* typecheck

* chore: update

* chore: update hono

* feat: forget password

* chore: update

* feat: reset password page

* feat: register form

* chore: update

* chore: update

* chore: update

* chore: update

* fix: email login handler

* fix: navigate to login after register

* chore: remove forget password button for now

* chore: update

* feat: forget password page

* chore: update hono

* fix: forget-password link

* feat: login email text

* refactor: enhance login and forget password functionality

- Updated the forget password page to include a back navigation button using MotionButtonBase.
- Refactored the login component to utilize the new Login module, simplifying the structure.
- Adjusted translations for consistency in the login text across English and German locales.
- Improved the useAuthProviders hook to return a more structured AuthProvider interface.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add form validation and UI enhancements for login-related pages

- Introduced form validation state management in forget-password, register, and reset-password components.
- Updated button states to be disabled when forms are invalid, improving user experience.
- Enhanced UI elements with consistent styling and layout adjustments, including the addition of MotionButtonBase for navigation.
- Improved accessibility and responsiveness of card components.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: enhance login component with dynamic provider buttons

- Added MotionButtonBase for improved button animations and interactions.
- Refactored the rendering logic to conditionally display login options based on the presence of credential providers.
- Introduced a new icon mapping for providers to enhance visual representation.
- Improved layout and styling for better user experience during login.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add GitHub provider icon and adjust button margin in login component

- Introduced a GitHub icon to the provider icon map for enhanced visual representation.
- Adjusted the margin of the submit button to improve layout consistency.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: update

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: hyoban <hyoban@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2024-12-16 19:13:46 +08:00
X ffe535d5e7 fix: feed column flickering (#2143)
* fix: feed column flickering

* fix: update
2024-12-16 18:40:37 +08:00
ktKongTong 0505e3df3f fix(header): improve border visibility for meta display (#2138) 2024-12-14 00:36:15 +08:00
Stephen Zhou 14b1aa50b8 chore: no drag for react scan 2024-12-13 17:02:26 +08:00
Innei d4dd4fb68d feat: integrate react-query for fetching unread feed items by view
- Added useQuery to fetch unread items based on the current view with a 10-minute refetch interval.
- Updated imports to include necessary hooks and actions for managing unread feed state.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 16:19:48 +08:00
Innei 351f34289f fix: update SupportCreator component styles for better layout
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 13:26:42 +08:00
Innei 3e2603c3ea refactor: enhance icon transition handling and improve Zustand store proxy functionality
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 13:23:25 +08:00
Stephen Zhou dbcd56f468 chore: eslint to check package & only run type-aware rules in CI 2024-12-13 10:51:33 +08:00
Stephen Zhou 84698e139b chore: fix user handle type 2024-12-13 09:43:07 +08:00
Stephen Zhou aeaf79522b fix: update user profile 2024-12-13 09:32:01 +08:00
Innei 40dc4c6775 chore: toast bg color
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 21:17:24 +08:00
XandInnei 008cc98f8a fix: image error ui (#2124)
Co-authored-by: Innei <i@innei.in>
2024-12-12 21:01:21 +08:00
Innei a10b78a79c feat: optimize action pages
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 19:32:57 +08:00
DIYgod e9f7ff3176 feat: reduce the size of the list in feed list 2024-12-12 18:48:35 +08:00
DIYgod 4035a6b7b8 fix: feed column pb in mobile 2024-12-12 18:30:41 +08:00
DIYgod 74ba483b0d fix: values().map is undefined 2024-12-12 18:01:52 +08:00
Innei 96b892923a fix: login override provider icon
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 18:00:48 +08:00
Innei cae7fa6715 fix: article render container responsive width
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 17:57:36 +08:00
DIYgod 3e9a92d16a feat: bigger font size in mobile 2024-12-12 14:11:04 +08:00
Stephen Zhou 7c44d3d3cc chore: react scan style 2024-12-12 11:19:30 +08:00
Stephen Zhou 6d9212ef48 feat: action page (#2006) 2024-12-12 11:16:30 +08:00
X 0ae6ec954a fix: discover form button disable state error (#2113) 2024-12-12 11:16:17 +08:00
Innei 0eed6d1b23 fix(video): open entry url directly on mobile
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-11 19:24:47 +08:00
Innei 9bcb268d3f fix: downgrade electron
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-11 19:22:11 +08:00
Stephen Zhou 8ce4702df3 fix: remove URL.canParse
close #2103
2024-12-11 15:38:13 +08:00
DIYgod b22f32594c fix: types 2024-12-11 00:16:45 +08:00
DIYgod ae390f7afa feat: list preview 2024-12-11 00:08:48 +08:00
Innei 9a84ed40a1 fix: filter no picture breaking logic
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 22:22:36 +08:00
Innei 2b93dfd58f fix: grid virtualizer on mobile can't show any items
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 22:18:56 +08:00
Innei 5bb01006ad fix: modal exiting transition type
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 19:17:22 +08:00
Innei 2d31b646fd fix: update electron to resolve present context menu
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 19:14:30 +08:00
DIYgod 03858b18b8 feat: add list madeby 2024-12-10 12:43:55 +08:00
DIYgod 4a4ecee7f1 feat: move replaceImgUrlIfNeed 2024-12-10 12:36:24 +08:00
DIYgod 8e248ad733 feat: feed description in list page 2024-12-10 12:24:27 +08:00
Innei dac1a47b0e feat: support read indicator and back to top, fixed #2040
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 22:25:57 +08:00
Innei 76fc17eddf fix: add entryId to deps, try fix isActive judge
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 21:34:14 +08:00
Innei 639b922ec8 feat: add auto-expand setting for long social media entries and remove placeholder component, fixed #2064
- Introduced a new setting to automatically expand long social media entries.
- Removed the ReactVirtuosoItemPlaceholder component, replacing it with null returns for better handling of empty entries.
- Updated relevant settings files and translations for the new feature.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 21:08:37 +08:00
Innei cf5eeb63c4 feat: update toast style
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 20:50:10 +08:00
Innei 12bd659458 perf: optimize dnd re-render
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 19:51:07 +08:00
Innei 7969022657 fix: update i18n-detector
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 17:38:01 +08:00
Innei d5bf07fd75 chore: update deps 2024-12-09 17:37:01 +08:00
LavaandInnei d684e14056 feat: move feed to new category in context menu (#2072)
* feat: move feed to new category in context menu

* chore: update `next.md`

* fix: perf

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2024-12-09 17:03:20 +08:00
Innei 84a188a8e1 fix: back to previous entry list will refresh data
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 12:57:15 +08:00
Lava ab85406d4f fix: handle popstate for navigation in mobile entry content (#2038)
* fix: handle back navigation to pending feeds on mobile while changing orientation

* fix: navigate to incorrect place

* chore: update `next.md`
2024-12-08 17:23:20 +08:00
Innei 2b2d56c746 fix: scrollbar z-index
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-07 17:01:45 +08:00
但为君故andInnei 05f5477139 hotfix: readability's bug of failed to load document. (#2031)
* hotfix: fix the bug of sanitizing that causes readability failed to fetch document content.

* chores: add the commit `db83710` into changelog.

* chores: add additional description for DOMPurify.

* typo: rename the sanitizing function's parameter name.

---------

Co-authored-by: Innei <i@innei.in>
2024-12-07 16:40:16 +08:00