feat(nbstore): add cloud implementation (#8810)

This commit is contained in:
forehalo
2024-12-10 10:48:27 +00:00
parent 1721875ab6
commit 2f80b4f822
32 changed files with 1030 additions and 315 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import type { Storage } from '../storage';
import { CloudBlobStorage, CloudDocStorage } from './cloud';
import {
IndexedDBBlobStorage,
IndexedDBDocStorage,
@@ -19,7 +20,9 @@ const idbv1: StorageConstructor[] = [
IndexedDBV1BlobStorage,
];
export const storages: StorageConstructor[] = [...idbv1, ...idb];
const cloud: StorageConstructor[] = [CloudDocStorage, CloudBlobStorage];
export const storages: StorageConstructor[] = cloud.concat(idbv1, idb);
const AvailableStorageImplementations = storages.reduce(
(acc, curr) => {