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:
@@ -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>
|
||||
Reference in New Issue
Block a user