@saltcorn/sbadmin2 1.1.0-beta.8 → 1.1.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 +13 -7
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -156,7 +156,11 @@ const sideBarItem = (currentUrl) => (item) => {
|
|
|
156
156
|
)
|
|
157
157
|
: item.type === "Search"
|
|
158
158
|
? form(
|
|
159
|
-
{
|
|
159
|
+
{
|
|
160
|
+
action: "/search",
|
|
161
|
+
class: "menusearch ms-2 me-3",
|
|
162
|
+
method: "get",
|
|
163
|
+
},
|
|
160
164
|
div(
|
|
161
165
|
{ class: "input-group search-bar" },
|
|
162
166
|
|
|
@@ -361,6 +365,8 @@ const formModify = (form) => {
|
|
|
361
365
|
*/
|
|
362
366
|
const safeSlash = () => (isNode() ? "/" : "");
|
|
363
367
|
|
|
368
|
+
const linkPrefix = () => (isNode() ? "/plugins" : "sc_plugins");
|
|
369
|
+
|
|
364
370
|
/**
|
|
365
371
|
* @param {*} headers
|
|
366
372
|
* @param {string} title
|
|
@@ -376,11 +382,11 @@ const wrapIt = (headers, title, bodyAttr, rest) =>
|
|
|
376
382
|
<meta charset="utf-8">
|
|
377
383
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
378
384
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
379
|
-
<link rel="stylesheet" href="${
|
|
380
|
-
<link href="${
|
|
385
|
+
<link rel="stylesheet" href="${linkPrefix()}/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/fontawesome-free/css/all.min.css">
|
|
386
|
+
<link href="${linkPrefix()}/pubdeps/sbadmin2/nunito/5.0.3/css/nunito/nunito-fontface.css" rel="stylesheet">
|
|
381
387
|
|
|
382
388
|
<!-- Custom styles for this template-->
|
|
383
|
-
<link rel="stylesheet" href="${
|
|
389
|
+
<link rel="stylesheet" href="${linkPrefix()}/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/css/sb-admin-2.css">
|
|
384
390
|
${headersInHead(headers)}
|
|
385
391
|
<title>${text(title)}</title>
|
|
386
392
|
</head>
|
|
@@ -389,9 +395,9 @@ const wrapIt = (headers, title, bodyAttr, rest) =>
|
|
|
389
395
|
<script src="${safeSlash()}static_assets/${
|
|
390
396
|
db.connectObj.version_tag
|
|
391
397
|
}/jquery-3.6.0.min.js"></script>
|
|
392
|
-
<script src="${
|
|
393
|
-
<script src="${
|
|
394
|
-
<script src="${
|
|
398
|
+
<script src="${linkPrefix()}/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
399
|
+
<script src="${linkPrefix()}/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
400
|
+
<script src="${linkPrefix()}/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/js/sb-admin-2.min.js"></script>
|
|
395
401
|
${headersInBody(headers)}
|
|
396
402
|
</body>
|
|
397
403
|
</html>`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/sbadmin2",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.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.1.0
|
|
13
|
-
"@saltcorn/markup": "1.1.0
|
|
12
|
+
"@saltcorn/data": "1.1.0",
|
|
13
|
+
"@saltcorn/markup": "1.1.0",
|
|
14
14
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8",
|
|
15
15
|
"nunito-fontface": "0.7.3"
|
|
16
16
|
},
|