diff --git a/frontend/src/pages/Admin/Dashboard/BackupViewer.vue b/frontend/src/pages/Admin/Dashboard/BackupViewer.vue new file mode 100644 index 000000000..54bb18901 --- /dev/null +++ b/frontend/src/pages/Admin/Dashboard/BackupViewer.vue @@ -0,0 +1,144 @@ + + + + + + + + + + {{ total }} + + + + + + + + mdi-cloud-upload Upload + + + + + mdi-plus Create + + + + + + + + + mdi-backup-restore + + + + + + + + {{ $d(Date.parse(item.date), "medium") }} + + + + + + mdi-delete + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/pages/Admin/Dashboard/EventViewer.vue b/frontend/src/pages/Admin/Dashboard/EventViewer.vue index 7cff4b90b..5070c677b 100644 --- a/frontend/src/pages/Admin/Dashboard/EventViewer.vue +++ b/frontend/src/pages/Admin/Dashboard/EventViewer.vue @@ -1,45 +1,47 @@ - + - {{ total }} + {{ total }} - + mdi-notification-clear-all Clear - - - - - {{ icons[event.category].icon }} - - + + + + + + {{ icons[item.category].icon }} + + - - + + - - - {{ $d(Date.parse(event.timeStamp), "long") }} - - + + + {{ $d(Date.parse(item.timeStamp), "long") }} + + - - - mdi-delete - - - - + + + mdi-delete + + + + + @@ -52,6 +54,7 @@ export default { components: { StatCard }, data() { return { + color: "secondary", total: 0, events: [], icons: { diff --git a/frontend/src/pages/Admin/Dashboard/StatCard.vue b/frontend/src/pages/Admin/Dashboard/StatCard.vue index b399cb623..f79cc8289 100644 --- a/frontend/src/pages/Admin/Dashboard/StatCard.vue +++ b/frontend/src/pages/Admin/Dashboard/StatCard.vue @@ -9,7 +9,7 @@ w class="text-start v-card--material__heading mb-n6 mt-n10 pa-7" dark > - + diff --git a/frontend/src/pages/Admin/Dashboard/index.vue b/frontend/src/pages/Admin/Dashboard/index.vue index feb95ae18..98b6327cc 100644 --- a/frontend/src/pages/Admin/Dashboard/index.vue +++ b/frontend/src/pages/Admin/Dashboard/index.vue @@ -1,7 +1,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -80,8 +80,9 @@ import { api } from "@/api"; import StatCard from "./StatCard"; import EventViewer from "./EventViewer"; +import BackupViewer from "./BackupViewer"; export default { - components: { StatCard, EventViewer }, + components: { StatCard, EventViewer, BackupViewer }, data() { return { statistics: {