Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Nov 14, 2024
0 parents commit d16ee4e
Show file tree
Hide file tree
Showing 39 changed files with 4,563 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
684 changes: 684 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# ChatMap

Export a chat from the app and visualize the locations shared in the conversation.

It was developed to help emergency services and humanitarian organizations to get
locations from people in the field during disasters and emergencies, but it can
be used for anything else.

[Try it here!](https://hotosm.github.io/chatmap/)

<img width="1114" alt="Screenshot 2024-11-14 at 09 06 37" src="https://github.com/user-attachments/assets/8f49c66d-4b98-4bc5-8028-1c897ef34880">

## How to use it?

Check [docs](https://github.com/hotosm/chatmap/tree/master/docs)

## Install and run

```bash
npm install
npm start
```

## Licensing

Copyright 2024 Emilio Mariscal

This is free software! you may use this project under the terms of the GNU General Public License (GPL) Version 3.
17 changes: 17 additions & 0 deletions docs/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ChatMap

Exporta un chat desde la aplicación y visualiza las ubicaciones compartidas en la conversación

Fue desarrollado para ayudar a los servicios de emergencia y organizaciones humanitarias para obtener
localizaciones de personas en campo durante desastres y emergencias, pero puede usarse para
cualquier otra cosa.

[Pruéalo aquí!](https://hotosm.github.io/chatmap/)

## Cómo se usa?

1. Exporta un chat de WhatsApp chat con localizaciones compartidas
2. Sube el archivo .zip a esta página
3. Extraerá todas las localizaciones y las mostrará en un mapa, junto con el mensaje que le sigue a cada ubicación
4. Puedes también descargar las localizaciones + mensajes como un archivo GeoJSON

20 changes: 20 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ChatMap

Export a chat from the app and visualize the locations shared in the conversation.

It was developed to help emergency services and humanitarian organizations to get
locations from people in the field during disasters and emergencies, but it can
be used for anything else.

[Try it here!](https://hotosm.github.io/chatmap/)

## How to use it?

1. Export a WhatsApp chat with shared locations
2. Upload the .zip file to this page
3. It will extract all the locations and display them on a map, together with the message that follows each location.
4. You can also download the locations + messages as a GeoJSON file from there

## More docs

* [Spanish](https://github.com/hotosm/wchatmap/blob/master/docs/README.es.md)
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HOT WhatsApp ChatMap</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>

<!-- During development, Vite injects the script automatically -->
</body>
</html>
52 changes: 52 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "chatmap",
"version": "0.2.0",
"private": true,
"homepage": "https://hotosm.github.io/chatmap",
"author": "Emilio Mariscal <[email protected]>",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@vitejs/plugin-react": "^4.3.3",
"jszip": "^3.10.1",
"maplibre-gl": "^4.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-drag-drop-files": "^2.3.10",
"react-intl": "^6.8.7",
"react-modal": "^3.16.1",
"turf-extent": "^1.0.4",
"vite": "^5.4.11",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "vite",
"build": "vite build",
"serve": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"gh-pages": "^6.1.1"
}
}
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fonts/Archivo-VariableFont.ttf
Binary file not shown.
Binary file added public/img/config-after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/config-before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/config-closest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"short_name": "ChatMap",
"name": "Export a chat from the app and visualize the locations shared in the conversation",
"icons": [
{
"src": "fabicon-16x16.png",
"type": "image/png",
"sizes": "16x16"
},
{
"src": "fabicon-32x32.png",
"type": "image/png",
"sizes": "32x32"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Loading

0 comments on commit d16ee4e

Please sign in to comment.