From de9c5b5c87f109b12e3e204f6ac73c7f68d3b9ce Mon Sep 17 00:00:00 2001 From: gourav Date: Thu, 13 Jun 2024 10:41:56 +0530 Subject: [PATCH] Front-end largely working login logout working, show secrets working, TOTP generation is remaining --- frontend/src/App.vue | 70 +++++++++++++++++++++++-- frontend/src/components/ListSecrets.vue | 49 ++++++++++++++++- 2 files changed, 115 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4d368d6..03d28d0 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,12 +1,44 @@ @@ -15,8 +47,40 @@ export default { data() { return { loggedin: false, + showSecrets: false, + creationDialog: false, }; }, + methods: { + logout() { + localStorage.removeItem("token"); + this.loggedin = false; + }, + }, }; - + + diff --git a/frontend/src/components/ListSecrets.vue b/frontend/src/components/ListSecrets.vue index 36d0c00..91eeb39 100644 --- a/frontend/src/components/ListSecrets.vue +++ b/frontend/src/components/ListSecrets.vue @@ -1,5 +1,12 @@