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 1
1
class : card:class:MasterTag
2
- title : Master Tag 1
2
+ title : Master Tag 3
3
3
properties :
4
4
- label : aaa # embedded:embedded:aaa
5
5
type : TypeString # human readable format + core:class^
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export class HulyFormatImporter {
353
353
354
354
private readonly personIdByEmail = new Map < string , PersonId > ( )
355
355
356
- private readonly unifiedDocImporter : UnifiedDocProcessor
356
+ private readonly unifiedDocImporter = new UnifiedDocProcessor ( )
357
357
358
358
constructor (
359
359
private readonly client : TxOperations ,
@@ -362,7 +362,6 @@ export class HulyFormatImporter {
362
362
private readonly importerSocialId ?: PersonId ,
363
363
private readonly importerPerson ?: Ref < Person >
364
364
) {
365
- this . unifiedDocImporter = new UnifiedDocProcessor ( this . client , this . logger )
366
365
}
367
366
368
367
private async initCaches ( ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -6,23 +6,16 @@ import core, {
6
6
type Doc ,
7
7
generateId ,
8
8
type Ref ,
9
- type TxOperations
10
9
} from '@hcengineering/core'
11
10
import * as fs from 'fs'
12
11
import * as path from 'path'
13
12
import * as yaml from 'js-yaml'
14
- import { Logger } from '../importer/logger'
15
13
import { IntlString } from '../../../platform/types'
16
14
import { readMarkdownContent , readYamlHeader } from './parsing'
17
15
18
16
export type UnifiedDocProcessResult = Map < string , Array < UnifiedDoc < Doc > > >
19
17
20
18
export class UnifiedDocProcessor {
21
- constructor (
22
- private readonly client : TxOperations ,
23
- private readonly logger : Logger
24
- ) { }
25
-
26
19
async importFromDirectory ( directoryPath : string ) : Promise < UnifiedDocProcessResult > {
27
20
const unifiedDocs : UnifiedDocProcessResult = new Map ( )
28
21
await this . processDirectory ( directoryPath , unifiedDocs )
You can’t perform that action at this time.
0 commit comments