Commit Graph

293 Commits

Author SHA1 Message Date
Whitewater 6cbdf4599c
feat(mobile): add context menu for video (#2876)
* chore: clean code

* feat(mobile): add star fn in the image context menu

* feat(mobile): add video context menu with star, open, copy, and share options

* feat(mobile): integrate video context menu and enhance media item rendering

* refactor: strict types

* chore: clean code

* fix: types
2025-02-25 13:27:04 +08:00
Stephen Zhou f324fc05dc
fix: update framer motion version (#2884) 2025-02-25 02:41:20 +00:00
DIYgod a1996c8963
feat: remove pictureViewFilterNoImage 2025-02-24 20:43:55 +08:00
DIYgod 6fe8dc910f
fix: lists fetch 2025-02-24 11:52:30 +08:00
Innei ba02009c9a
refactor(timeline): extract quick selector panel into separate component
- Created new QuickSelectorPanel component
- Moved panel rendering logic out of TimelineSelector
- Extracted triangle menu interaction logic into a separate hook
- Simplified TimelineSelector component structure
- Exported useTriangleMenu hook from hooks package

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 23:31:34 +08:00
Stephen Zhou 8e2dfe99c8
feat(mobile): audio player (#2801) 2025-02-20 20:40:44 +08:00
Stephen Zhou bd476807e5
refactor(native): remove sn pro font (#2828) 2025-02-20 20:31:26 +08:00
DIYgod 71bddca2e8
chore: disbale prettier objectWrap 2025-02-20 18:03:18 +08:00
DIYgod ac64569da0
chore: fix test 2025-02-19 16:08:16 +08:00
DIYgod 36ea29ae7d
chore: update dependencies 2025-02-19 15:27:20 +08:00
DIYgod c475ecd400
feat: timeline button width 2025-02-13 22:59:37 +08:00
DIYgod 4303da22e1
feat: revert view merge, hide unused view 2025-02-13 22:59:37 +08:00
Innei d87a92a095
feat: custom content font size and line height, resolves FOL-354
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 23:09:57 +08:00
DIYgod d9bc62b44c
feat: get full list feeds 2025-02-11 21:35:29 +08:00
DIYgod 756e76f167
feat: update githubusercontent webp url 2025-02-11 10:49:43 +08:00
Innei 8fede2f0c4
refactor: update routes from /feeds to /timeline and improve timeline navigation (#2716)
* refactor: update routes from /feeds to /timeline and improve timeline navigation

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

* refactor: improve timeline selector and list view rendering

- Optimize timeline selector with auto-scrolling and dynamic rendering
- Enhance list switch button with improved styling and title display
- Memoize and optimize timeline-related hooks and components
- Add utility functions for scrolling and visibility detection

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

* fix: prevent timeline selector error when timelineId is undefined

- Add null check for timelineId before processing timeline selection
- Ensure safe handling of timeline selector when no timeline is selected

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

* feat: add InboxSwitchButton for timeline navigation

- Implement InboxSwitchButton component for inbox timeline selection
- Add handling for inbox timeline in TimelineSwitchButton
- Support unread indicator and navigation for inbox timelines

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:03:41 +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
DIYgod 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 a84a4d273a
chore: fix types and lint error
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-04 23:35:51 +08:00
Innei 295b99e2ca
chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 01:45:49 +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 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
Stephen Zhou e569681198
feat: basic masonry entry list and entry content view (#2493) 2025-01-22 22:23:56 +08:00
Stephen Zhou 85b00f79db
fix: pass callbackURL, close #2630 2025-01-22 10:54:53 +08:00
DIYgod 127ccae3f7
feat: get video preview url from attachments 2025-01-21 20:33:11 +08:00
Innei 203c253522
feat(rn-settings): impl gerenate settings 2025-01-21 00:12:42 +08:00
Stephen Zhou 364d23f729
feat: merge actions for toggling state (#2617) 2025-01-20 17:43:33 +08:00
Stephen Zhou 2cd1b5daf9
chore: enable noUncheckedIndexedAccess, better type check (#2608) 2025-01-18 22:35:23 +08:00
DIYgod 8bbd8bf856
feat: add default value for VITE_WEB_URL and remove VITE_IMGPROXY_URL 2025-01-17 22:50:33 +08:00
Stephen Zhou 818b024bbc
chore: update hono type 2025-01-17 21:19:16 +08:00
Stephen Zhou 7129db766c
fix: ai entry actions with user role checks, close #2591 2025-01-17 08:57:20 +08:00
Stephen Zhou fb531b1c9d
feat: 2fa (#2540)
Co-authored-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <i@innei.in>
2025-01-16 20:35:30 +08:00
Konv Suu 421708630f
fix: enhance shortcut handling for OS compatibility (#2576)
* update

* typo

* update

* update
2025-01-16 13:20:14 +08:00
Innei 0b096166d5
feat(rn): setting page scroll magic
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-15 21:44:21 +08:00
Innei 23152d0222
fix: enhancing the Visibility of Download Buttons on White Background Images, fixed FOL-1270
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-15 19:55:26 +08:00
DIYgod 3dbf7c7ffa
fix: fast scroll mark read 2025-01-14 18:12:56 +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
Stephen Zhou 01011390a6
chore: update 2025-01-10 21:43:08 +08:00
Stephen Zhou 6746b54bda
chore: skipValidation for vitest 2025-01-10 21:38:04 +08:00
Stephen Zhou 0663ab545b
chore: update hono type 2025-01-10 21:22:38 +08:00
Stephen Zhou fe87c528e2
fix: do not skipValidation, close #2430 2025-01-10 17:21:50 +08:00
Stephen Zhou fe7b62a03c
chore: fix type check 2025-01-10 09:46:12 +08:00
DIYgod 3a6f287966
feat: email verification toast 2025-01-09 22:47:58 +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 950b5af8ec
feat(rn-component): implement toast manager
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-08 00:05:26 +08:00
Whitewater 38fe110754
feat: customize toolbar (#2468)
* feat: add customizable toolbar modal

* refactor: extract SortableActionButton component

* refactor: enhance CustomizeToolbar with drag-and-drop reordering and state management

* refactor: update CustomizeToolbar for improved state management

* refactor: enhance drag-and-drop functionality

* feat: add CustomizeToolbarCommand

* chore: update i18n

* feat: extract customizable toolbar actions state

* feat: integrate customizable toolbar order for entry header and more actions

* chore: add @dnd-kit/sortable dependency

* feat: add reset action order functionality

* feat: sync action order

* chore: filter out read action

* chore: add changeset
2025-01-07 12:26:24 +08:00
Innei f9d5d7698c
feat(rn): feed form and subscribe
- Removed unused code from package.json.
- Simplified description rendering in FormSwitch component.
- Enhanced Follow modal with new subscription logic and improved form handling.
- Updated error messages in locales for better clarity.
- Added new properties to the subscription sync service for better data handling.

This commit improves code readability and enhances the user experience in the subscription process.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-06 23:32:58 +08:00
Stephen Zhou 9f6934f844
fix(mobile): background color 2025-01-06 20:40:29 +08:00
Konv Suu ff1dc03304
fix: error and warning in mobile (#2475) 2025-01-06 17:57:24 +08:00