diff --git a/frontend/src/layouts/MyLayout.vue b/frontend/src/layouts/MyLayout.vue index f743bf4..58273a9 100644 --- a/frontend/src/layouts/MyLayout.vue +++ b/frontend/src/layouts/MyLayout.vue @@ -98,7 +98,7 @@ - Rangliste + Top 10 Rangliste - - - - - dev: {{ clickCounter }} clicks - - + + + + + + + + + + diff --git a/frontend/src/pages/Cache.vue b/frontend/src/pages/Cache.vue index 7e46324..8564c0e 100644 --- a/frontend/src/pages/Cache.vue +++ b/frontend/src/pages/Cache.vue @@ -30,7 +30,7 @@ max-height="50vh" />

Stationen

- + @@ -44,10 +44,10 @@ ID: {{ station.id ? station.id : "keine" }} - {{ station.description }} + - Code: {{ station.code }} + Koordinaten: {{ station.lattitude }}, {{ station.longitude }} @@ -60,8 +60,9 @@ +

Hinweis: Ein Cache muss mindestens aus zwei Stationen bestehen (inklusive der Endstation).

- +

Endstation

diff --git a/frontend/src/pages/Register.vue b/frontend/src/pages/Register.vue index 30b9145..13d35c9 100644 --- a/frontend/src/pages/Register.vue +++ b/frontend/src/pages/Register.vue @@ -125,7 +125,7 @@ console.log(response.data); if (response.status === 201) { this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { - message: "Deine Registrierung war erfolgreich!", + message: "Deine Registrierung war erfolgreich! Du bist jetzt eingeloggt.", title: "Registrierungsprozess", color: "blue" }); @@ -153,7 +153,6 @@ this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {message: message, title: header}); }); } else { - if (this.user.email != this.user.checkemail) { this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { message: "Email stimmt nicht überein", diff --git a/frontend/src/pages/StationEdit.vue b/frontend/src/pages/StationEdit.vue index 65da5c1..4e56d67 100644 --- a/frontend/src/pages/StationEdit.vue +++ b/frontend/src/pages/StationEdit.vue @@ -50,8 +50,8 @@ latlang: "", station: { description: "Rätsel, Aufgabe und Informationen zur Station.", - lattitude: "0.000", - longitude: "0.000", + lattitude: 49.1474082, + longitude: 9.2065282, solution: "", code: "" }, diff --git a/frontend/src/pages/StationEndEdit.vue b/frontend/src/pages/StationEndEdit.vue index 4ec8663..a0bc1aa 100644 --- a/frontend/src/pages/StationEndEdit.vue +++ b/frontend/src/pages/StationEndEdit.vue @@ -37,8 +37,8 @@ latlang: "", station: { description: "Beschreibung", - lattitude: "0.000", - longitude: "0.000", + lattitude: 49.1474082, + longitude: 9.2065282, solution: "", code: "" }, diff --git a/frontend/src/pages/StationView.vue b/frontend/src/pages/StationView.vue index 5e32c7c..5464f13 100644 --- a/frontend/src/pages/StationView.vue +++ b/frontend/src/pages/StationView.vue @@ -21,7 +21,7 @@ import qrscanner from "../components/qrscanner"; export default { name: "Station", - components: {qrscanner}, + components: { qrscanner }, data() { return { cacheID: "", diff --git a/frontend/src/pages/ranking.vue b/frontend/src/pages/ranking.vue index 8f4f68e..accf22a 100644 --- a/frontend/src/pages/ranking.vue +++ b/frontend/src/pages/ranking.vue @@ -86,26 +86,6 @@ console.log(response.data); this.rankinglist = response.data; }).catch((error) => { - // Error - let msg; - let title; - if (error.response) { - // The request was made and the server responded with a status code - title = "Problem with response!"; - msg = error.response; - } else if (error.request) { - // The request was made but no response was received - title = "Problem with request!"; - msg = "Error occured due to wrong server request!" - console.log(error.request); - } else { - // Something happened in setting up the request that triggered an Error - title = "Error"; - msg = error.message; - console.log('Error', error.message); - } - console.log(error.config); - this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { message: msg, title: title, }); }) }, fetchTeamRankinglist() { @@ -115,27 +95,19 @@ console.log(response.data); this.teamRankinglist = response.data; }).catch((error) => { - // Error - let msg; - let title; - if (error.response) { - // The request was made and the server responded with a status code - title = "Problem with response!"; - msg = error.response; - } else if (error.request) { - // The request was made but no response was received - title = "Problem with request!"; - msg = "Error occured due to wrong server request!" - console.log(error.request); - } else { - // Something happened in setting up the request that triggered an Error - title = "Error"; - msg = error.message; - console.log('Error', error.message); - } - console.log(error.config); - this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { message: msg, title: title, }); }) + }, + calculateRank() { + // TODO + // let rank = 0; + // let lastSum = null; + // const rankinglistCopy = this.rankinglist; + // for (let i = rankinglistCopy.length-1; i >= 0; i--) { + // if (lastSum === null || ranking.rankingPointsSum >= lastSum) { + // rank++; + // } + // lastSum = ranking.rankingPointsSum; + // } } } } diff --git a/frontend/src/store/cacheCollector/mutations.js b/frontend/src/store/cacheCollector/mutations.js index ec68887..90d2d1e 100644 --- a/frontend/src/store/cacheCollector/mutations.js +++ b/frontend/src/store/cacheCollector/mutations.js @@ -47,9 +47,9 @@ export const RESET_NEW_CACHE = (state) => { }; state.endStation = { description: "Endstation", - longitude: 0.000, - lattitude: 0.000, - solution: "", + lattitude: 49.1474082, + longitude: 9.2065282, + solution: "", }; console.log("resetted new Cache"); diff --git a/frontend/src/store/cacheCollector/state.js b/frontend/src/store/cacheCollector/state.js index b8cb39a..4a494d1 100644 --- a/frontend/src/store/cacheCollector/state.js +++ b/frontend/src/store/cacheCollector/state.js @@ -12,8 +12,8 @@ export default { tempStation: {}, endStation: { description: "Endstation", - longitude: 0.000, - lattitude: 0.000, + lattitude: 49.1474082, + longitude: 9.2065282, solution: "", }, }