From 73e08ec92d2c868d0cf7874c46479446760dc4fa Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 4 Nov 2024 17:31:04 +0100 Subject: [PATCH] fix: :truck: move show route and begin update view --- frontend/App.vue | 3 -- frontend/components/Breadcrumb.vue | 22 --------------- frontend/router/index.ts | 14 ++++++---- frontend/views/Home.vue | 26 +++++++++++++++-- frontend/views/New.vue | 7 ----- frontend/views/Update.vue | 45 ++++++++++++++++++++++++++++++ 6 files changed, 77 insertions(+), 40 deletions(-) delete mode 100644 frontend/components/Breadcrumb.vue delete mode 100644 frontend/views/New.vue create mode 100644 frontend/views/Update.vue diff --git a/frontend/App.vue b/frontend/App.vue index 79fbbfe..ad794fd 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -1,7 +1,6 @@ diff --git a/frontend/router/index.ts b/frontend/router/index.ts index 6338745..8391b58 100644 --- a/frontend/router/index.ts +++ b/frontend/router/index.ts @@ -1,7 +1,7 @@ import { createRouter, createWebHashHistory } from 'vue-router' import Container from '../views/Container.vue' import Home from '../views/Home.vue' -import New from '../views/New.vue' +import Update from '../views/Update.vue' const router = createRouter({ history: createWebHashHistory(import.meta.env.BASE_URL), @@ -11,12 +11,16 @@ const router = createRouter({ component: Home, }, { - path: '/new', - component: New, + path: '/show/:name', + component: Container, }, { - path: '/container/:name', - component: Container, + path: '/new', + component: Update, + }, + { + path: '/update/:name', + component: Update, }, ], }) diff --git a/frontend/views/Home.vue b/frontend/views/Home.vue index ee61145..cbdeb42 100644 --- a/frontend/views/Home.vue +++ b/frontend/views/Home.vue @@ -1,5 +1,5 @@