Commit Graph
353 Commits
Author SHA1 Message Date
Innei 6e6b7e3936 feat(ios): Use the native image preview component (#3017)
* init

* done

* feat(mobile): integrate Galeria component for image preview and carousel

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

* revert

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

* chore: auto-fix linting and formatting issues

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-10 22:41:20 +08:00
Stephen Zhou b5272910e2 build: update lint (#3010)
* chore: update deps

* update patch

* disable @eslint-react/naming-convention/use-state

* fix: enable "TAILWIND_MODE"

* update
2025-03-09 21:53:10 +08:00
DIYgod 519b82c790 feat(mobile): use app check 2025-03-09 16:23:33 +08:00
DIYgod 00c807f86d feat: put token into headers 2025-03-07 21:29:07 +08:00
Innei 27cf62cc48 feat(mobile): add image compression and avatar upload improvements
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-06 21:27:05 +08:00
Innei 1c73e46eb6 feat(mobile): setting profile page (#2985) 2025-03-06 20:24:53 +08:00
DIYgod c31787713a feat: add google recaptcha 2025-03-06 19:30:26 +08:00
Stephen Zhou 699b4d0ad8 feat(mobile): readability (#2978)
* feat(mobile): readability support

* update

* update

* silent lint

* chore: auto-fix linting and formatting issues

* update

* update

* manually trigger fetch
2025-03-06 15:50:45 +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
DIYgod 7f7b7c55ab feat: init firebase 2025-03-05 21:02:57 +08:00
Stephen Zhou 9fffc982b1 build: use correct tailwind config to lint (#2947) 2025-03-03 21:26:07 +08:00
Innei 4de3ff98da chore: downgard PNPM to version 9.12.3
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:23:27 +08:00
Innei 4ed39b897f chore: remove @tanstack/react-virtual patch
- Delete the custom patch for @tanstack/react-virtual
- Remove patch reference from package.json and pnpm-lock.yaml
- Clean up unnecessary patching configuration

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:18:45 +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
DIYgod 2f17ec1a8e feat: clear root devDependencies (#2934)
* feat: clear root devDependencies

* fix

* fix
2025-03-02 21:22:23 +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
Stephen Zhou 5126a6ff89 feat(mobile): cache rsshub query (#2900) 2025-02-27 13:38:01 +08:00
Innei 3164e100a3 refactor(mobile): replace @gorhom/portal with custom portal implementation
- Remove @gorhom/portal dependency
- Create custom Portal and PortalHost components
- Update imports and usage across mobile app
- Simplify portal-related code in various components
- Remove unnecessary portal-related dependencies in package.json

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:53:00 +08:00
Stephen Zhou e40f8a9bbd refactor(mobile): submit button & react-native-otp-entry (#2870) 2025-02-25 10:47:43 +08:00
Stephen Zhou f324fc05dc fix: update framer motion version (#2884) 2025-02-25 02:41:20 +00:00
Innei ea1c666bcd feat(mobile): enhance dialog system and UI interactions
- Add new dialog library for flexible modal interactions
- Implement AddFeedDialog with improved UX
- Update Tabbar and Pressable components with smoother animations
- Remove RootSiblingParent from main component
- Upgrade react-native-uikit-colors to v0.3.8
- Introduce ScaleFadeRotateIn animation for consistent UI transitions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 22:27:14 +08:00
Innei 8dbb6343fb feat(mobile): add native iOS toast module with SPIndicator
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 16:52:24 +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
Innei 5d340ec0ca feat(mobile/html-renderer): Add WrappedElementProvider for dynamic element tracking
- Introduce WrappedElementProvider to track element size and position
- Create ProviderComposer for composing multiple context providers
- Add hooks for accessing wrapped element details
- Update HTML component to use new provider
- Enhance image rendering with dynamic width calculation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 21:23:18 +08:00
DIYgod 7ccea72707 chore: fix dependencies 2025-02-19 19:03:30 +08:00
DIYgod 277e27cadc chore: update pnpm lock 2025-02-19 17:12:37 +08:00
DIYgod 4512819bf5 chore: fix dependencies 2025-02-19 16:51:54 +08:00
DIYgod 36ea29ae7d chore: update dependencies 2025-02-19 15:27:20 +08:00
Innei 03f92a51b2 feat(mobile): Add image context menu with save, copy, and share actions
Enhance image interaction by introducing a new ImageContextMenu component:
- Implement context menu for images with copy, save, and share functionalities
- Add support for saving images to device library
- Integrate image editing and file system utilities
- Update PreviewImage and EntryGridItem to use the new context menu

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 23:26:28 +08:00
Innei f5c4d35c6c feat(mobile): add AI summary generation for entries
- Implement AI summary feature for entry details
- Add summaries table to database schema
- Create summary service and store for managing summaries
- Introduce new components for displaying AI-generated summaries
- Add header actions for generating and toggling summaries
- Integrate with API for summary generation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 18:11:42 +08:00
Whitewater 5867d54eab chore(mobile): improve layout and styling in login terms (#2715) 2025-02-10 17:58:37 +08:00
DIYgod bb0db13dc1 fix: electron dev 2025-02-09 14:01:51 +08:00
Innei 17c7f9d3e9 chore(mobile): update dependencies and refactor UI components
- Upgrade react-native-uikit-colors to v0.2.0
- Enhance CustomURLSchemeHandler with improved task management
- Update RecommendationListItem and EntryListItem with context menu improvements
- Refactor entry list item styling using system colors and context menu preview
- Add context menu preview to login and entry list modules

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 22:24:17 +08:00
DIYgod e03f38a7fd feat: mas (#2692)
* feat: build pkg for mas

* fix: mas build script

* chore: manual mas build

* chore: optional tag_version

* fix: mas build input

* chore: debug

* feat: pkg keychain

* feat: remove pkg maker

* Revert "feat: remove pkg maker"

This reverts commit 0fef70050c9b9e862db7319798171cc47278d65b.

* feat: disable dmg maker for mas

* feat: update version to match mas' requirement

* feat: mas arch

* fix: mas build

* chore: update version

* feat: login and account deletion for mas

* feat: dynamic build version

* feat: recover version

* feat: add BUILD_CERTIFICATE_MASPKG_BASE64
2025-02-08 19:40:39 +08:00
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 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 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
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 a84a4d273a chore: fix types and lint error
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-04 23:35:51 +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 295b99e2ca chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-03 01:45:49 +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
DIYgod b021f31eee chore: fix pnpm-lock 2025-01-25 21:06:56 +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 44c6fd04c1 feat(rn-list): support list delete
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 22:21:03 +08:00
Innei 585aa03b23 fix: adjust ios styles
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-23 13:56:01 +08:00