Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix geolocation #75

Merged
merged 2 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,3 @@ services:
- /tmp/basegun:/app/public/temp
- $PWD/frontend/src:/app/src
- /app/node_modules

filebeat:
image: elastic/filebeat:6.5.4
user: root
container_name: filebeat
environment:
- http_proxy
- https_proxy
- X_OVH_TOKEN
- API_OVH_TOKEN
volumes:
- $PWD/infra/filebeat.elastic.yml:/usr/share/filebeat/filebeat.yml:ro
- $PWD/backend/logs:/var/log/basegun
command: bash -c "sleep 10 && filebeat -e --strict.perms=false"
8 changes: 5 additions & 3 deletions frontend/src/components/UploadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import axios from 'axios';

function randomCoord(num){
const max = 0.1;
const min = -0.1;
return (Math.random() * (max - min) + min) + num;
num = parseFloat(num)
const max = 0.1;
const min = -0.1;
return (Math.random() * (max - min) + min) + num;
}

export default {
Expand Down Expand Up @@ -50,6 +51,7 @@
startUpload(uploadedFile)
})
.catch((err) => {
// if geolocation is unavalable or incorrect format
startUpload(uploadedFile)
})

Expand Down