@saltcorn/sbadmin2 0.7.4-beta.0 → 0.7.4-beta.1
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 +14 -8
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
headersInBody,
|
|
31
31
|
} = require("@saltcorn/markup/layout_utils");
|
|
32
32
|
const db = require("@saltcorn/data/db");
|
|
33
|
+
const { isNode } = require("@saltcorn/data/utils");
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* @param {string} currentUrl
|
|
@@ -318,6 +319,11 @@ const formModify = (form) => {
|
|
|
318
319
|
return form;
|
|
319
320
|
};
|
|
320
321
|
|
|
322
|
+
/**
|
|
323
|
+
* omit '/' in a mobile deployment (needed for ios)
|
|
324
|
+
*/
|
|
325
|
+
const safeSlash = () => (isNode() ? "/" : "");
|
|
326
|
+
|
|
321
327
|
/**
|
|
322
328
|
* @param {*} headers
|
|
323
329
|
* @param {string} title
|
|
@@ -333,22 +339,22 @@ const wrapIt = (headers, title, bodyAttr, rest) =>
|
|
|
333
339
|
<meta charset="utf-8">
|
|
334
340
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
335
341
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
336
|
-
<link rel="stylesheet" href="
|
|
342
|
+
<link rel="stylesheet" href="${safeSlash()}plugins/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/fontawesome-free/css/all.min.css">
|
|
337
343
|
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
|
|
338
344
|
|
|
339
345
|
<!-- Custom styles for this template-->
|
|
340
|
-
<link rel="stylesheet" href="
|
|
346
|
+
<link rel="stylesheet" href="${safeSlash()}plugins/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/css/sb-admin-2.css">
|
|
341
347
|
${headersInHead(headers)}
|
|
342
348
|
<title>${text(title)}</title>
|
|
343
349
|
</head>
|
|
344
350
|
<body ${bodyAttr}>
|
|
345
351
|
${rest}
|
|
346
|
-
<script src="
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
<script src="
|
|
350
|
-
<script src="
|
|
351
|
-
<script src="
|
|
352
|
+
<script src="${safeSlash()}static_assets/${
|
|
353
|
+
db.connectObj.version_tag
|
|
354
|
+
}/jquery-3.6.0.min.js"></script>
|
|
355
|
+
<script src="${safeSlash()}plugins/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
356
|
+
<script src="${safeSlash()}plugins/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
357
|
+
<script src="${safeSlash()}plugins/pubdeps/sbadmin2/startbootstrap-sb-admin-2-bs5/4.1.5-beta.5/js/sb-admin-2.min.js"></script>
|
|
352
358
|
${headersInBody(headers)}
|
|
353
359
|
</body>
|
|
354
360
|
</html>`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/sbadmin2",
|
|
3
|
-
"version": "0.7.4-beta.
|
|
3
|
+
"version": "0.7.4-beta.1",
|
|
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": "0.7.4-beta.
|
|
13
|
-
"@saltcorn/markup": "0.7.4-beta.
|
|
12
|
+
"@saltcorn/data": "0.7.4-beta.1",
|
|
13
|
+
"@saltcorn/markup": "0.7.4-beta.1",
|
|
14
14
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8"
|
|
15
15
|
},
|
|
16
16
|
"author": "Tom Nielsen",
|