diff --git a/src/App.vue b/src/App.vue index 7c1fd08..b3e60e0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,63 +1,56 @@ - \ No newline at end of file diff --git a/src/components/RouteMenu.vue b/src/components/RouteMenu.vue new file mode 100644 index 0000000..ee3ad61 --- /dev/null +++ b/src/components/RouteMenu.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index e6da0f7..2005626 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,8 +1,6 @@ import { createRouter, createWebHistory } from '@ionic/vue-router'; import { RouteRecordRaw } from 'vue-router'; -import Home from '@/views/Home.vue' import Login from '@/views/Login.vue' -import Settings from "@/views/Settings.vue" import store from '@/store' import Tabs from '@/views/Tabs.vue' @@ -25,7 +23,7 @@ const loginGuard = (to: any, from: any, next: any) => { const routes: Array = [ { path: '/', - redirect: '/tabs/home' + redirect: '/tabs/brokering' }, { path: '/tabs', @@ -33,41 +31,33 @@ const routes: Array = [ children: [ { path: '', - redirect: '/home' + redirect: '/brokering' }, { - path: 'home', - component: () => import('@/views/Home.vue') + path: 'brokering', + component: () => import('@/views/BrokeringRuns.vue') + }, + { + path: 'brokering/route', + component: () => import('@/views/BrokeringRoute.vue') + }, + { + path: 'brokering/query', + component: () => import('@/views/BrokeringQuery.vue') }, { path: 'settings', component: () => import('@/views/Settings.vue') - }, + } ], beforeEnter: authGuard }, - { - path: '/', - redirect: '/settings' - }, - { - path: '/home', - name: 'Home', - component: Home, - beforeEnter: authGuard - }, { path: '/login', name: 'Login', component: Login, beforeEnter: loginGuard }, - { - path: "/settings", - name: "Settings", - component: Settings, - beforeEnter: authGuard - } ] const router = createRouter({ diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue new file mode 100644 index 0000000..2d2ce52 --- /dev/null +++ b/src/views/BrokeringQuery.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/src/views/BrokeringRoute.vue b/src/views/BrokeringRoute.vue new file mode 100644 index 0000000..f8bc40f --- /dev/null +++ b/src/views/BrokeringRoute.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/src/views/BrokeringRuns.vue b/src/views/BrokeringRuns.vue new file mode 100644 index 0000000..471b41c --- /dev/null +++ b/src/views/BrokeringRuns.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/src/views/Home.vue b/src/views/Home.vue deleted file mode 100644 index fcd2d9f..0000000 --- a/src/views/Home.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 72b2b07..b897a74 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -2,7 +2,7 @@ - + {{ $t("Settings") }} diff --git a/src/views/Tabs.vue b/src/views/Tabs.vue index 824b4f7..02132ee 100644 --- a/src/views/Tabs.vue +++ b/src/views/Tabs.vue @@ -3,13 +3,13 @@ - - - {{ $t("Flows") }} + + + {{ $t("Brokering") }} - + {{ $t("Settings") }} @@ -17,23 +17,9 @@ -