* 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>
76 lines
2.3 KiB
JSON
76 lines
2.3 KiB
JSON
{
|
|
"name": "@follow/ssr",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "cross-env NODE_ENV=production vite build && tsx scripts/prepare-vercel-build.ts && tsdown && tsx scripts/cleanup-vercel-build.ts",
|
|
"dev": "cross-env NODE_ENV=development tsx watch --include \"src/**/*.ts\" --exclude \"./*.ts\" --exclude \"./*.mjs\" index.ts",
|
|
"meta": "tsx helper/meta-map.ts --watch",
|
|
"start": "tsx index.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/middie": "9.0.3",
|
|
"@fastify/request-context": "6.2.0",
|
|
"@follow/tracker": "workspace:*",
|
|
"@fontsource/sn-pro": "5.2.5",
|
|
"@hcaptcha/react-hcaptcha": "1.12.0",
|
|
"@openpanel/web": "1.0.1",
|
|
"@radix-ui/react-avatar": "1.1.10",
|
|
"@resvg/resvg-js": "2.6.2",
|
|
"@sentry/react": "9.30.0",
|
|
"@tanstack/react-query": "5.80.10",
|
|
"blurhash": "2.0.5",
|
|
"dayjs": "1.11.13",
|
|
"fastify": "5.4.0",
|
|
"i18next": "25.2.1",
|
|
"jotai": "2.12.5",
|
|
"kose-font": "1.0.0",
|
|
"linkedom": "0.18.11",
|
|
"motion": "12.18.1",
|
|
"ofetch": "1.4.1",
|
|
"rc-modal-sheet": "1.0.0",
|
|
"react-blurhash": "0.3.0",
|
|
"react-hook-form": "7.58.1",
|
|
"react-hotkeys-hook": "5.1.0",
|
|
"react-i18next": "15.5.3",
|
|
"react-photo-view": "1.2.7",
|
|
"react-router": "7.6.2",
|
|
"satori": "0.15.2",
|
|
"sonner": "2.0.5",
|
|
"use-context-selector": "2.0.0",
|
|
"xss": "1.0.15",
|
|
"zod": "3.25.67"
|
|
},
|
|
"devDependencies": {
|
|
"@follow-app/vite-plugin-route-builder": "workspace:*",
|
|
"@follow/components": "workspace:*",
|
|
"@follow/configs": "workspace:*",
|
|
"@follow/constants": "workspace:*",
|
|
"@follow/hooks": "workspace:*",
|
|
"@follow/legal": "workspace:*",
|
|
"@follow/models": "workspace:*",
|
|
"@follow/shared": "workspace:*",
|
|
"@follow/types": "workspace:*",
|
|
"@follow/utils": "workspace:*",
|
|
"@types/html-minifier-terser": "7.0.2",
|
|
"chokidar": "4.0.3",
|
|
"code-inspector-plugin": "0.20.12",
|
|
"daisyui": "4.12.24",
|
|
"dotenv-flow": "4.1.0",
|
|
"es-toolkit": "1.39.3",
|
|
"fast-glob": "3.3.3",
|
|
"foxact": "0.2.49",
|
|
"html-minifier-terser": "7.2.0",
|
|
"lightningcss": "1.30.1",
|
|
"masonic": "4.1.0",
|
|
"nanoid": "5.1.5",
|
|
"path-to-regexp": "8.2.0",
|
|
"tailwindcss-uikit-colors": "1.0.0-alpha.1",
|
|
"tsdown": "0.12.8",
|
|
"tsx": "4.20.3",
|
|
"typescript": "catalog:",
|
|
"vite": "6.3.5"
|
|
}
|
|
}
|