Skip to content

Commit 8e74a0f

Browse files
author
Emma Genesen
committed
updated extractor and edited comments
1 parent 765783c commit 8e74a0f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

extractor.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// parsing implementation in progress
44

5-
// this would need to exist in the root directory of a project (or whatever level the node modules are on)
65

76
// importing parseComponent from npm package
87
const { parseComponent } = require("vue-sfc-parser");
@@ -96,6 +95,31 @@ function generateImportObjs(pathList) { // or something
9695
// iterate through paths
9796
// parse each file
9897
// extract necessary html / js stuff for importObj
98+
//necessary info:
99+
// component name
100+
// boilerplate properties for each component upon creation
101+
// const component = {
102+
// x: 0,
103+
// y: 20,
104+
// z: 0,
105+
// w: 200,
106+
// h: 200,
107+
// htmlList: this.selectedElementList, //htmlList ask Alex
108+
// noteList: [],
109+
// children: [],
110+
// actions: [],
111+
// props: [],
112+
// state: [],
113+
// parent: {},
114+
// isActive: false,
115+
// idDrag: '',
116+
// idDrop: '',
117+
// color: "#ffffff85",
118+
// htmlAttributes: {
119+
// class: "",
120+
// id: ""
121+
// }
122+
// };
99123
// return an array of importObjs with default settings, names, etc
100124
}
101125

0 commit comments

Comments
 (0)