-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix: #176 Room Remove + fitBounds fix beetween round * chore: update randomPos package * fix: package-lock * fix: package-lock ci * fix: package lock
- Loading branch information
1 parent
6d072d1
commit 7d3da18
Showing
10 changed files
with
40,017 additions
and
40,315 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
{ | ||
"name": "geoguess", | ||
"version": "0.6.0", | ||
"description": "GeoGuess is an open-source geography game with Google Map StreetView.", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"test": "npm run lint && npm run test:unit && npm run test:e2e", | ||
"test:unit": "vue-cli-service test:unit", | ||
"test:e2e": "cypress run", | ||
"cypress": "cypress", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"@turf/bbox": "^6.0.1", | ||
"@turf/boolean-point-in-polygon": "^6.0.1", | ||
"@turf/distance": "^6.0.1", | ||
"@turf/helpers": "^6.1.4", | ||
"axios": "^0.21.1", | ||
"axios-cache-adapter": "^2.5.0", | ||
"core-js": "^2.6.12", | ||
"firebase": "^8.2.6", | ||
"gmap-vue": "^1.5.0", | ||
"i18n-iso-countries": "^6.4.0", | ||
"random-position-in-polygon": "^1.0.3", | ||
"register-service-worker": "^1.7.2", | ||
"vue": "^2.6.12", | ||
"vue-axios": "^3.2.0", | ||
"vue-clipboard2": "^0.3.1", | ||
"vue-country-flag": "^2.0.3", | ||
"vue-i18n": "^8.22.2", | ||
"vue-router": "^3.4.9", | ||
"vuetify": "^2.4.0", | ||
"vuex": "^3.6.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@vue/cli-plugin-babel": "^3.12.1", | ||
"@vue/cli-plugin-eslint": "^3.12.1", | ||
"@vue/cli-plugin-pwa": "^3.12.1", | ||
"@vue/cli-plugin-unit-jest": "^4.5.11", | ||
"@vue/cli-service": "^4.5.11", | ||
"@vue/test-utils": "^1.1.2", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.2.2", | ||
"cypress": "^6.8.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-cypress": "^2.11.2", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"jest-google-maps-mock": "^1.0.3", | ||
"prettier": "2.1.2", | ||
"react-is": "^16.13.1", | ||
"sass": "^1.30.0", | ||
"sass-loader": "^8.0.2", | ||
"vue-cli-plugin-vuetify": "^0.6.3", | ||
"vue-template-compiler": "^2.6.12", | ||
"vuetify-loader": "^1.6.0" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions" | ||
], | ||
"keywords": [ | ||
"game", | ||
"geography", | ||
"educational-game", | ||
"multiplayer-game", | ||
"street-view" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/GeoGuess/GeoGuess.git" | ||
}, | ||
"author": "Bilel Jegham and others", | ||
"bugs": { | ||
"url": "https://github.com/GeoGuess/Geoguess/issues" | ||
}, | ||
"homepage": "https://github.com/GeoGuess/Geoguess#readme", | ||
"license": "MIT" | ||
"name": "geoguess", | ||
"version": "0.6.0", | ||
"description": "GeoGuess is an open-source geography game with Google Map StreetView.", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"test": "npm run lint && npm run test:unit && npm run test:e2e", | ||
"test:unit": "vue-cli-service test:unit", | ||
"test:e2e": "cypress run", | ||
"cypress": "cypress", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"@turf/bbox": "^6.0.1", | ||
"@turf/boolean-point-in-polygon": "^6.0.1", | ||
"@turf/distance": "^6.0.1", | ||
"@turf/helpers": "^6.1.4", | ||
"axios": "^0.21.1", | ||
"axios-cache-adapter": "^2.5.0", | ||
"core-js": "^2.6.12", | ||
"firebase": "^8.2.6", | ||
"gmap-vue": "^1.5.0", | ||
"i18n-iso-countries": "^6.4.0", | ||
"random-position-in-polygon": "^1.0.4", | ||
"register-service-worker": "^1.7.2", | ||
"vue": "^2.6.12", | ||
"vue-axios": "^3.2.0", | ||
"vue-clipboard2": "^0.3.1", | ||
"vue-country-flag": "^2.0.3", | ||
"vue-i18n": "^8.22.2", | ||
"vue-router": "^3.4.9", | ||
"vuetify": "^2.4.0", | ||
"vuex": "^3.6.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@vue/cli-plugin-babel": "^3.12.1", | ||
"@vue/cli-plugin-eslint": "^3.12.1", | ||
"@vue/cli-plugin-pwa": "^3.12.1", | ||
"@vue/cli-plugin-unit-jest": "^4.5.13", | ||
"@vue/cli-service": "^4.5.13", | ||
"@vue/test-utils": "^1.1.2", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.2.2", | ||
"cypress": "^7.2.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-cypress": "^2.11.2", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"jest-google-maps-mock": "^1.0.3", | ||
"prettier": "2.1.2", | ||
"react-is": "^16.13.1", | ||
"sass": "^1.30.0", | ||
"sass-loader": "^8.0.2", | ||
"vue-cli-plugin-vuetify": "^0.6.3", | ||
"vue-template-compiler": "^2.6.12", | ||
"vuetify-loader": "^1.6.0" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions" | ||
], | ||
"keywords": [ | ||
"game", | ||
"geography", | ||
"educational-game", | ||
"multiplayer-game", | ||
"street-view" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/GeoGuess/GeoGuess.git" | ||
}, | ||
"author": "Bilel Jegham and others", | ||
"bugs": { | ||
"url": "https://github.com/GeoGuess/Geoguess/issues" | ||
}, | ||
"homepage": "https://github.com/GeoGuess/Geoguess#readme", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export const MapMixin = { | ||
|
||
props: ['bbox'], | ||
watch: { | ||
bbox() { | ||
this.centerOnBbox(); | ||
}, | ||
}, | ||
methods: { | ||
centerOnBbox() { | ||
// eslint-disable-next-line no-debugger | ||
debugger; | ||
if (this.map && this.bbox) { | ||
this.map.fitBounds({ | ||
east: this.bbox[2], | ||
north: this.bbox[3], | ||
south: this.bbox[1], | ||
west: this.bbox[0], | ||
}); | ||
} | ||
}, | ||
drawPolyline() {}, | ||
removePolylines() {}, | ||
} | ||
}; | ||
|
||
export default MapMixin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.