forked from noxious/client
Load map data inside a composable instead of Pinia store
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user