1
0
forked from noxious/client

Load map data inside a composable instead of Pinia store

This commit is contained in:
2025-01-25 02:38:40 +01:00
parent 807bc2066e
commit 7a51323682
14 changed files with 120 additions and 125 deletions

View File

@ -1,6 +1,6 @@
import type { BaseStorage } from '@/storage/baseStorage'
import config from '@/application/config'
import type { HttpResponse } from '@/application/types'
import type { BaseStorage } from '@/storage/baseStorage'
export function uuidv4() {
return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) => (+c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (+c / 4)))).toString(16))
@ -49,4 +49,4 @@ export async function downloadCache<T extends { id: string; updatedAt: Date }>(e
await storage.add(item, overwrite)
}
}
}