From fe0a833de9e3fb566535a8be553e9230910a89e7 Mon Sep 17 00:00:00 2001 From: Antoine BRYJA Date: Tue, 11 Nov 2025 14:29:12 +0100 Subject: [PATCH] add routes & add user --- front-end/src/components/ButtonCustom.vue | 55 +++++++++++ front-end/src/components/Entry.vue | 80 ++++++++++++++++ front-end/src/components/NavBar.vue | 110 +++++++++++++--------- front-end/src/components/checkbox.vue | 97 +++++++++++++++++++ front-end/src/routes.ts | 5 + front-end/src/vue/AddClient.vue | 87 +++++++++++++++++ front-end/src/vue/Page404.vue | 13 +++ 7 files changed, 404 insertions(+), 43 deletions(-) create mode 100644 front-end/src/components/ButtonCustom.vue create mode 100644 front-end/src/components/Entry.vue create mode 100644 front-end/src/components/checkbox.vue create mode 100644 front-end/src/vue/AddClient.vue create mode 100644 front-end/src/vue/Page404.vue diff --git a/front-end/src/components/ButtonCustom.vue b/front-end/src/components/ButtonCustom.vue new file mode 100644 index 0000000..3f2172a --- /dev/null +++ b/front-end/src/components/ButtonCustom.vue @@ -0,0 +1,55 @@ + + + + + + diff --git a/front-end/src/components/Entry.vue b/front-end/src/components/Entry.vue new file mode 100644 index 0000000..0ff3ad3 --- /dev/null +++ b/front-end/src/components/Entry.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/front-end/src/components/NavBar.vue b/front-end/src/components/NavBar.vue index 5232f7c..1c5142d 100644 --- a/front-end/src/components/NavBar.vue +++ b/front-end/src/components/NavBar.vue @@ -23,20 +23,24 @@ arrow_drop_down - + + + @@ -166,7 +174,7 @@ const toggleCLient = () => { .nav-left::after{ content:''; position:absolute; - left:0;right:0;bottom:0; + left:0;right:0;bottom:-4px; height:2px; background:#2D4570; transform-origin:0 50%; @@ -177,6 +185,22 @@ const toggleCLient = () => { .ul-nav > li:visited { color: inherit } +/* Submenu slide animation (v-show + ) */ +.submenu{ + overflow: hidden; /* required for max-height animation */ +} +.slide-enter-from, .slide-leave-to { + max-height: 0; + opacity: 0; +} +.slide-enter-to, .slide-leave-from { + max-height: 400px; /* enough to contain submenu items */ + opacity: 1; +} +.slide-enter-active, .slide-leave-active { + transition: max-height .28s ease, opacity .18s ease; +} + /* If you prefer the underline only on the link element (RouterLink), uncomment the following instead and comment the rule above: .li-solo:hover { border-bottom: 2px solid #2D4570; } diff --git a/front-end/src/components/checkbox.vue b/front-end/src/components/checkbox.vue new file mode 100644 index 0000000..f9d535b --- /dev/null +++ b/front-end/src/components/checkbox.vue @@ -0,0 +1,97 @@ + + + + + + diff --git a/front-end/src/routes.ts b/front-end/src/routes.ts index e5fe035..e09476b 100644 --- a/front-end/src/routes.ts +++ b/front-end/src/routes.ts @@ -1,7 +1,12 @@ +import AddClient from './vue/AddClient.vue' import Dashboard from './vue/Dashboard.vue' import Ticket from './vue/ticket.vue' +import Page404 from './vue/Page404.vue' export const routes = [ {path: '/', component: Dashboard}, {path: '/ticket', component: Ticket}, + {path: '/ticket/:id', component: Ticket}, + {path: '/addclient', component: AddClient}, + {path: '/:pathMatch(.*)*', component: Page404} ] \ No newline at end of file diff --git a/front-end/src/vue/AddClient.vue b/front-end/src/vue/AddClient.vue new file mode 100644 index 0000000..0eac1a2 --- /dev/null +++ b/front-end/src/vue/AddClient.vue @@ -0,0 +1,87 @@ + + + + + \ No newline at end of file diff --git a/front-end/src/vue/Page404.vue b/front-end/src/vue/Page404.vue new file mode 100644 index 0000000..cbce682 --- /dev/null +++ b/front-end/src/vue/Page404.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file