From 6f8b3ada2c74cd298ab6b90feff3851053b4d421 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 24 Aug 2018 23:34:37 +0200 Subject: [PATCH] Autorotate mode when clicking the compass icon Also fix a bug with sharing current position. --- package.json | 24 +++---- src/App.vue | 1 + src/assets/compass.svg | 81 ++++++++++++++++++++++ src/components/Map.vue | 75 ++++++++++++++++----- src/i18n/en.json | 3 + src/i18n/fr.json | 5 +- src/i18n/oc.json | 5 +- src/main.js | 2 +- src/store/mutations.js | 3 + src/views/Map.vue | 5 +- src/views/Settings.vue | 29 +++++++- yarn.lock | 149 +++++++++++++++++++---------------------- 12 files changed, 268 insertions(+), 114 deletions(-) create mode 100644 src/assets/compass.svg diff --git a/package.json b/package.json index b12a455..17a7bce 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "babel-polyfill": "^6.26.0", "file-saver": "^1.3.8", "gps-to-gpx": "^1.4.0", - "howler": "^2.0.14", + "howler": "^2.0.15", "material-icons": "^0.2.3", "moment": "^2.22.2", "nosleep.js": "^0.7.0", @@ -27,13 +27,13 @@ "vue-i18n": "^8.0.0", "vue-router": "^3.0.1", "vuelayers": "^0.10.13", - "vuetify": "^1.1.11", + "vuetify": "^1.1.14", "vuex": "^3.0.1", "whatwg-fetch": "^2.0.4" }, "devDependencies": { "app-manifest-webpack-plugin": "^1.1.3", - "autoprefixer": "^9.1.1", + "autoprefixer": "^9.1.3", "babel-core": "^6.22.1", "babel-eslint": "^8.2.6", "babel-loader": "^7.1.1", @@ -41,20 +41,20 @@ "babel-preset-stage-2": "^6.22.0", "copy-webpack-plugin": "^4.0.1", "css-loader": "^1.0.0", - "eslint": "^5.3.0", + "eslint": "^5.4.0", "eslint-config-airbnb-base": "^13.1.0", "eslint-friendly-formatter": "^4.0.1", "eslint-import-resolver-webpack": "^0.10.1", "eslint-loader": "^2.1.0", "eslint-plugin-html": "^4.0.5", "eslint-plugin-import": "^2.14.0", - "file-loader": "^1.1.4", + "file-loader": "^2.0.0", "friendly-errors-webpack-plugin": "^1.6.1", "html-webpack-plugin": "^3.2.0", "image-webpack-loader": "^4.3.1", - "mini-css-extract-plugin": "^0.4.1", + "mini-css-extract-plugin": "^0.4.2", "optimize-css-assets-webpack-plugin": "^5.0.0", - "portfinder": "^1.0.16", + "portfinder": "^1.0.17", "postcss-import": "^12.0.0", "postcss-loader": "^3.0.0", "postcss-url": "^8.0.0", @@ -62,12 +62,12 @@ "stylus-loader": "^3.0.2", "svg-url-loader": "^2.3.2", "svg2png": "^4.1.1", - "uglifyjs-webpack-plugin": "^1.1.1", - "url-loader": "^1.0.1", - "vue-loader": "^15.3.0", - "vue-style-loader": "^4.1.1", + "uglifyjs-webpack-plugin": "^1.3.0", + "url-loader": "^1.1.1", + "vue-loader": "^15.4.0", + "vue-style-loader": "^4.1.2", "vue-template-compiler": "^2.5.2", - "webpack": "^4.16.5", + "webpack": "^4.17.1", "webpack-bundle-analyzer": "^2.13.1", "webpack-cli": "^3.1.0", "webpack-dev-server": "^3.1.5", diff --git a/src/App.vue b/src/App.vue index 51b923d..dd9d54a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -192,6 +192,7 @@ body, html, .application { .application--wrap { min-height: 100% !important; + overflow: auto; } .bottom-sheet.dialog { diff --git a/src/assets/compass.svg b/src/assets/compass.svg new file mode 100644 index 0000000..ee398b1 --- /dev/null +++ b/src/assets/compass.svg @@ -0,0 +1,81 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/src/components/Map.vue b/src/components/Map.vue index 17cfe71..86d6792 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -22,8 +22,6 @@