Make the app work: bind transport fetch (Illegal invocation), emergency phone content, real map assets+POIs, wire map loader into routes, offline icon cache match, multi-day event times, hide empty emergency groups; remove bottom nav bar (home tiles + brand cover navigation)
Some checks failed
ci / check (push) Has been cancelled
Some checks failed
ci / check (push) Has been cancelled
This commit is contained in:
parent
859cb649c8
commit
398f0b097a
11 changed files with 200 additions and 89 deletions
|
|
@ -79,7 +79,10 @@ const mapLevelIds = (
|
|||
).map((l) => l.assetId);
|
||||
const assetIds = mapLevelIds.length > 0 ? mapLevelIds : ["map-base-overview"];
|
||||
const blobs = new Map<string, Uint8Array>();
|
||||
for (const id of assetIds) blobs.set(id, placeholderPng(id));
|
||||
for (const id of assetIds) {
|
||||
const real = join("content", "assets", `${id}.png`);
|
||||
blobs.set(id, existsSync(real) ? new Uint8Array(readFileSync(real)) : placeholderPng(id));
|
||||
}
|
||||
const assetsInventory = {
|
||||
assets: assetIds.map((id) => ({
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue