@saltcorn/server 0.8.5-beta.3 → 0.8.5-beta.4

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/auth/testhelp.js CHANGED
@@ -128,6 +128,20 @@ const getStaffLoginCookie = async () => {
128
128
  return resToLoginCookie(res);
129
129
  };
130
130
 
131
+ /**
132
+ *
133
+ * @returns {Promise<void>}
134
+ */
135
+ const getUserLoginCookie = async () => {
136
+ const app = await getApp({ disableCsrf: true });
137
+ const res = await request(app)
138
+ .post("/auth/login/")
139
+ .send("email=user@foo.com")
140
+ .send("password=GFeggwrwq45fjn");
141
+ if (res.statusCode !== 302) console.log(res.text);
142
+ return resToLoginCookie(res);
143
+ };
144
+
131
145
  /**
132
146
  *
133
147
  * @returns {Promise<void>}
@@ -235,6 +249,7 @@ const notAuthorized = (res) => {
235
249
  module.exports = {
236
250
  getStaffLoginCookie,
237
251
  getAdminLoginCookie,
252
+ getUserLoginCookie,
238
253
  itShouldRedirectUnauthToLogin,
239
254
  toRedirect,
240
255
  toInclude,
package/locales/en.json CHANGED
@@ -1119,5 +1119,12 @@
1119
1119
  "Choose the field to be indexed. This make searching the table faster.": "Choose the field to be indexed. This make searching the table faster.",
1120
1120
  "Disk usage": "Disk usage",
1121
1121
  "CPU usage": "CPU usage",
1122
- "Mem usage": "Mem usage"
1122
+ "Mem usage": "Mem usage",
1123
+ "The field that will be shown to the user when choosing a value": "The field that will be shown to the user when choosing a value",
1124
+ "String value must match regular expression": "String value must match regular expression",
1125
+ "Modules up-to-date. Please restart server": "Modules up-to-date. Please restart server",
1126
+ "Install git plugins": "Install git plugins",
1127
+ "Set available npm modules": "Set available npm modules",
1128
+ "Only store modules can be installed on tenant instances": "Only store modules can be installed on tenant instances",
1129
+ "Unsafe modules": "Unsafe modules"
1123
1130
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.8.5-beta.3",
3
+ "version": "0.8.5-beta.4",
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.5-beta.3",
10
- "@saltcorn/builder": "0.8.5-beta.3",
11
- "@saltcorn/data": "0.8.5-beta.3",
12
- "@saltcorn/admin-models": "0.8.5-beta.3",
13
- "@saltcorn/filemanager": "0.8.5-beta.3",
14
- "@saltcorn/markup": "0.8.5-beta.3",
15
- "@saltcorn/sbadmin2": "0.8.5-beta.3",
9
+ "@saltcorn/base-plugin": "0.8.5-beta.4",
10
+ "@saltcorn/builder": "0.8.5-beta.4",
11
+ "@saltcorn/data": "0.8.5-beta.4",
12
+ "@saltcorn/admin-models": "0.8.5-beta.4",
13
+ "@saltcorn/filemanager": "0.8.5-beta.4",
14
+ "@saltcorn/markup": "0.8.5-beta.4",
15
+ "@saltcorn/sbadmin2": "0.8.5-beta.4",
16
16
  "@socket.io/cluster-adapter": "^0.2.1",
17
17
  "@socket.io/sticky": "^1.0.1",
18
18
  "adm-zip": "0.5.10",
@@ -375,3 +375,26 @@ table.table-inner-grid td {
375
375
  margin-bottom: 0 !important;
376
376
  text-decoration: underline;
377
377
  }
378
+
379
+ @supports (zoom: 2) {
380
+ input[type="radio"].large,
381
+ input[type="checkbox"].large {
382
+ zoom: 2;
383
+ }
384
+ input[type="radio"].medium,
385
+ input[type="checkbox"].medium {
386
+ zoom: 1.5;
387
+ }
388
+ }
389
+ @supports not (zoom: 2) {
390
+ input[type="radio"].large,
391
+ input[type="checkbox"].large {
392
+ transform: scale(2);
393
+ margin: 15px;
394
+ }
395
+ input[type="radio"].medium,
396
+ input[type="checkbox"].medium {
397
+ transform: scale(1.5);
398
+ margin: 8px;
399
+ }
400
+ }