From c0b25040c3e3d1547b02c8ad9c47bbc11866a8bd Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 30 Jan 2021 00:18:55 +0100 Subject: [PATCH] - frontend implementation location query - remove mapboxtoken from .env template --- webapp/.env.template | 1 - webapp/graphql/location.js | 10 +++++++ webapp/pages/settings/index.vue | 47 +++++++++++---------------------- 3 files changed, 25 insertions(+), 33 deletions(-) create mode 100644 webapp/graphql/location.js diff --git a/webapp/.env.template b/webapp/.env.template index 198452e27..1acad49b4 100644 --- a/webapp/.env.template +++ b/webapp/.env.template @@ -1,4 +1,3 @@ -MAPBOX_TOKEN="pk.eyJ1IjoiYnVzZmFrdG9yIiwiYSI6ImNraDNiM3JxcDBhaWQydG1uczhpZWtpOW4ifQ.7TNRTO-o9aK1Y6MyW_Nd4g" SENTRY_DSN_WEBAPP= COMMIT= PUBLIC_REGISTRATION=false diff --git a/webapp/graphql/location.js b/webapp/graphql/location.js new file mode 100644 index 000000000..ba47a2983 --- /dev/null +++ b/webapp/graphql/location.js @@ -0,0 +1,10 @@ +import gql from 'graphql-tag' + +export const queryLocations = () => gql` + query($place: String!, $lang: String!) { + queryLocations(place: $place, lang: $lang) { + place_name + id + } + } +` \ No newline at end of file diff --git a/webapp/pages/settings/index.vue b/webapp/pages/settings/index.vue index 9766ab81c..be1c4800f 100644 --- a/webapp/pages/settings/index.vue +++ b/webapp/pages/settings/index.vue @@ -41,17 +41,15 @@