Commit Graph
51 Commits
Author SHA1 Message Date
Stephen Zhou 2cd1b5daf9 chore: enable noUncheckedIndexedAccess, better type check (#2608) 2025-01-18 22:35:23 +08:00
Stephen Zhou eb47ec2cca fix: pass token when resetting password 2025-01-17 22:31:58 +08:00
fb531b1c9d feat: 2fa (#2540)
Co-authored-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <i@innei.in>
2025-01-16 20:35:30 +08:00
Innei 15a14c63b6 fix: conditionally render feed preview and items based on entries availability
- Updated the rendering logic in the share list component to display the feed preview and items only when there are entries available. This change enhances the user experience by preventing empty states and ensuring that the UI reflects the current data accurately.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-15 16:59:08 +08:00
Innei e77a0e1043 fix: login page styles
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-06 20:13:21 +08:00
DIYgod fedf2af984 fix: login page redirection 2024-12-24 13:39:46 +08:00
Innei d9a26387c5 feat(auth): add credential provider icon and update email translation in login flow
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-23 21:11:24 +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 de8d337671 fix(auth): handle optional icon class names for providers in login components
- Updated the LoginModalContent and Login components to safely access provider icon class names using optional chaining.
- Excluded the "credential" provider from the list of displayed auth providers to streamline the login options.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:04:12 +08:00
Innei e0661ff2b9 perf(external): hydrate auth providers
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:03:14 +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
Eric Zhuandericyzhu 0dcfde5ea4 fix: update zh-CN translations and remove unused setting (#2132)
* chore(translations): update zh-CN locale files for accuracy

* chore: auto-fix linting and formatting issues

* update

* update

* chore: auto-fix linting and formatting issues

* update

* update

---------

Co-authored-by: ericyzhu <ericyzhu@users.noreply.github.com>
2024-12-17 00:51:34 +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
DIYgod ae390f7afa feat: list preview 2024-12-11 00:08:48 +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 32d19c8ad7 chore: fix claimed feed type typo
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-05 17:16:29 +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
DIYgod 51d671983b chore: trigger ci 2024-11-28 00:36:19 +08:00
DIYgod b031ce57b8 feat: dynamic auth providers 2024-11-28 00:36:19 +08:00
Innei c404e50ecf refactor: remove external and proxy server pages
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-27 17:01:41 +08:00
Innei 6595f8502f refactor: lazy create atom selector and shallow eq
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-27 13:36:35 +08:00
Innei 185bbe1dd9 fix(ssr-server): fix hydrate data
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-26 22:36:20 +08:00
Innei a9569cc2ec fix(external): continue in browser should reload page
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-26 22:01:54 +08:00
Innei ca4751acd2 feat(infra): electron app can hot update renderer layer (#1209)
* ci

Signed-off-by: Innei <i@innei.in>

* feat: hotupdate renderer impl

* fix: skip dev

Signed-off-by: Innei <i@innei.in>

* update logci

Signed-off-by: Innei <i@innei.in>

* update logci

Signed-off-by: Innei <i@innei.in>

* feat: tracker

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

* log

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

* fix: hash

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

* fix: build

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

* fix: deps

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

* Update nightly.yml

* update

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

* update

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

* update

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

* update minimunm

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

* calc main hash

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

* add main Hash logic

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

* remove

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

* fix

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

* log

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

* update

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

* update

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

* test

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

* update

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

* update

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

* fix: update

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

* debug

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

* update

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

* fix

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

* update

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

* fix: only one

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

* try fix cookie

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

* update

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

* fix cookie

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

* fix: domain

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

* fix

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

* fix: remove test code

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

* fix

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

---------

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-25 21:49:20 +08:00
Innei f418efcd9c chore: upgrade to router v7
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-24 17:27:29 +08:00
Stephen Zhou 7b61df0c52 refactor: replace lodash-es with es-toolkit (#1650) 2024-11-18 20:59:56 +08:00
DIYgod 2fa16b75d3 feat: merge redirect page into login page 2024-11-09 20:00:21 +08:00
Innei 6fc9d09c58 fix: reduce timeline refresh, fixed #1474
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-07 22:10:44 +08:00
Innei e0d3e17da4 feat: entry image gallery modal
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-06 22:05:47 +08:00
Innei 3a0c0393e0 fix(share): normal list item layout
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-03 23:38:40 +08:00
Innei cb6a65b7cc feat: add hydrate data type-safe helper
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-03 20:52:26 +08:00
Innei 8372d38c1c refactor: server meta injecter
Signed-off-by: Innei <tukon479@gmail.com>
2024-11-03 20:32:27 +08:00
Innei 71fcf50d0f feat(external): new open by deeplink logic
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-30 18:37:12 +08:00
Innei 14e37da0ce fix(share): og image grid width and image align top to description
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-29 17:35:52 +08:00
Innei 32f68ee198 fix(external): remove duplicate border bottom
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-29 17:30:50 +08:00
Stephen Zhou d408581a13 fix: initializeDayjs in server
close #1198
2024-10-28 12:19:34 +08:00
Innei 6786e20303 fix(external): should hard go back to app home
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-27 23:17:39 +08:00
Innei ef46c70a98 fix(external): set auth config first
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-27 23:12:40 +08:00
Innei 5e49b8114e fix(external): add global 404 page
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-27 23:07:57 +08:00
Innei 791680332d feat(external): move login and redirect route to external
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-27 22:54:27 +08:00
cosandStephen Zhou 7c60d5e91d feat: add follow user button in profile modal (#1147)
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2024-10-26 12:39:27 +08:00
Innei b867af9b45 fix(external): header logo href
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-25 23:55:52 +08:00
3a85febb6e refactor(monorepo): migrate to monorepo (#1059)
* init

Signed-off-by: Innei <i@innei.in>

* chore: utils import

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

* remove stable router

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

* refactor: components import

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

* chore: auto-fix linting and formatting issues

* minify

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

* update

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

* fix: test

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

* chore: ui component extract

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

* fix: import

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

* re-render

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

* refactor: remove hooks

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

* fix

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

* update

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

* setting

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

* update

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

* refactor: remove icons

Signed-off-by: Innei <i@innei.in>

* typings

Signed-off-by: Innei <i@innei.in>

* feat: add horizontal scroll functionality to TimelineTabs (#1081)

Co-authored-by: xhuajin <xhuajin@users.noreply.github.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>

* fix: Wrong initial position of tab animation (#1087)

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>

* fix: disable auto toggle readability in web

* fix: margin condition in EntryListHeader (#1103)

* chore(i18n): add daily reward system translation (#1102)

Co-authored-by: lc4t <lc4t@users.noreply.github.com>

* fix: deps

Signed-off-by: Innei <i@innei.in>

* fix: type

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* fix

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <Innei@users.noreply.github.com>
Co-authored-by: Huajin <114134574+xhuajin@users.noreply.github.com>
Co-authored-by: xhuajin <xhuajin@users.noreply.github.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: 仓鼠 <71394853+hamster1963@users.noreply.github.com>
Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
Co-authored-by: Konv Suu <2583695112@qq.com>
Co-authored-by: lc4t <11334449+lc4t@users.noreply.github.com>
Co-authored-by: lc4t <lc4t@users.noreply.github.com>
2024-10-24 14:37:43 +08:00
Innei 1decc3555a fix(server): deeplink handler
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-23 20:27:13 +08:00
Innei f54c886950 fix(server): client api client
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-22 00:05:34 +08:00
Innei 528c5ca62a fix: try to adaptor vercel upstream env
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-21 23:59:44 +08:00