Commit Graph

166 Commits

Author SHA1 Message Date
9b0ae6f4bb feat: 优化仪表板数据结构类型定义,提升代码可读性 2025-09-24 12:12:40 +08:00
636b4d5ea0 feat: 添加仪表板功能,整合统计数据并优化后台管理界面 2025-09-24 12:09:16 +08:00
2bcaad716d feat: 为当前登录用户组件添加边框和内边距样式,提升视觉效果 2025-09-24 09:58:31 +08:00
a744616884 feat: 调整评论输入框的渲染顺序,确保一次只显示一个输入框 2025-09-24 09:57:07 +08:00
e3e3384995 feat: 添加日期格式化功能,支持不同年份显示完整日期;在评论项中添加调试日志Close #18
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 17s
2025-09-24 09:54:44 +08:00
abf8d63607 Merge pull request #25 from snowykami/fix/17
Fix/17
2025-09-24 09:33:34 +08:00
e44637fb2a feat: 更新验证码逻辑,优化邮件验证功能,增加验证码冷却时间,改进用户体验Closes #17 2025-09-24 09:33:09 +08:00
291f52395b feat: 新增 email_test.go 文件,包含 Email 渲染模板的单元测试 2025-09-24 09:32:56 +08:00
fd154c67ea feat: 优化用户登出逻辑,移除不必要的 API 调用;更新中文翻译以提升用户体验
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 13s
2025-09-23 18:53:03 +08:00
3192a294c2 Merge pull request #24 from snowykami/fix/20
feat: 更新 OIDC 登录逻辑,确保用户在绑定前登出当前账户;修改中文翻译以提升用户体验
2025-09-23 18:05:33 +08:00
6e3c3cddee feat: 更新 OIDC 登录逻辑,确保用户在绑定前登出当前账户;修改中文翻译以提升用户体验 2025-09-23 18:03:53 +08:00
062c6d2d3c Merge pull request #23 from snowykami/fix/20
feat: 在 OidcLogin 方法中添加当前用户获取逻辑,优化用户绑定流程 Closes #20
2025-09-23 17:55:50 +08:00
f59767d914 feat: 在 OidcLogin 方法中添加当前用户获取逻辑,优化用户绑定流程 Closes #20 2025-09-23 17:55:25 +08:00
27b7612956 Merge pull request #22 from snowykami/fix/21
feat: 更新用户界面,添加注销功能和绑定第三方账号选项,优化表单布局
2025-09-23 17:39:43 +08:00
457c40cc0f feat: 更新用户界面,添加注销功能和绑定第三方账号选项,优化表单布局 2025-09-23 17:37:40 +08:00
349cf5a5b7 refactor: restructure authentication components and routes
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 13s
- Removed the old reset password form component and replaced it with a new implementation.
- Updated routing paths for login, registration, and reset password to be under a common auth path.
- Added new login and registration pages with corresponding forms.
- Introduced a common auth header component for consistent branding across auth pages.
- Implemented a current logged-in user display component.
- Enhanced the register form to include email verification and captcha.
- Updated translations for new and modified components.
- Refactored the navigation bar to include user avatar dropdown and improved menu structure.
2025-09-23 02:21:03 +08:00
0f7cbb385a fix: 修复获取用户语言时的潜在错误,确保安全访问用户属性
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 11s
2025-09-23 00:38:51 +08:00
e1277ac9a7 feat: 提取并重用 AuthHeader 组件,简化登录和重置密码页面 2025-09-23 00:36:02 +08:00
b0b32c93d1 feat: add email verification and password reset functionality
- Introduced environment variables for database and email configurations.
- Implemented email verification code generation and validation.
- Added password reset feature with email verification.
- Updated user registration and profile management APIs.
- Refactored user security settings to include email and password updates.
- Enhanced console layout with internationalization support.
- Removed deprecated settings page and integrated global settings.
- Added new reset password page and form components.
- Updated localization files for new features and translations.
2025-09-23 00:33:34 +08:00
c9db6795b2 feat: 添加邮箱验证中间件和工具函数 2025-09-23 00:33:28 +08:00
aeff954481 feat: 更新用户显示名称格式化逻辑,优化头像获取方式,增强用户界面 2025-09-22 21:07:48 +08:00
42496cfe5a Merge pull request #16 from snowykami/copilot/fix-60cc94a6-e38d-41c7-88cc-4697e65463f6
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 13s
Fix comment pagination bug - prevent comments from disappearing on load more
2025-09-22 10:39:04 +08:00
b96a9e98e2 Fix comment pagination bug - prevent comments from disappearing on load more
Co-authored-by: snowykami <79104275+snowykami@users.noreply.github.com>
2025-09-21 17:49:41 +00:00
d223506ee3 Initial analysis of comment pagination bug
Co-authored-by: snowykami <79104275+snowykami@users.noreply.github.com>
2025-09-21 17:46:19 +00:00
ac78291955 Initial plan 2025-09-21 17:43:01 +00:00
3a862856c3 feat: 添加提交按钮的加载状态,防止重复提交
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 17s
2025-09-20 14:49:56 +08:00
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