Commit Graph
218 Commits
Author SHA1 Message Date
Stephen Zhou 405ee42e8a fix: auth in electron 2024-12-25 10:02:06 +08:00
Stephen Zhou 14784466dd chore: update hono type 2024-12-25 09:29:59 +08:00
Stephen Zhou 36f0d00b07 style: use prettier-plugin-tailwindcss and disable sort in lint 2024-12-23 22:19:45 +08:00
Stephen Zhou acc628ade1 chore: bring credential provider back 2024-12-19 20:56:55 +08:00
Innei 77fa6088fb refactor: streamline entry action handling and replace ActionButton with CommandActionButton
- Removed unused imports and simplified the use of commands in `useEntryActions`.
- Updated `EntryItemWrapper`, `HeaderActions`, and `MoreActions` components to utilize `CommandActionButton` for better command handling.
- Introduced `CommandDropdownMenuItem` for consistent command representation in dropdowns.
- Enhanced readability and maintainability by reducing redundant code and improving type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 20:07:33 +08:00
Stephen Zhou ead7b3a2f1 chore: fix merge conflict 2024-12-17 15:36:42 +08:00
Innei 0e86a24b58 Merge remote-tracking branch 'origin/main' into dev
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 14:43:55 +08:00
Innei 9d6e7d4436 fix: import
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:05:01 +08:00
Stephen Zhou 3497623b85 feat: email verification
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:02:45 +08:00
ae0dc2c30d 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>
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:02:17 +08:00
Stephen Zhou edc9e3008e chore: update hono api type 2024-12-16 22:11:29 +08:00
Stephen Zhou d4905fd008 feat: email verification 2024-12-16 22:02:55 +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
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 a10b78a79c feat: optimize action pages
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 19:32:57 +08:00
DIYgod 3e9a92d16a feat: bigger font size in mobile 2024-12-12 14:11:04 +08:00
Stephen Zhou 6d9212ef48 feat: action page (#2006) 2024-12-12 11:16:30 +08:00
Innei 9bcb268d3f fix: downgrade electron
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-11 19:22:11 +08:00
DIYgod ae390f7afa feat: list preview 2024-12-11 00:08:48 +08:00
Innei bb529c498a fix: break hono types
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 22:27:42 +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
DIYgod 4a4ecee7f1 feat: move replaceImgUrlIfNeed 2024-12-10 12:36:24 +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 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 d5bf07fd75 chore: update deps 2024-12-09 17:37:01 +08:00
Innei 2b2d56c746 fix: scrollbar z-index
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-07 17:01:45 +08:00
Innei 1d00865da3 chore: fix hono types
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-07 16:42:44 +08:00
Innei 77dd6ce2f9 feat: redesign login modal
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-06 19:47:39 +08:00
Innei e7d5576b63 fix(auth): redirect url
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-05 21:17:34 +08:00
Innei 6a30f2363e fix: sheet stack dismiss transition
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-04 16:54:55 +08:00
Stephen Zhou 779a12045e chore: use same specifier 2024-12-03 20:51:40 +08:00
Stephen Zhou 37164a3674 Revert "build: use pnpm catalogs"
This reverts commit 4477f83a29.
2024-12-03 20:32:19 +08:00
Stephen Zhou 4477f83a29 build: use pnpm catalogs 2024-12-03 20:22:02 +08:00
WhitewaterandEric Zhu 200415c77f fix: revert electron bump (#1991)
* fix: downgrade electron version from 33.2.1 to 33.2.0

Co-authored-by: Eric Zhu <eric@zhu.email>

* chore: dedupe

* chore: update .npmrc to include package-import-method workaround

* chore: tweak lock

* fix: update node-gyp dependency to use tarball URL instead of git URL

---------

Co-authored-by: Eric Zhu <eric@zhu.email>
2024-12-03 18:47:14 +08:00
DIYgod 2a013773de Revert "feat: remove callbackURL"
This reverts commit 5b99d74c7b.
2024-12-03 18:45:40 +08:00
DIYgod 5b99d74c7b feat: remove callbackURL 2024-12-03 17:24:22 +08:00
Innei 7ad1e305c3 fix: window titlebar maximize state sync, fixed #1982 (#1989)
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-03 15:39:16 +08:00
DIYgod 9102203956 feat: migrate to better auth (#1951)
* feat: add better-auth

* feat: remove hono/auth-js

* fix: authention check

* fix: signout refetch

* feat: init server auth plugins

* feat: remove types/authjs

* feat: server auth create session plugin

* feat: web login returning

* fix: types

* fix: test env
2024-12-03 12:59:41 +08:00
Otstar Lin 1ce3f5b8ba feat(integration): Add readeck integration (#1972) 2024-12-02 22:41:27 +08:00
Innei 0ff10c6e32 refactor(tab): tab indicator transition
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-02 18:42:11 +08:00
Whitewater 51519e2d7a fix: handle undefined arguments in executeJavaScript call (#1958)
* fix: handle undefined arguments in executeJavaScript call

* fix: improve error handling in setVoice and getVoices procedures

* fix: handle undefined arguments in executeJavaScript call
2024-12-02 15:21:25 +08:00
Innei 22e2c0d649 chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-02 14:59:16 +08:00
Innei 7bdf10050c fix(bridge): window call should catch error
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-01 22:02:23 +08:00
Whitewater 605c3d66b9 refactor: sunset Omnivore integration (#1953)
* refactor: remove Omnivore integration and related settings

* refactor: remove Omnivore integration from localization files

* refactor: remove Omnivore integration from settings and command types

* refactor: remove Omnivore entries from localization files
2024-12-01 18:56:12 +08:00
lawvs c01079aaa2 chore: bump electron and vite-bundle-analyzer version 2024-11-30 16:37:25 +08:00
Innei fe48d7cf02 feat: add mobile top timeline setting
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-29 23:44:53 +08:00
Innei d98ebaa4f7 refactor: vlist and keep scroll position (#1931)
* init

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

* feat: grid

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

* refactor: mark read logci

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

* chore: remove react-virtuoso

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

* fix: video

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

* transition

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

* fix: image memo loaded status

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

* fix: sort button

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

* feat: cjk truncate

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2024-11-29 22:51:37 +08:00
Stephen Zhou f3bf467243 chore: update hono type 2024-11-29 20:55:54 +08:00