Refactor console layout and sidebar components; implement user authentication and loading states
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 31s

- Updated `RootLayout` to include user authentication logic and loading states.
- Removed redundant user authentication logic from `Page` component.
- Enhanced `AppSidebar` to fetch and display logged-in user information.
- Replaced `GravatarAvatar` with new `Avatar` component for user profile images.
- Added new pages for comment, file, post, and user management.
- Introduced utility functions for generating Gravatar URLs and fallback avatars based on usernames.
- Cleaned up unused imports and components across various files.
This commit is contained in:
2025-09-18 21:45:18 +08:00
parent e5896d05b1
commit 2fa462ae60
32 changed files with 253 additions and 953 deletions

View File

@ -38,6 +38,7 @@
"field-conv": "^1.0.9",
"highlight.js": "^11.11.1",
"lucide-react": "^0.525.0",
"md5": "^2.3.0",
"motion": "^12.23.12",
"next": "15.4.1",
"next-intl": "^4.3.4",
@ -56,6 +57,7 @@
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/md5": "^2.3.5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",