From bfa1cec272d8f2a6c6a7dc8fd80cde305b7aaacb Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Sat, 29 Nov 2025 18:48:10 +0100 Subject: [PATCH] feat: add API key management for admins in dashboard --- .../pages/dashboard/admin/external_api.vue | 240 ++++++++++++++++++ frontend/app/pages/dashboard/admin/index.vue | 3 + 2 files changed, 243 insertions(+) create mode 100644 frontend/app/pages/dashboard/admin/external_api.vue diff --git a/frontend/app/pages/dashboard/admin/external_api.vue b/frontend/app/pages/dashboard/admin/external_api.vue new file mode 100644 index 0000000..2ef3a55 --- /dev/null +++ b/frontend/app/pages/dashboard/admin/external_api.vue @@ -0,0 +1,240 @@ + + + + + + API Manažment + + + + + creationDialog = true" + :disabled="waiting"> + Pridať + + + + + + + + + + + + + {{ header.title }} + + + + + + {{ item.name }} + {{ item.created_at }} + {{ item.last_used_at ?? "Nikdy" }} + {{ item.owner }} + + openDeletionConfirmDialog(item)">Vymazať + + + + + + + + + + + + + + Nový API kľúč + + + + + + + + + + Vytvoriť + + + Zavrieť + + + + + + + + + + Nový API kľúč + + + + Nový klúč bol úspešne vytvorený! + + Nezabudnite skopírovať kľúč! Po zavretí tohto okna ho nebudete vedieť + zobraziť znovu! + + + Copy + + + + + + Zavrieť + + + + + + + + + + Vymazať API kľúč + + + + Ste si istý že chcete deaktivovať a vymazať vybraný API kľúč? + + + + + + { confirmDeletion(true) }" :loading="waiting"> + Áno + + + { confirmDeletion(false) }"> + Zrušiť + + + + + + + + \ No newline at end of file diff --git a/frontend/app/pages/dashboard/admin/index.vue b/frontend/app/pages/dashboard/admin/index.vue index f8019d0..2813222 100644 --- a/frontend/app/pages/dashboard/admin/index.vue +++ b/frontend/app/pages/dashboard/admin/index.vue @@ -32,6 +32,9 @@ const user = useSanctumUser(); Praxe + + API Manažment + Môj profil
Nový klúč bol úspešne vytvorený!
Nezabudnite skopírovať kľúč! Po zavretí tohto okna ho nebudete vedieť + zobraziť znovu!
Ste si istý že chcete deaktivovať a vymazať vybraný API kľúč?