Commit Graph
204 Commits
Author SHA1 Message Date
Innei 66591e452b feat(mobile): add horizontal padding for pic and video layout
- Added contentContainerStyle to EntryListContentPicture and EntryListContentVideo for consistent padding.
- Updated TimelineSelectorList to merge additional contentContainerStyle and scrollIndicatorInsets from props.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 14:24:01 +08:00
lawvs e25451aa2b fix: prevent image rendering error in ThumbnailImage 2025-06-17 22:47:44 +08:00
lawvs 4ffc026fb9 refactor: improve ThumbnailImage layout 2025-06-15 01:50:06 +08:00
lawvs cb4ed60142 fix: adjust layout for ThumbnailImage 2025-06-12 14:15:35 +08:00
Whitewater 547a4fdc96 feat(mobile): lightbox (#3882)
* feat(mobile): lightbox

* chore: auto-fix linting and formatting issues

* feat: enhance back handler to close lightbox when active

* feat: integrate Lightbox component and move SafeAreaProvider to RootProviders

* refactor: update renderItem function to use destructured props

* feat: add Android manifest plugin to enable large heap size

* fix: add rounded corners to AspectRatioImage

* feat: set priority to high for image loading in ImageItem component

* chore: remove unused zIndex from ImageViewing

* feat: update ImageDefaultHeader and LightboxFooter for improved layout

* chore: simplify renderItem function signature in PagerList and Subscriptions components

* refactor: update galeria

* chore: tweak component

* feat: integrate lightbox functionality for media previews
2025-06-12 13:52:07 +08:00
Innei b89c0270d2 feat(ai-summary): implement selectable text sheet for AI summary copying
- Added a new SelectableTextSheet component to allow users to copy AI summary text.
- Integrated the new component into the AISummary component, enabling long-press functionality for text selection.
- Updated EntryAISummary to pass the raw summary for copying.
- Enhanced styles and layout for better user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 20:06:43 +08:00
Innei 5a63521043 style(entry-list): update AspectRatioImage component with dynamic sizing and background color
- Modified the AspectRatioImage component to include dynamic width and height styles.
- Added a red background color to the container for improved visibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 19:12:35 +08:00
Stephen Zhou 0c5e7f208c fix(mobile): render entry list for every view in page list 2025-06-11 17:14:38 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
lawvs 6dcf03894a fix: SquareImage not showing 2025-06-09 16:57:09 +08:00
lawvs d7e270377b feat: add loading state to entry thumbnail 2025-06-09 02:22:27 +08:00
lawvs 0f68ecadba fix: ensure pager list is always visible on Android to prevent blank screen 2025-06-07 03:39:57 +08:00
Innei 83697ce3fe fix(entry-list): ThumbnailImage border radius
- Added conditional class handling for ThumbnailImage to manage height based on thumbnail ratio.
- Simplified AspectRatioImage structure by removing unnecessary nested View and consolidating Image properties.
- Enhanced readability and maintainability of the code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-07 00:36:14 +08:00
DIYgod 9c3457a29e feat(mobile): rsshub routes sorting 2025-06-05 13:22:36 +08:00
Stephen Zhou 939562d678 refactor: force selector for useEntry (#3859) 2025-06-03 17:33:31 +08:00
lawvs 9d3a9a944b fix: tweak assign video media model in ThumbnailImage component 2025-05-30 12:23:48 +08:00
lawvs 91306e3158 feat: implement auto-scroll to entry after pull-up navigation 2025-05-29 12:16:44 +08:00
lawvs 740485cfb1 fix: adjust ThumbnailImage component for better layout 2025-05-27 12:14:50 +08:00
Stephen Zhou ce7c421e0d refactor(mobile): enable package exports (#3822) 2025-05-27 10:54:49 +08:00
Stephen Zhou 0a2a099d7b refactor(mobile): sperate store package (#3819) 2025-05-26 22:54:15 +08:00
Stephen Zhou fb40cbea93 refactor(mobile): separate database package (#3809) 2025-05-26 14:48:27 +08:00
Whitewater 2573fa7428 feat: add video support in EntryNormalItem (#3798)
* feat: add video support and enhance media handling in EntryNormalItem

* chore: correct reference name for video view in VideoPlayer component

* fix: remove size class
2025-05-24 19:00:15 +08:00
Whitewater 7f984ecf1c feat: implement pull up to next functionality (#3760)
* feat: implement pull-up-to-next functionality in EntryDetailScreen

* feat: add onScroll callback support in SafeNavigationScrollView

* refactor: utilize EntryExtraData

* feat: refactor Entry components to utilize EntryExtraData type

* refactor: replace useSharedValue with useRef and useState for pull-up functionality

* feat: enhance pull-up-to-next functionality with enabled prop

* fix: types
2025-05-20 13:05:06 +08:00
DIYgod 2234b4b1a6 feat: display video duration 2025-05-18 14:00:14 +08:00
lawvs 4119b9aece fix(mobile): add fallback media display for video entries 2025-05-14 15:45:05 +08:00
lawvs 4213459ae0 feat: add feed icon display for audio entries without images 2025-05-13 01:48:28 +08:00
lawvs b33c6e9ee9 refactor: extract ThumbnailImage component for better readability and maintainability 2025-05-13 01:36:23 +08:00
lawvs c3067b9952 fix: add experimentalBlurMethod prop to ThemedBlurView in EntryNormalItem for better Android support 2025-05-12 19:41:32 +08:00
Innei 5a9af9fdce fix(rn): clicking on the avatar under the category will trigger two jump logics, fixed #3415
Signed-off-by: Innei <tukon479@gmail.com>
2025-05-09 14:41:14 +08:00
Stephen Zhou 808d33f037 fix(mobile): no background fro video item (align with picture item), increase space 2025-05-08 09:54:36 +08:00
Stephen Zhou 9097a67fcf fix(mobile): rounded video item 2025-05-07 22:37:57 +08:00
Stephen Zhou d1d1fb4a75 fix(mobile): video style in social media, close #3665 2025-05-07 18:00:09 +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
Stephen Zhou 948f76a02c feat: mark above / below as read (#3570) 2025-04-27 09:16:24 +00:00
Stephen Zhou a95de490ec feat: translation mode (#3568) 2025-04-25 20:38:44 +08:00
Stephen Zhou eb3cb7db28 feat(mobile): open bilibili dynamic in app, close #3211 2025-04-23 12:19:21 +08:00
Stephen Zhou e0b2611e39 feat(mobile): video support (#3512) 2025-04-23 03:58:50 +00:00
Innei fcd21b2a53 fix(mobile): standardize separator styles across components
- Updated separator styles in various components to use a consistent class name for opacity.
- Removed dark mode specific classes to simplify styling.
- Adjusted padding and insets in the Recommendations component for better layout.

These changes enhance visual consistency and maintainability across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 13:10:28 +08:00
DIYgod 61c099b527 feat(mobile): openLinksInExternalApp setting 2025-04-18 12:04:40 +08:00
Innei 735fe90a10 chore: migrate from framer-motion to motion library
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-18 00:12:20 +08:00
Innei 8e9b92babc refactor(mobile): replace ItemPressable with NativePressable in multiple components
- Updated RelativeDateTime, EntryNormalItem, and CategoryGrouped components to use NativePressable for improved touch handling.
- Introduced NativePressable and IosItemPressable components to streamline pressable functionality across iOS and native views.
- Enhanced code organization by separating NativePressable types and implementations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:35:10 +08:00
Innei f4999279a1 refactor(mobile): remove horizontal scrolling checks from various components
- Updated multiple components to eliminate unnecessary horizontal scrolling checks before executing actions.
- Enhanced the ErrorBoundary component to apply a text style to error messages.
- Improved code readability and maintainability by streamlining the logic in EntryNormalItem, EntrySocialItem, and other related components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:22:01 +08:00
Stephen Zhou d09f5a6810 fix(mobile): media image url list for video 2025-04-17 11:11:41 +08:00
Stephen Zhou bcf752bf68 fix: use preview image url for video item, close #3485 2025-04-17 11:06:45 +08:00
Stephen Zhou cf6d7567bc feat: server side readability (#3498) 2025-04-17 10:41:15 +08:00
Innei 70ef539788 feat(mobile): refactor ItemPressable usage and styles
- Replaced TouchableOpacity with ItemPressable in multiple components for improved interaction handling.
- Introduced a new UnStyled option in ItemPressableStyle to allow for customizable styling.
- Updated ItemPressable implementation in RelativeDateTime, EntryNormalItem, and CategoryGrouped components to enhance touch feedback and visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 00:39:00 +08:00
Innei dbf6954da0 feat(mobile): trending screen
- Updated imports for EntryDetailScreen and FeedScreen to reflect new file structure.
- Introduced OnboardingScreen and PlayerScreen components to improve user onboarding and media playback experience.
- Added PhUsersBold icon component for enhanced UI consistency.
- Adjusted animation timing in ItemPressableModule for better touch feedback.
- Updated sitemap to reflect new screen paths.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 21:58:21 +08:00
Innei 05a22d3f30 refactor(ios): replace native PagerView
- Added `cssInterop` for styling in `PagerView`.
- Updated `onScrollEnd` to pass the current index in `PagerView`.
- Introduced `PagerList` component for better feed view management.
- Refactored imports to ensure consistency across modules.
- Enhanced type definitions for better TypeScript support.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 19:49:22 +08:00
Innei 57dad99913 refactor(ios): use ItemPressable native view to handle gesture
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 19:23:16 +08:00
Innei b48a31431e feat(entry-list): enhance EntryListFooter with dynamic label color
- Integrated useColor hook to dynamically set the label color for the CheckCircleCuteReIcon in EntryListFooter.
- Adjusted Text component to include margin for better layout.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:57:01 +08:00