@saltcorn/server 1.1.2-beta.8 → 1.1.2-beta.9

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/CHANGELOG.md CHANGED
@@ -2,7 +2,18 @@
2
2
 
3
3
  ## 1.1.2 - In beta
4
4
 
5
- * Upgrade a large number of dependencies (express, typescript, oclif, pg, webpack, typescript). Node.js 18+ is require for this release.
5
+ * Builder:
6
+ - Container background image by file field in Show views
7
+ - Container opacity setting
8
+ - Set custom class on links and actions
9
+ - Fix error toast when saving on Firefox
10
+ - Set action to be submit action - action run on enter keypress.
11
+
12
+ * Restore large backups: stream JSON files to database, use system unzip
13
+
14
+ * Handle multiple fields with same name in Edit.
15
+
16
+ * Upgrade a large number of dependencies (express, typescript, oclif, pg, webpack, typescript, axios, mjml, svelte). Node.js 18+ is require for this release.
6
17
 
7
18
  ## 1.1.1 - Released 2 February 2025
8
19
 
package/locales/en.json CHANGED
@@ -1552,5 +1552,6 @@
1552
1552
  "Show results from each table in this type of element": "Show results from each table in this type of element",
1553
1553
  "Search syntax help": "Search syntax help",
1554
1554
  "Search syntax": "Search syntax",
1555
- "Maximum role": "Maximum role"
1555
+ "Maximum role": "Maximum role",
1556
+ "Module dependencies": "Module dependencies"
1556
1557
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "1.1.2-beta.8",
3
+ "version": "1.1.2-beta.9",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
@@ -8,14 +8,14 @@
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.735.0",
10
10
  "@dr.pogodin/csurf": "^1.14.1",
11
- "@saltcorn/base-plugin": "1.1.2-beta.8",
12
- "@saltcorn/builder": "1.1.2-beta.8",
13
- "@saltcorn/data": "1.1.2-beta.8",
14
- "@saltcorn/admin-models": "1.1.2-beta.8",
15
- "@saltcorn/filemanager": "1.1.2-beta.8",
16
- "@saltcorn/markup": "1.1.2-beta.8",
17
- "@saltcorn/plugins-loader": "1.1.2-beta.8",
18
- "@saltcorn/sbadmin2": "1.1.2-beta.8",
11
+ "@saltcorn/base-plugin": "1.1.2-beta.9",
12
+ "@saltcorn/builder": "1.1.2-beta.9",
13
+ "@saltcorn/data": "1.1.2-beta.9",
14
+ "@saltcorn/admin-models": "1.1.2-beta.9",
15
+ "@saltcorn/filemanager": "1.1.2-beta.9",
16
+ "@saltcorn/markup": "1.1.2-beta.9",
17
+ "@saltcorn/plugins-loader": "1.1.2-beta.9",
18
+ "@saltcorn/sbadmin2": "1.1.2-beta.9",
19
19
  "@socket.io/cluster-adapter": "^0.2.1",
20
20
  "@socket.io/sticky": "^1.0.1",
21
21
  "adm-zip": "0.5.16",
@@ -77,11 +77,12 @@
77
77
  },
78
78
  "scripts": {
79
79
  "dev": "nodemon index.js",
80
- "test": "jest --runInBand",
80
+ "test": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js ./tests --runInBand",
81
81
  "tsc": "echo \"Error: no TypeScript support yet\"",
82
82
  "clean": "echo \"Error: no TypeScript support yet\""
83
83
  },
84
84
  "jest": {
85
+ "transform": {},
85
86
  "testEnvironment": "node",
86
87
  "testPathIgnorePatterns": [
87
88
  "/node_modules/",
@@ -1579,7 +1579,7 @@ function emptyAlerts() {
1579
1579
  $("#toasts-area").html("");
1580
1580
  }
1581
1581
 
1582
- function press_store_button(clicked, keepOld) {
1582
+ function press_store_button(clicked, keepOld, disable) {
1583
1583
  let btn = clicked;
1584
1584
  if ($(clicked).is("form")) btn = $(clicked).find("button[type=submit]");
1585
1585
  if (keepOld) {
@@ -1588,13 +1588,16 @@ function press_store_button(clicked, keepOld) {
1588
1588
  }
1589
1589
  const width = $(btn).width();
1590
1590
  $(btn).html('<i class="fas fa-spinner fa-spin"></i>').width(width);
1591
+ setTimeout(() => {
1592
+ $(btn).prop("disabled", true);
1593
+ }, 50);
1591
1594
  }
1592
1595
 
1593
1596
  function restore_old_button(btnId) {
1594
- const btn = $(`#${btnId}`);
1597
+ const btn = btnId instanceof jQuery ? btnId : $(`#${btnId}`);
1595
1598
  const oldText = $(btn).data("old-text");
1596
1599
  btn.html(oldText);
1597
- btn.css({ width: "" });
1600
+ btn.css({ width: "" }).prop("disabled", false);
1598
1601
  btn.removeData("old-text");
1599
1602
  }
1600
1603
 
@@ -262,7 +262,10 @@ const actionsTab = async (req, triggers) => {
262
262
  ? p(req.__("No triggers"))
263
263
  : mkTable(
264
264
  [
265
- { label: req.__("Name"), key: "name" },
265
+ {
266
+ label: req.__("Name"),
267
+ key: (tr) => a({ href: `actions/configure/${tr.id}` }, tr.name),
268
+ },
266
269
  { label: req.__("Action"), key: "action" },
267
270
  {
268
271
  label: req.__("Table or Channel"),