aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/public
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-19 12:40:48 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-19 12:40:48 +0100
commitd434204860fc0409ad6343e815d0057b97ce3573 (patch)
tree37d349fb3a39e727150134a32e745c64a7312571 /src/frontend/public
parentd6a28db658487bab63067499c3c7dbe6165e18c1 (diff)
Some UI tweaks
Diffstat (limited to 'src/frontend/public')
-rw-r--r--src/frontend/public/maps/styles/openfreemap-dark.json28
-rw-r--r--src/frontend/public/maps/styles/openfreemap-light.json78
-rw-r--r--src/frontend/public/pwa-worker.js6
3 files changed, 62 insertions, 50 deletions
diff --git a/src/frontend/public/maps/styles/openfreemap-dark.json b/src/frontend/public/maps/styles/openfreemap-dark.json
index 2803f1a..eb9cd25 100644
--- a/src/frontend/public/maps/styles/openfreemap-dark.json
+++ b/src/frontend/public/maps/styles/openfreemap-dark.json
@@ -3344,13 +3344,22 @@
"paint": {
"line-opacity": [
"interpolate",
- ["linear"],
- ["get", "zoom"],
- 0, 1,
- 14, 1,
- 16, 0.8,
- 18, 0.6,
- 22, 0.6
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 0,
+ 1,
+ 14,
+ 1,
+ 16,
+ 0.8,
+ 18,
+ 0.6,
+ 22,
+ 0.6
],
"line-color": [
"match",
@@ -3360,19 +3369,14 @@
],
"#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": [
diff --git a/src/frontend/public/maps/styles/openfreemap-light.json b/src/frontend/public/maps/styles/openfreemap-light.json
index d616fe7..535659f 100644
--- a/src/frontend/public/maps/styles/openfreemap-light.json
+++ b/src/frontend/public/maps/styles/openfreemap-light.json
@@ -5287,10 +5287,14 @@
false
],
[
- "\u003E=",
+ ">=",
[
- "get",
- "rank"
+ "coalesce",
+ [
+ "get",
+ "rank"
+ ],
+ 0
],
20
]
@@ -5392,7 +5396,7 @@
"bus"
],
[
- "\u003E=",
+ ">=",
[
"get",
"rank"
@@ -5400,10 +5404,14 @@
7
],
[
- "\u003C",
+ "<",
[
- "get",
- "rank"
+ "coalesce",
+ [
+ "get",
+ "rank"
+ ],
+ 0
],
20
]
@@ -5505,26 +5513,26 @@
"bus"
],
[
- "!=",
+ ">=",
[
- "get",
- "class"
- ],
- "bus"
- ],
- [
- "\u003E=",
- [
- "get",
- "rank"
+ "coalesce",
+ [
+ "get",
+ "rank"
+ ],
+ 1
],
1
],
[
- "\u003C",
+ "<",
[
- "get",
- "rank"
+ "coalesce",
+ [
+ "get",
+ "rank"
+ ],
+ 0
],
7
]
@@ -6993,13 +7001,22 @@
"paint": {
"line-opacity": [
"interpolate",
- ["linear"],
- ["get", "zoom"],
- 0, 1,
- 14, 1,
- 16, 0.8,
- 18, 0.6,
- 22, 0.6
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 0,
+ 1,
+ 14,
+ 1,
+ 16,
+ 0.8,
+ 18,
+ 0.6,
+ 22,
+ 0.6
],
"line-color": [
"match",
@@ -7009,19 +7026,14 @@
],
"#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": [
diff --git a/src/frontend/public/pwa-worker.js b/src/frontend/public/pwa-worker.js
index eb69b84..649a161 100644
--- a/src/frontend/public/pwa-worker.js
+++ b/src/frontend/public/pwa-worker.js
@@ -1,4 +1,4 @@
-const CACHE_VERSION = "20251107a";
+const CACHE_VERSION = "20251118a";
const STATIC_CACHE_NAME = `static-cache-${CACHE_VERSION}`;
const STATIC_CACHE_ASSETS = ["/favicon.ico", "/logo-256.png", "/logo-512.jpg"];
@@ -9,7 +9,6 @@ const ESTIMATES_MIN_AGE = 15 * 1000;
const ESTIMATES_MAX_AGE = 30 * 1000;
self.addEventListener("install", (event) => {
- console.log("SW: Install event in progress. Cache version: ", CACHE_VERSION);
event.waitUntil(
caches
.open(STATIC_CACHE_NAME)
@@ -67,17 +66,14 @@ async function handleStaticRequest(request) {
const cache = await caches.open(STATIC_CACHE_NAME);
const cachedResponse = await cache.match(request);
if (cachedResponse) {
- console.log("SW handleStaticRequest: HIT for ", request.url);
return cachedResponse;
}
try {
const netResponse = await fetch(request);
if (netResponse.ok) cache.put(request, netResponse.clone());
- console.log("SW handleStaticRequest: MISS for ", request.url);
return netResponse;
} catch (err) {
- console.error("SW handleStaticRequest: FAIL for ", request.url, err);
return null;
}
}