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
37
pwa/node_modules/vitest/dist/workers.d.ts
generated
vendored
Normal file
37
pwa/node_modules/vitest/dist/workers.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.tN5KGIih.js';
|
||||
import { Awaitable } from '@vitest/utils';
|
||||
import * as v8 from 'v8';
|
||||
import { S as SerializedConfig } from './chunks/config.Cy0C388Z.js';
|
||||
import { W as WorkerContext } from './chunks/worker.B9FxPCaC.js';
|
||||
import '@vitest/runner';
|
||||
import 'vite-node';
|
||||
import './chunks/environment.LoooBwUu.js';
|
||||
import '@vitest/snapshot';
|
||||
import '@vitest/pretty-format';
|
||||
import '@vitest/snapshot/environment';
|
||||
import 'node:worker_threads';
|
||||
|
||||
declare function provideWorkerState(context: any, state: WorkerGlobalState): WorkerGlobalState;
|
||||
|
||||
declare function run(ctx: ContextRPC): Promise<void>;
|
||||
declare function collect(ctx: ContextRPC): Promise<void>;
|
||||
|
||||
declare function runBaseTests(method: 'run' | 'collect', state: WorkerGlobalState): Promise<void>;
|
||||
|
||||
type WorkerRpcOptions = Pick<BirpcOptions<RuntimeRPC>, 'on' | 'post' | 'serialize' | 'deserialize'>;
|
||||
interface VitestWorker {
|
||||
getRpcOptions: (ctx: ContextRPC) => WorkerRpcOptions;
|
||||
runTests: (state: WorkerGlobalState) => Awaitable<unknown>;
|
||||
collectTests: (state: WorkerGlobalState) => Awaitable<unknown>;
|
||||
}
|
||||
|
||||
declare function createThreadsRpcOptions({ port, }: WorkerContext): WorkerRpcOptions;
|
||||
declare function createForksRpcOptions(nodeV8: typeof v8): WorkerRpcOptions;
|
||||
/**
|
||||
* Reverts the wrapping done by `utils/config-helpers.ts`'s `wrapSerializableConfig`
|
||||
*/
|
||||
declare function unwrapSerializableConfig(config: SerializedConfig): SerializedConfig;
|
||||
|
||||
declare function runVmTests(method: 'run' | 'collect', state: WorkerGlobalState): Promise<void>;
|
||||
|
||||
export { type VitestWorker, type WorkerRpcOptions, collect as collectVitestWorkerTests, createForksRpcOptions, createThreadsRpcOptions, provideWorkerState, runBaseTests, run as runVitestWorker, runVmTests, unwrapSerializableConfig };
|
||||
Loading…
Add table
Add a link
Reference in a new issue