diff --git a/web/package.json b/web/package.json index a6e5a20..6b74989 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "0.0.0", + "version": "1.0.0", "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", diff --git a/web/src/layouts/default/View.vue b/web/src/layouts/default/View.vue index 443548b..2eee164 100644 --- a/web/src/layouts/default/View.vue +++ b/web/src/layouts/default/View.vue @@ -48,6 +48,22 @@ + + + + + + + {{ item.title }} + + + @@ -71,6 +87,17 @@ const router = useRouter() const { smAndUp } = useDisplay() +const menuItems = [ + { + title: 'Procurar impressoras...', + action: () => router.push({ name: 'Discovery' }) + }, + { + title: 'Sobre', + action: () => router.push({ name: 'About' }) + } +] + const campiSelectItems = [ { title: 'Todos', diff --git a/web/src/router/index.ts b/web/src/router/index.ts index cbf4143..66f2732 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -11,13 +11,6 @@ const routes = [ name: 'Login', component: () => import(/* webpackChunkName: "login" */ '@/views/Login.vue') - }, - - { - path: '/:pathMatch(.*)*', - name: 'NotFound', - component: () => - import(/* webpackChunkName: "notfound" */ '@/views/404.vue') } ] }, @@ -50,6 +43,33 @@ const routes = [ import(/* webpackChunkName: "home" */ '@/views/Printer.vue') } ] + }, + + { + path: '/about', + component: () => import('@/layouts/simple/Default.vue'), + children: [ + { + path: '', + name: 'About', + component: () => + import(/* webpackChunkName: "about" */ '@/views/About.vue') + } + ] + }, + + { + path: '/:pathMatch(.*)*', + component: () => import('@/layouts/simple/Default.vue'), + + children: [ + { + path: '', + name: 'NotFound', + component: () => + import(/* webpackChunkName: "notfound" */ '@/views/404.vue') + } + ] } ] diff --git a/web/src/views/About.vue b/web/src/views/About.vue new file mode 100644 index 0000000..8cb5545 --- /dev/null +++ b/web/src/views/About.vue @@ -0,0 +1,18 @@ + + +