Add local automatic backups and Aniimo regions lists
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s

This commit is contained in:
Shinuwa 2026-09-24 09:39:33 +02:00
parent 2255de94a7
commit 0a3bb4dffd
24 changed files with 908 additions and 16 deletions

View file

@ -192,7 +192,7 @@ export function useIndexedToolboxes(onError) {
return request;
}, [queue]);
async function getExportSnapshot(toolboxId) {
async function getExportSnapshot(toolboxId, options = {}) {
if (!writableRef.current) return null;
let snapshot;
const success = await queue.enqueue((current) => current, async (current) => {
@ -200,7 +200,7 @@ export function useIndexedToolboxes(onError) {
const keys = deferred.filter((key) => !toolboxId || key.startsWith(`${toolboxId}:`));
const entries = await dbGetModuleDataEntries(keys);
snapshot = { ...current, moduleData: mergeLoadedModuleData(current.moduleData, keys, entries) };
}, reportStorageError);
}, options.onError || reportStorageError);
return success ? snapshot : null;
}