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
63
pwa/node_modules/vite/dist/node/runtime.d.ts
generated
vendored
Normal file
63
pwa/node_modules/vite/dist/node/runtime.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
import { V as ViteRuntimeOptions, b as ViteModuleRunner, M as ModuleCacheMap, c as HMRClient, R as ResolvedResult, d as ViteRuntimeModuleContext } from './types.d-aGj9QkWt.js';
|
||||
export { a as FetchFunction, F as FetchResult, e as HMRConnection, H as HMRLogger, g as HMRRuntimeConnection, f as ModuleCache, S as SSRImportMetadata, h as ViteRuntimeImportMeta, s as ssrDynamicImportKey, i as ssrExportAllKey, j as ssrImportKey, k as ssrImportMetaKey, l as ssrModuleExportsKey } from './types.d-aGj9QkWt.js';
|
||||
import '../../types/hot.js';
|
||||
import '../../types/hmrPayload.js';
|
||||
import '../../types/customEvent.js';
|
||||
|
||||
interface ViteRuntimeDebugger {
|
||||
(formatter: unknown, ...args: unknown[]): void;
|
||||
}
|
||||
declare class ViteRuntime {
|
||||
options: ViteRuntimeOptions;
|
||||
runner: ViteModuleRunner;
|
||||
private debug?;
|
||||
/**
|
||||
* Holds the cache of modules
|
||||
* Keys of the map are ids
|
||||
*/
|
||||
moduleCache: ModuleCacheMap;
|
||||
hmrClient?: HMRClient;
|
||||
entrypoints: Set<string>;
|
||||
private idToUrlMap;
|
||||
private fileToIdMap;
|
||||
private envProxy;
|
||||
private _destroyed;
|
||||
private _resetSourceMapSupport?;
|
||||
constructor(options: ViteRuntimeOptions, runner: ViteModuleRunner, debug?: ViteRuntimeDebugger | undefined);
|
||||
/**
|
||||
* URL to execute. Accepts file path, server path or id relative to the root.
|
||||
*/
|
||||
executeUrl<T = any>(url: string): Promise<T>;
|
||||
/**
|
||||
* Entrypoint URL to execute. Accepts file path, server path or id relative to the root.
|
||||
* In the case of a full reload triggered by HMR, this is the module that will be reloaded.
|
||||
* If this method is called multiple times, all entrypoints will be reloaded one at a time.
|
||||
*/
|
||||
executeEntrypoint<T = any>(url: string): Promise<T>;
|
||||
/**
|
||||
* Clear all caches including HMR listeners.
|
||||
*/
|
||||
clearCache(): void;
|
||||
/**
|
||||
* Clears all caches, removes all HMR listeners, and resets source map support.
|
||||
* This method doesn't stop the HMR connection.
|
||||
*/
|
||||
destroy(): Promise<void>;
|
||||
/**
|
||||
* Returns `true` if the runtime has been destroyed by calling `destroy()` method.
|
||||
*/
|
||||
isDestroyed(): boolean;
|
||||
private invalidateFiles;
|
||||
private normalizeEntryUrl;
|
||||
private processImport;
|
||||
private cachedRequest;
|
||||
private cachedModule;
|
||||
protected directRequest(id: string, fetchResult: ResolvedResult, _callstack: string[]): Promise<any>;
|
||||
}
|
||||
|
||||
declare class ESModulesRunner implements ViteModuleRunner {
|
||||
runViteModule(context: ViteRuntimeModuleContext, code: string): Promise<any>;
|
||||
runExternalModule(filepath: string): Promise<any>;
|
||||
}
|
||||
|
||||
export { ESModulesRunner, ModuleCacheMap, ResolvedResult, ViteModuleRunner, ViteRuntime, ViteRuntimeModuleContext, ViteRuntimeOptions };
|
||||
Loading…
Add table
Add a link
Reference in a new issue