Commit Graph
3629 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
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
Innei a2d926bf9d chore(i18n): zh-CN update translation (#2968) 2025-03-05 21:09:42 +08:00
DIYgod 7f7b7c55ab feat: init firebase 2025-03-05 21:02:57 +08:00
Senhsucht 1907f7b382 chore(i18n): zh-CN update translation 2025-03-05 13:58:27 +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 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 b5f0b7f98d refactor: update url-builder import paths
This commit updates the import paths for the UrlBuilder in desktop and SSR client applications, using the correct import from `@follow/utils/url-builder` and ensuring consistent module organization.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 20:42:18 +08:00
Innei 2314b996d4 refactor: update auth import paths to use @client/lib/auth
This commit updates import paths for auth-related functions across multiple files, changing them from `~/lib/auth` to `@client/lib/auth`. The changes ensure consistent and correct import paths for authentication functions in the client application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 19:34:11 +08:00
Innei b88196b9e1 refactor: migrate auth functions to local import path
This commit updates multiple files to import auth-related functions from a local `~/lib/auth` instead of `@follow/shared/auth`. The changes ensure consistent import paths and improve local module organization.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 19:22:42 +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 d0bd89b106 fix(desktop): Improve platform-specific import resolution
- Add support for additional allowed extensions in import resolver
- Update import priorities for electron and web platforms
- Remove unnecessary `@follow/` import condition

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:50:58 +08:00
Innei 7382a03e0a fix(desktop): Enhance import resolver for platform-specific modules
- Update specific import plugin to handle `@follow/` imports
- Extend import resolution logic for platform-specific components

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:40:26 +08:00
Innei 62b3b8fe89 fix: build
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:37:07 +08:00
Innei 048f082776 refactor(desktop): Consolidate platform-specific components for desktop and electron
- Rename `.desktop.tsx` files to `.electron.tsx` for consistent naming
- Update import paths in main component files to use `.electron.tsx`
- Remove redundant files and consolidate platform-specific implementations
- Adjust import resolver for platform-specific components

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:34:53 +08:00
Innei d6795a0cab fix: import resolver for web
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 18:30:15 +08:00
Innei 43fc557c2b chore(desktop): Remove CHANGELOG.md and update package configuration
- Remove CHANGELOG.md file from desktop app
- Update package.json name to "Follow"
- Minor formatting adjustments in tsconfig.json

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 16:53:59 +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
Innei e5e9e8dfde ci: Update version setup action to support desktop and mobile app versioning
- Add input parameter to specify app type (desktop or mobile)
- Modify version extraction logic to use correct package.json based on app type
- Update build workflow to explicitly set app type when setting up version

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 15:32:32 +08: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
Innei 0ded5e37dd ci: Add 'release' task type to PR title validation workflow
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:35:24 +08:00
Innei f1c297810e chore: Remove CHANGELOG.md file
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:31:59 +08:00
Innei 15844fdfa7 release(desktop): release v0.3.8 2025-03-04 14:31:00 +08:00
Innei fcde08bb98 chore(desktop): Update package scripts to use pnpm for linting and formatting
- Prefix eslint and prettier commands with pnpm
- Ensure consistent script execution across the desktop package

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:30:43 +08:00
Innei 9b0db3024e chore(desktop): Move release configuration from root package.json to desktop package.json
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 14:29:58 +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
Stephen Zhou 9fffc982b1 build: use correct tailwind config to lint (#2947) 2025-03-03 21:26:07 +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 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 f423c061f8 build: update Electron platform-specific import plugin configuration
- Modify platform-specific import plugin to use 'electron' instead of fallback to 'web'
- Remove unnecessary React Native (RN) specific file cleanup plugin
- Simplify Vite configuration for desktop build

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:14:38 +08:00
Innei 534a21bb87 docs: update CONTRIBUTING.md with comprehensive development guides
resolves FOL-1686

- Add detailed instructions for developing in web, Electron, SSR, and mobile apps
- Include specific steps for each development environment
- Add guidance for native iOS module development
- Improve overall clarity and usability of contribution documentation

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 20:11:08 +08:00