From bcde39d51d03e45734cd250eb78e1b4a3f786c52 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Tue, 31 Mar 2026 22:23:42 +0200 Subject: [PATCH] Rename vue component for book form --- front/src/{AddBook.vue => BookFormEdit.vue} | 0 front/src/{BookForm.vue => BookFormView.vue} | 0 front/src/router.js | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename front/src/{AddBook.vue => BookFormEdit.vue} (100%) rename front/src/{BookForm.vue => BookFormView.vue} (100%) diff --git a/front/src/AddBook.vue b/front/src/BookFormEdit.vue similarity index 100% rename from front/src/AddBook.vue rename to front/src/BookFormEdit.vue diff --git a/front/src/BookForm.vue b/front/src/BookFormView.vue similarity index 100% rename from front/src/BookForm.vue rename to front/src/BookFormView.vue diff --git a/front/src/router.js b/front/src/router.js index ab01ee7..036cdc9 100644 --- a/front/src/router.js +++ b/front/src/router.js @@ -1,9 +1,9 @@ import { createRouter, createWebHistory } from 'vue-router' import BooksBrowser from './BooksBrowser.vue' -import AddBook from './AddBook.vue' +import BookFormEdit from './BookFormEdit.vue' import AuthorForm from './AuthorForm.vue' -import BookForm from './BookForm.vue' +import BookFormView from './BookFormView.vue' import SignUp from './SignUp.vue' import LogIn from './LogIn.vue' import Home from './Home.vue' @@ -18,11 +18,11 @@ const routes = [ { path: '/scan', component: ScanBook }, { path: '/browse', component: InstanceBrowser }, { path: '/books', component: BooksBrowser }, - { path: '/book/:id', component: BookForm, props: true }, + { path: '/book/:id', component: BookFormView, props: true }, { path: '/author/:id', component: AuthorForm, props: true }, { path: '/search/:searchterm', component: SearchBook, props: true }, { path: '/import/inventaire/:inventaireid', component: ImportInventaire, props: true }, - { path: '/add', component: AddBook }, + { path: '/add', component: BookFormEdit }, { path: '/signup', component: SignUp }, { path: '/login', component: LogIn }, ]