mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 09:06:36 +08:00
feat: add user management features including user creation, editing, and role management
- Implemented user API functions for fetching, creating, updating, and managing users. - Created a UsersPage component for displaying and managing users with search and pagination. - Added types for user data and mutation payloads. - Introduced a LegacyRouteRedirect component for handling legacy routes. - Defined settings-related types for better type safety in settings management.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
import { FilesPage } from '@/features/files/components/files-page';
|
||||
|
||||
export default function FilesPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='文件管理'
|
||||
description='阶段 4 将在此接入文件列表、下载与管理交互。'
|
||||
/>
|
||||
);
|
||||
export default function FilesRoute() {
|
||||
return <FilesPage />;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export default function DashboardPage() {
|
||||
<div className='space-y-6'>
|
||||
<PageHeader
|
||||
title='ATSFlare 管理端迁移进度'
|
||||
description='新版前端已完成认证与框架层迁移,当前进入阶段 3,优先接入核心业务模块。'
|
||||
description='新版前端已完成认证、核心链路与阶段 4 边缘模块迁移,当前可继续推进联调与回归。'
|
||||
/>
|
||||
<DashboardOverview />
|
||||
</div>
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
import { SettingsPage } from '@/features/settings/components/settings-page';
|
||||
|
||||
export default function SettingsPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='设置'
|
||||
description='阶段 4 将在此接入系统设置、运维设置与个人设置重组。'
|
||||
/>
|
||||
);
|
||||
export default function SettingsRoute() {
|
||||
return <SettingsPage />;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
import { UsersPage } from '@/features/users/components/users-page';
|
||||
|
||||
export default function UsersPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='用户管理'
|
||||
description='阶段 4 将在此接入用户列表、角色管理与搜索体验。'
|
||||
/>
|
||||
);
|
||||
export default function UsersRoute() {
|
||||
return <UsersPage />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user