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>
30 lines
882 B
JavaScript
30 lines
882 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.FEATURES = void 0;
|
|
exports.enableFeature = enableFeature;
|
|
exports.featuresKey = void 0;
|
|
exports.hasFeature = hasFeature;
|
|
exports.runtimeKey = void 0;
|
|
const FEATURES = exports.FEATURES = Object.freeze({
|
|
unicodeFlag: 1 << 0,
|
|
dotAllFlag: 1 << 1,
|
|
unicodePropertyEscape: 1 << 2,
|
|
namedCaptureGroups: 1 << 3,
|
|
unicodeSetsFlag_syntax: 1 << 4,
|
|
unicodeSetsFlag: 1 << 5,
|
|
duplicateNamedCaptureGroups: 1 << 6,
|
|
modifiers: 1 << 7
|
|
});
|
|
const featuresKey = exports.featuresKey = "@babel/plugin-regexp-features/featuresKey";
|
|
const runtimeKey = exports.runtimeKey = "@babel/plugin-regexp-features/runtimeKey";
|
|
function enableFeature(features, feature) {
|
|
return features | feature;
|
|
}
|
|
function hasFeature(features, feature) {
|
|
return !!(features & feature);
|
|
}
|
|
|
|
//# sourceMappingURL=features.js.map
|