- 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>
- 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>
- 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>
* 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
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>