Skip to content

Commit

Permalink
Add interactive map for selecting area of interest (#3)
Browse files Browse the repository at this point in the history
* Add leaflet
* Add simple map
* Add area selector
* Update the coordinates based on the map
* Add a jump to coordinate field for the map
* Add scale to map

* Update text
* Formatting
* Prettier
  • Loading branch information
GalenReich authored Aug 1, 2024
1 parent 12dc6d9 commit 9f1f90a
Show file tree
Hide file tree
Showing 17 changed files with 442 additions and 238 deletions.
7 changes: 2 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ module.exports = {
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
],
}
extends: ["plugin:vue/vue3-essential", "eslint:recommended"],
};
8 changes: 4 additions & 4 deletions .github/workflows/ghpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ A Vue app that generates a search grid for systematic searches by entering the c
## Local Development

For local development, install with:

```shell
npm install
```

And run the local development server (vite) with:

```shell
npm run dev
```
```
30 changes: 16 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bellingcat Search Grid Generator</title>

<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bellingcat Search Grid Generator</title>

<script defer data-domain="grid.bellingcat.com" src="https://plausible.io/js/script.js"></script>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
<script
defer
data-domain="grid.bellingcat.com"
src="https://plausible.io/js/script.js"
></script>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
11 changes: 2 additions & 9 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@
"baseUrl": "./",
"moduleResolution": "bundler",
"paths": {
"@/*": [
"src/*"
]
"@/*": ["src/*"]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
}
}
48 changes: 48 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"lint": "eslint . --fix --ignore-path .gitignore"
},
"dependencies": {
"@jonatanheyman/leaflet-areaselect": "^1.2.0",
"@mdi/font": "7.4.47",
"core-js": "^3.37.1",
"roboto-fontface": "*",
Expand All @@ -17,13 +18,16 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
"@vue-leaflet/vue-leaflet": "^0.10.1",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.4.0",
"eslint-plugin-vue": "^9.27.0",
"leaflet": "^1.9.4",
"prettier": "3.3.3",
"sass": "1.77.6",
"unplugin-fonts": "^1.1.1",
"unplugin-vue-components": "^0.27.2",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
</template>

<script setup>
//
//
</script>
Loading

0 comments on commit 9f1f90a

Please sign in to comment.