- 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>
- 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>
- 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>
- 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>
* 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
* 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
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>
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>
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>
- 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>
- 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>
- 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>
* 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
- 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>
- Prefix eslint and prettier commands with pnpm
- Ensure consistent script execution across the desktop package
Signed-off-by: Innei <tukon479@gmail.com>
* 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
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- Convert WebViewDelegate to an extension of FOWebView
- Remove separate delegate class
- Use direct access to state and view controller
- Simplify navigation and script message handling
Signed-off-by: Innei <tukon479@gmail.com>
Refactored the WebView implementation in the mobile app to:
- Separate concerns in WebView delegate and configuration
- Simplify WebView initialization and state management
- Improve JavaScript injection and custom URL scheme handling
- Add content height change event support
Signed-off-by: Innei <tukon479@gmail.com>