@saltcorn/server 0.8.7-beta.0 → 0.8.7-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/locales/en.json CHANGED
@@ -1173,5 +1173,6 @@
1173
1173
  "App icon": "App icon",
1174
1174
  "Splash Page": "Splash Page",
1175
1175
  "App version": "App version",
1176
- "Forgot password?": "Forgot password?"
1176
+ "Forgot password?": "Forgot password?",
1177
+ "Details": "Details"
1177
1178
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.8.7-beta.0",
3
+ "version": "0.8.7-beta.1",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@saltcorn/base-plugin": "0.8.7-beta.0",
10
- "@saltcorn/builder": "0.8.7-beta.0",
11
- "@saltcorn/data": "0.8.7-beta.0",
12
- "@saltcorn/admin-models": "0.8.7-beta.0",
13
- "@saltcorn/filemanager": "0.8.7-beta.0",
14
- "@saltcorn/markup": "0.8.7-beta.0",
15
- "@saltcorn/sbadmin2": "0.8.7-beta.0",
9
+ "@saltcorn/base-plugin": "0.8.7-beta.1",
10
+ "@saltcorn/builder": "0.8.7-beta.1",
11
+ "@saltcorn/data": "0.8.7-beta.1",
12
+ "@saltcorn/admin-models": "0.8.7-beta.1",
13
+ "@saltcorn/filemanager": "0.8.7-beta.1",
14
+ "@saltcorn/markup": "0.8.7-beta.1",
15
+ "@saltcorn/sbadmin2": "0.8.7-beta.1",
16
16
  "@socket.io/cluster-adapter": "^0.2.1",
17
17
  "@socket.io/sticky": "^1.0.1",
18
18
  "adm-zip": "0.5.10",
package/routes/fields.js CHANGED
@@ -1028,7 +1028,7 @@ router.post(
1028
1028
  return;
1029
1029
  }
1030
1030
 
1031
- const field = await table.getField(fieldName);
1031
+ const field = table.getField(fieldName);
1032
1032
 
1033
1033
  const fieldViewConfigForms = await calcfldViewConfig([field], false, 0);
1034
1034
  const formFields = fieldViewConfigForms[field.name][fv_name];
package/routes/tables.js CHANGED
@@ -41,6 +41,7 @@ const {
41
41
  script,
42
42
  domReady,
43
43
  code,
44
+ pre,
44
45
  } = require("@saltcorn/markup/tags");
45
46
  const stringify = require("csv-stringify");
46
47
  const TableConstraint = require("@saltcorn/data/models/table_constraints");
@@ -1549,6 +1550,15 @@ const previewCSV = async ({ newPath, table, req, res, full }) => {
1549
1550
  )
1550
1551
  ),
1551
1552
  },
1553
+ ...(parse_res.details
1554
+ ? [
1555
+ {
1556
+ type: "card",
1557
+ title: req.__(`Details`),
1558
+ contents: pre(parse_res.details),
1559
+ },
1560
+ ]
1561
+ : []),
1552
1562
  ],
1553
1563
  });
1554
1564
  }