feat: add user authentication UI to header component
Add login and register dialogs, user dropdown menu with profile link and logout option, and integrate with session management hook. Prevent hydration mismatches by conditionally rendering auth elements after mount. Update package-lock.json with new @esbuild dependencies for build tooling.
This commit is contained in:
1 parent
e641138887
commit
55eebde0ba
55 files changed
+7353
-7
No files matched your search
+14
-1
@@ -7,7 +7,10 @@
|
||||
"build": "next build --turbopack",
|
||||
"start": "next start",
|
||||
"lint": "biome check",
|
||||
"format": "biome format --write"
|
||||
"format": "biome format --write",
|
||||
"db:migrate": "tsx lib/db/migrations/run-migrations.ts",
|
||||
"db:seed": "tsx lib/db/seeds/servers-seed.ts",
|
||||
"db:test": "tsx lib/db/test-connection.ts"
|
||||
},
|
||||
"keywords": [
|
||||
"tibia marketplace",
|
||||
@@ -26,25 +29,33 @@
|
||||
"@radix-ui/react-dialog": "^1.1.15",
|
||||
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
||||
"@radix-ui/react-icons": "^1.3.2",
|
||||
"@radix-ui/react-label": "^2.1.7",
|
||||
"@radix-ui/react-navigation-menu": "^1.2.14",
|
||||
"@radix-ui/react-separator": "^1.1.7",
|
||||
"@radix-ui/react-slot": "^1.2.3",
|
||||
"@radix-ui/react-tabs": "^1.1.13",
|
||||
"@types/bcrypt": "^6.0.0",
|
||||
"@types/canvas-confetti": "^1.9.0",
|
||||
"@types/jsonwebtoken": "^9.0.10",
|
||||
"@types/pg": "^8.15.6",
|
||||
"bcrypt": "^6.0.0",
|
||||
"better-sqlite3": "^12.4.1",
|
||||
"canvas-confetti": "^1.9.4",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"cobe": "^0.6.5",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"lucide-react": "^0.540.0",
|
||||
"motion": "^12.23.24",
|
||||
"next": "15.5.0",
|
||||
"next-intl": "^4.4.0",
|
||||
"next-themes": "^0.4.6",
|
||||
"pg": "^8.16.3",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
"react-qr-code": "^2.0.18",
|
||||
"recharts": "^3.3.0",
|
||||
"redis": "^5.9.0",
|
||||
"sanitize-html": "^2.17.0",
|
||||
"tailwind-merge": "^3.3.1",
|
||||
"validator": "^13.15.20",
|
||||
@@ -58,7 +69,9 @@
|
||||
"@types/react-dom": "^19",
|
||||
"@types/sanitize-html": "^2.16.0",
|
||||
"@types/validator": "^13.15.3",
|
||||
"dotenv": "^17.2.3",
|
||||
"tailwindcss": "^4",
|
||||
"tsx": "^4.20.6",
|
||||
"tw-animate-css": "^1.3.7",
|
||||
"typescript": "^5"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user