@saltcorn/server 0.6.2-beta.3 → 0.6.3-beta.0
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 +3 -1
- package/package.json +9 -7
- package/public/saltcorn.js +4 -4
- package/restart_watcher.js +0 -4
- package/routes/plugins.js +1 -1
- package/serve.js +4 -0
- package/wrapper.js +3 -0
package/locales/en.json
CHANGED
|
@@ -843,5 +843,7 @@
|
|
|
843
843
|
"Optional. String type with options, each of which will become a menu section": "Optional. String type with options, each of which will become a menu section",
|
|
844
844
|
"Role to generate API keys": "Role to generate API keys",
|
|
845
845
|
"User should have this role or higher to generate API keys in their user settings": "User should have this role or higher to generate API keys in their user settings",
|
|
846
|
-
"API token removed": "API token removed"
|
|
846
|
+
"API token removed": "API token removed",
|
|
847
|
+
"Row inclusion formula": "Row inclusion formula",
|
|
848
|
+
"Only include rows where this formula is true": "Only include rows where this formula is true"
|
|
847
849
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3-beta.0",
|
|
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.6.
|
|
10
|
-
"@saltcorn/builder": "0.6.
|
|
11
|
-
"@saltcorn/data": "0.6.
|
|
9
|
+
"@saltcorn/base-plugin": "0.6.3-beta.0",
|
|
10
|
+
"@saltcorn/builder": "0.6.3-beta.0",
|
|
11
|
+
"@saltcorn/data": "0.6.3-beta.0",
|
|
12
12
|
"greenlock-express": "^4.0.3",
|
|
13
|
-
"@saltcorn/markup": "0.6.
|
|
14
|
-
"@saltcorn/sbadmin2": "0.6.
|
|
13
|
+
"@saltcorn/markup": "0.6.3-beta.0",
|
|
14
|
+
"@saltcorn/sbadmin2": "0.6.3-beta.0",
|
|
15
15
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
16
16
|
"@socket.io/sticky": "^1.0.1",
|
|
17
17
|
"connect-flash": "^0.1.1",
|
|
@@ -74,7 +74,9 @@
|
|
|
74
74
|
"moduleNameMapper": {
|
|
75
75
|
"@saltcorn/sqlite/(.*)": "@saltcorn/sqlite/dist/$1",
|
|
76
76
|
"@saltcorn/db-common/(.*)": "@saltcorn/db-common/dist/$1",
|
|
77
|
-
"@saltcorn/data/(.*)": "@saltcorn/data/dist/$1"
|
|
77
|
+
"@saltcorn/data/(.*)": "@saltcorn/data/dist/$1",
|
|
78
|
+
"@saltcorn/markup$": "@saltcorn/markup/dist",
|
|
79
|
+
"@saltcorn/markup/(.*)": "@saltcorn/markup/dist/$1"
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
"publishConfig": {
|
package/public/saltcorn.js
CHANGED
|
@@ -585,11 +585,11 @@ function test_formula(tablename, stored) {
|
|
|
585
585
|
function align_dropdown(id) {
|
|
586
586
|
setTimeout(() => {
|
|
587
587
|
if ($("#dm" + id).hasClass("show")) {
|
|
588
|
-
var inputWidth = $("
|
|
589
|
-
$("
|
|
590
|
-
var d0pos = $("
|
|
588
|
+
var inputWidth = $("#search-input-group-" + id).outerWidth();
|
|
589
|
+
$("#dm" + id).css("width", inputWidth);
|
|
590
|
+
var d0pos = $("#search-input-group-" + id).offset();
|
|
591
591
|
$("#dm" + id).offset({ left: d0pos.left });
|
|
592
|
-
$(document).on("click", "
|
|
592
|
+
$(document).on("click", "#dm" + id, function (e) {
|
|
593
593
|
e.stopPropagation();
|
|
594
594
|
});
|
|
595
595
|
}
|
package/restart_watcher.js
CHANGED
|
@@ -120,10 +120,6 @@ const listenForChanges = (projectDirs, pluginDirs) => {
|
|
|
120
120
|
(event, file) => {
|
|
121
121
|
console.log("'%s' changed \n re-starting now", file);
|
|
122
122
|
closeWatchers();
|
|
123
|
-
spawnSync("npm", ["run", "tsc"], {
|
|
124
|
-
stdio: "inherit",
|
|
125
|
-
cwd: projectRoot,
|
|
126
|
-
});
|
|
127
123
|
process.exit();
|
|
128
124
|
}
|
|
129
125
|
)
|
package/routes/plugins.js
CHANGED
package/serve.js
CHANGED
|
@@ -38,6 +38,7 @@ const {
|
|
|
38
38
|
getRelevantPackages,
|
|
39
39
|
getPluginDirectories,
|
|
40
40
|
} = require("./restart_watcher");
|
|
41
|
+
const { spawnSync } = require("child_process");
|
|
41
42
|
|
|
42
43
|
// helpful https://gist.github.com/jpoehls/2232358
|
|
43
44
|
/**
|
|
@@ -162,6 +163,9 @@ module.exports =
|
|
|
162
163
|
...appargs
|
|
163
164
|
} = {}) => {
|
|
164
165
|
if (dev && cluster.isMaster) {
|
|
166
|
+
spawnSync("npm", ["run", "tsc"], {
|
|
167
|
+
stdio: "inherit",
|
|
168
|
+
});
|
|
165
169
|
listenForChanges(getRelevantPackages(), await getPluginDirectories());
|
|
166
170
|
}
|
|
167
171
|
const useNCpus = process.env.SALTCORN_NWORKERS
|
package/wrapper.js
CHANGED
|
@@ -239,6 +239,7 @@ module.exports = (version_tag) =>
|
|
|
239
239
|
brand: get_brand(state),
|
|
240
240
|
menu: get_menu(req),
|
|
241
241
|
currentUrl,
|
|
242
|
+
originalUrl: req.originalUrl,
|
|
242
243
|
alerts: getFlashes(req),
|
|
243
244
|
body,
|
|
244
245
|
headers: get_headers(req, version_tag),
|
|
@@ -283,6 +284,8 @@ module.exports = (version_tag) =>
|
|
|
283
284
|
brand: get_brand(state),
|
|
284
285
|
menu: get_menu(req),
|
|
285
286
|
currentUrl,
|
|
287
|
+
originalUrl: req.originalUrl,
|
|
288
|
+
|
|
286
289
|
alerts,
|
|
287
290
|
body: html.length === 1 ? html[0] : html.join(""),
|
|
288
291
|
headers: get_headers(req, version_tag, opts.description, pageHeaders),
|