MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / export

Method export

packages/core/src/project/project.ts:61–67  ·  view source on GitHub ↗
(stage: TRANSFORM_STAGE = TRANSFORM_STAGE.SAVE)

Source from the content-addressed store, hash-verified

59 }
60
61 export(stage: TRANSFORM_STAGE = TRANSFORM_STAGE.SAVE): ProjectSchema {
62 return {
63 ...this.data,
64 componentsMap: this.getComponentsMap(),
65 componentsTree: this.documents.filter(doc => !doc.isBlank()).map(doc => doc.export(stage) || {}),
66 }
67 }
68
69 private getComponentsMap() {
70 return this.documents.reduce<ComponentsMap>((componentsMap: ComponentsMap, curDoc: Document): ComponentsMap => {

Callers 11

LeafHocClass · 0.45
getDefaultStateMethod · 0.45
schemaMethod · 0.45
onClickFunction · 0.45
saveFunction · 0.45
initFunction · 0.45
useCustomChatFunction · 0.45
onClickFunction · 0.45
saveFunction · 0.45

Calls 4

getComponentsMapMethod · 0.95
isBlankMethod · 0.80
mapMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected