Commit Graph
722 Commits
Author SHA1 Message Date
Stephen Zhou abbc8ca1c9 fix: collection is not up to date (#4009) 2025-06-26 09:33:53 +08:00
Innei 22e988caa2 Merge branch 'dev' into sync/main-to-dev-20250623 2025-06-23 21:20:44 +08:00
Stephen Zhou 82952b0595 fix: can not play tts, close #3877 2025-06-23 19:35:52 +08:00
Innei c7b7b71e58 cleanup
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 19:34:06 +08:00
Innei f8dc0aa5e8 refactor(desktop): remove debug logging from handleClick in EntryItemWrapper
- Commented out console logging in the handleClick function to clean up the code and reduce unnecessary output during click events.
- This change maintains the functionality while improving the overall readability of the code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 19:30:10 +08:00
Stephen Zhou f95124c62f chore: downgrade electron-forge 2025-06-23 19:17:02 +08:00
Innei 8102400404 feat(desktop): add debug logging in EntryItemWrapper for click handling
- Introduced console logging in the handleClick function to track navigation decisions and entry details.
- This addition aids in debugging navigation logic by providing insights into the entryId and feedId during click events.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 19:15:37 +08:00
Innei 8ed0a6897f refactor(desktop): rename and restructure navigation functions for clarity
- Renamed `navigateEntry` to `getNavigateEntryPath` for better clarity on its purpose.
- Introduced a memoized `navigationPath` in `EntryItemWrapper` to optimize path generation.
- Updated the navigation logic to utilize the new function, improving code organization and readability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 18:51:27 +08:00
DIYgod 592769758d chore: format 2025-06-23 18:36:50 +08:00
Innei 36f05b6e5e Merge pull request #3978 from cscnk52/link
fix(link): fix link start with '.' don't handle proper
2025-06-23 14:25:52 +08:00
Cason Kervis a76eb27cc7 fix: simplify 2025-06-22 22:08:44 +08:00
Cason Kervis de8eac85a0 fix(link): fix link start with '.' don't handle proper 2025-06-22 21:23:50 +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
Innei 73f801108b feat: re-design toast style
- Updated the Toaster component to improve styling and functionality, including new toast options and class names for better customization.
- Introduced a custom transformer for the 'tw' function to compress template strings, optimizing the handling of template literals.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 20:51:22 +08:00
Innei 447ad32d9f fix: show main window when hide to active
- Updated the onActivate method in LifecycleManager to ensure the main window is shown and focused when activated, improving user experience.
- Added import for LifecycleManager in bootstrap.ts to support the new functionality.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 15:13:15 +08:00
Stephen Zhou e54cb16c62 chore: add OPFS Explorer extension 2025-06-20 15:09:18 +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 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 b6ec2a09cf feat: implement application lifecycle and window management
Signed-off-by: Innei <i@innei.in>
2025-06-19 23:46:36 +08:00
Innei 61d5611ed5 fix: adjust padding in Wrapper component top inset in windows app
Signed-off-by: Innei <i@innei.in>
2025-06-19 23:03:29 +08:00
Innei 27021df68a refactor: Introduce WindowManager for centralized window management
- Replaced direct window management functions with a WindowManager class to encapsulate window creation, retrieval, and destruction.
- Updated router, tray, menu, updater, and other modules to utilize the new WindowManager methods.
- Improved window state handling and ensured consistent window behavior across different platforms.
- Added a backup of the previous window management implementation for reference.

Signed-off-by: Innei <i@innei.in>
2025-06-19 22:57:23 +08:00
Stephen Zhou 2c04919bda fix: can not follow list in preview, close #3895 2025-06-19 19:18:07 +08:00
Innei 2ea072524c feat: enhance media preview with drag-to-close functionality and animation
- Implement drag-to-close feature for the media preview modal, allowing users to dismiss the modal by dragging.
- Introduce dynamic scaling and opacity adjustments during drag interactions.
- Update modal animations using Framer Motion for smoother transitions.
- Refactor child component handling to support zoom state changes and improve overall structure.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 18:21:50 +08:00
Innei 8a65dda8b9 refactor: <Media /> with improved image source handling and error management
- Refactor image source selection to prioritize proxy and origin URLs based on user preferences.
- Implement error handling to retry loading from alternative sources upon failure.
- Add debug information for successful image loads and errors in development mode.
- Optimize state management for loading and error states.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 17:30:36 +08:00
Innei 079b0fed39 fix: adjust shadow style for header elevation in SubviewLayoutInner
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 14:14:00 +08:00
Stephen Zhou 8f66d91ce1 feat: changeCategoryView for mobile, better local data update 2025-06-18 16:46:27 +08:00
Stephen Zhou f108a45601 feat: delete or rename category for mobile, improve local data update, close #3945 2025-06-18 16:14:52 +08:00
Cason Kervis e3deb2ec10 fix(dayjs): fix relative time not follow language change (#3932)
* fix(dayjs): fix relative time not follow when language change

* fix: update world in grid item template

* fix: change dayjs locale to settings change

* fix: apply suggest review suggestion
2025-06-18 15:51:27 +08:00
Konv Suu 1de43e1595 fix(desktop): enhance scroll behavior when navigating between Discover and Recommendation pages (#3948) 2025-06-18 15:51:00 +08:00
Innei 472ee72b52 fix(parse-html): add TypeScript ignore for math node handling
- Added a TypeScript ignore comment for the `math` node in the `parseHtml` function to suppress type errors. This change ensures that the handling of math nodes does not interfere with TypeScript's type checking, allowing for smoother integration and functionality.

These changes aim to improve the robustness of the HTML parsing logic while maintaining type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-18 14:11:47 +08:00
Innei 7e3e1c73c6 feat(avatar-upload): add preset cropping options in AvatarUploadModal
- Introduced two new cropping functions: `handleFullImageCrop` and `handleCenterCrop` to allow users to easily crop their avatars to full image size or center-focused size.
- Updated the modal layout to include buttons for these new cropping options, enhancing user experience and providing more flexibility in avatar customization.

These changes aim to improve the avatar upload process by offering users convenient cropping presets.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-18 14:03:17 +08:00
Innei b72ab7dffd fix(avatar-upload): cropping functionality keep aspect
- Added a helper function `constrainCropData` to ensure crop dimensions remain within image boundaries and maintain a 1:1 aspect ratio.
- Updated image loading and cropping logic to utilize the new helper function for better validation of crop data.
- Improved mouse event handling for cropping to ensure accurate resizing and positioning of the crop area.
- Adjusted crop style calculations to account for the actual display size of the image within its container.

These changes aim to provide a more robust and user-friendly experience when uploading and cropping avatars.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-18 13:47:56 +08:00
lawvs 71dc626996 fix: simplify NoContent component usage in EntryContent 2025-06-18 13:31:22 +08:00
Innei 8130bbceb3 feat(avatar-upload): implement avatar upload modal and related functionality
- Introduced `AvatarUploadModal` component for user-friendly avatar image uploads, including cropping and validation for file type and size.
- Added `uploadAvatarBlob` function to handle the upload process to the server.
- Updated `ProfileSettingForm` to integrate the avatar upload modal, allowing users to upload and preview their avatars seamlessly.
- Enhanced localization with new strings for avatar upload instructions and error messages.

These changes aim to improve the user experience by providing a straightforward method for uploading and managing profile images.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 23:14:54 +08:00
Stephen Zhou e0f03e1e7b fix(desktop): update sqlocal, better compatibility, use opfs sah 2025-06-17 16:00:17 +08:00
Innei 704c11d5c6 feat(discover): add SimpleDiscoverModal for enhanced feed discovery
resolves FOL-1537

- Introduced `SimpleDiscoverModal` component to facilitate searching and adding feeds via keywords or URLs.
- Implemented form validation using Zod and integrated with the API for feed discovery.
- Updated `SubscriptionList` to show the modal when adding feeds, improving user experience.
- Enhanced localization with new strings for the discover functionality.

These changes aim to streamline the process of discovering and adding feeds, providing users with a more intuitive interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 01:31:12 +08:00
Cason Kervis 67180d3bf3 fix(marquee): improved antimate effect (#3937)
* feat(marquee): add space between head and tail, stop when one cycle complete

* feat(marquee): support corner-player
2025-06-17 00:59:31 +08:00
Innei ed752c51e7 refactor(ui): extract shared ui components
- Added `HeaderActionButton` and `HeaderActionGroup` components for improved action handling in the UI.
- Introduced `Media`, `MediaContainerWidthProvider`, and related context components to manage media dimensions and rendering.
- Enhanced markdown rendering components (`BlockImage`, `InlineImage`, `MarkdownLink`) to utilize the new media structure, improving image handling and layout.
- Updated various components to import from the new media structure, ensuring consistency and better organization.

These changes aim to enhance the media handling capabilities and improve the overall user experience in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:55:53 +08:00
Innei 423f1298c3 refactor(entry-content): handle entry actions, fixed #3841
- Introduced `ApplyEntryActions` component to manage entry actions more effectively.
- Updated `NoContent` component to utilize `useShowSourceContent` for better state management.
- Refactored `EntryContent` to remove unnecessary readability and source content effects, enhancing performance.
- Enhanced `RuleCardToolbar` to include confirmation dialog for rule deletion, improving user experience and preventing accidental deletions.

These changes aim to improve the modularity and usability of the entry content features across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:38:42 +08:00
Innei 7b3ec02d5a feat(ui): enhance user interface with new components and layout improvements
- Redesigned the Discover, RSSHub, and Actions pages for a more modern and user-friendly experience.
- Introduced `HeaderActionButton` and `HeaderActionGroup` components to streamline action button layouts.
- Updated the `ActionSetting` and `RSSHub` components to utilize the new button components, improving functionality and visual consistency.
- Enhanced the `WhenSection` component with improved spacing and label styling for better readability.

These changes aim to elevate the overall user experience and maintain a cohesive design across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:09:05 +08:00
Innei f9aca60d6f refactor(ui): re-design rsshub page ui
- Improved the layout and styling of the ActionSetting, Recommendations, UserProfileModal, Trending, and RSSHub components for better visual consistency and responsiveness.
- Adjusted class names to center elements and enhance spacing, ensuring a more cohesive user experience.
- Updated the UserAvatar component to display either the user's name or handle when the name is not available.
- Refactored the discover page to include a more structured header and additional content sections, improving overall navigation and accessibility.

These changes aim to enhance the user interface and provide a more intuitive experience across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 23:22:56 +08:00
Innei 5ddf4b8b18 refactor(action): enhance ActionSetting layout and styling
- Updated the layout of the ActionSetting component for improved responsiveness and visual clarity.
- Replaced the animated placeholder with a simpler static design and adjusted icon sizes for better alignment.
- Enhanced the ActionButtonGroup with a more structured layout, including dynamic labels and improved spacing.
- Refined the overall user interface to provide a more cohesive experience when managing action rules.

This refactor aims to improve usability and maintainability of the action settings interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:19:20 +08:00
Innei 671750b21a fix(action): action button group with dynamic labels and disabled states
- Updated the ActionButtonGroup to conditionally render button labels based on the presence of actions.
- Added disabled states for the export and copy to clipboard options when no actions are available.
- Improved user interface by ensuring appropriate icons and labels are displayed for share and import actions.

This enhancement provides clearer feedback to users regarding available actions and improves overall usability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:03:52 +08:00
Innei c9dc6426f8 feat(action): add empty state placeholder for action rules
- Introduced an `EmptyActionPlaceholder` component to display a message when no action rules are present.
- Updated `ActionSetting` to conditionally render the placeholder or the list of action rules based on their availability.
- Enhanced the user interface with animations for the empty state and a prompt to create new actions.

This addition improves user experience by guiding users to start creating action rules when none exist.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:02:01 +08:00
Innei 394d00f1a2 feat: support share actions and import from clipboard
- Added a new utility function `copyToClipboard` to handle clipboard operations with error handling.
- Refactored existing clipboard interactions across various components and hooks to utilize the new utility function.
- Introduced import/export functionality for action rules, allowing users to copy rules to clipboard and import from clipboard.
- Enhanced user feedback with toast notifications for clipboard actions.

This update improves code reusability and user experience when interacting with the clipboard.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 17:55:15 +08:00
Innei 1ace5eaaa3 refactor(action): replace ActionCard with RuleCard and restructure action settings
- Removed ActionCard component and its associated imports.
- Introduced RuleCard component to handle action rules.
- Updated ActionSetting to utilize RuleCard instead of ActionCard.
- Added new sections for handling conditions and actions (WhenSection, ThenSection).
- Introduced constants for available actions and their configurations.
- Removed TargetActionList component as part of the refactor.

This refactor enhances the modularity and maintainability of the action settings UI.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 16:52:34 +08:00
Stephen Zhou 53957468c9 refactor(desktop): use summary from store package (#3944) 2025-06-16 16:14:58 +08:00