mirror of
https://github.com/Floriansylvain/snippets-manager-front.git
synced 2026-08-19 19:53:17 +02:00
feat: auth w.i.p.
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<script setup lang="ts">
|
||||
interface Category {
|
||||
categories: {
|
||||
id: number
|
||||
name: string
|
||||
user_id: number
|
||||
}[]
|
||||
pagination: {
|
||||
skip: number
|
||||
take: number
|
||||
}
|
||||
links: {
|
||||
next: string
|
||||
prev: string
|
||||
}
|
||||
total: number
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VDataTable
|
||||
:headers="[
|
||||
{ title: 'Name', key: 'name', sortable: true },
|
||||
{ title: 'Actions', key: 'actions', align: 'end', sortable: false }
|
||||
]"
|
||||
:items="[
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' },
|
||||
{ name: 'pouet' }
|
||||
]"
|
||||
>
|
||||
<template
|
||||
v-slot:[`item.actions`]="{
|
||||
// item
|
||||
}"
|
||||
>
|
||||
<VBtn icon="mdi-pencil" variant="flat" size="small"></VBtn>
|
||||
<VBtn icon="mdi-delete" variant="flat" size="small"></VBtn>
|
||||
</template>
|
||||
</VDataTable>
|
||||
</template>
|
||||
Reference in New Issue
Block a user