Commit Graph
110 Commits
Author SHA1 Message Date
DIYgod 592769758d chore: format 2025-06-23 18:36:50 +08:00
DIYgod c474c9c805 Merge pull request #3984 from RSSNext/sync/main-to-dev-20250623
Sync main branch to dev branch
2025-06-23 17:51:32 +08:00
Innei 3d6c3e0578 feat: redeisgn og
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 14:23:39 +08:00
Innei fb97d8857e chore(ssr): update global constants and clean up imports
- Changed APP_NAME constant from package.json to a hardcoded value "Folo".
- Removed unused import of Document from linkedom in seo.ts for cleaner code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 13:47:37 +08:00
Innei 6d76d6b558 chore: update dependencies and improve type safety
- Updated various package dependencies across the project, including @sentry/react, @tanstack/react-query, and others to their latest versions for improved performance and security.
- Enhanced type safety in several components by refining type definitions, particularly in motion-related imports.
- Adjusted transition configurations to utilize new presets for smoother animations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 23:32:42 +08:00
Innei 9f0e7522d9 feat: update vite-plugin-route-builder and related configurations
- Renamed the plugin from '@follow/vite-plugin-route-builder' to '@follow-app/vite-plugin-route-builder' for better clarity.
- Added support for synchronous loading of components with the new '.sync.tsx' file extension.
- Enhanced the route generation logic to accommodate custom segment group ordering.
- Updated package dependencies and configurations, including the addition of test scripts and improved documentation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 21:52:26 +08:00
Stephen Zhou 018f371654 chore: ignore generated-routes.ts in eslint 2025-06-20 09:27:34 +08:00
Stephen Zhou ab9dd3c116 chore: ignore generated-routes.ts in prettier 2025-06-20 09:25:40 +08:00
Stephen Zhou 20858f6614 chore: do not ignore generated-routes.ts to pass type check 2025-06-20 08:32:40 +08:00
Innei e65a5f83a1 fix: update isDev environment variable to use NODE_ENV
- Changed the isDev constant to dynamically set its value based on the NODE_ENV environment variable, improving flexibility for development and production environments.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 02:02:03 +08:00
Innei f372b2f403 refactor: migrate from tsup to tsdown for build process
- Replaced `tsup` with `tsdown` in multiple package configurations to streamline the build process.
- Updated build scripts in `package.json` files across various applications and packages.
- Introduced new `tsdown.config.ts` files for configuration in the `ssr` and `readability` packages.
- Removed obsolete `tsup.config.ts` files to clean up the project structure.

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 01:59:55 +08:00
Innei 1d83313872 feat: add vite-plugin-route-builder for dynamic route generation
- Introduced a new plugin to generate React Router routes from a file system-based structure, enhancing routing capabilities similar to Next.js.
- Updated various configurations and components to integrate the new plugin, including automatic route generation during build time.
- Refactored existing router implementations to utilize generated routes, improving maintainability and performance.

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 01:41:53 +08:00
Innei fd7f57e3cd fix: update header shadow style and clean up user query logic
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 14:33:20 +08:00
Innei bd4a921cdc feat(share): group un-categorized subscription
- Introduced a constant `UN_CATEGORIZED` to manage uncategorized subscriptions more effectively.
- Updated the logic to assign uncategorized subscriptions to the `UN_CATEGORIZED` category.
- Implemented sorting for uncategorized subscriptions to display them last, improving the organization of subscription groups.

These changes aim to streamline the categorization process and enhance the user experience when viewing subscriptions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 21:36:31 +08:00
Innei 4953caf5de feat(header): re-design share header
- Introduced enhanced scroll state management to adjust header elevation and compactness based on scroll position.
- Updated the layout of the header and container components for better responsiveness and visual appeal.
- Improved logo and social media links sections with animations and transitions for a more dynamic user experience.

These changes aim to provide a more intuitive and visually appealing header that adapts to user interactions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 20:53:12 +08:00
Innei 072f503ba6 refactor(feed): optimize feed display and error handling
- Introduced a constant `SIZE` to manage the number of feeds displayed, improving maintainability.
- Updated the feed count display to use `list.data.feedCount` for accuracy.
- Enhanced error handling in `callNotFound` to specifically manage `FetchError` instances, improving robustness.

