File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// parsing implementation in progress
4
4
5
- // this would need to exist in the root directory of a project (or whatever level the node modules are on)
6
5
7
6
// importing parseComponent from npm package
8
7
const { parseComponent } = require ( "vue-sfc-parser" ) ;
@@ -96,6 +95,31 @@ function generateImportObjs(pathList) { // or something
96
95
// iterate through paths
97
96
// parse each file
98
97
// 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
+ // };
99
123
// return an array of importObjs with default settings, names, etc
100
124
}
101
125
You can’t perform that action at this time.
0 commit comments