Commit Graph
376 Commits
Author SHA1 Message Date
Innei aa37fb76ce feat(mobile): conditionally render settings based on user authentication
- Add `anonymous` flag to navigation links
- Implement dynamic filtering of navigation groups for anonymous users
- Use `useMemo` to optimize navigation group rendering
- Integrate user authentication state with settings visibility

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-05 23:28:30 +08:00
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
DIYgod f1e1403b87 feat: log user id and screen view 2025-03-05 22:47:32 +08:00
Innei a54a1b89dd fix(mobile): setURLSchemeHandler not working
- Extract WebView configuration into a separate class
- Improve JavaScript injection mechanism
- Move injected script loading to a static method
- Enhance URL scheme handling and script management

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-05 22:31:12 +08:00
Innei 864bf1f32c refactor(mobile): update feeds context menu and preview rendering
- Replace FlashList with FlatList in PreviewFeeds component
- Limit preview to first 5 entries
- Add router navigation to full feed view from preview
- Remove unnecessary key extractor function

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-05 22:02:51 +08:00
Innei c4174f909e fix(mobile): adjust login UI and toast haptic feedback
- Update haptic feedback for different toast types in iOS
- Modify NoLoginInfo component spacing
- Restructure EmailLogin screen layout and styling

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-05 21:44:22 +08:00
Stephen Zhou 7180e00d19 feat(mobile): list and inbox (#2969)
* feat(mobile): bring list and inbox back

* navigate to list

* inbox support

* fix: query entries

* use proxy image

* fix list and inbox state

* estimatedItemSize

* update

* update

* update

* fix list unread count

* unread count component

* update

* fix unread count by view
2025-03-05 21:36:26 +08:00
Innei 6588b3e7f4 feat(mobile): add estimated duration display for entry items (#2956) 2025-03-05 21:10:39 +08:00
DIYgod 7f7b7c55ab feat: init firebase 2025-03-05 21:02:57 +08:00
Stephen Zhou 13e02d7e9a feat(mobile): sign up, forget password, anonymous use (#2949)
* feat(mobile): sign up and forget password

* refactor(mobile): allow no login, move login as modal

* refactor(mobile): move 2fa as modal

* login icon

* update

* no login info

* color in dark mode

* style

* update

* update

* update

* update
2025-03-05 10:50:54 +08:00
kovsu 3f1cfcc13a update 2025-03-05 00:01:17 +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 62b3b8fe89 fix: build
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:37:07 +08:00
Innei d6795a0cab fix: import resolver for web
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:30:15 +08:00
Whitewater de81ec77d5 feat(mobile): add list and url support for deep link (#2958) 2025-03-04 16:50:54 +08:00
Whitewater 9573459ac9 refactor(mobile): enhance deep link handling with intent hook (#2954)
* fix(mobile): enhance modal close behavior with conditional redirection

* refactor(mobile): implement deep link handling with intent hook

* chore: auto-fix linting and formatting issues
2025-03-04 07:49:40 +00:00
kovsu 3cc12b4d78 feat(mobile): add estimated duration display for entry items 2025-03-04 15:23:11 +08:00
Innei 6c6bb9b401 feat(mobile): Pass user ID to useShareSubscription hook in Profile screen
- Update ProfileScreen to pass current user's ID to useShareSubscription
- Ensure subscriptions are fetched for the logged-in user
- Improve data fetching logic in profile route

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:54:30 +08:00
Whitewater 3bb7685569 feat(mobile): add deep link redirection to follow screen (#2948)
* feat(mobile): add deep link redirection to follow screen

* fix(mobile): enhance modal close behavior with conditional redirection

* chore: auto-fix linting and formatting issues
2025-03-04 14:17:41 +08:00
Innei 4588d4f7a2 feat(mobile): Conditionally render UserHeaderBanner with user ID
- Add null check for whoami.id before rendering UserHeaderBanner
- Prevent rendering header banner when user is not logged in
- Improve user profile screen rendering logic

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:17:08 +08:00
Innei f7a591c37f feat(mobile): Add configurable thumbnail aspect ratio for entry items
- Implement AspectRatioImage component for flexible image display
- Add support for square and aspect-ratio thumbnail rendering
- Use thumbnailRatio setting to dynamically choose image display mode
- Preserve image quality and aspect ratio in entry list view

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 00:40:10 +08:00
Innei 844bd2ce0c feat(mobile): Add user ID to UserHeaderBanner in Settings screen
- Import useWhoami hook to retrieve current user information
- Conditionally render UserHeaderBanner with user ID when user is logged in
- Improve user profile display in settings screen

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 00:21:21 +08:00
Innei 42c1f9f191 feat(mobile): Enhance user profile and database schema
- Add support for dynamic user profile rendering
- Modify user schema to make email field optional
- Update database migrations with new migration script
- Refactor profile-related hooks and components to support flexible user viewing
- Extract EntryReadHistory component from EntryTitle

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 00:09:23 +08:00
Innei 8d5028a1a1 feat(mobile): Add preview functionality to feed context menu
- Implement preview for article view in feed context menu
- Use FlashList to render entry previews efficiently
- Add conditional rendering for preview based on feed view type
- Remove commented-out menu items for future cleanup

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 23:50:24 +08:00
Innei ad4a83bc82 fix(mobile): Correct feed view type handling in FollowFeed
- Remove unnecessary string conversion for feed view type
- Simplify view type parsing in subscription form submission
- Ensure direct enum value usage for feed view selection

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 23:39:14 +08:00
Innei 218b22b9c3 refactor(mobile): Improve UI components and form handling
- resolves FOL-1680
- Replace TouchableOpacity with Pressable in view selector
- Remove background color from SafeModalScrollView
- Adjust content container margins in modal scroll views
- Update form schema to coerce view to number
- Add loading state management in RSSHub form submission
- Enhance user interaction and form validation

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 22:39:28 +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
Innei 8d8dafa37d refactor(mobile): Optimize header and form layouts
- Simplify NavigationHeader component by removing complex title centering logic
- Remove fixed width constraints in TimelineSelectorProvider header actions
- Add KeyboardAvoidingView to RSSHub form text inputs
- Conditionally render form sections based on available keys

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 21:04:18 +08:00
Innei 3e84f73aec chore: extract ssr as single app
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:01:18 +08:00
Innei cead6dffd0 refactor(mobile): Simplify WebView delegate and improve state management
- Convert WebViewDelegate to an extension of FOWebView
- Remove separate delegate class
- Use direct access to state and view controller
- Simplify navigation and script message handling

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 19:04:21 +08:00
Innei 11b4027dfd refactor(mobile): Improve WebView architecture and state management
Refactored the WebView implementation in the mobile app to:
- Separate concerns in WebView delegate and configuration
- Simplify WebView initialization and state management
- Improve JavaScript injection and custom URL scheme handling
- Add content height change event support

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 17:50:14 +08:00
Innei 162f372d60 feat(mobile): enhance UI tint color configuration
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 16:50:16 +08:00
Stephen Zhou 414fee8c46 build: fix import path (#2932) 2025-03-02 18:01:11 +08:00
Stephen Zhou d4ad565a80 fix(mobile): active view switch, use is fetching for disable state (#2931) 2025-03-02 17:24:11 +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
DIYgod fd81327913 feat: unified env 2025-03-01 15:00:36 +08:00
DIYgod d9e15de48e feat: add mobile specific resolver functionality 2025-03-01 14:40:41 +08:00
Innei 0427362226 refactor(mobile): enhance tab bar icon and label animations
Improve tab bar interactions by:
- Simplifying text label color transitions
- Adding smooth opacity, scale, and rotation animations for tab icons
- Introducing gentleSpringPreset for more consistent press interactions

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-01 10:26:06 +08:00
Stephen Zhou c416fc8f9b fix(mobile): active views in pager, first loading no mark read (#2920)
* fix(mobile): only show active views in pager

* fix: disable mark as read when first loading
2025-03-01 09:28:12 +08:00
Stephen Zhou 872835a31c refactor(mobile): auto mark as read logic (#2919)
* refactor(mobile): auto mark as read logic

* update
2025-03-01 09:05:44 +08:00
Stephen Zhou 7fbd2d7208 fix(mobile): player tab animation (#2918) 2025-02-28 23:34:03 +00:00
Innei 84b44b3062 fix(mobile): improve item separator background color
Update ItemSeparator components in entry-list and subscription modules to use a secondary system grouped background, ensuring consistent visual styling across different list views.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-01 01:10:50 +08:00
Innei 7de1132f6c refactor(mobile): replace custom web view with SFSafariViewController
This change updates the web view presentation logic to use SFSafariViewController instead of custom modal web view controllers. The modification simplifies the web view handling and provides a more standard iOS browsing experience with built-in Safari features.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-01 01:02:07 +08:00
Stephen Zhou cd576fff82 fix(mobile): no marking read when no scrolling (#2913) 2025-02-28 09:16:13 +00: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 30aef70849 fix(mobile): onViewableItemsChanged is not reactive (#2911) 2025-02-28 16:44:05 +08:00
Stephen Zhou ab27ab83b1 fix(mobile): can not mark view as read (#2909) 2025-02-28 07:52:45 +00:00
Stephen Zhou 11b5f7ad72 fix(mobile): crash when parsing invalid url (#2908) 2025-02-28 07:35:12 +00:00
Innei 7d23f2fda5 refactor(mobile): simplify SafeModalScrollView and RSSHub form handling
- Replace KeyboardAwareScrollView with standard ScrollView
- Update form error handling to use JSON parsing
- Modify ScreenOptions and ModalHeaderSubmitButtonImpl to pass form errors
- Improve type safety and component props

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-28 13:38:04 +08:00