diff --git a/.env b/.env index 9d41b3c..67cf9af 100644 --- a/.env +++ b/.env @@ -3,7 +3,6 @@ VITE_WSS_URL="wss://sotl.as/api" VITE_PHOTOS_URL="https://photos.sotl.as" VITE_PHOTOS_ORIGINAL_URL="https://sotlas-photos.s3.eu-central-003.backblazeb2.com/original" VITE_ELEVATION_API_URL="https://elevation.sotl.as/api" -VITE_MAPTILER_KEY="ngpPmAguBVHe7Dcxki1g" VITE_GEONAMES_USERNAME="neon1" VITE_WINDY_API_KEY="FIHFGWMrA0iF5Wz4fnBIR8Sb0GRUUeQY" VITE_AZ_URL="https://az.sotl.as" diff --git a/index.html b/index.html index 0dd7744..e21b4ff 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,6 @@ }
- -
diff --git a/package-lock.json b/package-lock.json index 4f859f9..5fc7d77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@fortawesome/pro-regular-svg-icons": "^5.15.4", "@fortawesome/pro-solid-svg-icons": "^5.15.4", "@fortawesome/vue-fontawesome": "^2.0.10", + "@gaviti/vue-turnstile": "^0.6.5", "@mapbox/mapbox-gl-draw": "github:manuelkasper/mapbox-gl-draw#sotlas2", "@maptiler/sdk": "^2.0.3", "@tmcw/togeojson": "^3.2.0", @@ -35,7 +36,7 @@ "proj4": "^2.7.2", "vue": "^2.7.16", "vue-clipboard2": "^0.3.1", - "vue-filepond": "^6.0.3", + "vue-filepond": "^6.0.2", "vue-infinite-loading": "^2.4.5", "vue-lazy-youtube-video": "^2.3.0", "vue-mapbox": "github:manuelkasper/vue-mapbox#10cb772", @@ -775,6 +776,18 @@ "vue": "~2" } }, + "node_modules/@gaviti/vue-turnstile": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@gaviti/vue-turnstile/-/vue-turnstile-0.6.5.tgz", + "integrity": "sha512-kS1SVFzDAFqiqrvEOPNQIRWfCi6tv9w/2aNBRdUa217PXjjSt35sofMqsz5LiU4xqyvnBMkp1f/aNUhNa8GxFg==", + "license": "MIT", + "dependencies": { + "vue": "^2.7.16" + }, + "engines": { + "node": "^14.18.0 || >= 16.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.13.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", @@ -1725,9 +1738,10 @@ } }, "node_modules/csstype": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", - "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" }, "node_modules/data-view-buffer": { "version": "1.0.1", @@ -4812,9 +4826,10 @@ "dev": true }, "node_modules/vue-filepond": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/vue-filepond/-/vue-filepond-6.0.3.tgz", - "integrity": "sha512-m0wArAdpgzOOs19bWA6zzYlHAb2aK+igPoKPZGrzpgKiiELPKW7XZ2OBDXzk7rhpFLkedujVrMqwjPyZfmQTTQ==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/vue-filepond/-/vue-filepond-6.0.2.tgz", + "integrity": "sha512-HE1TvV2LrKMU3pFeIBbR9Uf6cryNLVnnl35uSL+HLsZ6rfZ3C1alfre3UcaSoKTVuxNsn41Ce4IR528UwdxZfw==", + "license": "MIT", "peerDependencies": { "filepond": ">=4.7.4 < 5.x", "vue": ">=2.6.0 < 3.x" @@ -5369,6 +5384,14 @@ "integrity": "sha512-OTETSXz+3ygD2OK2/vy82cmUBpuJqeOAg4gfnnv+f2Rir1tDIhQg026Q3NQxznq83ZLz8iNqGG9XJm26inpDeg==", "requires": {} }, + "@gaviti/vue-turnstile": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@gaviti/vue-turnstile/-/vue-turnstile-0.6.5.tgz", + "integrity": "sha512-kS1SVFzDAFqiqrvEOPNQIRWfCi6tv9w/2aNBRdUa217PXjjSt35sofMqsz5LiU4xqyvnBMkp1f/aNUhNa8GxFg==", + "requires": { + "vue": "^2.7.16" + } + }, "@humanwhocodes/config-array": { "version": "0.13.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", @@ -6061,9 +6084,9 @@ "dev": true }, "csstype": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", - "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "data-view-buffer": { "version": "1.0.1", @@ -8229,9 +8252,9 @@ } }, "vue-filepond": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/vue-filepond/-/vue-filepond-6.0.3.tgz", - "integrity": "sha512-m0wArAdpgzOOs19bWA6zzYlHAb2aK+igPoKPZGrzpgKiiELPKW7XZ2OBDXzk7rhpFLkedujVrMqwjPyZfmQTTQ==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/vue-filepond/-/vue-filepond-6.0.2.tgz", + "integrity": "sha512-HE1TvV2LrKMU3pFeIBbR9Uf6cryNLVnnl35uSL+HLsZ6rfZ3C1alfre3UcaSoKTVuxNsn41Ce4IR528UwdxZfw==", "requires": {} }, "vue-infinite-loading": { diff --git a/package.json b/package.json index afcc505..64f2e6c 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@fortawesome/pro-regular-svg-icons": "^5.15.4", "@fortawesome/pro-solid-svg-icons": "^5.15.4", "@fortawesome/vue-fontawesome": "^2.0.10", + "@gaviti/vue-turnstile": "^0.6.5", "@mapbox/mapbox-gl-draw": "github:manuelkasper/mapbox-gl-draw#sotlas2", "@maptiler/sdk": "^2.0.3", "@tmcw/togeojson": "^3.2.0", @@ -39,7 +40,7 @@ "proj4": "^2.7.2", "vue": "^2.7.16", "vue-clipboard2": "^0.3.1", - "vue-filepond": "^6.0.3", + "vue-filepond": "^6.0.2", "vue-infinite-loading": "^2.4.5", "vue-lazy-youtube-video": "^2.3.0", "vue-mapbox": "github:manuelkasper/vue-mapbox#10cb772", diff --git a/src/App.vue b/src/App.vue index f4b1d51..2c18699 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,14 +4,28 @@ + diff --git a/src/components/Bearing.vue b/src/components/Bearing.vue index 49b4ea2..a55db00 100644 --- a/src/components/Bearing.vue +++ b/src/components/Bearing.vue @@ -27,7 +27,7 @@ export default { } }, mounted () { - if (this.homeQth === null) { + if (this.homeQth === null && this.authenticated) { this.$keycloak.updateToken(60) .then(() => { this.$keycloak.loadUserProfile() diff --git a/src/components/MapKeyFailedInfo.vue b/src/components/MapKeyFailedInfo.vue new file mode 100644 index 0000000..812508c --- /dev/null +++ b/src/components/MapKeyFailedInfo.vue @@ -0,0 +1,56 @@ + + + + + \ No newline at end of file diff --git a/src/components/MiniMap.vue b/src/components/MiniMap.vue index 59d6acf..625d610 100644 --- a/src/components/MiniMap.vue +++ b/src/components/MiniMap.vue @@ -1,19 +1,28 @@