@saltcorn/server 0.7.1-beta.3 → 0.7.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
@@ -885,5 +885,8 @@
885
885
  "On delete cascade": "On delete cascade",
886
886
  "If the parent row is deleted, automatically delete the child rows.": "If the parent row is deleted, automatically delete the child rows.",
887
887
  "Extra state Formula": "Extra state Formula",
888
- "Cannot install unsafe plugins on subdomain tenants": "Cannot install unsafe plugins on subdomain tenants"
888
+ "Cannot install unsafe plugins on subdomain tenants": "Cannot install unsafe plugins on subdomain tenants",
889
+ "Default order descending?": "Default order descending?",
890
+ "This is the view to which the user will be sent when the form is submitted. The view you specify here can be ignored depending on the context of the form, for instance if it appears in a pop-up the redirect will not take place.": "This is the view to which the user will be sent when the form is submitted. The view you specify here can be ignored depending on the context of the form, for instance if it appears in a pop-up the redirect will not take place.",
891
+ "Destination view": "Destination view"
889
892
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.7.1-beta.3",
3
+ "version": "0.7.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.7.1-beta.3",
10
- "@saltcorn/builder": "0.7.1-beta.3",
11
- "@saltcorn/data": "0.7.1-beta.3",
12
- "@saltcorn/admin-models": "0.7.1-beta.3",
13
- "@saltcorn/markup": "0.7.1-beta.3",
14
- "@saltcorn/sbadmin2": "0.7.1-beta.3",
9
+ "@saltcorn/base-plugin": "0.7.1",
10
+ "@saltcorn/builder": "0.7.1",
11
+ "@saltcorn/data": "0.7.1",
12
+ "@saltcorn/admin-models": "0.7.1",
13
+ "@saltcorn/markup": "0.7.1",
14
+ "@saltcorn/sbadmin2": "0.7.1",
15
15
  "@socket.io/cluster-adapter": "^0.1.0",
16
16
  "@socket.io/sticky": "^1.0.1",
17
17
  "aws-sdk": "^2.1037.0",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "repository": "github:saltcorn/saltcorn",
59
59
  "devDependencies": {
60
- "jest": "^25.1.0",
60
+ "jest": "26.6.3",
61
61
  "supertest": "^4.0.2"
62
62
  },
63
63
  "scripts": {
@@ -567,6 +567,10 @@ function ajax_modal(url, opts = {}) {
567
567
  </div>
568
568
  </div>
569
569
  </div>`);
570
+ } else if ($("#scmodal").hasClass("show")) {
571
+ var myModalEl = document.getElementById("scmodal");
572
+ var modal = bootstrap.Modal.getInstance(myModalEl);
573
+ modal.dispose();
570
574
  }
571
575
  if (opts.submitReload === false) $("#scmodal").addClass("no-submit-reload");
572
576
  else $("#scmodal").removeClass("no-submit-reload");
@@ -836,7 +840,7 @@ const columnSummary = (col) => {
836
840
  case "JoinField":
837
841
  return `Join ${col.join_field}`;
838
842
  case "ViewLink":
839
- return `View ${col.view_label || col.view.split(":")[1] || ""}`;
843
+ return `View link ${col.view_label || col.view.split(":")[1] || ""}`;
840
844
  case "Action":
841
845
  return `Action ${col.action_label || col.action_name}`;
842
846
  case "Aggregation":
package/routes/plugins.js CHANGED
@@ -652,16 +652,16 @@ router.get(
652
652
  error_catcher(async (req, res) => {
653
653
  const { plugin } = req.params;
654
654
  const filepath = req.params[0];
655
+ const hasVersion = plugin.includes("@");
655
656
  const location =
656
- getState().plugin_locations[
657
- plugin.includes("@") ? plugin.split("@")[0] : plugin
658
- ];
657
+ getState().plugin_locations[hasVersion ? plugin.split("@")[0] : plugin];
659
658
  if (location) {
660
659
  const safeFile = path
661
660
  .normalize(filepath)
662
661
  .replace(/^(\.\.(\/|\\|$))+/, "");
663
662
  const fullpath = path.join(location, "public", safeFile);
664
- if (fs.existsSync(fullpath)) res.sendFile(fullpath, { maxAge: "1d" });
663
+ if (fs.existsSync(fullpath))
664
+ res.sendFile(fullpath, { maxAge: hasVersion ? "100d" : "1d" });
665
665
  else res.status(404).send(req.__("Not found"));
666
666
  } else {
667
667
  res.status(404).send(req.__("Not found"));
@@ -82,7 +82,7 @@ describe("edit view", () => {
82
82
  .post("/view/authoredit")
83
83
  .send("author=Chekov")
84
84
 
85
- .expect(toRedirect("/"));
85
+ .expect(toRedirect("/view/authorlist"));
86
86
  });
87
87
  });
88
88