mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 03:19:52 +08:00
feat(nbstore): add cloud implementation (#8810)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user