diff --git a/frontend/quasar.conf.js b/frontend/quasar.conf.js index b65a837..42861b5 100644 --- a/frontend/quasar.conf.js +++ b/frontend/quasar.conf.js @@ -63,6 +63,7 @@ module.exports = function (ctx) { 'QSpinnerPuff', 'QExpansionItem', 'QParallax', + 'QEditor', ], directives: [ diff --git a/frontend/src/pages/Login.vue b/frontend/src/pages/Login.vue index 0cc9f9b..c5d83e3 100644 --- a/frontend/src/pages/Login.vue +++ b/frontend/src/pages/Login.vue @@ -82,7 +82,6 @@ // }, mounted () { this.isAuthenticated(); - //this.pollData(); console.log("mounted: initiated"); }, methods: { @@ -113,7 +112,7 @@ console.log("isAuthenticated()"); console.log("content of localstorage: "); console.log(JSON.parse(localStorage.getItem('userToken'))); - if (localStorage.getItem('userToken')) { // TODO hier muss Abfrage mit API, z.B. /api/user?token="ME" stattfinden. + if (localStorage.getItem('userToken')) { this.user.isAuthenticated = true; } else { this.user.isAuthenticated = false; @@ -134,10 +133,6 @@ }) .catch((error) => { }); - // console.log(localStorage.getItem('userToken')); - // localStorage.removeItem('userToken'); - // console.log(localStorage.getItem('userToken')); - // this.isAuthenticated() }, }, }; diff --git a/frontend/src/pages/Overview.vue b/frontend/src/pages/Overview.vue index 8efbcda..b7ff5ad 100644 --- a/frontend/src/pages/Overview.vue +++ b/frontend/src/pages/Overview.vue @@ -9,26 +9,16 @@ active-bg-color="bg-grey-1" active-color="cyan-14" indicator-color="cyan-14" - narrow-indicator switch-indicator > - +
- - - - - - - @@ -41,7 +31,7 @@ - {{ cache.name }} + {{ cache.name }} {{ cache.rankingPoints }} Punkte / Size {{ cache.stationen.length }} @@ -57,6 +47,18 @@ + + + + + + + + + +
@@ -70,15 +72,14 @@ */ + + diff --git a/frontend/src/router/routes.js b/frontend/src/router/routes.js index 46da100..c027592 100644 --- a/frontend/src/router/routes.js +++ b/frontend/src/router/routes.js @@ -19,6 +19,16 @@ const routes = [ component: () => import("layouts/MyLayout.vue"), children: [{ path: "", component: () => import("pages/CacheView.vue") }] }, + { + path: "/station/", + component: () => import("layouts/MyLayout.vue"), + children: [{ path: "", component: () => import("pages/Station.vue") }] + }, + { + path: "/station/:id", + component: () => import("layouts/MyLayout.vue"), + children: [{ path: "", component: () => import("pages/Station.vue") }] + }, { path: "/login/", component: () => import("layouts/MyLayout.vue"),