Commit Graph
26 Commits
Author SHA1 Message Date
DIYgod d7fa7ecaff feat: ssr login page no client prompt 2025-07-10 19:41:11 +08:00
DIYgod fd42f5ca54 feat: simplify ssr footer 2025-07-10 19:11:14 +08:00
DIYgod 6d4d53b41d feat: update layout spacing and enhance referral form alignment 2025-07-10 18:59:26 +08:00
DIYgod 912866fabe feat: ssr layout 2025-07-10 18:59:26 +08:00
lawvs f865d68295 fix: improve token extraction and error handling in TokenModal 2025-07-10 17:06:24 +08:00
30bb37c7b9 feat: referral (#3761)
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2025-07-10 09:47:11 +08:00
Stephen Zhou d743200a85 fix: remove duplicated deep link scheme for login redirect 2025-07-01 12:08:01 +08:00
0-o0 cca1a9f268 fix: icon can't follow theme switch correctly (#3922) 2025-06-16 11:38:22 +08:00
Stephen Zhou 1ad0312674 fix: remove coop & coep header, use localStorage for web for now 2025-06-13 23:42:40 +08:00
Innei 20d8590c58 fix(auth): add support for dark mode icons in login components
- Introduced `iconDark64` property to `AuthProvider` interface for dark mode icon support.
- Updated `LoginModalContent` and `Login` components to conditionally render dark mode icons based on the current theme.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 21:06:15 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
DIYgod 47e07a4cc3 feat(desktop): copy and paste login token 2025-06-03 20:57:23 +08:00
DIYgod 4ba047ebc9 feat(ssr): use hcaptcha 2025-05-25 12:37:58 +08:00
Innei 596694c610 refactor: improve user avatar display and login layout
- Updated UserAvatar component to include text truncation for better name display.
- Adjusted layout in Login component for improved spacing and alignment.
- Replaced heading with paragraph for success message and refined button styles.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-19 21:38:45 +08:00
Innei 55f20398be fix(ui): update Button component props for consistency in styling
- Changed `className` to `buttonClassName` in Button components for improved prop consistency.
- Ensured uniformity in button styling across the Login and Register forms.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-10 00:13:29 +08:00
DIYgod 21760f82b5 feat(ssr): optimize login 2025-05-08 11:29:08 +08:00
Innei efc2e9713b refactor: upgrade react 19 and react native 0.79 (#3661)
* update

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

* chore: update Babel and Metro configurations

- Added `unstable_transformImportMeta` option to Babel preset for improved JSX handling.
- Disabled `unstable_enablePackageExports` in Metro configuration for better package resolution.

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

* chore: add react-native-ios-utilities patch and update dependencies

- Introduced a patch for `react-native-ios-utilities` to enhance functionality.
- Updated `expo`, `react-native`, and `react-native-reanimated` versions in the example app for improved compatibility.
- Added `react-native-ios-utilities` to the project dependencies in `package.json`.

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

* update

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

* chore: auto-fix linting and formatting issues

* refactor: improve route parameter handling and entry fetching logic

- Updated `useRouteParams` to utilize `useReadonlyRoute` for better state management.
- Enhanced `useEntriesByView` to separate remote and local entry fetching, improving data handling and error management.
- Introduced debouncing for pagination in local entries and added toast notifications for error handling.
- Cleaned up entry ID retrieval to ensure uniqueness and prevent duplicates.

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

* refactor: simplify Masonry component return statement

- Updated the return statement in the Masonry component to use JSX syntax for better readability and consistency.

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

* refactor: update import from RootPortalProvider to RootPortalContext

- Changed the import statement in Sheet.tsx to reflect the updated context provider name for better clarity and consistency in the codebase.

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

* update

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

* refactor: update ref types in component props

- Changed ref prop types from React.RefObject to React.Ref for better type compatibility across various components, enhancing overall code consistency and maintainability.

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

* feat: add Xcode build server configuration and enhance desktop app routing

- Introduced a new configuration file for the Xcode build server to streamline iOS builds.
- Updated Vite configuration to include a new proxy route for sharing functionality.
- Added a new Jotai atom for managing preview state in the application.
- Removed deprecated error fallback component to clean up the codebase.
- Implemented a new render style hook for consistent styling across components.
- Enhanced entry column components with improved error handling and layout adjustments.
- Updated various components to utilize the new render style and improved accessibility.

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

* update

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

* fix: ensure plugins array is initialized and update TypeScript configuration

- Initialized the plugins array in the mobile app configuration to prevent potential runtime errors.
- Updated TypeScript configuration to enhance module resolution and improve code organization with clearer path definitions.

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

* update lint

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

* refactor: update TypeScript types and improve component props

- Added `skipLibCheck` to TypeScript configuration for faster builds.
- Updated prop types in various components to allow for null values in refs, enhancing type safety.
- Refactored several components to ensure better type compatibility and maintainability.

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

* refactor(mobile): improve layout handling in NavigationHeader component

- Added console logs for debugging right and left widths.
- Adjusted layout structure to ensure proper width handling for header elements.
- Updated loading indicator positioning and visibility logic.

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

* refactor(mobile): update Pager and QRCode components to use forwardRef

- Refactored Pager and QRCode components to directly export as functional components with forwardRef.
- Updated type definitions to improve ref handling and ensure better type safety.
- Simplified component structure for improved readability and maintainability.

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

* refactor(ui): enhance FAB components with functional component structure and improved type definitions

- Converted FABBase and FABPortable to functional components using FC type for better type safety.
- Updated props to include optional ref handling, enhancing flexibility in usage.
- Simplified component structure for improved readability and maintainability.

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

* chore(deps): update react-native-ios-utilities patch and refine TypeScript configuration

- Updated the patch for react-native-ios-utilities in pnpm-lock.yaml to reflect a new hash.
- Enhanced TypeScript configuration in tsconfig.json by adding exclusion for node_modules and formatting paths for better readability.
- Cleaned up the react-native-ios-utilities.patch by removing unused exports from the index file.

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

* update

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 16:30:30 +08:00
Innei 1c588f39ac refactor: replace some legacy css color variables
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 23:12:25 +08:00
0-o0 4456fcf9f9 feat(ssr): enhance login and signup experience (#3510) 2025-04-17 20:58:37 +08:00
DIYgod 319216e4ce feat: one time token (#3482)
* feat: unified auth for desktop and ssr

* feat: use one time token

* feat: remove better auth patch

* feat(desktop): handle session changes

* feat(desktop): recover ck auth for compatibility
2025-04-15 20:27:20 +08:00
DIYgod 1b9d010b79 feat(ssr): env.ssr 2025-04-15 12:54:43 +08:00
Stephen Zhou 8ba80e546f refactor(ssr): remove unused locales (#3384)
* refactor: remove unused locales

* better default

* Revert "better default"

This reverts commit 272ca1501e80cc982e39abc1c4279657eb3a0b6b.
2025-04-01 20:04:18 +08:00
DIYgod ddd3d39204 feat: add recaptcha to sign in and forget password 2025-03-07 21:29:08 +08:00
Innei 2314b996d4 refactor: update auth import paths to use @client/lib/auth
This commit updates import paths for auth-related functions across multiple files, changing them from `~/lib/auth` to `@client/lib/auth`. The changes ensure consistent and correct import paths for authentication functions in the client application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 19:34:11 +08:00
Innei d20a06dad3 refactor: extract all env from shared
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 19:20:21 +08:00
Innei 3e84f73aec chore: extract ssr as single app
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:01:18 +08:00