Commit Graph
3297 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 0011861e3f feat(mobile): enhance iOS image preview with SDWebImage and improved QuickLook handling
- Add SDWebImage dependency to FollowNative.podspec
- Refactor ImagePreview and PreviewControllerController for robust image preview
- Implement dynamic file extension handling for image preview
- Update WebView bridge to support more flexible image preview payload
- Improve MarkdownImage component to use Uint8Array for image conversion

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 17:50:13 +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
DIYgod 2f3655cf56 feat: optimize login modal 2025-02-07 20:08:37 +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
DIYgodandInnei 34b15c671b feat: merge views, timeline list (#2690)
* feat: remove audio and notifications view; add list to view list

* feat: remove active view atom, adjust routing parameters, new column-switching methods

* fix: types

* feat: recover list in feeds

* fix: import circular

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2025-02-05 19:20:08 +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
Jinwoo JeongandStephen Zhou 4a1a3f9687 feat(locales): enhance korean locale (#2685)
* feat: update localization for korean

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-02-05 10:55:28 +08:00
Innei a84a4d273a chore: fix types and lint error
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-04 23:35:51 +08:00
DIYgod ab0fbb6b6b Revert "feat: update app bundle id"
This reverts commit 9bf7d5c495.
2025-02-04 20:07:48 +08:00
DIYgod 9bf7d5c495 feat: update app bundle id 2025-02-04 19:44:21 +08:00
Innei 679d17c382 fix: lockfile
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 23:05:41 +08:00
Innei a4bae7ec27 fix: reduce node_modules
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 02:19:58 +08:00
Innei 5feec44463 chore: downgrade Sentry Electron SDK and related dependencies 2025-02-03 02:06:26 +08:00
Innei e463482ede fix: vite cors
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 01:46:09 +08:00
Innei 295b99e2ca chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 01:45:49 +08:00
Innei 90e56cf7f9 feat: improve text rendering with hyphenation and configurable editor, closes #2671
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 01:28:56 +08:00
Innei e1bf881e85 feat: use expo module to write native component/module (#2675)
* init

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

* test uikit

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

* uitable

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

* test webview

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

* shared webview

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

* refactor(shared-webview): Simplify WebView height management

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

* fix: add url prop

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

* rename

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

* feat: native module

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

* cleanup

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

* fix: export

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

* fix

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

* fix

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-02 23:55:05 +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 7fddc4ee33 docs(mobile): Update README with comprehensive project overview and development details
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 21:10:29 +08:00
Innei 9b69e48852 fix(share): fix share page feed item style
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 21:04:02 +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
DIYgod b021f31eee chore: fix pnpm-lock 2025-01-25 21:06:56 +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 ddc23829b8 chore(release): release v0.3.3-beta.0 2025-01-24 21:13:41 +08:00
Wilson 4045251967 fix(feed-column): correct sorting icon status (#2652) 2025-01-24 21:13:24 +08:00
Stephen Zhou 7eb3fba86c chore: update changelog 2025-01-24 19:59:36 +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
lawvs 79daad4db3 fix: ignore customize toolbar in EntryItem context menu 2025-01-24 11:51:13 +08:00
Stephen Zhou e7e19a5aa8 fix: unescape, close #2276 2025-01-24 10:54:59 +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
Stephen Zhou bc881218ad fix: support multiple route path, close #2638 2025-01-23 19:18:18 +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
Stephen Zhou d6b3a8cdc5 fix: reset tts when play again, close #2054 2025-01-23 17:22:20 +08:00