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)
This commit is contained in:
Chaos
2025-11-27 17:12:03 +08:00
parent 2a14389daf
commit 2caa8f26a3
18 changed files with 596 additions and 458 deletions

View File

@@ -1,18 +1,4 @@
<script lang="ts">
import { hasRole } from '$lib/utils/auth.ts';
const isAdmin = hasRole(['admin'])
</script>
<div class="h-screen w-screen">
{#if isAdmin}
<div>
是管理员
</div>
{:else }
<div>
没有权限
</div>
{/if}
</div>