Files
Folo/apps/server/package.json
T
7a6edb4575 feat: register or login with email and password (#2075)
* feat: login with password

* chore: auto-fix linting and formatting issues

* feat: show email

* refactor: login form

* chore: update

* fix: show login error

* chore: update

* credential provider

* feat: confirm password

* chore: update

* revokeOtherSessions when update password

* changelog

* typecheck

* chore: update

* chore: update hono

* feat: forget password

* chore: update

* feat: reset password page

* feat: register form

* chore: update

* chore: update

* chore: update

* chore: update

* fix: email login handler

* fix: navigate to login after register

* chore: remove forget password button for now

* chore: update

* feat: forget password page

* chore: update hono

* fix: forget-password link

* feat: login email text

* refactor: enhance login and forget password functionality

- Updated the forget password page to include a back navigation button using MotionButtonBase.
- Refactored the login component to utilize the new Login module, simplifying the structure.
- Adjusted translations for consistency in the login text across English and German locales.
- Improved the useAuthProviders hook to return a more structured AuthProvider interface.

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

* feat: add form validation and UI enhancements for login-related pages

- Introduced form validation state management in forget-password, register, and reset-password components.
- Updated button states to be disabled when forms are invalid, improving user experience.
- Enhanced UI elements with consistent styling and layout adjustments, including the addition of MotionButtonBase for navigation.
- Improved accessibility and responsiveness of card components.

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

* feat: enhance login component with dynamic provider buttons

- Added MotionButtonBase for improved button animations and interactions.
- Refactored the rendering logic to conditionally display login options based on the presence of credential providers.
- Introduced a new icon mapping for providers to enhance visual representation.
- Improved layout and styling for better user experience during login.

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

* feat: add GitHub provider icon and adjust button margin in login component

- Introduced a GitHub icon to the provider icon map for enhanced visual representation.
- Adjusted the margin of the submit button to improve layout consistency.

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

* chore: update

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: hyoban <hyoban@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2024-12-16 19:13:46 +08:00

69 lines
2.1 KiB
JSON

{
"name": "@follow/server",
"scripts": {
"build": "cross-env NODE_ENV=production vite build && tsx scripts/prepare-vercel-build.ts && tsup && 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"
},
"dependencies": {
"@fastify/middie": "9.0.2",
"@fastify/request-context": "6.0.1",
"@fontsource/sn-pro": "5.1.0",
"@openpanel/web": "1.0.1",
"@resvg/resvg-js": "2.6.2",
"@sentry/react": "8.42.0",
"@tanstack/react-query": "5.62.3",
"blurhash": "2.0.5",
"click-to-react-component": "1.1.2",
"dayjs": "1.11.13",
"fastify": "5.1.0",
"framer-motion": "11.13.1",
"i18next": "^24.0.5",
"jotai": "2.10.3",
"kose-font": "1.0.0",
"linkedom": "^0.18.5",
"ofetch": "1.4.1",
"rc-modal-sheet": "0.3.2",
"react": "^18.3.1",
"react-blurhash": "^0.3.0",
"react-hook-form": "7.54.0",
"react-hotkeys-hook": "4.6.1",
"react-i18next": "^15.1.3",
"react-photo-view": "1.2.6",
"react-router": "7.0.2",
"satori": "0.12.0",
"sonner": "1.7.1",
"use-context-selector": "2.0.0",
"xss": "1.0.15",
"zod": "3.23.8"
},
"devDependencies": {
"@follow/components": "workspace:*",
"@follow/constants": "workspace:*",
"@follow/hooks": "workspace:*",
"@follow/models": "workspace:*",
"@follow/shared": "workspace:*",
"@follow/types": "workspace:*",
"@follow/utils": "workspace:*",
"@radix-ui/react-avatar": "1.1.1",
"@types/html-minifier-terser": "7.0.2",
"chokidar": "4.0.1",
"daisyui": "4.12.20",
"dotenv-flow": "4.1.0",
"es-toolkit": "1.29.0",
"fast-glob": "^3.3.2",
"foxact": "0.2.43",
"html-minifier-terser": "7.2.0",
"lightningcss": "1.28.2",
"masonic": "4.0.1",
"nanoid": "5.0.9",
"path-to-regexp": "8.2.0",
"react-dom": "^18.3.1",
"tailwindcss": "3.4.16",
"tsup": "8.3.5",
"tsx": "4.19.2",
"vite": "6.0.3"
}
}