mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
@@ -1,4 +1,5 @@
|
||||
import { Button, IconButton, Modal } from '@affine/component';
|
||||
import { getStoreManager } from '@affine/core/blocksuite/manager/migrating-store';
|
||||
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
|
||||
import type {
|
||||
DialogComponentProps,
|
||||
@@ -145,6 +146,7 @@ const importConfigs: Record<ImportType, ImportConfig> = {
|
||||
schema: getAFFiNEWorkspaceSchema(),
|
||||
markdown: text,
|
||||
fileName,
|
||||
extensions: getStoreManager().get('store'),
|
||||
});
|
||||
if (docId) docIds.push(docId);
|
||||
}
|
||||
@@ -163,6 +165,7 @@ const importConfigs: Record<ImportType, ImportConfig> = {
|
||||
collection: docCollection,
|
||||
schema: getAFFiNEWorkspaceSchema(),
|
||||
imported: file,
|
||||
extensions: getStoreManager().get('store'),
|
||||
});
|
||||
return {
|
||||
docIds,
|
||||
@@ -182,6 +185,7 @@ const importConfigs: Record<ImportType, ImportConfig> = {
|
||||
const docId = await HtmlTransformer.importHTMLToDoc({
|
||||
collection: docCollection,
|
||||
schema: getAFFiNEWorkspaceSchema(),
|
||||
extensions: getStoreManager().get('store'),
|
||||
html: text,
|
||||
fileName,
|
||||
});
|
||||
@@ -203,6 +207,7 @@ const importConfigs: Record<ImportType, ImportConfig> = {
|
||||
collection: docCollection,
|
||||
schema: getAFFiNEWorkspaceSchema(),
|
||||
imported: file,
|
||||
extensions: getStoreManager().get('store'),
|
||||
});
|
||||
return {
|
||||
docIds: pageIds,
|
||||
|
||||
Reference in New Issue
Block a user