From 6439437e8be2ae8dabbadf2b65fcc1cf337b75c1 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 27 Sep 2025 20:47:45 -0600 Subject: [PATCH] Implement breadcrumb navigation. --- frontend/src/App.vue | 8 ++-- frontend/src/admin/AdminApp.vue | 54 +++++++++++++++---------- frontend/src/components/Breadcrumbs.vue | 42 +++++++++++++++++++ frontend/src/components/LoginView.vue | 1 + frontend/src/components/ProfileView.vue | 6 ++- 5 files changed, 83 insertions(+), 28 deletions(-) create mode 100644 frontend/src/components/Breadcrumbs.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e7cdcf8..d7a61b5 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -5,7 +5,7 @@ - + @@ -44,9 +44,9 @@ onMounted(async () => { if (reset) { store.resetToken = reset // Remove query param to avoid lingering in history / clipboard - const targetPath = '/auth/' - const currentPath = location.pathname.endsWith('/') ? location.pathname : location.pathname + '/' - history.replaceState(null, '', currentPath.startsWith('/auth') ? '/auth/' : targetPath) + const targetPath = '/auth/' + const currentPath = location.pathname.endsWith('/') ? location.pathname : location.pathname + '/' + history.replaceState(null, '', currentPath.startsWith('/auth') ? '/auth/' : targetPath) } try { await store.loadUserInfo() diff --git a/frontend/src/admin/AdminApp.vue b/frontend/src/admin/AdminApp.vue index 81b3fdc..9cbb234 100644 --- a/frontend/src/admin/AdminApp.vue +++ b/frontend/src/admin/AdminApp.vue @@ -1,5 +1,6 @@ + + + + diff --git a/frontend/src/components/LoginView.vue b/frontend/src/components/LoginView.vue index 5579b8c..0c50804 100644 --- a/frontend/src/components/LoginView.vue +++ b/frontend/src/components/LoginView.vue @@ -17,6 +17,7 @@