aleman 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1 @@
|
|
|
1
|
-
<ul data-name="menu" class="menu menu-hidden">
|
|
2
|
-
<li data-name='menu-item' className='menu-item'>
|
|
3
|
-
<label>hello</label>
|
|
4
|
-
</li>
|
|
5
|
-
<li data-name='menu-item' className='menu-item'>
|
|
6
|
-
<label>world</label>
|
|
7
|
-
</li>
|
|
8
|
-
</ul>;
|
|
1
|
+
<ul data-name="menu" class="menu menu-hidden"><li data-name='menu-item' className='menu-item'><label>hello</label></li><li data-name='menu-item' className='menu-item'><label>world</label></li></ul>;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
<ul data-name="menu" class="menu menu-hidden">
|
|
2
|
-
<li data-name='menu-item' className='menu-item icon icon-hello'>
|
|
3
|
-
<label>hello</label>
|
|
4
|
-
</li>
|
|
5
|
-
<li data-name='menu-item' className='menu-item icon icon-world'>
|
|
6
|
-
<label>world</label>
|
|
7
|
-
</li>
|
|
8
|
-
</ul>;
|
|
1
|
+
<ul data-name="menu" class="menu menu-hidden"><li data-name='menu-item' className='menu-item icon icon-hello'><label>hello</label></li><li data-name='menu-item' className='menu-item icon icon-world'><label>world</label></li></ul>;
|
|
@@ -7,9 +7,7 @@ const {jsxText} = types;
|
|
|
7
7
|
export const report = () => `Build menu`;
|
|
8
8
|
|
|
9
9
|
const createMenuItem = template(`
|
|
10
|
-
<li data-name="menu-item" className="menu-item">
|
|
11
|
-
<label>NAME</label>
|
|
12
|
-
</li>
|
|
10
|
+
<li data-name="menu-item" className="menu-item"><label>NAME</label></li>
|
|
13
11
|
`);
|
|
14
12
|
|
|
15
13
|
const NEWLINE = jsxText('\n');
|
|
@@ -26,15 +24,14 @@ export const fix = ({path, menu, icon}) => {
|
|
|
26
24
|
for (const key of keys(menu)) {
|
|
27
25
|
const menuItem = createMenuItem();
|
|
28
26
|
|
|
29
|
-
menuItem.children[
|
|
27
|
+
menuItem.children[0].children[0].value = key;
|
|
30
28
|
|
|
31
29
|
if (icon)
|
|
32
30
|
setIcon(key, menuItem);
|
|
33
31
|
|
|
34
|
-
items.push(
|
|
32
|
+
items.push(menuItem);
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
items.push(NEWLINE);
|
|
38
35
|
path.parentPath.node.children = items;
|
|
39
36
|
};
|
|
40
37
|
|