@saltcorn/sbadmin2 1.0.0 → 1.1.0-beta.0
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 +4 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
toast,
|
|
29
29
|
headersInHead,
|
|
30
30
|
headersInBody,
|
|
31
|
+
show_icon
|
|
31
32
|
} = require("@saltcorn/markup/layout_utils");
|
|
32
33
|
const db = require("@saltcorn/data/db");
|
|
33
34
|
const { isNode } = require("@saltcorn/data/utils");
|
|
@@ -65,7 +66,7 @@ const subItem = (currentUrl) => (item) =>
|
|
|
65
66
|
href: text(item.link),
|
|
66
67
|
target: item.target_blank ? "_blank" : undefined,
|
|
67
68
|
},
|
|
68
|
-
item.icon
|
|
69
|
+
show_icon(item.icon, "mr-05"),
|
|
69
70
|
item.label
|
|
70
71
|
)
|
|
71
72
|
: item.type === "Separator"
|
|
@@ -128,7 +129,7 @@ const sideBarItem = (currentUrl) => (item) => {
|
|
|
128
129
|
"aria-expanded": "true",
|
|
129
130
|
"aria-controls": `collapse${labelToId(item)}`,
|
|
130
131
|
},
|
|
131
|
-
|
|
132
|
+
show_icon(item.icon),
|
|
132
133
|
span(text(item.label))
|
|
133
134
|
),
|
|
134
135
|
div(
|
|
@@ -150,7 +151,7 @@ const sideBarItem = (currentUrl) => (item) => {
|
|
|
150
151
|
href: text(item.link),
|
|
151
152
|
target: item.target_blank ? "_blank" : undefined,
|
|
152
153
|
},
|
|
153
|
-
|
|
154
|
+
show_icon(item.icon),
|
|
154
155
|
span(text(item.label))
|
|
155
156
|
)
|
|
156
157
|
: item.type === "Search"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/sbadmin2",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"description": "SB Admin 2 layout plugin",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"clean": "echo \"Error: no TypeScript support yet\""
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@saltcorn/data": "1.0.0",
|
|
13
|
-
"@saltcorn/markup": "1.0.0",
|
|
12
|
+
"@saltcorn/data": "1.1.0-beta.0",
|
|
13
|
+
"@saltcorn/markup": "1.1.0-beta.0",
|
|
14
14
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8",
|
|
15
15
|
"nunito-fontface": "0.7.3"
|
|
16
16
|
},
|