From 1ba3f9c3bbb125ca11a060a02ccd5a16212c7b79 Mon Sep 17 00:00:00 2001
From: Will Freeman
Date: Fri, 27 Dec 2024 20:22:04 -0700
Subject: [PATCH] a lot of refactoring and cleaning up
---
webapp/src/App.vue | 4 +-
webapp/src/assets/main.css | 5 +
webapp/src/assets/typography.css | 2 +-
webapp/src/components/ALPRCounter.vue | 9 +-
webapp/src/components/DFMapPopup.vue | 17 +-
webapp/src/components/LeafletMap.vue | 250 ++++++++++++-----------
webapp/src/components/OSMTagSelector.vue | 4 +-
webapp/src/components/layout/Footer.vue | 1 +
webapp/src/router/index.ts | 2 +-
webapp/src/views/Donate.vue | 2 +-
webapp/src/views/Landing.vue | 35 ++--
webapp/src/views/Map.vue | 4 +-
webapp/src/views/QRLandingView.vue | 162 ---------------
webapp/src/views/ReportView.vue | 35 +++-
webapp/vite.config.ts | 4 +
15 files changed, 216 insertions(+), 320 deletions(-)
delete mode 100644 webapp/src/views/QRLandingView.vue
diff --git a/webapp/src/App.vue b/webapp/src/App.vue
index c3fa834..5ea27b7 100644
--- a/webapp/src/App.vue
+++ b/webapp/src/App.vue
@@ -57,9 +57,9 @@ watch(() => theme.global.name.value, (newTheme) => {
-
+
-
0
+
0
ALPRs Reported Worldwide
and rapidly growing!
@@ -8,6 +8,7 @@
diff --git a/webapp/src/components/LeafletMap.vue b/webapp/src/components/LeafletMap.vue
index f81539e..efcf387 100644
--- a/webapp/src/components/LeafletMap.vue
+++ b/webapp/src/components/LeafletMap.vue
@@ -11,23 +11,25 @@
-
-
-
diff --git a/webapp/src/views/ReportView.vue b/webapp/src/views/ReportView.vue
index 9e18e72..e902988 100644
--- a/webapp/src/views/ReportView.vue
+++ b/webapp/src/views/ReportView.vue
@@ -1,6 +1,6 @@
- Report an ALPR
+ Report a New ALPR
If you've spotted an ALPR in your area, you can help us track it by reporting it to OpenStreetMap, where we source our information. Here's how you can do it:
@@ -9,6 +9,7 @@
Once you've found the location of the ALPR, click the Edit button in the top left corner of the page. This will open the OpenStreetMap editor, where you can add the ALPR to the map.
-
+
To add the ALPR, click the Point button in the top left corner of the editor, then click on the location of the ALPR on the map. In the popup that appears, paste one of the following sets of tags based on the brand of the ALPR:
@@ -53,10 +56,11 @@
After copying the tags, paste them into the Tags field in the popup.
-
+
Download our ALPR sign and hang it near the ALPR to help raise awareness about the device. Be sure to follow all local laws and regulations when hanging signs.
+
+
+
+ Next
+
+
+
+ Edit an Existing ALPR
+
+ If you find an ALPR that's missing information and would like to update it, you can follow the same steps as above. Each ALPR on DeFlock has a Node ID that you can use to find it on OpenStreetMap.
+
+
+
+ Simply click on the ALPR with missing information, and find the Node ID (e.g. node/1237489334) at the bottom of the popup. In the OSM editor search field, paste the numerical portion of the Node ID to find the ALPR and make your changes.
+
+
@@ -116,4 +141,8 @@ const step = ref(1);
diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts
index 5c45e1d..7e3bf6f 100644
--- a/webapp/vite.config.ts
+++ b/webapp/vite.config.ts
@@ -12,5 +12,9 @@ export default defineConfig({
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
+ },
+ server: {
+ host: '0.0.0.0',
+ port: 5173,
}
})