Add progressive web app companion for cross-platform access
Vite + TypeScript PWA that mirrors the Android app's core features: - Pre-processed shelter data (build-time UTM33N→WGS84 conversion) - Leaflet map with shelter markers, user location, and offline tiles - Canvas compass arrow (ported from DirectionArrowView.kt) - IndexedDB shelter cache with 7-day staleness check - Service worker with CacheFirst tiles and precached app shell - i18n for en, nb, nn (ported from Android strings.xml) - iOS/Android compass handling with low-pass filter - Respects user map interaction (no auto-snap on pan/zoom) - Build revision cache-breaker for reliable SW updates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
46365b713b
commit
e8428de775
12051 changed files with 1799735 additions and 0 deletions
44
pwa/node_modules/has-bigints/test/index.js
generated
vendored
Normal file
44
pwa/node_modules/has-bigints/test/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var hasBigInts = require('..');
|
||||
|
||||
test('interface', function (t) {
|
||||
t.equal(typeof hasBigInts, 'function', 'is a function');
|
||||
t.equal(typeof hasBigInts(), 'boolean', 'returns a boolean');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('BigInts are supported', { skip: !hasBigInts() }, function (t) {
|
||||
t.equal(typeof BigInt, 'function', 'global BigInt is a function');
|
||||
if (typeof BigInt !== 'function') {
|
||||
return;
|
||||
}
|
||||
|
||||
t.equal(BigInt(42), BigInt(42), '42n === 42n');
|
||||
t['throws'](
|
||||
function () { BigInt(NaN); },
|
||||
RangeError,
|
||||
'NaN is not an integer; BigInt(NaN) throws'
|
||||
);
|
||||
|
||||
t['throws'](
|
||||
function () { BigInt(Infinity); },
|
||||
RangeError,
|
||||
'Infinity is not an integer; BigInt(Infinity) throws'
|
||||
);
|
||||
|
||||
t['throws'](
|
||||
function () { BigInt(1.1); },
|
||||
RangeError,
|
||||
'1.1 is not an integer; BigInt(1.1) throws'
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('BigInts are not supported', { skip: hasBigInts() }, function (t) {
|
||||
t.equal(typeof BigInt, 'undefined', 'global BigInt is undefined');
|
||||
|
||||
t.end();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue