Commit Graph

140 Commits

Author SHA1 Message Date
640b3299ac refactor: remove data-table component and related functionality
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
2025-09-20 14:36:29 +08:00
709aa82337 feat: add new color themes and styles for rose, violet, and yellow
- 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.
2025-09-20 12:45:10 +08:00
f8e4a84d53 feat: 添加文件驱动和本地驱动实现,支持文件操作功能 2025-09-20 12:45:01 +08:00
10dadc0af4 fix: 评论删除的条件判断 2025-09-19 16:11:24 +08:00
1c20598126 refactor: 移除组件中的用户属性,改为使用上下文中的用户信息
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 9s
2025-09-18 23:33:08 +08:00
a2ce70278e feat: 实现用户认证上下文,重构相关组件以支持用户状态管理 2025-09-18 23:29:23 +08:00
2fa462ae60 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.
2025-09-18 21:45:18 +08:00
e5896d05b1 refactor: 调整滚动条样式,删除OverlayScrollbar组件及其样式 2025-09-15 21:35:36 +08:00
16d8eae61f fix: 修复评论区用户态异常 2025-09-15 16:56:46 +08:00
6bae6947f5 feat: 更新PostPage组件的参数类型定义,确保params为Promise类型
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 9s
2025-09-14 23:57:24 +08:00
bd34cddbf3 feat: 重构PostPage组件,提取参数类型定义 2025-09-14 23:55:35 +08:00
88166a2c7d feat: add sidebar component with context and mobile support
- 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.
2025-09-14 23:52:18 +08:00
2e715b1ac7 feat: 添加中间件包以支持请求跟踪功能 2025-09-14 23:51:58 +08:00
a0b2c75839 feat: Closes #14 更新用户模型,确保用户名字段为非空;优化OIDC请求和用户信息处理逻辑;添加新的重写规则以支持HTTPS
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 19s
2025-09-14 13:54:23 +08:00
78cc596544 feat: 更新删除评论逻辑,增加对目标内容所有者的权限检查;添加编辑者角色常量 2025-09-13 23:46:07 +08:00
8be05cd9c2 feat: 更新评论功能,优化代码格式,添加位置格式化功能
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 52s
2025-09-13 16:55:58 +08:00
4da06b931f feat: 添加评论功能的客户端信息显示选项,更新相关接口和组件 2025-09-13 16:42:23 +08:00
2d0e1a46e2 feat: 添加评论功能的客户端信息显示选项,更新相关接口和组件 2025-09-13 16:04:09 +08:00
011dc298c2 feat: 添加用户位置、操作系统和浏览器信息到评论功能 2025-09-13 15:08:46 +08:00
44f15e1ff1 feat: 添加 utils 包及相关功能,包括 UA 解析和 IP 信息获取 2025-09-13 15:08:39 +08:00
3fdd801d28 feat: 更新评论输入框的占位符,支持自定义占位符文本
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 27s
2025-09-12 16:27:12 +08:00
0a7cbc00fc fix: 修正创建评论时获取远程地址的方式,使用客户端IP替代原有方法 2025-09-12 16:02:14 +08:00
f7b2022f59 feat: 添加用户代理字段到评论功能,支持记录用户的用户代理信息 2025-09-12 15:54:36 +08:00
f1a26f5e9c refactor: 精简复制到剪贴板的实现,移除冗余注释和回退逻辑 2025-09-12 15:51:59 +08:00
5fab1806bc feat: 添加远程地址字段到评论功能,支持记录用户的远程地址 2025-09-12 15:50:44 +08:00
4c907f0a87 fix: 更新复制按钮的标题为国际化文本 2025-09-12 13:53:56 +08:00
31fadbc34c Merge branch 'main' of https://github.com/snowykami/neo-blog 2025-09-12 13:53:07 +08:00
38e7eca5e9 feat: 添加代码块复制功能,支持剪贴板操作并提供用户反馈 2025-09-12 13:53:04 +08:00
556a24e7da Merge pull request #11 from snowykami/fix/6-error-login-response
fix: Closes #6 优化登录时的状态反馈,且登录失败后会刷新验证码
2025-09-12 13:38:37 +08:00
5bf77ad915 fix: Closes #6 优化登录时的状态反馈,且登录失败后会刷新验证码 2025-09-12 13:38:19 +08:00
eff7d3d5bc Merge pull request #10 from snowykami/fix/5-error-site-language
fix: Closes #5 修复首选语言检测错误的问题
2025-09-12 13:24:16 +08:00
99b97bb8c4 fix: Closes #5 修复首选语言检测错误的问题 2025-09-12 13:23:54 +08:00
92020fa1e5 Merge pull request #9 from snowykami/fix/1-comment-queue
fix: Closes #4 修复评论发布时之前的评论被移出列表的问题
2025-09-12 13:13:29 +08:00
1a230c85b5 fix: Closes #4 修复评论发布时之前的评论被移出列表的问题 2025-09-12 13:12:09 +08:00
d893300cac feat: 优化页面切换时的滚动行为,确保用户体验流畅 2025-09-12 13:02:37 +08:00
d1d8aa529f feat: Refactor comment section to correctly handle API response structure
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 9s
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
2025-09-12 00:26:08 +08:00
b3e8a5ef77 feat: 添加移动端检测功能,优化组件动画效果
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 9s
2025-09-11 00:03:03 +08:00
29dc8bf27a feat: 优化侧边栏动画效果,统一移动端和桌面端的动画属性 2025-09-10 23:53:26 +08:00
f5b30a6fe4 feat: 添加 useDevice 钩子以判断移动端,优化组件动画效果 2025-09-10 23:45:54 +08:00
77eaa7a612 feat: 添加 motion 动画支持,优化组件动画效果,调整动画持续时间 2025-09-10 23:33:55 +08:00
7a1af795ef feat: 优化登录处理逻辑,使用 Promise 处理登录请求,提升代码可读性 2025-09-10 21:52:25 +08:00
8a018a3c55 feat: 添加登录状态提示,优化用户登录体验 2025-09-10 21:51:12 +08:00
8b7b9987ed feat: 更新验证码组件成功状态显示,优化用户体验 2025-09-10 21:41:07 +08:00
40cbda117d feat: 更新验证码组件,添加 onAbort 处理,优化错误状态显示 2025-09-10 21:36:35 +08:00
c17100ed3c feat: 在验证码组件中添加错误状态显示,提升用户反馈体验 2025-09-10 21:21:51 +08:00
d69bf6c968 feat: 添加错误状态处理和错误标记组件,增强验证码功能 2025-09-10 21:20:45 +08:00
4781d81869 feat: add captcha support for user login and enhance user profile page
- 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.
2025-09-10 21:15:36 +08:00
a7da023b1e 优化了评论分页加载的列表显示
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 15s
2025-09-10 14:47:45 +08:00
eb66a51051 feat: 添加点击标签切换隐私状态功能,提升用户交互体验 2025-09-10 13:01:56 +08:00
2bf6c50c68 refactor: 优化评论模块代码格式,提升可读性 2025-09-10 13:00:14 +08:00