File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
dev/import-tool/docs/huly/example-workspace
packages/importer/src/huly Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 11class : card:class:MasterTag
2- title : Master Tag 1
2+ title : Master Tag 3
33properties :
44 - label : aaa # embedded:embedded:aaa
55 type : TypeString # human readable format + core:class^
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export class HulyFormatImporter {
353353
354354 private readonly personIdByEmail = new Map < string , PersonId > ( )
355355
356- private readonly unifiedDocImporter : UnifiedDocProcessor
356+ private readonly unifiedDocImporter = new UnifiedDocProcessor ( )
357357
358358 constructor (
359359 private readonly client : TxOperations ,
@@ -362,7 +362,6 @@ export class HulyFormatImporter {
362362 private readonly importerSocialId ?: PersonId ,
363363 private readonly importerPerson ?: Ref < Person >
364364 ) {
365- this . unifiedDocImporter = new UnifiedDocProcessor ( this . client , this . logger )
366365 }
367366
368367 private async initCaches ( ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -6,23 +6,16 @@ import core, {
66 type Doc ,
77 generateId ,
88 type Ref ,
9- type TxOperations
109} from '@hcengineering/core'
1110import * as fs from 'fs'
1211import * as path from 'path'
1312import * as yaml from 'js-yaml'
14- import { Logger } from '../importer/logger'
1513import { IntlString } from '../../../platform/types'
1614import { readMarkdownContent , readYamlHeader } from './parsing'
1715
1816export type UnifiedDocProcessResult = Map < string , Array < UnifiedDoc < Doc > > >
1917
2018export class UnifiedDocProcessor {
21- constructor (
22- private readonly client : TxOperations ,
23- private readonly logger : Logger
24- ) { }
25-
2619 async importFromDirectory ( directoryPath : string ) : Promise < UnifiedDocProcessResult > {
2720 const unifiedDocs : UnifiedDocProcessResult = new Map ( )
2821 await this . processDirectory ( directoryPath , unifiedDocs )
You can’t perform that action at this time.
0 commit comments