refactor: update sidebar item interface to use IconType
refactor: modify nav-main and nav-ucenter components to use IconType
refactor: delete unused nav-secondary component
refactor: clean up user profile page logic and improve avatar handling
refactor: remove section-cards component
refactor: add icon type definition for better type safety
- Introduced new CSS files for rose, violet, and yellow themes with custom color variables.
- Implemented dark mode styles for each theme.
- Created a color data structure to manage theme colors in the console settings.
feat: implement image cropper component
- Added an image cropper component for user profile picture editing.
- Integrated the image cropper into the user profile page.
feat: enhance console sidebar with user permissions
- Defined sidebar items with permission checks for admin and editor roles.
- Updated user center navigation to reflect user permissions.
feat: add user profile and security settings
- Developed user profile page with avatar upload and editing functionality.
- Implemented user security settings for password and email verification.
feat: create reusable dialog and OTP input components
- Built a dialog component for modal interactions.
- Developed an OTP input component for email verification.
fix: improve file handling utilities
- Added utility functions for file URI generation.
- Implemented permission checks for user roles in the common utilities.
- 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.
- Implemented Sidebar component with collapsible functionality.
- Added SidebarProvider for managing open state and keyboard shortcuts.
- Created SidebarTrigger, SidebarRail, and various sidebar elements (Header, Footer, Content, etc.).
- Integrated mobile responsiveness using Sheet component.
- Added utility hooks for mobile detection.
feat: create table component for structured data display
- Developed Table component with subcomponents: TableHeader, TableBody, TableFooter, TableRow, TableCell, and TableCaption.
- Enhanced styling for better readability and usability.
feat: implement tabs component for navigation
- Created Tabs component with TabsList, TabsTrigger, and TabsContent for tabbed navigation.
- Ensured accessibility and responsive design.
feat: add toggle group component for grouped toggle buttons
- Developed ToggleGroup and ToggleGroupItem components for managing toggle states.
- Integrated context for consistent styling and behavior.
feat: create toggle component for binary state representation
- Implemented Toggle component with variant and size options.
- Enhanced user interaction with visual feedback.
feat: add tooltip component for contextual information
- Developed Tooltip, TooltipTrigger, and TooltipContent for displaying additional information on hover.
- Integrated animations for a smoother user experience.
feat: implement mobile detection hook
- Created useIsMobile hook to determine if the user is on a mobile device.
- Utilized matchMedia for responsive design adjustments.
fix: Update Gravatar URL size and improve avatar rendering logic
style: Adjust footer margin for better layout consistency
refactor: Remove old navbar component and integrate new layout structure
feat: Enhance user profile page with user header component
chore: Remove unused user profile component
fix: Update posts per page configuration for better pagination
feat: Extend device context to support system theme mode
refactor: Remove unused device hook
fix: Improve storage state hook for better error handling
i18n: Add new translations for blog home page
feat: Implement pagination component for better navigation
feat: Create theme toggle component for improved user experience
feat: Introduce responsive navbar or side layout with theme toggle
feat: Develop custom select component for better UI consistency
feat: Create user header component to display user information
chore: Add query key constants for better code maintainability
- Refactored userLogin function to include captcha handling.
- Introduced getCaptchaConfig API to fetch captcha configuration.
- Added Captcha component to handle different captcha providers (hCaptcha, reCaptcha, Turnstile).
- Updated LoginForm component to integrate captcha verification.
- Created UserProfile component to display user information with avatar.
- Implemented getUserByUsername API to fetch user details by username.
- Removed deprecated LoginRequest interface from user model.
- Enhanced navbar and layout with animation effects.
- Removed unused user page component and added dynamic user profile routing.
- Updated localization files to include captcha-related messages.
- Improved Gravatar component for better avatar handling.