Commit Graph
308 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
DIYgod 0be6255d0b fix: types 2025-03-05 21:29:23 +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
kovsu 3f1cfcc13a update 2025-03-05 00:01:17 +08:00
Innei 892f782169 feat: Add SVG and suspended user support, #2945
- Extend markdown parsing to support SVG elements and attributes

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 22:08:31 +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 d6795a0cab fix: import resolver for web
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:30:15 +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 e4e70acef2 feat: add desktop specific resolver 2025-03-01 17:38:43 +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
DIYgod 861ae35819 fix: NavigationHeaderBackButton 2025-02-28 08:56:57 +08:00
DIYgod 0c761925b1 fix(mobile): list entries cache 2025-02-27 12:21:19 +08:00
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
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 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
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