@saltcorn/sbadmin2 1.5.0-beta.5 → 1.5.0-beta.6
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 +6 -4
- package/package.json +3 -3
- package/public/sb-admin-2.min.css +1 -1
package/index.js
CHANGED
|
@@ -397,9 +397,9 @@ const linkPrefix = () => (isNode() ? "/plugins" : "sc_plugins");
|
|
|
397
397
|
* @param {string} rest
|
|
398
398
|
* @returns {string}
|
|
399
399
|
*/
|
|
400
|
-
const wrapIt = (headers, title, bodyAttr, rest) =>
|
|
400
|
+
const wrapIt = (headers, title, bodyAttr, rest, req) =>
|
|
401
401
|
`<!doctype html>
|
|
402
|
-
<html lang="
|
|
402
|
+
<html lang="${req?.getLocale()}" ${req?.isRTL ? 'dir="rtl"' : ""}>
|
|
403
403
|
<head>
|
|
404
404
|
<!-- Required meta tags -->
|
|
405
405
|
<meta charset="utf-8">
|
|
@@ -484,7 +484,8 @@ const authWrap = ({
|
|
|
484
484
|
>
|
|
485
485
|
${alerts.map((a) => toast(a.type, a.msg)).join("")}
|
|
486
486
|
</div>
|
|
487
|
-
</div
|
|
487
|
+
</div>`,
|
|
488
|
+
req
|
|
488
489
|
);
|
|
489
490
|
|
|
490
491
|
/**
|
|
@@ -539,7 +540,8 @@ const wrap = ({
|
|
|
539
540
|
>
|
|
540
541
|
${alerts.map((a) => toast(a.type, a.msg)).join("")}
|
|
541
542
|
</div>
|
|
542
|
-
</div
|
|
543
|
+
</div>`,
|
|
544
|
+
req
|
|
543
545
|
);
|
|
544
546
|
|
|
545
547
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/sbadmin2",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.6",
|
|
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.5.0-beta.
|
|
13
|
-
"@saltcorn/markup": "1.5.0-beta.
|
|
12
|
+
"@saltcorn/data": "1.5.0-beta.6",
|
|
13
|
+
"@saltcorn/markup": "1.5.0-beta.6"
|
|
14
14
|
},
|
|
15
15
|
"author": "Tom Nielsen",
|
|
16
16
|
"license": "MIT",
|