These changes aim to streamline feed management and enhance error reporting in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 20:44:37 +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
0-o0 3578188e02 fix(ssr):can't follow system theme switch issuse (#3917) 2025-06-13 22:59:48 +08:00
Innei cf72753b59 feta: redesign image previewer, fixed #3884
- Removed unused response header configuration from Vite render config.
- Simplified the media preview component structure by removing unnecessary state and props.
- Enhanced the image loading experience with a new DOMImageViewer for better zoom functionality.
- Updated FeedIcon component to utilize the replaceImgUrlIfNeed utility for image URLs.
- Adjusted styles and properties for improved UI consistency and performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 21:52:54 +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 52dd557d3d refactor(desktop): remove old database and service (#3911) 2025-06-12 15:58:47 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
Innei a92bdb89b3 feat(user-profile): integrate user lists and subscriptions in profile page
- Added functionality to fetch and display user-created lists alongside subscriptions.
- Introduced new components for rendering lists and subscriptions with loading states.
- Updated metadata fetching to include lists data for user profiles.
- Refactored user subscriptions query for better data handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-09 21:20:22 +08:00
Innei b833864c9c fix(meta-handler): update URL handling in injectMetaHandler to include search parameters
- Refactored the URL parsing logic to create a new URL object for better handling of pathname and search parameters.
- Added searchParams to the handler's parameters for improved data accessibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-08 11:56:39 +08:00
Innei 5a53e6f46e feat: replace number formatting with formatNumber utility across discover and feed components for improved readability
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-06 14:15:07 +08:00
Innei 1806c12760 feat(ssr): redesign share page
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 00:53:57 +08:00
Innei 6981be9480 feat(ssr): implement custom 404 page and enhance error handling
- Replaced the existing NotFound component with a new 404 page featuring animations and improved user experience.
- Updated routing to utilize the new 404 component for better error handling.
- Introduced a NotFoundError class and a callNotFound function to streamline error management across the application.
- Refactored metadata fetching to handle not found scenarios gracefully.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 00:18:16 +08:00
Innei 3a5c66876f feat: introduce global constants and enhance metadata handling
- Added a new module to define global constants, including the application name.
- Updated the SSR index to initialize global constants on server start.
- Enhanced metadata handling in user metadata to include dynamic descriptions based on user subscriptions.
- Improved the Open Graph and hydration metadata structure for better SEO and user experience.
- Refactored user subscriptions query to group subscriptions by category for better organization.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-04 23:12:45 +08:00
DIYgod 47e07a4cc3 feat(desktop): copy and paste login token 2025-06-03 20:57:23 +08:00
DIYgod bb029e7144 feat(ssr): fetch more entries by feed api 2025-06-02 10:17:38 +08:00
Innei e656cfd3a2 chore: update dependencies
- Changed the ESLint rule for "package-json-extend/ensure-package-version" from "warn" to "error" to enforce stricter package version checks.
- Updated various dependencies across multiple package.json files, including:
  - Upgraded @eslint/compat to version 1.2.9
  - Updated @types/node, @types/react, and @types/react-dom to their latest versions.
  - Bumped eslint to version 9.27.0 and lint-staged to version 16.1.0.
  - Updated several other packages such as turbo, tsx, and various Radix UI components to their latest versions.
- Ensured compatibility with the latest versions of dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-28 22:16:06 +08:00
DIYgod 4ba047ebc9 feat(ssr): use hcaptcha 2025-05-25 12:37:58 +08:00
Innei a165c1a5e5 feat: update social media icon styles and enhance hotkey configuration
- Updated icon class names for social media links to include color styles for better visibility in light and dark modes.
- Added a new hotkey configuration option in the Vite setup to improve user experience with customizable shortcuts.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-25 00:53:16 +08:00
Innei 4ae8bf21e8 chore: add Prettify helper
- Added APP_NAME constant with value "Folo" to global declarations in both desktop and SSR environments.
- Updated type definitions to use Prettify for improved type handling in context menu and component definitions.
- Enhanced the useTitle hook to incorporate APP_NAME in the title template for better context in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-21 16:52:39 +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
Stephen Zhou a271f2de1e chore: update codeInspectorPlugin hotKeys 2025-05-16 09:13:52 +08:00
Innei e69d120bd9 feat(legal): integrate privacy policy and terms of service into the application, #3577
- Added a new internal package for legal documents, including privacy policy and terms of service.
- Implemented a build script to convert markdown files to HTML for easy access.
- Updated the mobile and desktop applications to link to the new legal documents.
- Enhanced the login modal to include links to the privacy policy and terms of service.
- Updated routing in the SSR application to serve the legal documents.

These changes ensure compliance with legal requirements and improve user access to important information.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-15 23:58:07 +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
Innei 2f492c8245 style(desktop): update FeedIcon component styling and enhance MagneticHoverEffect interactions
Signed-off-by: Innei <tukon479@gmail.com>
2025-05-08 16:15:25 +08:00
DIYgod 7079022e2f fix(ssr): styles 2025-05-08 12:24:56 +08:00
DIYgod 21760f82b5 feat(ssr): optimize login 2025-05-08 11:29:08 +08:00
Innei 37e43ee32a refactor(navigation): improve route parameter handling and introduce isPreviewFeed hook
- Updated `useNavigateEntry` to fix a typo in variable name.
- Enhanced `parseRouteParams` to accept search parameters and removed the isPreview logic from it.
- Introduced `useIsPreviewFeed` hook to encapsulate preview logic based on route parameters.
- Updated components to utilize the new `useIsPreviewFeed` hook for cleaner code and better separation of concerns.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 21:55:19 +08:00
DIYgod 9a90b2cb4d feat(ssr): optimize ssr header 2025-05-07 21:22:49 +08:00
Innei 7c2b845452 fix(react19): integrate code-inspector-plugin and remove click-to-react-component references across desktop and ssr applications
Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 20:01:38 +08:00
DIYgod aca17a5fc0 feat(ssr): mobile styles 2025-05-07 18:47:48 +08:00
DIYgod 80d4d36aa7 feat(ssr): optimize user page 2025-05-07 17:54:10 +08:00
DIYgod 6315943594 feat(ssr): optimize list styles 2025-05-07 17:34:34 +08:00
DIYgod df1ed5ba92 feat(ssr): optimize entries styles 2025-05-07 17:03:12 +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