Commit Graph
135 Commits
Author SHA1 Message Date
Innei 01ed1c63b5 refactor: Progressive migration Client SDK (#4227)
* Implement code changes to enhance functionality and improve performance

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

* chore: update @follow-app/client-sdk to version 0.2.6 and add new dependencies
refactor: adjust types in server configs and features to use ExtractResponseData
feat: implement followApi for server configurations and API client context

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

* feat: move to client-sdk

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

* feat: update @follow-app/client-sdk to version 0.3.22 and add ShrinkingFocusBorder component

- Updated the version of @follow-app/client-sdk in pnpm-workspace.yaml from 0.3.15 to 0.3.22.
- Introduced a new ShrinkingFocusBorder component that animates a focus border effect using a canvas element.
- Implemented resize observer for persistent border and animation logic for visibility changes.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-23 01:21:34 +08:00
Cason Kervis 0f9aa59d6b fix(icon): polished icon (#3956)
* fix(icon): reoptimized icon

* fix(compress): use svgo 4.0 compress

* fix: add svg title

* fix: update icon in Apps

* fix: update icon in ssr

* fix: optimize folo text svg

* fix: optimize two icon

* fix: optimize lots icons

- change viewbox to 24
- merge path

* fix: optimize many icon

* fix: update mobile icons define

* fix: optmize ArrowUndoCircle icon

* fix: compress using svgo

* fix: using icon in simple-icons

* fix: optimize one icon

* fix: change instapaper to vertical input

* revert mgc icon compress

* fix: fix style in ssr og

* fix: change rss icon and folo icon same size
2025-07-14 21:36:04 +08:00
DIYgod 093e47cb0a feat: add fetch cache no-store and header cache-control no-store 2025-07-11 18:19:08 +08:00
DIYgod d7fa7ecaff feat: ssr login page no client prompt 2025-07-10 19:41:11 +08:00
DIYgod fd42f5ca54 feat: simplify ssr footer 2025-07-10 19:11:14 +08:00
DIYgod 6d4d53b41d feat: update layout spacing and enhance referral form alignment 2025-07-10 18:59:26 +08:00
DIYgod 912866fabe feat: ssr layout 2025-07-10 18:59:26 +08:00
lawvs f865d68295 fix: improve token extraction and error handling in TokenModal 2025-07-10 17:06:24 +08:00
30bb37c7b9 feat: referral (#3761)
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2025-07-10 09:47:11 +08:00
Innei 8b37c5314f chore: clean up package dependencies and remove unused i18n generation script
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-09 00:23:51 +08:00
Innei dc6bf7cb09 chore: update dependencies across multiple packages
- Bump various dependencies in package.json files, including updates to eslint, prettier, vite, and react-related packages.
- Update devDependencies such as es-toolkit, nbump, and others to their latest versions.
- Ensure consistency in @types/node and other related packages across the project.

This update enhances compatibility and performance across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-07 20:13:51 +08:00
+1 913b1178c8 fix(path): change path package to pathe (#4038)
* fix(path): change path package to pathe

* fix: handle special chat in filename, fixed
#3342

- Integrated @sindresorhus/slugify to format file names based on titles.
- Updated pnpm-lock.yaml to include new dependencies.
- Minor adjustments in package.json files to ensure consistency.

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

* fix: add eslint rule for use pathe first

* refactor: useWhoami from user store (#4061)

* refactor: useWhoami from user store

* update

* update

* update

* update

* return all

* fix: invalidate entries query after unsubscribe

* feat: implement imperative modal (#4041)

* feat: implement ImperativeModalProvider with modal context and controls

* fix: make onClose prop optional for bottom modal

* chore: add ImperativeModalProvider to context providers

* feat: wrap BottomModal content in KeyboardAvoidingView for better keyboard handling

* chore: add polyfill for Promise.withResolvers

* fix: wrap ImperativeModal in a View and update onClose to accept modal ID

* feat: implement ImperativeModal with context and modal control hooks

* refactor: redesign imperative modal with root-siblings

* fix: wrap BottomModal in a View to resolve rendering issues on Android

* refactor: replace Alert.prompt with modalPrompt for category creation and renaming

* fix(desktop): show login modal when auth fail

* feat: invalidate entry readability cache

* refactor: long press to open text select sheet for ai summary

* feat: new domain folo.is

* fix: enhance auth client with mobile-specific headers (#4064)

* feat(desktop): add missing i18n key (#4066)

* feat: update twitter handle

* docs: use google play badge

* feat: add hideAvatar prop to ProfileSettingForm for conditional avatar display

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

* docs: update images

* feat(ssr): add Google Analytics tracking to index.html

- Integrated Google Tag Manager for enhanced tracking and analytics capabilities.
- Added asynchronous loading of gtag.js and configuration for tracking ID G-DZMBZBW3EC.

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

* chore: Update Japanese Languages (#4078)

* chore: update ja.json

* chore: update 6 ja.json files

chore: update and bump 6 ja.json files.

* chore: update error/ja.json

fix locale/error/ja.json

* chore: auto-fix linting and formatting issues

* chore: update app/ja.json

* chore: update ja.json

* chore: update ja.json

* chore: update ja.json and tested local.

* chore: update ja.json

update settings/ja.json

* feat(i18n): update Japanese locale files with new error messages and dialog options

* chore(vscode): set default formatter for JSON and JSONC files

* Remove JSON and JSONC formatter settings

so sorry, @hyoban 😢

Perhaps my local settings are in. I have restored it to the original. Thanks for your kindness. 
You have always been a great help.

* chore: auto-fix linting and formatting issues

* chore: update ja.json

sync and update settings/ja.json

* chore: update Japanese translations for clarity and consistency

* chore: update some ja.json

* chore(locales): update Japanese translations with new entry actions and settings

* fix: update Japanese translations for user actions and login prompts

* feat(locales): add Japanese translations for login and registration features

* feat(locales): update Japanese translations for RSSHub and related settings

* chore: auto-fix linting and formatting issues

* feat(i18n): update Japanese locale with new toolbar customization and profile link social fields

* feat(locales): update Japanese translations for search results and two-factor authentication

* feat: 日本語ローカライズの更新

---------

Co-authored-by: dai <dai@users.noreply.github.com>
Co-authored-by: Innei <i@innei.in>
Co-authored-by: Innei <Innei@users.noreply.github.com>

* feat(desktop): real user deletion

* feat(mobile): real user deletion

* feat(settings): add accent color customization and update UI components

- Introduced accent color setting to allow users to customize the app's interface.
- Updated various components to utilize the new accent color, including buttons, sliders, and text elements.
- Added translations for accent color settings in English, Japanese, and Chinese.
- Refactored related styles in Tailwind CSS configuration to support the new accent color feature.

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

* fix: update text styling for feed parameters message

* feat: use insertedBefore for mark above read

* feat(mobile): use insertedBefore for mark above read

* fix: improved lightbox component for iOS (#4089)

* feat: replace Image component with ProxyImage for improved performance and styling

* fix: update Image component style prop

* fix: improved layout in ImageItem component

* feat: integrate animated ref for media preview in EntryPictureItem

* fix: option can not be press when out of screen in the FlatList

* fix: lint

* fix: types

* fix: update lock

* fix: lint

* chore: auto-fix linting and formatting issues

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: Whitewater <me@waterwater.moe>
Co-authored-by: lawvs <18554747+lawvs@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Konv Suu <2583695112@qq.com>
Co-authored-by: dai <dosada@gmail.com>
Co-authored-by: dai <dai@users.noreply.github.com>
Co-authored-by: Innei <i@innei.in>
Co-authored-by: Innei <Innei@users.noreply.github.com>
2025-07-07 16:55:37 +08:00
lawvs 140cfa9ddc fix: types 2025-07-07 15:34:59 +08:00
Innei d8e57f3a10 feat(ssr): add Google Analytics tracking to index.html
- Integrated Google Tag Manager for enhanced tracking and analytics capabilities.
- Added asynchronous loading of gtag.js and configuration for tracking ID G-DZMBZBW3EC.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-04 15:49:10 +08:00
DIYgod d14c8f5c51 feat: new domain folo.is 2025-07-03 13:13:42 +08:00
DIYgod 35fb71cbbe feat: x-app-platform header 2025-07-01 20:31:44 +08:00
Innei 5375458495 Merge pull request #4044 from RSSNext/sync/main-to-dev-20250630
Sync main branch to dev branch
2025-07-01 13:52:48 +08:00
Stephen Zhou d743200a85 fix: remove duplicated deep link scheme for login redirect 2025-07-01 12:08:01 +08:00
Innei e27a2654d6 fix: handle undefined titles in user group sorting, resolves FOL-2224
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 00:16:29 +08:00
DIYgod df80682b2c Merge branch 'main' into dev 2025-06-29 10:27:30 +08:00
lawvs 7663d26188 fix: format file 2025-06-26 13:55:39 +08:00
Cason Kervis b2570218d5 fix: use relative path in 'vite-plugin-route-builder' config (#4002) 2025-06-25 17:10:30 +08:00
Innei 1579b08ace chore: ignore generated route import
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-24 13:44:23 +08:00
Innei d7f8f1d58d chore: ignore generated route import
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-24 13:43:15 +08:00
Innei db53bdb468 fix: ssr server move to esm (#3994)
* chore: fix prettier error

* refactor: migrate to ES modules and update global constants handling

- Changed the global constants definition to use Object.assign for better clarity.
- Replaced usage of `isDev` with `__DEV__` throughout the codebase for consistency.
- Updated imports to use ES module syntax, including dynamic imports where necessary.
- Removed the deprecated `env.ts` file and adjusted related logic in the build scripts.
- Ensured compatibility with ES module format in various files, including Vite and API client configurations.

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

* refactor(api): migrate handler to ES module syntax

- Updated the API handler to use ES module export syntax.
- Removed commented-out configuration for Node.js runtime.

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

* feat(404): enhance 404 page with animations and improve accessibility

- Replaced `motion` components with `m` shorthand for better readability.
- Introduced animation controls for various elements on the 404 page to enhance user experience.
- Updated the glitch text array for consistency.
- Adjusted layout and styling for improved visual presentation.
- Removed unused `framer-lazy-feature` file and updated `MotionProvider` to use `domMax` for performance optimization.

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

* feat(og): replace Folo text with SVG logo in OGCanvas component

- Updated the OGCanvas component to replace the static "Folo" text with a new LogoText SVG component for improved branding.
- Added the LogoText function that defines the SVG structure for the logo.

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

* refactor(tsdown): update font imports to use dynamic loading

- Modified font imports in `tsdown.config.ts` to utilize dynamic loading with `then` for improved performance and error handling.
- Introduced a no-operation function to handle the promise resolution of font imports.

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

* refactor(404): replace Jotai provider with RootProviders for improved context management

- Updated the 404 component to use `RootProviders` instead of the Jotai store provider for better context handling.
- Simplified the component structure while maintaining functionality.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-24 13:16:20 +08:00
DIYgod 592769758d chore: format 2025-06-23 18:36:50 +08:00
DIYgod c474c9c805 Merge pull request #3984 from RSSNext/sync/main-to-dev-20250623
Sync main branch to dev branch
2025-06-23 17:51:32 +08:00
Innei 3d6c3e0578 feat: redeisgn og
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 14:23:39 +08:00
Innei fb97d8857e chore(ssr): update global constants and clean up imports
- Changed APP_NAME constant from package.json to a hardcoded value "Folo".
- Removed unused import of Document from linkedom in seo.ts for cleaner code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 13:47:37 +08:00
Innei 6d76d6b558 chore: update dependencies and improve type safety
- Updated various package dependencies across the project, including @sentry/react, @tanstack/react-query, and others to their latest versions for improved performance and security.
- Enhanced type safety in several components by refining type definitions, particularly in motion-related imports.
- Adjusted transition configurations to utilize new presets for smoother animations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 23:32:42 +08:00
Innei 9f0e7522d9 feat: update vite-plugin-route-builder and related configurations
- Renamed the plugin from '@follow/vite-plugin-route-builder' to '@follow-app/vite-plugin-route-builder' for better clarity.
- Added support for synchronous loading of components with the new '.sync.tsx' file extension.
- Enhanced the route generation logic to accommodate custom segment group ordering.
- Updated package dependencies and configurations, including the addition of test scripts and improved documentation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 21:52:26 +08:00
Stephen Zhou 018f371654 chore: ignore generated-routes.ts in eslint 2025-06-20 09:27:34 +08:00
Stephen Zhou ab9dd3c116 chore: ignore generated-routes.ts in prettier 2025-06-20 09:25:40 +08:00
Stephen Zhou 20858f6614 chore: do not ignore generated-routes.ts to pass type check 2025-06-20 08:32:40 +08:00
Innei e65a5f83a1 fix: update isDev environment variable to use NODE_ENV
- Changed the isDev constant to dynamically set its value based on the NODE_ENV environment variable, improving flexibility for development and production environments.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 02:02:03 +08:00
Innei f372b2f403 refactor: migrate from tsup to tsdown for build process
- Replaced `tsup` with `tsdown` in multiple package configurations to streamline the build process.
- Updated build scripts in `package.json` files across various applications and packages.
- Introduced new `tsdown.config.ts` files for configuration in the `ssr` and `readability` packages.
- Removed obsolete `tsup.config.ts` files to clean up the project structure.

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 01:59:55 +08:00
Innei 1d83313872 feat: add vite-plugin-route-builder for dynamic route generation
- Introduced a new plugin to generate React Router routes from a file system-based structure, enhancing routing capabilities similar to Next.js.
- Updated various configurations and components to integrate the new plugin, including automatic route generation during build time.
- Refactored existing router implementations to utilize generated routes, improving maintainability and performance.

Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 01:41:53 +08:00
Innei fd7f57e3cd fix: update header shadow style and clean up user query logic
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 14:33:20 +08:00
Innei bd4a921cdc feat(share): group un-categorized subscription
- Introduced a constant `UN_CATEGORIZED` to manage uncategorized subscriptions more effectively.
- Updated the logic to assign uncategorized subscriptions to the `UN_CATEGORIZED` category.
- Implemented sorting for uncategorized subscriptions to display them last, improving the organization of subscription groups.

These changes aim to streamline the categorization process and enhance the user experience when viewing subscriptions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 21:36:31 +08:00
Innei 4953caf5de feat(header): re-design share header
- Introduced enhanced scroll state management to adjust header elevation and compactness based on scroll position.
- Updated the layout of the header and container components for better responsiveness and visual appeal.
- Improved logo and social media links sections with animations and transitions for a more dynamic user experience.

These changes aim to provide a more intuitive and visually appealing header that adapts to user interactions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 20:53:12 +08:00
Innei 072f503ba6 refactor(feed): optimize feed display and error handling
- Introduced a constant `SIZE` to manage the number of feeds displayed, improving maintainability.
- Updated the feed count display to use `list.data.feedCount` for accuracy.
- Enhanced error handling in `callNotFound` to specifically manage `FetchError` instances, improving robustness.

These changes aim to streamline feed management and enhance error reporting in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 20:44:37 +08:00
0-o0 cca1a9f268 fix: icon can't follow theme switch correctly (#3922) 2025-06-16 11:38:22 +08:00
Stephen Zhou 1ad0312674 fix: remove coop & coep header, use localStorage for web for now 2025-06-13 23:42:40 +08:00
0-o0 3578188e02 fix(ssr):can't follow system theme switch issuse (#3917) 2025-06-13 22:59:48 +08:00
Innei cf72753b59 feta: redesign image previewer, fixed #3884
- Removed unused response header configuration from Vite render config.
- Simplified the media preview component structure by removing unnecessary state and props.
- Enhanced the image loading experience with a new DOMImageViewer for better zoom functionality.
- Updated FeedIcon component to utilize the replaceImgUrlIfNeed utility for image URLs.
- Adjusted styles and properties for improved UI consistency and performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 21:52:54 +08:00
Innei 20d8590c58 fix(auth): add support for dark mode icons in login components
- Introduced `iconDark64` property to `AuthProvider` interface for dark mode icon support.
- Updated `LoginModalContent` and `Login` components to conditionally render dark mode icons based on the current theme.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 21:06:15 +08:00
Stephen Zhou 52dd557d3d refactor(desktop): remove old database and service (#3911) 2025-06-12 15:58:47 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
Innei a92bdb89b3 feat(user-profile): integrate user lists and subscriptions in profile page
- Added functionality to fetch and display user-created lists alongside subscriptions.
- Introduced new components for rendering lists and subscriptions with loading states.
- Updated metadata fetching to include lists data for user profiles.
- Refactored user subscriptions query for better data handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-09 21:20:22 +08:00
Innei b833864c9c fix(meta-handler): update URL handling in injectMetaHandler to include search parameters
- Refactored the URL parsing logic to create a new URL object for better handling of pathname and search parameters.
- Added searchParams to the handler's parameters for improved data accessibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-08 11:56:39 +08:00