@saltcorn/server 0.8.6-beta.1 → 0.8.6-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/package.json +8 -8
- package/public/saltcorn-common.js +9 -6
- package/public/saltcorn.js +2 -2
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "0.8.6-beta.
|
|
3
|
+
"version": "0.8.6-beta.2",
|
|
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.6-beta.
|
|
10
|
-
"@saltcorn/builder": "0.8.6-beta.
|
|
11
|
-
"@saltcorn/data": "0.8.6-beta.
|
|
12
|
-
"@saltcorn/admin-models": "0.8.6-beta.
|
|
13
|
-
"@saltcorn/filemanager": "0.8.6-beta.
|
|
14
|
-
"@saltcorn/markup": "0.8.6-beta.
|
|
15
|
-
"@saltcorn/sbadmin2": "0.8.6-beta.
|
|
9
|
+
"@saltcorn/base-plugin": "0.8.6-beta.2",
|
|
10
|
+
"@saltcorn/builder": "0.8.6-beta.2",
|
|
11
|
+
"@saltcorn/data": "0.8.6-beta.2",
|
|
12
|
+
"@saltcorn/admin-models": "0.8.6-beta.2",
|
|
13
|
+
"@saltcorn/filemanager": "0.8.6-beta.2",
|
|
14
|
+
"@saltcorn/markup": "0.8.6-beta.2",
|
|
15
|
+
"@saltcorn/sbadmin2": "0.8.6-beta.2",
|
|
16
16
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
17
17
|
"@socket.io/sticky": "^1.0.1",
|
|
18
18
|
"adm-zip": "0.5.10",
|
|
@@ -1006,12 +1006,15 @@ function room_older(viewname, room_id, btn) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
function init_room(viewname, room_id) {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1009
|
+
let socket = null;
|
|
1010
|
+
if (parent?.saltcorn?.data?.state) {
|
|
1011
|
+
const { server_path, jwt } =
|
|
1012
|
+
parent.saltcorn.data.state.getState().mobileConfig;
|
|
1013
|
+
socket = io(server_path, {
|
|
1014
|
+
query: `jwt=${jwt}`,
|
|
1015
|
+
transports: ["websocket"],
|
|
1016
|
+
});
|
|
1017
|
+
} else socket = io({ transports: ["websocket"] });
|
|
1015
1018
|
|
|
1016
1019
|
socket.emit("join_room", [viewname, room_id]);
|
|
1017
1020
|
socket.on("message", (msg) => {
|
package/public/saltcorn.js
CHANGED
|
@@ -599,11 +599,11 @@ function poll_mobile_build_finished(outDirName, pollCount, orginalBtnHtml) {
|
|
|
599
599
|
data: { build_dir: outDirName },
|
|
600
600
|
success: function (res) {
|
|
601
601
|
if (!res.finished) {
|
|
602
|
-
if (pollCount >=
|
|
602
|
+
if (pollCount >= 100) {
|
|
603
603
|
removeSpinner("buildMobileAppBtnId", orginalBtnHtml);
|
|
604
604
|
notifyAlert({
|
|
605
605
|
type: "danger",
|
|
606
|
-
text: "
|
|
606
|
+
text: "Unable to get the build results",
|
|
607
607
|
});
|
|
608
608
|
} else {
|
|
609
609
|
setTimeout(() => {
|