list users
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import type { AuthUser } from '~/types/auth';
|
||||
|
||||
definePageMeta({
|
||||
layout: 'admin',
|
||||
middleware: ['is-admin'],
|
||||
@@ -8,21 +6,6 @@ definePageMeta({
|
||||
|
||||
const session = useAuthSession();
|
||||
const adminStore = useAdminStore();
|
||||
|
||||
const users: AuthUser[] = [
|
||||
{
|
||||
id: '5a307466-bf2e-4cf2-9b11-61f024e8fa71',
|
||||
name: '409',
|
||||
email: '409dev@protonmail.com',
|
||||
admin: true,
|
||||
},
|
||||
{
|
||||
id: '99132ce4-045c-4d4b-b957-61f5e99e708b',
|
||||
name: 'test-user',
|
||||
email: 'test@user.com',
|
||||
admin: false,
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -41,7 +24,7 @@ const users: AuthUser[] = [
|
||||
<ScrollArea class="max-h-96">
|
||||
<div class="flex flex-col gap-4">
|
||||
<AdminUserListing
|
||||
v-for="user in users"
|
||||
v-for="user in adminStore.users"
|
||||
:key="user.id"
|
||||
:user
|
||||
class="group/user flex flex-row items-center justify-between gap-4"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollArea } from '@/components/ui/scroll-area';
|
||||
import type { Warren } from '~/types/warrens';
|
||||
import type { Warren } from '#shared/types/warrens';
|
||||
|
||||
definePageMeta({
|
||||
middleware: ['authenticated'],
|
||||
|
||||
Reference in New Issue
Block a user