Commit Graph
142 Commits
Author SHA1 Message Date
Innei b534667c05 feat(mobile): enhance HTML renderer with image rendering and blurhash support
- Add blurhash and image scaling to MarkdownImage component
- Implement useCalculateNaturalSize hook for responsive image sizing
- Create atoms and types for entry model and media
- Update HTML renderer to support dynamic image rendering with Jotai state management
- Improve iOS image preview with save functionality and dynamic root view controller retrieval

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 19:12:47 +08:00
Innei 975285ec30 feat(mobile): implement native image preview with QuickLook on iOS
- Add ImagePreview helper class for displaying images using QuickLook
- Extend HelperModule with previewImage function to load and display images
- Update WebView bridge to support image preview from web content
- Implement MarkdownImage component with base64 image conversion
- Add cross-platform quickLookImage method for native image preview

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 01:24:56 +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
lawvs 631b240499 fix: tweak Select component width 2025-02-06 16:47:22 +08:00
Whitewater 5d6386f29b refactor: migrate dropdown menu to zeego/dropdown-menu (#2696)
* refactor: integrate zeego dropdown menu in Select and SortActionButton

* refactor: remove DropdownMenu component

* refactor: remove react-native-context-menu-view dependency
2025-02-06 13:42:04 +08:00
Stephen Zhou fb266f4a8f refactor(mobile): prefetch entry logic 2025-02-05 21:32:52 +08:00
Stephen Zhou 03a1438133 feat(mobile): prefetch entry content 2025-02-05 20:34:35 +08:00
Innei f84957f46b fix: shiki theme resolver and lockfile maintainance
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-05 14:18:25 +08:00
Innei 86ed6d4eed fix(rn-entry): entry content layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 23:05:54 +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
DIYgod 686efe7d62 fix: type errors 2025-01-25 21:11:52 +08:00
Innei 998706e0c1 fix(grouped-list): update text style for title in GroupedInformationCell component
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 21:14:20 +08:00
Innei f4003502e4 chore(rn): update uikit colors
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 19:49:39 +08:00
Innei 7365eb5e38 fix(rn-base): Switch component flex
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 19:42:18 +08:00
Innei 8c5c6d9e93 chore(rn-base): adjust group list cell text style
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 15:30:31 +08:00
Innei e3baee3986 feat(rn-list): manage list
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 15:28:25 +08:00
Innei 527f6ac8b5 perf: improve header blur effect
- Migrate NavigationBlurEffectHeader to use Reanimated's useAnimatedStyle
- Optimize header opacity animation with shared value
- Enhance ViewSelector ScrollView with horizontal scroll indicator control
- Adjust padding in ViewSelector for better layout

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 14:06:09 +08:00
Innei 2c3f75291b chore(rn): fix typo
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 12:03:14 +08:00
DIYgod c9bae9404b fix: scroll header height 2025-01-24 10:50:14 +08:00
DIYgod 973c0d214d feat: bigger view selector 2025-01-24 10:49:35 +08:00
Innei ccd1978906 feat(rn-modal): apply modal header blur effect
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 23:54:32 +08:00
DIYgod b0012c1d91 feat: hideable header bottom 2025-01-23 22:36:11 +08:00
Innei 44c6fd04c1 feat(rn-list): support list delete
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 22:21:03 +08:00
Innei 55dcfb06df fix: correct ModalHeaderSubmitButton naming and enhance UI components
- Renamed `ModalHeaderShubmitButton` to `ModalHeaderSubmitButton` for consistency.
- Updated `SwipeableItem` to include animated text for action labels.
- Refactored `TextField` to support an input postfix element and improved styling.
- Enhanced `GroupedInsetListCard` to conditionally show separators between children.
- Adjusted `MarkdownWeb` to prevent vertical overflow.
- Updated `FollowFeed`, `FollowList`, and `rsshub-form` to use the corrected `ModalHeaderSubmitButton`.
- Added navigation functionality to the `AddListButton` in `ListsScreen`.
- Improved color validation in utility functions.

These changes improve code consistency and enhance the user interface across various components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 18:36:15 +08:00
lawvs a084c2bc7d refactor: separate EntryList component 2025-01-23 18:05:48 +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
Stephen Zhou e64da259e7 fix: delay the setVoice until before starting play tts, close #2042 2025-01-23 15:42:36 +08:00
Innei a03dcd9ee9 fix(rn): follow feed modal style
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 14:04:33 +08:00
Innei 585aa03b23 fix: adjust ios styles
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 13:56:01 +08:00
Innei ff707cf7a4 chore(rn): upgrade deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 13:23:19 +08:00
Innei 43bebd7c41 fix: adjust SwipeableItem friction and improve loading indicator display in Lists screen
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 13:06:15 +08:00
DIYgod d565cb80c5 feat: view selector in entry list 2025-01-23 11:41:17 +08:00
Stephen Zhou 4696ac6d47 fix: blurhash size
https://github.com/expo/expo/issues/22206
2025-01-23 10:23:58 +08:00
Stephen Zhou 8e0915a6f6 fix: improve image style 2025-01-23 09:58:36 +08:00
Stephen Zhou 8344456761 chore: remove reset logic for entry store for now 2025-01-23 09:32:54 +08:00
Stephen Zhou 5f9d987481 chore: fix lint 2025-01-23 09:26:40 +08:00
Innei 6025f8a6c1 feat(rn): impl ios style SwipeableItem
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 00:38:31 +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
Stephen Zhou e569681198 feat: basic masonry entry list and entry content view (#2493) 2025-01-22 22:23:56 +08:00
Innei 041318ab7e fix(rn): flashlist insets and navigation padding
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-22 20:42:50 +08:00
Innei 9513ec0b11 refactor(rn-entry): use flashlist to optmize perf
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-22 20:28:29 +08:00
DIYgod 0c29f278e6 feat: view selector 2025-01-22 19:25:07 +08:00
lawvs 1041b9aa9e refactor: update feed selection logic 2025-01-22 17:41:56 +08:00
lawvs d92f496065 refactor: use record in inbox store 2025-01-22 17:38:57 +08:00
DIYgod a1676fc535 feat: collection panel active button status 2025-01-22 15:30:24 +08:00
DIYgod c38677bebf feat: collection panel active indicator 2025-01-22 15:05:54 +08:00
lawvs e0d67465a8 fix: prefetch category 2025-01-22 14:49:15 +08:00
lawvs c052749162 feat: add entry list 2025-01-22 13:06:25 +08:00
Stephen Zhou 8bf7b1f277 chore: type 2025-01-22 10:58:22 +08:00