@@ -34,7 +34,6 @@ export default {
34
34
},
35
35
methods: {
36
36
formatComponentMap (compMap ) {
37
- console .log (' \n Map : ' , compMap, ' \n ' )
38
37
let result = []
39
38
Object .values (compMap).forEach (compData => {
40
39
result .push ({
@@ -49,29 +48,16 @@ export default {
49
48
const nodes = {}
50
49
const formattedData = this .formatComponentMap (data)
51
50
52
- // console.log('\n >>>> Formatted data <<<<');
53
- // console.log('FormattedData: ', formattedData, '\n');
54
-
55
- // console.log('\n >>>> TRANSFORM TO TREE <<<< \n');
56
-
57
51
formattedData .forEach (component => {
58
52
if (! nodes[component .name ]) {
59
53
nodes[component .name ] = { name: component .name , children: [] }
60
54
result = nodes
61
55
}
62
- // console.log('CURRENT COMPONENT: ', component.name);
63
56
component .children .forEach (child => {
64
- // if(typeof child === 'object') child = child.componentName;
65
57
nodes[child] = { name: child, children: [] }
66
58
nodes[component .name ].children .push (nodes[child])
67
- // console.log('Adding child: ', typeof child, child);
68
- // console.log('\n');
69
59
})
70
60
})
71
-
72
- console .log (' \n >>>> RESULTS <<<< ' )
73
- console .log (result)
74
- console .log (' \n >>>> ______ <<<<' )
75
61
return result
76
62
},
77
63
@@ -96,7 +82,7 @@ export default {
96
82
cursor : pointer ;
97
83
text-shadow : none !important ;
98
84
font-weight : bold ;
99
-
85
+ fill : #FFF ;
100
86
/* none of these classes work
101
87
color: white !important;
102
88
background: white;
0 commit comments