refactor: rename WorkspacePlugin to WorkspaceAdapter (#2330)

This commit is contained in:
Himself65
2023-05-12 01:43:39 +08:00
committed by GitHub
parent 39c83bd25b
commit 063ffda09d
28 changed files with 189 additions and 83 deletions

View File

@@ -9,7 +9,7 @@ import { useAtomValue, useSetAtom } from 'jotai';
import { useCallback, useEffect } from 'react';
import { workspacesAtom } from '../atoms';
import { WorkspacePlugins } from '../plugins';
import { WorkspaceAdapters } from '../plugins';
import { LocalPlugin } from '../plugins/local';
import type { AllWorkspace } from '../shared';
@@ -86,7 +86,7 @@ export function useAppHelper() {
}
// delete workspace from plugin
await WorkspacePlugins[targetWorkspace.flavour].CRUD.delete(
await WorkspaceAdapters[targetWorkspace.flavour].CRUD.delete(
// fixme: type casting
targetWorkspace as any
);