Commit Graph

6 Commits

Author SHA1 Message Date
Chaos
2caa8f26a3 feat(device): add device management feature
- Created device list page with loading states
- Implemented device service with API integration
- Added device response and request types
- Updated sidebar navigation with device management section
- Added laptop-settings icon
- Modified user table component to accept props
- Updated user service to return array of user profiles
- Changed app language to Chinese (zh-CN)
2025-11-27 17:12:03 +08:00
Chaos
2a14389daf feat(users): implement role filtering and pagination in user management
- Add role filtering functionality with radio buttons for each role
- Implement pagination controls at the bottom of the user table
- Update user table to show loading state without text
- Improve avatar display logic with conditional rendering
- Adjust styling for better UI consistency and responsiveness
- Remove unused sidebar state imports and commented-out code
- Add console logs for debugging data flow and role changes
- Modify search button size from sm to xs for better fit
- Enhance role badge styling with margin adjustments
- Refactor sidebar overlay and positioning classes
2025-11-26 09:21:38 +08:00
Chaos
7ce645704e fix(users): 优化用户列表加载失败时的错误展示
- 移除了原有简单的错误提示标签
- 新增了带最小高度容器包裹的错误信息展示区
- 在表格数据加载失败时显示更友好的错误提示
- 统一了组件内两处错误处理的样式结构
2025-11-26 07:26:32 +08:00
Chaos
e09129cab6 feat(users): 实现用户列表页面的异步数据加载与UI优化
- 添加角色服务依赖以获取用户组信息
- 将用户列表和角色信息改为流式加载
- 更新用户列表页面布局与样式
- 增加搜索框和用户组筛选下拉菜单
- 添加加载状态提示与错误处理显示
- 引入sass-embedded支持SCSS样式编写
- 调整表格列宽并增加响应式设计
- 添加面包屑导航与页面标题展示
- 新增添加用户按钮及操作下拉菜单
- 使用Icon组件替换原有图标实现方式
2025-11-26 07:23:20 +08:00
Chaos
7d627a45fb feat(auth): 实现基于令牌的用户认证和访问控制
- 在用户相关页面服务端加载函数中添加令牌检查,防止未授权访问
- 更新用户服务方法以支持携带认证令牌请求API
- 修改用户资料和用户列表组件以适配新的认证流程
- 引入侧边栏状态管理并在布局中注册上下文
- 调整HTTP客户端逻辑以正确传递请求头信息
- 更新用户类型定义以匹配后端返回的角色结构
- 优化应用头部和侧边栏组件的UI细节和交互逻辑
2025-11-25 23:33:32 +08:00
Chaos
ed542f108c feat(auth): implement login and user management features
- Added server-side login action with form handling and cookie storage
- Implemented user authentication service with token management
- Created user list page with data fetching from userService
- Developed reusable DataTable component with selection and pagination
- Enhanced AppSidebar with nested navigation and active state tracking
- Updated icon definitions and sprite symbols for UI consistency
- Improved HTTP client to properly handle request bodies for different methods
- Refactored auth store to manage authentication state and cookies
- Added strict typing for navigation items and table columns
- Removed obsolete code and simplified authentication flow
2025-11-24 17:11:41 +08:00