Commit Graph

93 Commits

Author SHA1 Message Date
Konv Suu 3c2586df51
fix: incorrect formatting of time duration (#3148)
* feat(desktop): add duration formatting for audio entries

* update

* update

* update

* update

* update

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-03-18 09:33:27 +08:00
Stephen Zhou c4412c5e0a
build: revert unist-util-visit-parents update (#3106) 2025-03-13 13:51:58 +00:00
dependabot[bot] 55c1def859
build(deps): bump unist-util-visit-parents from 5.1.3 to 6.0.1 (#3090)
Bumps [unist-util-visit-parents](https://github.com/syntax-tree/unist-util-visit-parents) from 5.1.3 to 6.0.1.
- [Release notes](https://github.com/syntax-tree/unist-util-visit-parents/releases)
- [Commits](https://github.com/syntax-tree/unist-util-visit-parents/compare/5.1.3...6.0.1)

---
updated-dependencies:
- dependency-name: unist-util-visit-parents
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 17:46:30 +08:00
dependabot[bot] d73806ab13
build(deps): bump remark-directive from 3.0.1 to 4.0.0 (#3089)
Bumps [remark-directive](https://github.com/remarkjs/remark-directive) from 3.0.1 to 4.0.0.
- [Release notes](https://github.com/remarkjs/remark-directive/releases)
- [Commits](https://github.com/remarkjs/remark-directive/compare/3.0.1...4.0.0)

---
updated-dependencies:
- dependency-name: remark-directive
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 16:27:37 +08:00
DIYgod ae458a018f
chore: update dependencies 2025-03-13 11:51:32 +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 d6795a0cab
fix: import resolver for web
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:30:15 +08:00
DIYgod 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 f324fc05dc
fix: update framer motion version (#2884) 2025-02-25 02:41:20 +00: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
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
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
Stephen Zhou e569681198
feat: basic masonry entry list and entry content view (#2493) 2025-01-22 22:23:56 +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
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
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
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
Innei 1439d87f07
fix: improve Markdown rendering and UI adjustments in various components
- Updated TextField to ensure full width and flex behavior.
- Optimized MarkdownWeb to memoize parsed content for better performance.
- Adjusted Markdown rendering in rsshub-form and DiscoverFeedForm to fix directive formatting.
- Enhanced ModalError to allow text selection in error stack trace.
- Minor adjustments in parse-markdown utility for directive handling.

These changes enhance the user interface and improve performance in Markdown rendering.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-03 00:10:02 +08:00
Innei 8007924a7f
refactor: extract shared parse markdown
- Added `@microflash/remark-callout-directives` to `package.json` and `pnpm-lock.yaml`.
- Updated `MarkdownWeb` component to utilize a new markdown parsing utility.
- Removed unused imports related to `remark-gh-alerts` and refactored markdown parsing logic.
- Enhanced `parse-markdown` function to integrate with the new utility and support custom components.

This update improves markdown rendering capabilities and streamlines the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-31 23:52:34 +08:00
Stephen Zhou 313ad9b7db
feat: html render for native (#2346) 2024-12-30 10:28:52 +08:00
DIYgod 1bf2e20801
feat: rsshub instance list 2024-12-29 16:51:34 +08:00
Stephen Zhou 1d0795bdb5
fix: try repositionInputs false 2024-12-25 21:04:49 +08:00
Stephen Zhou 36f0d00b07
style: use prettier-plugin-tailwindcss and disable sort in lint 2024-12-23 22:19:45 +08:00
Innei 77fa6088fb
refactor: streamline entry action handling and replace ActionButton with CommandActionButton
- Removed unused imports and simplified the use of commands in `useEntryActions`.
- Updated `EntryItemWrapper`, `HeaderActions`, and `MoreActions` components to utilize `CommandActionButton` for better command handling.
- Introduced `CommandDropdownMenuItem` for consistent command representation in dropdowns.
- Enhanced readability and maintainability by reducing redundant code and improving type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 20:07:33 +08:00
Stephen Zhou d4905fd008
feat: email verification 2024-12-16 22:02:55 +08:00
Innei a10b78a79c
feat: optimize action pages
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 19:32:57 +08:00
DIYgod 3e9a92d16a
feat: bigger font size in mobile 2024-12-12 14:11:04 +08:00
DIYgod 4a4ecee7f1
feat: move replaceImgUrlIfNeed 2024-12-10 12:36:24 +08:00
Innei dac1a47b0e
feat: support read indicator and back to top, fixed #2040
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 22:25:57 +08:00
Innei 639b922ec8
feat: add auto-expand setting for long social media entries and remove placeholder component, fixed #2064
- Introduced a new setting to automatically expand long social media entries.
- Removed the ReactVirtuosoItemPlaceholder component, replacing it with null returns for better handling of empty entries.
- Updated relevant settings files and translations for the new feature.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 21:08:37 +08:00
Innei cf5eeb63c4
feat: update toast style
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 20:50:10 +08:00
Innei d5bf07fd75
chore: update deps 2024-12-09 17:37:01 +08:00
Innei 2b2d56c746
fix: scrollbar z-index
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-07 17:01:45 +08:00
Innei 77dd6ce2f9
feat: redesign login modal
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-06 19:47:39 +08:00
Innei 6a30f2363e
fix: sheet stack dismiss transition
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-04 16:54:55 +08:00
Stephen Zhou 779a12045e
chore: use same specifier 2024-12-03 20:51:40 +08:00
Stephen Zhou 37164a3674
Revert "build: use pnpm catalogs"
This reverts commit 4477f83a29.
2024-12-03 20:32:19 +08:00
Stephen Zhou 4477f83a29
build: use pnpm catalogs 2024-12-03 20:22:02 +08:00
Otstar Lin 1ce3f5b8ba
feat(integration): Add readeck integration (#1972) 2024-12-02 22:41:27 +08:00
Innei 0ff10c6e32
refactor(tab): tab indicator transition
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-02 18:42:11 +08:00
Innei 22e2c0d649
chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-02 14:59:16 +08:00
Whitewater 605c3d66b9
refactor: sunset Omnivore integration (#1953)
* refactor: remove Omnivore integration and related settings

* refactor: remove Omnivore integration from localization files

* refactor: remove Omnivore integration from settings and command types

* refactor: remove Omnivore entries from localization files
2024-12-01 18:56:12 +08:00
Innei d98ebaa4f7
refactor: vlist and keep scroll position (#1931)
* init

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

* feat: grid

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

* refactor: mark read logci

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

* chore: remove react-virtuoso

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

* fix: video

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

* transition

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

* fix: image memo loaded status

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

* fix: sort button

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

* feat: cjk truncate

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2024-11-29 22:51:37 +08:00