mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 05:44:04 +08:00
feat: refactor link menu (#2025)
* link markview - WIP * WIP * feat: refactor links * cleanup
This commit is contained in:
@@ -164,6 +164,12 @@ export class FileImportTaskService {
|
||||
const attachmentCandidates = await buildAttachmentCandidates(extractDir);
|
||||
const docmostMetadata = await readDocmostMetadata(extractDir);
|
||||
|
||||
const space = await this.db
|
||||
.selectFrom('spaces')
|
||||
.select(['slug'])
|
||||
.where('id', '=', fileTask.spaceId)
|
||||
.executeTakeFirst();
|
||||
|
||||
const pagesMap = new Map<string, ImportPageNode>();
|
||||
|
||||
for (const absPath of allFiles) {
|
||||
@@ -458,6 +464,7 @@ export class FileImportTaskService {
|
||||
creatorId: fileTask.creatorId,
|
||||
sourcePageId: page.id,
|
||||
workspaceId: fileTask.workspaceId,
|
||||
spaceSlug: space?.slug,
|
||||
});
|
||||
|
||||
const pmState = getProsemirrorContent(
|
||||
|
||||
Reference in New Issue
Block a user