Commit Graph

211 Commits

Author SHA1 Message Date
Stephen Zhou 2bbe51221d
fix: try credentials: "omit" 2025-06-26 21:03:23 +08:00
Stephen Zhou 8836522a01
fix: clear collection form entries fetch 2025-06-26 10:15:48 +08:00
Stephen Zhou abbc8ca1c9
fix: collection is not up to date (#4009) 2025-06-26 09:33:53 +08:00
DIYgod 4baf1fa9f5
chore: fix inconsistent versions of expo-sqlite 2025-06-23 17:48:54 +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 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
Stephen Zhou b3dfeeee54
refactor: restrict value in action config type 2025-06-20 09:39:01 +08:00
Stephen Zhou eb3f663a67
refactor: improve action config type safe 2025-06-20 09:21:21 +08:00
Stephen Zhou 1e13fdad23
chore: update hono type 2025-06-20 08:31:00 +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
pseudoyu 710622a907
feat: add filter video length action (#3960) 2025-06-19 23:54:16 +08:00
Stephen Zhou f3487acd50
fix: entries stream 401 (#3959) 2025-06-19 21:26:44 +08:00
Stephen Zhou 2c04919bda
fix: can not follow list in preview, close #3895 2025-06-19 19:18:07 +08:00
Stephen Zhou 15b8d79567
fix: local data update for batchUpdateSubscription 2025-06-19 17:39:00 +08:00
Stephen Zhou d71b2e839a
fix: use batch api for change category view 2025-06-19 17:13:52 +08:00
Stephen Zhou 8a4edf9cec
fix: get folder feed ids 2025-06-19 17:07:44 +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
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
Stephen Zhou 7a74ebe895
fix(desktop): excludePrivate not working for local change 2025-06-18 14:54:51 +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 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
Stephen Zhou 5ff76b5fbb
fix(desktop): the expanded state is reset 2025-06-17 09:53:26 +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 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 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 95b23c3be7
refactor: move image sync service to mobile, bring hydration back 2025-06-16 16:25:43 +08:00
Stephen Zhou 53957468c9
refactor(desktop): use summary from store package (#3944) 2025-06-16 16:14:58 +08:00
Stephen Zhou f161297d52
fix: sqlocal multi tab support (#3943) 2025-06-16 11:36:21 +08:00
Stephen Zhou 146d9b4b81
fix: fallback to OPFS_SAH when SharedArrayBuffer isn't available (#3924) 2025-06-14 16:43:11 +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 1ac1d464cf
fix: mobile subview overflow, fixed #3886
- Updated the renderItem and renderValue props in the Recommendations and Trending components to improve clarity and consistency in rendering.
- Adjusted layout structure in the Trending component for better responsiveness and alignment.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 23:18:27 +08:00
Innei b6bccdf820
refactor: update layout structure in SubviewLayout and enhance renderValue type in ResponsiveSelect
- Modified SubviewLayout to use a div wrapper for improved layout management and added overflow handling.
- Updated the renderValue prop type in ResponsiveSelect to accept a ResponsiveSelectItem instead of a string for better type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 23:18:27 +08:00
Stephen Zhou e386a72b8a
fix: all timestamp_ms for database 2025-06-13 15:14:01 +08:00
Stephen Zhou 711b0f14ac
fix: store time as timestamp_ms 2025-06-13 12:39:18 +08:00
Stephen Zhou c6fb520975
fix(desktop): more reading history 2025-06-13 11:37:35 +08:00
Stephen Zhou 24ae0655ab
fix: sort entries by publishedAt and insertedAt 2025-06-13 11:31:04 +08:00
Stephen Zhou 182adb3690
fix: reset service 2025-06-13 10:53:40 +08:00
Innei b69ead18e5
fix: update schema
- Removed the `customUpdateUser` endpoint from the auth configuration.
- Updated user-related columns in the database schema from `PgText` to `PgVarchar` with specified lengths for better data integrity and performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 23:07:41 +08:00
Stephen Zhou 52dd557d3d
refactor(desktop): remove old database and service (#3911) 2025-06-12 15:58:47 +08:00
Stephen Zhou be45c9b8f5
chore: export db name 2025-06-12 15:36:22 +08:00
Stephen Zhou f928707264
feat(desktop): export sqlite database 2025-06-12 15:33:28 +08:00
Stephen Zhou 03cfbbcf94
chore: still use sqlite in db for electron 2025-06-12 15:17:34 +08:00
Stephen Zhou eb24166279
chore: use localStorage for dev database 2025-06-12 15:10:18 +08:00
Stephen Zhou b9936b87d6
fix: bring back changes in create and update list 2025-06-12 14:03:47 +08:00