Spaces:
Runtime error
Runtime error
chore(cache): auto-bump cache version before push
Browse files- static/index.html +2 -2
- static/map.html +16 -4
- static/sw.js +1 -1
- version.json +1 -1
static/index.html
CHANGED
|
@@ -947,7 +947,7 @@
|
|
| 947 |
// Force refresh if we detect cached version
|
| 948 |
(function() {
|
| 949 |
const currentVersion = '5.1.1';
|
| 950 |
-
const timestamp = '
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
@@ -1193,7 +1193,7 @@
|
|
| 1193 |
</div>
|
| 1194 |
</div>
|
| 1195 |
|
| 1196 |
-
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=
|
| 1197 |
|
| 1198 |
<script>
|
| 1199 |
// Idle-time prefetch of map assets to speed up first navigation
|
|
|
|
| 947 |
// Force refresh if we detect cached version
|
| 948 |
(function() {
|
| 949 |
const currentVersion = '5.1.1';
|
| 950 |
+
const timestamp = '1761513142'; // Cache-busting bump
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
|
|
| 1193 |
</div>
|
| 1194 |
</div>
|
| 1195 |
|
| 1196 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761513142"></script>
|
| 1197 |
|
| 1198 |
<script>
|
| 1199 |
// Idle-time prefetch of map assets to speed up first navigation
|
static/map.html
CHANGED
|
@@ -967,7 +967,7 @@
|
|
| 967 |
// Force refresh if we detect cached version
|
| 968 |
(function() {
|
| 969 |
const currentVersion = '5.1.1';
|
| 970 |
-
const timestamp = '
|
| 971 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 972 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 973 |
|
|
@@ -1035,14 +1035,26 @@ const timestamp = '1761513015'; // Current timestamp for cache busting
|
|
| 1035 |
<div class="instructions-content">
|
| 1036 |
<p>This is the Tree Map of Tezpur.</p>
|
| 1037 |
<p>Zoom in and out to explore data collected from various locations.</p>
|
| 1038 |
-
<p>Click on tree icons to view their details and information.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1039 |
<p>Use the map controls on the left to:</p>
|
| 1040 |
<ul style="margin: 10px 0; padding-left: 20px; font-size: 0.875rem; color: #6b7280;">
|
| 1041 |
<li>Find your current location</li>
|
| 1042 |
<li>Clear location pins</li>
|
| 1043 |
<li>Center the map view</li>
|
| 1044 |
</ul>
|
| 1045 |
-
<p style="font-size: 0.8rem; color: #6b7280; margin-top: 12px;">All trees are displayed with consistent green markers with brown trunks
|
| 1046 |
</div>
|
| 1047 |
</div>
|
| 1048 |
|
|
@@ -1116,7 +1128,7 @@ const timestamp = '1761513015'; // Current timestamp for cache busting
|
|
| 1116 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 1117 |
<!-- Leaflet MarkerCluster JS for performance and grouping -->
|
| 1118 |
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
|
| 1119 |
-
<script src="/static/map.js?v=5.1.1&t=
|
| 1120 |
<script>
|
| 1121 |
console.log('🗺️ Map script loaded successfully');
|
| 1122 |
</script>
|
|
|
|
| 967 |
// Force refresh if we detect cached version
|
| 968 |
(function() {
|
| 969 |
const currentVersion = '5.1.1';
|
| 970 |
+
const timestamp = '1761513142'; // Current timestamp for cache busting
|
| 971 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 972 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 973 |
|
|
|
|
| 1035 |
<div class="instructions-content">
|
| 1036 |
<p>This is the Tree Map of Tezpur.</p>
|
| 1037 |
<p>Zoom in and out to explore data collected from various locations.</p>
|
| 1038 |
+
<p>Click on individual tree icons to view their details and information.</p>
|
| 1039 |
+
|
| 1040 |
+
<div style="margin: 15px 0; padding: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; border-left: 3px solid #22c55e;">
|
| 1041 |
+
<h4 style="margin: 0 0 8px 0; font-size: 0.9rem; font-weight: 600;">Tree Clusters</h4>
|
| 1042 |
+
<p style="margin: 0 0 8px 0; font-size: 0.8rem; line-height: 1.4;">Circles with numbers represent groups of nearby trees:</p>
|
| 1043 |
+
<ul style="margin: 0; padding-left: 16px; font-size: 0.8rem; color: #6b7280;">
|
| 1044 |
+
<li><strong>Small clusters (2-10 trees):</strong> Yellow/orange circles</li>
|
| 1045 |
+
<li><strong>Medium clusters (10-100 trees):</strong> Orange circles</li>
|
| 1046 |
+
<li><strong>Large clusters (100+ trees):</strong> Red circles</li>
|
| 1047 |
+
<li><strong>Zoom in</strong> on any cluster to expand and see individual trees</li>
|
| 1048 |
+
</ul>
|
| 1049 |
+
</div>
|
| 1050 |
+
|
| 1051 |
<p>Use the map controls on the left to:</p>
|
| 1052 |
<ul style="margin: 10px 0; padding-left: 20px; font-size: 0.875rem; color: #6b7280;">
|
| 1053 |
<li>Find your current location</li>
|
| 1054 |
<li>Clear location pins</li>
|
| 1055 |
<li>Center the map view</li>
|
| 1056 |
</ul>
|
| 1057 |
+
<p style="font-size: 0.8rem; color: #6b7280; margin-top: 12px;">All individual trees are displayed with consistent green markers with brown trunks.</p>
|
| 1058 |
</div>
|
| 1059 |
</div>
|
| 1060 |
|
|
|
|
| 1128 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 1129 |
<!-- Leaflet MarkerCluster JS for performance and grouping -->
|
| 1130 |
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
|
| 1131 |
+
<script src="/static/map.js?v=5.1.1&t=1761513142"></script>
|
| 1132 |
<script>
|
| 1133 |
console.log('🗺️ Map script loaded successfully');
|
| 1134 |
</script>
|
static/sw.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
-
const VERSION =
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
|
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
+
const VERSION = 1761513142; // Cache busting bump - force clients to fetch new static assets and header image change
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
-
"timestamp":
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
+
"timestamp": 1761513142
|
| 4 |
}
|