Commit Graph
51 Commits
Author SHA1 Message Date
Innei 5f1796d4a6 feat(mobile): add environment profile management
- Introduce `proxyEnv` to dynamically manage environment configurations
- Add `EnvProfileIndicator` to show current environment profile
- Create `useEnvProfile` and `setEnvProfile` for runtime env switching
- Update imports and references to use `proxyEnv` instead of static `env`

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-05 23:21:29 +08:00
Innei d20a06dad3 refactor: extract all env from shared
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 19:20:21 +08:00
Innei 486e627a05 feat(mobile): Implement new modal header and scroll view components
- Create ModalHeader component for consistent modal UI
- Add ModalScrollViewContext for scroll-related state management
- Refactor SafeModalScrollView to use new context and header
- Implement dynamic header height calculation utility
- Update various modal screens to use new components
- Simplify header and scroll view interactions

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 22:33:26 +08:00
DIYgodandDIYgod 8b07a9a573 chore: desktop dir (#2924)
* chore: desktop dir

* chore: desktop src and configs

* chore: auto-fix linting and formatting issues

* fix: path

* fix: path

* fix: path

* fix: path

* fix

* fix

* fix

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: DIYgod <8266075+DIYgod@users.noreply.github.com>
2025-03-02 17:19:22 +08:00
DIYgod 8f422af1c1 feat: unifed image proxy and referer handler 2025-03-01 19:43:19 +08:00
Whitewater 34540a1651 refactor(mobile): improve scroll-to-top handling (#2910)
* refactor(mobile): enhance navigation scroll view handling and type safety

* fix(mobile): update contentScrollerRef in discover screen

* fix(mobile): integrate navigation listener for scroll view reference attachment

* fix: types
2025-02-28 17:09:13 +08:00
Stephen Zhou 5126a6ff89 feat(mobile): cache rsshub query (#2900) 2025-02-27 13:38:01 +08:00
Innei 3164e100a3 refactor(mobile): replace @gorhom/portal with custom portal implementation
- Remove @gorhom/portal dependency
- Create custom Portal and PortalHost components
- Update imports and usage across mobile app
- Simplify portal-related code in various components
- Remove unnecessary portal-related dependencies in package.json

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:53:00 +08:00
Innei d9846a717d feat(mobile): add dynamic blur effect in discover header
- Introduce animatedY shared value to control header blur opacity
- Implement dynamic blur effect based on scroll position
- Update DiscoverContext to include animatedY
- Add scroll event handling in Recommendations tab

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:38:04 +08:00
Innei e52e03f2da feat(mobile): improve header layout and animation
- Add smooth centering animation for navigation header title
- Implement blur effect in search and discover headers
- Standardize header action group width
- Remove unnecessary refresh control in search tabs
2025-02-26 21:19:39 +08:00
Innei 09ed50a4d7 refactor(mobile): reorganize navigation and layout components
This commit restructures the mobile app's navigation and layout components, moving them from scattered locations into a more organized structure. Key changes include:

- Created new layout and navigation-related directories
- Moved context, hooks, and view components to more logical locations
- Improved imports and component organization
- Added constants for UI-related values
- Simplified and standardized navigation and tab bar components

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:00:51 +08:00
DIYgod ee01f9a799 feat(mobile): optimize discover styles 2025-02-26 18:43:29 +08:00
Innei 265f23fd76 feat(mobile): add native scroll to top functionality for iOS
- Implement `scrollToTop` function in HelperModule for iOS
- Add native module method to scroll scroll views to top
- Update hooks and components to use new native scroll to top method
- Enhance cross-platform scroll behavior for mobile app
2025-02-25 22:33:35 +08:00
Innei 1d62245f4b feat(mobile): add add feed button to discover header
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 19:47:15 +08:00
Innei ea374cb30c refactor(mobile): improve bottom tab bar and related components
- Refactored bottom tab bar implementation with new context and hooks
- Added new components for bottom tab bar management
- Updated imports and references to bottom tab bar related functionality
- Introduced new spring presets and relative date time improvements

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 22:31:39 +08:00
Innei 03f92a51b2 feat(mobile): Add image context menu with save, copy, and share actions
Enhance image interaction by introducing a new ImageContextMenu component:
- Implement context menu for images with copy, save, and share functionalities
- Add support for saving images to device library
- Integrate image editing and file system utilities
- Update PreviewImage and EntryGridItem to use the new context menu

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 23:26:28 +08:00
Innei 053517db63 feat(mobile): Add image headers for cross-origin image loading
Enhance image loading across multiple components by:
- Importing `getImageHeaders` utility function
- Adding custom headers to image sources to resolve cross-origin issues
- Improving image rendering with transition and recycling key support

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 17:42:18 +08:00
Innei 113c4045b7 feat(mobile): Implement global image preview with advanced gestures
Refactor image preview functionality into a centralized provider:
- Create PreviewImageProvider for managing image preview state
- Add advanced gesture handling for pinch, pan, and tap interactions
- Improve image loading with transition and recycling key
- Enhance user experience with smooth animations and interactions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 17:26:50 +08:00
Innei 665cf95afb feat(mobile): add feed or rsshub feed
- Add multiple new SVG icons in the mobile app's icons directory
- Create a new Overlay component in the UI components
- Update search module and other related components
- Refactor and clean up various mobile app files

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 21:31:17 +08:00
Innei ac06382d79 refactor(mobile): rename ItemPressable component and update imports
Rename `item-pressable.tsx` to `ItemPressable.tsx` and update all import references across the mobile app to maintain consistent file naming conventions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 20:03:18 +08:00
DIYgod 36f7767b56 feat: update icons 2025-02-12 16:52:03 +08:00
Innei 17c7f9d3e9 chore(mobile): update dependencies and refactor UI components
- Upgrade react-native-uikit-colors to v0.2.0
- Enhance CustomURLSchemeHandler with improved task management
- Update RecommendationListItem and EntryListItem with context menu improvements
- Refactor entry list item styling using system colors and context menu preview
- Add context menu preview to login and entry list modules

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 22:24:17 +08:00
Innei 64db32ef34 feat: Implement the webview sandbox using a microfront end for rn to implement the full html renderer (#2691)
* init

Signed-off-by: Innei <tukon479@gmail.com>

* feat: parser and renderer

Signed-off-by: Innei <tukon479@gmail.com>

* feat: shared webview

* feat: add UIColor hex conversion extension and accent color asset and xhr rewrite

* feat(mobile): enhance WebView and HTML rendering for iOS

- Refactor SharedWebView module with improved JavaScript injection and link handling
- Add ModalWebViewController for opening links in a modal view
- Implement dynamic content height measurement
- Update HTML renderer with Jotai state management
- Improve WebView configuration and debug mode

Signed-off-by: Innei <tukon479@gmail.com>

* lockfile

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* fix(mobile): improve WebView debug mode and UI text styling

- Remove debug-only conditional for WebView inspector
- Add text label class to GroupedInsetListActionCell for consistent styling

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): add FullScreenWKWebView for iOS WebView layout

- Create custom WKWebView subclass to override safe area insets
- Enables full-screen WebView rendering without default padding

Signed-off-by: Innei <tukon479@gmail.com>

* chore(mobile): remove FullScreenWKWebView Swift file

- Delete unused custom WKWebView subclass for iOS
- Cleanup unnecessary file after previous implementation

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): refactor iOS WebView infrastructure

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): add native helper module and improve entry detail screen

- Add HelperModule for iOS to open links in a modal WebView
- Implement cross-platform link opening mechanism
- Enhance entry detail screen with dynamic title and scroll behavior
- Add loading indicator for entry content
- Refactor navigation and scroll view components

Signed-off-by: Innei <tukon479@gmail.com>

* fix(mobile): improve WebView JavaScript and URL loading thread safety

- Dispatch JavaScript evaluation and URL loading on the main thread
- Ensure thread-safe WebView interactions for iOS
- Prevent potential race conditions in SharedWebViewModule

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(mobile): remove useOpenLink hook and update link opening mechanism

- Replace custom useOpenLink hook with native openLink function
- Update WebView navigation and recommendation list item to use new link opening method
- Remove unnecessary hook and simplify link handling

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-07 23:15:29 +08:00
Whitewater 900a3477c3 refactor: migrate context menu to zeego/context-menu and update usage (#2698) 2025-02-07 13:47:43 +08:00
Innei 23a9d870ee refactor: replace LoadingIndicator with ActivityIndicator across mobile app
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 14:50:28 +08:00
Innei 7d98e27d0b refactor(rn): discover header to apply blur effect
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 16:19:38 +08:00
Innei 585aa03b23 fix: adjust ios styles
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 13:56:01 +08:00
Innei c18da69de1 feat(rn): impl list setting pages
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-22 22:46:20 +08:00
Innei 69d4c863b1 refactor(rn-base): split some ui components
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-20 17:19:32 +08:00
Stephen Zhou 2cd1b5daf9 chore: enable noUncheckedIndexedAccess, better type check (#2608) 2025-01-18 22:35:23 +08:00
Innei 180aa667d5 fix: restore BlurEffect in SearchHeader and enhance refresh control in search tabs
- Reintroduced the BlurEffect component in SearchHeader for improved UI.
- Updated BaseSearchPageFlatList to include a custom refresh control with pull progress handling.
- Added null check for data in SearchFeed and SearchList components to prevent rendering issues when data is undefined.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-16 15:33:29 +08:00
Innei 77d73c2843 fix: update query key in SearchList component for improved data fetching
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-16 14:11:39 +08:00
Innei 2edebdfcdb refactor(rn): subscription drawer layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-14 20:25:35 +08:00
Innei 284a510217 feat(rn): support follow list
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-14 17:49:48 +08:00
Innei 01122c9480 feat(rn): implement search list
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-13 22:08:17 +08:00
Innei 91f5340407 fix(rn-baseline): sync with uikit color and update list
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-13 20:13:17 +08:00
Innei 89126ed83e perf(rn): memo and optimize list
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-13 15:34:14 +08:00
Innei 0227427d29 feat(search): enhance search components with new styles and functionality
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-10 22:48:54 +08:00
Innei 4bae36ae70 feat(rn-component): refactor context menu for ios
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-10 22:38:41 +08:00
Innei f747882565 feat(rn-search): impl search feeds and list view
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-10 20:03:41 +08:00
Innei 0ab3ba9a3e feat(rn/search): implement search tabview
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-09 22:42:01 +08:00
Innei 468a3e490a feat(rn): fix dismiss modal when follow done
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-09 14:38:05 +08:00
Innei fc3a3cef23 fix(rn): check tab current index frequency
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-09 00:02:37 +08:00
Innei 9c3400a5d5 refactor(rn): extract tab bar as a component
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-08 23:56:49 +08:00
Innei 3cca62c26f feat: update mobile app structure and enhance loading functionality
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-06 20:02:24 +08:00
Innei 4f3d9902af fix(rn): discover form
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-03 00:43:14 +08:00
Innei 33d9e14d7c fix(rn): adjust ui colors
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-02 18:10:49 +08:00
Innei 6f9fb5ba92 feat: rsshub form layer
Signed-off-by: Innei <i@innei.in>
2024-12-31 20:26:14 +08:00
Innei 66f97c0057 feat(rn): implements discover page (#2385)
* feat: pan

Signed-off-by: Innei <tukon479@gmail.com>

* fix: scroll to letter

Signed-off-by: Innei <i@innei.in>

* fix: sidebar navigation

Signed-off-by: Innei <i@innei.in>

* feat: add models and constants to mobile app, update tab view and recommendations

- Added '@follow/models' and '@follow/constants' as workspace dependencies in pnpm-lock.yaml and package.json.
- Updated TabView component to use Pressable instead of TouchableOpacity for better interaction.
- Enhanced Recommendations component to utilize RSSHubCategoryCopyMap for tab names.
- Refactored data handling in Recommendations to include RSSHubRouteDeclaration.
- Updated ItemRenderer to display RecommendationCard for items.
- Minor style adjustments in header actions and view tab components for improved UI consistency.

Signed-off-by: Innei <i@innei.in>

* feat: enhance RecommendationCard with grid layout for routes

- Added Grid component to display routes in a two-column layout.
- Introduced TouchableOpacity for route items to improve user interaction.
- Adjusted styles for better responsiveness and visual appeal.

Signed-off-by: Innei <i@innei.in>

* init rsshub form

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
Signed-off-by: Innei <i@innei.in>
2024-12-31 12:51:21 +08:00
Innei 614acf0a91 refactor(rn): search and discover route
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-30 16:54:40 +08:00