@saltcorn/sbadmin2 0.7.3-beta.2 → 0.7.3-beta.7
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.
- package/index.js +3 -0
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -45,6 +45,8 @@ const subItem = (currentUrl) => (item) =>
|
|
|
45
45
|
item.icon ? i({ class: `fa-fw mr-05 ${item.icon}` }) : "",
|
|
46
46
|
item.label
|
|
47
47
|
)
|
|
48
|
+
: item.type === "Separator"
|
|
49
|
+
? hr({ class: "sidebar-divider my-0" })
|
|
48
50
|
: h6({ class: "collapse-header" }, item.label);
|
|
49
51
|
|
|
50
52
|
/**
|
|
@@ -85,6 +87,7 @@ const active = (currentUrl, item) =>
|
|
|
85
87
|
*/
|
|
86
88
|
const sideBarItem = (currentUrl) => (item) => {
|
|
87
89
|
const is_active = active(currentUrl, item);
|
|
90
|
+
if (item.type === "Separator") return hr({ class: "sidebar-divider my-0" });
|
|
88
91
|
return li(
|
|
89
92
|
{ class: ["nav-item", is_active && "active"] },
|
|
90
93
|
item.subitems
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/sbadmin2",
|
|
3
|
-
"version": "0.7.3-beta.
|
|
3
|
+
"version": "0.7.3-beta.7",
|
|
4
4
|
"description": "SB Admin 2 layout plugin",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"clean": "echo \"Error: no TypeScript support yet\""
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@saltcorn/data": "0.7.3-beta.
|
|
13
|
-
"@saltcorn/markup": "0.7.3-beta.
|
|
14
|
-
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.
|
|
12
|
+
"@saltcorn/data": "0.7.3-beta.7",
|
|
13
|
+
"@saltcorn/markup": "0.7.3-beta.7",
|
|
14
|
+
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8"
|
|
15
15
|
},
|
|
16
16
|
"author": "Tom Nielsen",
|
|
17
17
|
"license": "MIT",
|