@saltcorn/sbadmin2 0.7.2-beta.0 → 0.7.2-beta.2

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 CHANGED
@@ -389,7 +389,7 @@ const authWrap = ({
389
389
  </div>
390
390
  ${renderForm(formModify(form), csrfToken)}
391
391
  ${renderAuthLinks(authLinks)}
392
- ${afterForm}
392
+ ${afterForm ? afterForm : ""}
393
393
  </div>
394
394
  </div>
395
395
  </div>
@@ -428,7 +428,7 @@ const wrap = ({
428
428
  title,
429
429
  `id="page-top" class="${bodyClass || ""}"`,
430
430
  `<div id="wrapper">
431
- ${sidebar(brand, menu, currentUrl)}
431
+ ${db.is_node ? sidebar(brand, menu, currentUrl) : ""}
432
432
 
433
433
  <div id="content-wrapper" class="d-flex flex-column">
434
434
  <div id="content">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/sbadmin2",
3
- "version": "0.7.2-beta.0",
3
+ "version": "0.7.2-beta.2",
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.2-beta.0",
13
- "@saltcorn/markup": "0.7.2-beta.0",
12
+ "@saltcorn/data": "0.7.2-beta.2",
13
+ "@saltcorn/markup": "0.7.2-beta.2",
14
14
  "startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.5"
15
15
  },
16
16
  "author": "Tom Nielsen",
@@ -0,0 +1,31 @@
1
+ const { join } = require("path");
2
+
3
+ module.exports = {
4
+ optimization: {
5
+ minimize: false, // debug
6
+ splitChunks: {
7
+ chunks: "all",
8
+ name: "common_chunks",
9
+ },
10
+ },
11
+ entry: {
12
+ sbadmin2: {
13
+ import: join(__dirname, "./index.js"),
14
+ dependOn: ["data", "markup"],
15
+ },
16
+ },
17
+ output: {
18
+ path: __dirname,
19
+ filename: "bundle/[name].bundle.js",
20
+ libraryTarget: "umd",
21
+ library: ["saltcorn", "[name]"],
22
+ },
23
+ module: {
24
+ rules: [
25
+ {
26
+ test: /\.js$/,
27
+ exclude: /node_modules/,
28
+ },
29
+ ],
30
+ },
31
+ };