aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-03-19 18:56:34 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-03-19 18:56:34 +0100
commitbee85bf92aab84087798ffa9f3f16336acef2fce (patch)
tree4fc8e2907e6618940cd9bdeb3da1a81172aab459 /src/frontend
parentfed5d57b9e5d3df7c34bccb7a120bfa274b2039a (diff)
Basic backoffice for alert management
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/public/maps/styles/openfreemap-light.json62
-rw-r--r--src/frontend/vite.config.ts2
2 files changed, 1 insertions, 63 deletions
diff --git a/src/frontend/public/maps/styles/openfreemap-light.json b/src/frontend/public/maps/styles/openfreemap-light.json
index 18053f6..5598237 100644
--- a/src/frontend/public/maps/styles/openfreemap-light.json
+++ b/src/frontend/public/maps/styles/openfreemap-light.json
@@ -4,10 +4,6 @@
"openmaptiles": {
"type": "vector",
"url": "https://enmarcha.app/ofm/planet"
- },
- "vigo_traffic": {
- "type": "geojson",
- "data": "/api/traffic"
}
},
"sprite": "https://enmarcha.app/ofm/sprites/ofm_f384/ofm",
@@ -6943,64 +6939,6 @@
"text-halo-color": "#fff",
"text-halo-width": 1
}
- },
- {
- "id": "vigo_traffic",
- "type": "line",
- "source": "vigo_traffic",
- "layout": {},
- "paint": {
- "line-opacity": [
- "interpolate",
- [
- "linear"
- ],
- [
- "zoom"
- ],
- 0,
- 1,
- 14,
- 1,
- 16,
- 0.8,
- 18,
- 0.6,
- 22,
- 0.6
- ],
- "line-color": [
- "match",
- [
- "get",
- "style"
- ],
- "#CONGESTION",
- "hsl(70.7 100% 38%)",
- "#MUYDENSO",
- "hsl(36.49 100% 50%)",
- "#DENSO",
- "hsl(47.61 100% 49%)",
- "#FLUIDO",
- "hsl(83.9 100% 40%)",
- "#MUYFLUIDO",
- "hsl(161.25 100% 42%)",
- "hsl(0.0 0% 0%)"
- ],
- "line-width": [
- "interpolate",
- [
- "linear"
- ],
- [
- "zoom"
- ],
- 14,
- 2,
- 18,
- 4
- ]
- }
}
]
}
diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts
index 042177d..1b0a6ad 100644
--- a/src/frontend/vite.config.ts
+++ b/src/frontend/vite.config.ts
@@ -14,7 +14,7 @@ export default defineConfig({
plugins: [reactRouter(), tsconfigPaths(), tailwindcss()],
server: {
proxy: {
- "^/api": {
+ "^/(api|backoffice)": {
target: "https://localhost:7240",
secure: false,
},