@saltcorn/data 1.1.2-beta.14 → 1.1.2-beta.16

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.
Files changed (64) hide show
  1. package/dist/base-plugin/actions.d.ts.map +1 -1
  2. package/dist/base-plugin/actions.js +7 -4
  3. package/dist/base-plugin/actions.js.map +1 -1
  4. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  5. package/dist/base-plugin/viewtemplates/edit.js +10 -3
  6. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  7. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  8. package/dist/base-plugin/viewtemplates/list.js +4 -1
  9. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  10. package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
  11. package/dist/base-plugin/viewtemplates/listshowlist.js +1 -0
  12. package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
  13. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  14. package/dist/base-plugin/viewtemplates/show.js +9 -0
  15. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  16. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +3 -2
  17. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  18. package/dist/base-plugin/viewtemplates/viewable_fields.js +14 -13
  19. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  20. package/dist/base-plugin/viewtemplates/workflow-room.js +1 -1
  21. package/dist/base-plugin/viewtemplates/workflow-room.js.map +1 -1
  22. package/dist/models/config.d.ts.map +1 -1
  23. package/dist/models/config.js +86 -92
  24. package/dist/models/config.js.map +1 -1
  25. package/dist/models/field.d.ts +1 -0
  26. package/dist/models/field.d.ts.map +1 -1
  27. package/dist/models/field.js +1 -0
  28. package/dist/models/field.js.map +1 -1
  29. package/dist/models/form.d.ts +2 -0
  30. package/dist/models/form.d.ts.map +1 -1
  31. package/dist/models/form.js +6 -2
  32. package/dist/models/form.js.map +1 -1
  33. package/dist/models/index.d.ts +4 -1
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +7 -1
  36. package/dist/models/index.js.map +1 -1
  37. package/dist/models/table.d.ts.map +1 -1
  38. package/dist/models/table.js +3 -2
  39. package/dist/models/table.js.map +1 -1
  40. package/dist/models/view.d.ts +4 -0
  41. package/dist/models/view.d.ts.map +1 -1
  42. package/dist/models/view.js +17 -2
  43. package/dist/models/view.js.map +1 -1
  44. package/dist/models/workflow_run.d.ts.map +1 -1
  45. package/dist/models/workflow_run.js +6 -2
  46. package/dist/models/workflow_run.js.map +1 -1
  47. package/dist/models/workflow_step.d.ts.map +1 -1
  48. package/dist/models/workflow_step.js +10 -0
  49. package/dist/models/workflow_step.js.map +1 -1
  50. package/dist/plugin-helper.d.ts +1 -4
  51. package/dist/plugin-helper.d.ts.map +1 -1
  52. package/dist/plugin-helper.js +23 -8
  53. package/dist/plugin-helper.js.map +1 -1
  54. package/dist/tests/email.test.js +3 -2
  55. package/dist/tests/email.test.js.map +1 -1
  56. package/dist/utils.d.ts +1 -0
  57. package/dist/utils.d.ts.map +1 -1
  58. package/dist/utils.js +9 -0
  59. package/dist/utils.js.map +1 -1
  60. package/dist/web-mobile-commons.d.ts +5 -0
  61. package/dist/web-mobile-commons.d.ts.map +1 -1
  62. package/dist/web-mobile-commons.js +43 -1
  63. package/dist/web-mobile-commons.js.map +1 -1
  64. package/package.json +8 -8
@@ -45,14 +45,12 @@ const defaultTimezone = moment_timezone_1.tz.guess();
45
45
  * @category saltcorn-data
46
46
  */
47
47
  const configTypes = {
48
- /** @type {object} */
49
48
  site_name: {
50
49
  type: "String",
51
50
  label: "Site name",
52
51
  default: "Saltcorn",
53
52
  blurb: "A short string which is the name of your site",
54
53
  },
55
- /** @type {object} */
56
54
  timezone: {
57
55
  type: "String",
58
56
  label: "Home Timezone",
@@ -62,7 +60,6 @@ const configTypes = {
62
60
  selectizable: true,
63
61
  },
64
62
  },
65
- /** @type {object} */
66
63
  site_logo_id: {
67
64
  type: "File",
68
65
  label: "Site logo",
@@ -72,7 +69,6 @@ const configTypes = {
72
69
  },
73
70
  blurb: "Select a publicly accessible image file for the menu logo",
74
71
  },
75
- /** @type {object} */
76
72
  favicon_id: {
77
73
  type: "File",
78
74
  label: "Favicon",
@@ -82,7 +78,6 @@ const configTypes = {
82
78
  },
83
79
  blurb: "Select a publicly accessible image file for the browser tab icon",
84
80
  },
85
- /** @type {object} */
86
81
  base_url: {
87
82
  type: "String",
88
83
  label: "Base URL",
@@ -110,75 +105,61 @@ const configTypes = {
110
105
  default: {},
111
106
  blurb: "This is an object to remember the settings of the mobile builder menu.",
112
107
  },
113
- /** @type {object} */
114
108
  menu_items: { type: "hidden", label: "Menu items" },
115
- /** @type {object} */
116
109
  unrolled_menu_items: { type: "hidden", label: "Menu items" },
117
- /** @type {object} */
118
110
  globalSearch: { type: "hidden", label: "Global search" },
119
- /** @type {object} */
120
111
  available_packs: {
121
112
  type: "hidden",
122
113
  label: "Available packs",
123
114
  excludeFromSnapshot: true,
115
+ excludeFromMobile: true,
124
116
  },
125
- /** @type {object} */
126
117
  available_packs_fetched_at: {
127
118
  type: "Date",
128
119
  label: "Available packs fetched",
129
120
  excludeFromSnapshot: true,
121
+ excludeFromMobile: true,
130
122
  },
131
- /** @type {object} */
132
123
  available_plugins: {
133
124
  type: "hidden",
134
125
  label: "Available plugins",
135
126
  excludeFromSnapshot: true,
127
+ excludeFromMobile: true,
136
128
  },
137
- /** @type {object} */
138
129
  available_plugins_fetched_at: {
139
130
  type: "Date",
140
131
  excludeFromSnapshot: true,
141
132
  label: "Available plugins fetched",
133
+ excludeFromMobile: true,
142
134
  },
143
- /** @type {object} */
144
135
  home_page_by_role: { type: "hidden", label: "Home Page by Role" },
145
- /** @type {object} */
146
136
  exttables_min_role_read: {
147
137
  type: "hidden",
148
138
  label: "Home Page by Role",
149
139
  default: {},
150
140
  },
151
- /** @type {object} */
152
141
  public_home: { type: "String", label: "Public home page", default: "" },
153
- /** @type {object} */
154
142
  user_home: { type: "String", label: "User home page", default: "" },
155
- /** @type {object} */
156
143
  staff_home: { type: "String", label: "Staff home page", default: "" },
157
- /** @type {object} */
158
144
  admin_home: { type: "String", label: "Admin home page", default: "" },
159
- /** @type {object} */
160
145
  layout_by_role: { type: "hidden", label: "Layout by role", default: {} },
161
- /** @type {object} */
162
146
  twofa_policy_by_role: {
163
147
  type: "hidden",
164
148
  label: "2FA policy by role",
165
149
  default: {},
166
150
  },
167
- /** @type {object} */
168
151
  allow_signup: {
169
152
  type: "Bool",
170
153
  label: "Allow signups",
171
154
  default: true,
172
155
  blurb: "Allow users to sign up for a new user account",
173
156
  },
174
- /** @type {object} */
175
157
  allow_forgot: {
176
158
  type: "Bool",
177
159
  label: "Allow password reset",
178
160
  default: false,
179
161
  blurb: "Allow users to request a password reset email. Email must be configured.",
180
162
  },
181
- /** @type {object} */
182
163
  login_menu: {
183
164
  type: "Bool",
184
165
  label: "Login in menu",
@@ -191,7 +172,6 @@ const configTypes = {
191
172
  default: true,
192
173
  blurb: "Show a link on the login menu to continue as public user. Only on mobile logins.",
193
174
  },
194
- /** @type {object} */
195
175
  cookie_sessions: {
196
176
  type: "Bool",
197
177
  label: "Cookie sessions",
@@ -199,41 +179,38 @@ const configTypes = {
199
179
  root_only: true,
200
180
  restart_required: true,
201
181
  blurb: "Store sessions entirely in client cookies for higher performance",
182
+ excludeFromMobile: true,
202
183
  },
203
- /** @type {object} */
204
184
  new_user_form: {
205
185
  type: "View users",
206
186
  label: "New user view",
207
187
  default: "",
208
188
  blurb: "A view to show to new users, to finalise registration (if Edit) or as a welcome view",
209
189
  },
210
- /** @type {object} */
211
190
  user_settings_form: {
212
191
  type: "View users",
213
192
  label: "User settings form",
214
193
  default: "",
215
194
  blurb: "A view for users to change their custom user fields",
216
195
  },
217
- /** @type {object} */
218
196
  login_form: {
219
197
  type: "View users",
220
198
  label: "Login view",
221
199
  blurb: "A view with the login form",
222
200
  default: "",
223
201
  },
224
- /** @type {object} */
225
202
  signup_form: {
226
203
  type: "View users",
227
204
  label: "Signup view",
228
205
  blurb: "A view with the signup form",
229
206
  default: "",
230
207
  },
231
- /** @type {object} */
232
208
  verification_view: {
233
209
  type: "View users",
234
210
  label: "Verification view",
235
211
  blurb: "A view with the view to be emailed to users for email address verification",
236
212
  default: "",
213
+ excludeFromMobile: true,
237
214
  },
238
215
  logout_url: {
239
216
  type: "String",
@@ -241,7 +218,6 @@ const configTypes = {
241
218
  blurb: "The URL to direct to after logout",
242
219
  default: "/auth/login",
243
220
  },
244
- /** @type {object} */
245
221
  elevate_verified: {
246
222
  type: "Role",
247
223
  label: "Elevate verified to role",
@@ -252,8 +228,8 @@ const configTypes = {
252
228
  label: "Plain password trigger row",
253
229
  default: false,
254
230
  blurb: "Send plaintext password changes to Users table triggers (Insert, Update and Validate).",
231
+ excludeFromMobile: true, // unsure
255
232
  },
256
- /** @type {object} */
257
233
  signup_role: {
258
234
  type: "Role",
259
235
  label: "Signup role",
@@ -261,32 +237,35 @@ const configTypes = {
261
237
  default: "80",
262
238
  required: true,
263
239
  },
264
- /** @type {object} */
265
240
  min_role_upload: {
266
241
  type: "Role",
267
242
  label: "Role to upload files",
268
243
  default: "80",
269
244
  required: true,
270
245
  blurb: "User should have this role or higher to upload files with API (uploads through forms are not affected)",
246
+ excludeFromMobile: true,
271
247
  },
272
- /** @type {object} */
273
248
  min_role_apikeygen: {
274
249
  type: "Role",
275
250
  label: "Role to generate API keys",
276
251
  default: "1",
277
252
  required: true,
278
253
  blurb: "User should have this role or higher to generate API keys in their user settings",
254
+ excludeFromMobile: true,
279
255
  },
280
- /** @type {object} */
281
256
  email_mask: {
282
257
  type: "String",
283
258
  label: "Email mask",
284
259
  default: "",
285
260
  blurb: "Emails used for signup must end with this string",
261
+ excludeFromMobile: true,
262
+ },
263
+ installed_packs: {
264
+ type: "String[]",
265
+ label: "Installed packs",
266
+ default: [],
267
+ excludeFromMobile: true,
286
268
  },
287
- /** @type {object} */
288
- installed_packs: { type: "String[]", label: "Installed packs", default: [] },
289
- /** @type {object} */
290
269
  log_sql: {
291
270
  type: "Bool",
292
271
  label: "Log SQL to stdout",
@@ -297,7 +276,6 @@ const configTypes = {
297
276
  },
298
277
  blurb: "Print all SQL statements to the standard output",
299
278
  },
300
- /** @type {object} */
301
279
  log_client_errors: {
302
280
  type: "Bool",
303
281
  label: "Log client errors",
@@ -306,7 +284,6 @@ const configTypes = {
306
284
  root_only: true,
307
285
  blurb: "Record all client errors in the crash log",
308
286
  },
309
- /** @type {object} */
310
287
  npm_available_js_code: {
311
288
  type: "String",
312
289
  label: "NPM packages in code",
@@ -320,7 +297,6 @@ const configTypes = {
320
297
  });
321
298
  },
322
299
  },
323
- /** @type {object} */
324
300
  multitenancy_enabled: {
325
301
  type: "Bool",
326
302
  root_only: true,
@@ -332,7 +308,6 @@ const configTypes = {
332
308
  set_multitenancy_cfg(val);
333
309
  },
334
310
  },
335
- /** @type {object} */
336
311
  role_to_create_tenant: {
337
312
  type: "Role",
338
313
  label: "Role to create tenants",
@@ -340,16 +315,16 @@ const configTypes = {
340
315
  default: "1",
341
316
  required: true,
342
317
  root_only: true,
318
+ excludeFromMobile: true,
343
319
  },
344
- /** @type {object} */
345
320
  create_tenant_warning: {
346
321
  type: "Bool",
347
322
  label: "Create tenant warning",
348
323
  default: true,
349
324
  root_only: true,
350
325
  blurb: "Show a warning to users creating a tenant disclaiming warranty of availability or security",
326
+ excludeFromMobile: true,
351
327
  },
352
- /** @type {object} */
353
328
  create_tenant_warning_text: {
354
329
  type: "String",
355
330
  fieldview: "textarea",
@@ -357,40 +332,46 @@ const configTypes = {
357
332
  default: "",
358
333
  root_only: true,
359
334
  blurb: "Provide your own create warning text if need",
335
+ excludeFromMobile: true,
360
336
  },
361
- /** @type {object} */
362
337
  tenant_template: {
363
338
  type: "Tenant",
364
339
  label: "New tenant template",
365
340
  blurb: "Copy site structure for new tenants from this tenant",
366
341
  root_only: true,
342
+ excludeFromMobile: true,
367
343
  },
368
344
  tenant_baseurl: {
369
345
  type: "String",
370
346
  root_only: true,
371
347
  label: "Tenant Base URL",
372
348
  blurb: "Base hostname for newly created tenants. If unset, defaults to hostname",
349
+ excludeFromMobile: true,
373
350
  },
374
351
  tenant_create_unauth_redirect: {
375
352
  type: "String",
376
353
  root_only: true,
377
354
  label: "Redirect unauthorized",
378
355
  blurb: "If tenant creation is not authorized, redirect to this URL",
356
+ excludeFromMobile: true,
379
357
  },
380
358
  tenants_install_git: {
381
359
  type: "Bool",
382
360
  root_only: true,
383
361
  label: "Install git plugins",
362
+ excludeFromMobile: true, // unsure
384
363
  },
385
364
  tenants_set_npm_modules: {
386
365
  type: "Bool",
387
366
  root_only: true,
388
367
  label: "Set available npm modules",
368
+ excludeFromMobile: true, // unsure
389
369
  },
390
370
  tenants_unsafe_plugins: {
391
371
  type: "Bool",
392
372
  root_only: true,
393
373
  label: "Unsafe modules",
374
+ excludeFromMobile: true, // unsure
394
375
  },
395
376
  tenant_inherit_cfgs: {
396
377
  type: "String",
@@ -398,15 +379,15 @@ const configTypes = {
398
379
  label: "Inherit configuration values",
399
380
  helpTopic: "Configuration keys",
400
381
  blurb: "Comma-separated list of configuration settings tenants inherit from root. Ex: <code>site_name, smtp_host, allow_signup</code>",
382
+ excludeFromMobile: true, // unsure
401
383
  },
402
- /** @type {object} */
403
384
  tenant_letsencrypt_sites: {
404
385
  type: "hidden",
405
386
  root_only: true,
406
387
  label: "Tenant LetsEncrypt sites",
407
388
  default: [],
389
+ excludeFromMobile: true,
408
390
  },
409
- /** @type {object} */
410
391
  development_mode: {
411
392
  type: "Bool",
412
393
  label: "Development mode",
@@ -414,21 +395,20 @@ const configTypes = {
414
395
  default: false,
415
396
  blurb: "Disable JS/CSS asset caching, show full error to user on crash, enable editing field type",
416
397
  },
417
- /** @type {object} */
418
398
  smtp_host: {
419
399
  type: "String",
420
400
  label: "SMTP host",
421
401
  default: "",
422
402
  blurb: "The host address of your SMTP server. For instance, smtp.postmarkapp.com",
403
+ excludeFromMobile: true,
423
404
  },
424
- /** @type {object} */
425
405
  smtp_username: {
426
406
  type: "String",
427
407
  label: "SMTP username",
428
408
  default: "",
429
409
  blurb: "The user name to access SMTP server for sending emails.",
410
+ excludeFromMobile: true,
430
411
  },
431
- /** @type {object} */
432
412
  smtp_password: {
433
413
  type: "String",
434
414
  label: "SMTP password",
@@ -437,35 +417,36 @@ const configTypes = {
437
417
  blurb: "The user password or app password to access SMTP server for sending emails. " +
438
418
  "If your SMTP provider allows to create app password for using from application " +
439
419
  "We recommends to use app password instead of user password.",
420
+ excludeFromMobile: true,
440
421
  },
441
- /** @type {object} */
442
422
  smtp_port: {
443
423
  type: "Integer",
444
424
  label: "SMTP port",
445
425
  default: "25",
446
426
  blurb: "The port of your SMTP server",
427
+ excludeFromMobile: true,
447
428
  },
448
- /** @type {object} */
449
429
  smtp_secure: {
450
430
  type: "Bool",
451
431
  label: "Force TLS",
452
432
  default: false,
453
433
  sublabel: "Always use TLS when connecting to server? If unchecked, TLS is used if server supports the STARTTLS extension. In most cases check this box if you are connecting to port 465. For port 587 or 25 keep it unchecked",
434
+ excludeFromMobile: true,
454
435
  },
455
436
  smtp_allow_self_signed: {
456
437
  type: "Bool",
457
438
  label: "Allow self-signed",
458
439
  default: false,
459
440
  sublabel: "Open a connection to TLS server with self-signed or invalid TLS certificate",
441
+ excludeFromMobile: true,
460
442
  },
461
- /** @type {object} */
462
443
  email_from: {
463
444
  type: "String",
464
445
  label: "Email from address",
465
446
  default: "",
466
447
  blurb: "The email address from which emails are sent. For instance, hello@saltcorn.com",
448
+ excludeFromMobile: true,
467
449
  },
468
- /** @type {object} */
469
450
  custom_ssl_certificate: {
470
451
  type: "String",
471
452
  fieldview: "textarea",
@@ -473,8 +454,8 @@ const configTypes = {
473
454
  default: "",
474
455
  excludeFromSnapshot: true,
475
456
  hide_value: true,
457
+ excludeFromMobile: true,
476
458
  },
477
- /** @type {object} */
478
459
  custom_ssl_private_key: {
479
460
  type: "String",
480
461
  fieldview: "textarea",
@@ -482,8 +463,8 @@ const configTypes = {
482
463
  hide_value: true,
483
464
  excludeFromSnapshot: true,
484
465
  default: "",
466
+ excludeFromMobile: true,
485
467
  },
486
- /** @type {object} */
487
468
  letsencrypt: {
488
469
  label: "LetsEncrypt enabled",
489
470
  default: false,
@@ -491,8 +472,8 @@ const configTypes = {
491
472
  root_only: true,
492
473
  excludeFromSnapshot: true,
493
474
  blurb: "Enable SSL certificate from Let's Encrypt for HTTPS traffic",
475
+ excludeFromMobile: true,
494
476
  },
495
- /** @type {object} */
496
477
  timeout: {
497
478
  type: "Integer",
498
479
  label: "HTTP timeout (s)",
@@ -501,26 +482,23 @@ const configTypes = {
501
482
  restart_required: true,
502
483
  sublabel: "Increase if you expect large uploads",
503
484
  },
504
- /** @type {object} */
505
485
  latest_npm_version: {
506
486
  type: "hidden",
507
487
  label: "Latest npm version cache",
508
488
  excludeFromSnapshot: true,
509
489
  default: {},
490
+ excludeFromMobile: true,
510
491
  },
511
- /** @type {object} */
512
492
  event_log_settings: {
513
493
  type: "hidden",
514
494
  label: "Event log settings",
515
495
  default: {},
516
496
  },
517
- /** @type {object} */
518
497
  custom_events: {
519
498
  type: "hidden",
520
499
  label: "Custom events",
521
500
  default: [],
522
501
  },
523
- /** @type {object} */
524
502
  page_custom_css: {
525
503
  input_type: "code",
526
504
  label: "Custom CSS",
@@ -528,7 +506,6 @@ const configTypes = {
528
506
  hide_value: true,
529
507
  attributes: { mode: "text/css" },
530
508
  },
531
- /** @type {object} */
532
509
  page_custom_html: {
533
510
  input_type: "code",
534
511
  label: "Custom HTML",
@@ -536,7 +513,6 @@ const configTypes = {
536
513
  hide_value: true,
537
514
  attributes: { mode: "text/html" },
538
515
  },
539
- /** @type {object} */
540
516
  custom_http_headers: {
541
517
  input_type: "code",
542
518
  label: "Custom HTTP headers",
@@ -545,21 +521,18 @@ const configTypes = {
545
521
  hide_value: true,
546
522
  attributes: { mode: "message/http" },
547
523
  },
548
- /** @type {object} */
549
524
  next_hourly_event: {
550
525
  type: "Date",
551
526
  label: "Next hourly event",
552
527
  excludeFromSnapshot: true,
553
528
  default: null,
554
529
  },
555
- /** @type {object} */
556
530
  next_daily_event: {
557
531
  type: "Date",
558
532
  label: "Next daily event",
559
533
  default: null,
560
534
  excludeFromSnapshot: true,
561
535
  },
562
- /** @type {object} */
563
536
  next_weekly_event: {
564
537
  type: "Date",
565
538
  label: "Next weekly event",
@@ -572,19 +545,16 @@ const configTypes = {
572
545
  sublabel: "Locale identifier short code, e.g. en, zh, fr, ar etc. ",
573
546
  default: "en",
574
547
  },
575
- /** @type {object} */
576
548
  localizer_languages: {
577
549
  type: "hidden",
578
550
  label: "Localizer languages",
579
551
  default: {},
580
552
  },
581
- /** @type {object} */
582
553
  localizer_strings: {
583
554
  type: "hidden",
584
555
  label: "Localizer strings",
585
556
  default: {},
586
557
  },
587
- /** @type {object} */
588
558
  legacy_file_id_locations: {
589
559
  type: "hidden",
590
560
  label: "Legacy file_id locations",
@@ -605,6 +575,7 @@ const configTypes = {
605
575
  label: "Cookie duration (hours)",
606
576
  sublabel: "Set to 0 for expiration at the end of browser session",
607
577
  default: 30 * 24,
578
+ excludeFromMobile: true,
608
579
  },
609
580
  cookie_samesite: {
610
581
  input_type: "select",
@@ -614,6 +585,7 @@ const configTypes = {
614
585
  sublabel: "Restrict use of cookie to third-party sites. Strict is more secure, but may impact authentication",
615
586
  default: "Unset",
616
587
  options: ["Unset", "None", "Lax", "Strict"],
588
+ excludeFromMobile: true,
617
589
  },
618
590
  content_security_policy: {
619
591
  input_type: "select",
@@ -622,6 +594,7 @@ const configTypes = {
622
594
  options: ["Disabled", "Enabled"],
623
595
  restart_required: true,
624
596
  root_only: true,
597
+ excludeFromMobile: true,
625
598
  },
626
599
  cors_enabled: {
627
600
  type: "Bool",
@@ -630,6 +603,7 @@ const configTypes = {
630
603
  default: true,
631
604
  restart_required: true,
632
605
  root_only: true,
606
+ excludeFromMobile: true,
633
607
  },
634
608
  public_cache_maxage: {
635
609
  type: "Integer",
@@ -642,12 +616,14 @@ const configTypes = {
642
616
  label: "Files cache TTL (minutes)",
643
617
  sublabel: "Cache-control max-age for files.",
644
618
  default: 86400,
619
+ excludeFromMobile: true,
645
620
  },
646
621
  cookie_duration_remember: {
647
622
  type: "Integer",
648
623
  label: "Cookie duration (hours) when remember ticked",
649
624
  sublabel: "Set to 0 for expiration at the end of browser session",
650
625
  default: 30 * 24,
626
+ excludeFromMobile: true,
651
627
  },
652
628
  cross_domain_iframe: {
653
629
  type: "Bool",
@@ -657,13 +633,13 @@ const configTypes = {
657
633
  sublabel: "Allow embedding in iframe on different domains. Unsets the X-Frame-Options header",
658
634
  default: false,
659
635
  },
660
- /** @type {object} */
661
636
  storage_s3_enabled: {
662
637
  type: "Bool",
663
638
  label: "Use Amazon S3",
664
639
  excludeFromSnapshot: true,
665
640
  default: false,
666
641
  sublabel: "Use Amazon S3 (or compatible) service to store files. If disabled, Saltcorn uses local disk. WARNING: Changing this may break your uploaded files!",
642
+ excludeFromMobile: true,
667
643
  },
668
644
  storage_s3_secure: {
669
645
  type: "Bool",
@@ -671,48 +647,48 @@ const configTypes = {
671
647
  excludeFromSnapshot: true,
672
648
  default: true,
673
649
  sublabel: "Connect to Amazon S3 (or compatible) securely.",
650
+ excludeFromMobile: true,
674
651
  },
675
- /** @type {object} */
676
652
  storage_s3_bucket: {
677
653
  type: "String",
678
654
  label: "Amazon S3 Bucket",
679
655
  excludeFromSnapshot: true,
680
656
  default: "",
681
657
  blurb: "Name you selected for your S3 bucket in AWS.",
658
+ excludeFromMobile: true,
682
659
  },
683
- /** @type {object} */
684
660
  storage_s3_path_prefix: {
685
661
  type: "String",
686
662
  label: "Amazon S3 Path Prefix",
687
663
  excludeFromSnapshot: true,
688
664
  default: "",
689
665
  blurb: "Prefix you selected for your S3 bucket in AWS.",
666
+ excludeFromMobile: true,
690
667
  },
691
- /** @type {object} */
692
668
  storage_s3_endpoint: {
693
669
  type: "String",
694
670
  label: "Amazon S3 Endpoint",
695
671
  excludeFromSnapshot: true,
696
672
  default: "s3.amazonaws.com",
697
673
  blurb: "Hostname of your S3 Compatible Storage provider. Defaults to 's3.amazonaws.com'.",
674
+ excludeFromMobile: true,
698
675
  },
699
- /** @type {object} */
700
676
  storage_s3_region: {
701
677
  type: "String",
702
678
  label: "Amazon S3 Region",
703
679
  excludeFromSnapshot: true,
704
680
  default: "us-east-1",
705
681
  blurb: "AWS region you selected when creating your S3 bucket. Default ti 'us-east-1'.",
682
+ excludeFromMobile: true,
706
683
  },
707
- /** @type {object} */
708
684
  storage_s3_access_key: {
709
685
  type: "String",
710
686
  label: "Amazon S3 Access Key ID",
711
687
  excludeFromSnapshot: true,
712
688
  default: "",
713
689
  blurb: "Only required if you do not want to authenticate to S3 using an IAM role. Enter the Access Key ID provided by your Amazon EC2 administrator.",
690
+ excludeFromMobile: true,
714
691
  },
715
- /** @type {object} */
716
692
  storage_s3_access_secret: {
717
693
  type: "String",
718
694
  input_type: "password",
@@ -720,8 +696,8 @@ const configTypes = {
720
696
  excludeFromSnapshot: true,
721
697
  default: "",
722
698
  blurb: "The secret access key associated with your Amazon S3 Access Key ID.",
699
+ excludeFromMobile: true,
723
700
  },
724
- /** @type {object} */
725
701
  plugins_store_endpoint: {
726
702
  type: "String",
727
703
  input_type: "String",
@@ -729,8 +705,8 @@ const configTypes = {
729
705
  default: "https://store.saltcorn.com/api/extensions",
730
706
  //root_only: true,
731
707
  blurb: "The endpoint of plugins store.",
708
+ excludeFromMobile: true,
732
709
  },
733
- /** @type {object} */
734
710
  packs_store_endpoint: {
735
711
  type: "String",
736
712
  input_type: "String",
@@ -738,54 +714,63 @@ const configTypes = {
738
714
  default: "https://store.saltcorn.com/api/packs",
739
715
  //root_only: true,
740
716
  blurb: "The endpoint of packs store.",
717
+ excludeFromMobile: true,
741
718
  },
742
719
  auto_backup_frequency: {
743
720
  type: "String",
744
721
  label: "Auto backup frequency",
745
722
  excludeFromSnapshot: true,
746
723
  default: "Never",
724
+ excludeFromMobile: true,
747
725
  },
748
726
  auto_backup_destination: {
749
727
  type: "String",
750
728
  excludeFromSnapshot: true,
751
729
  label: "Auto backup Destination",
752
730
  default: "Saltcorn files",
731
+ excludeFromMobile: true,
753
732
  },
754
733
  auto_backup_directory: {
755
734
  type: "String",
756
735
  excludeFromSnapshot: true,
757
736
  label: "Auto backup directory",
758
737
  default: "",
738
+ excludeFromMobile: true,
759
739
  },
760
740
  auto_backup_retain_local_directory: {
761
741
  type: "String",
762
742
  excludeFromSnapshot: true,
763
743
  label: "Retain auto backup local directory",
764
744
  default: "",
745
+ excludeFromMobile: true,
765
746
  },
766
747
  auto_backup_server: {
767
748
  type: "String",
768
749
  excludeFromSnapshot: true,
769
750
  label: "Auto backup server",
770
751
  default: "",
752
+ excludeFromMobile: true,
771
753
  },
772
754
  auto_backup_username: {
773
755
  type: "String",
774
756
  excludeFromSnapshot: true,
775
757
  label: "Auto backup username",
776
758
  default: "",
759
+ excludeFromMobile: true,
777
760
  },
778
761
  auto_backup_password: {
779
762
  type: "String",
780
763
  excludeFromSnapshot: true,
781
764
  label: "Auto backup password",
782
765
  default: "",
766
+ excludeFromMobile: true,
783
767
  },
784
768
  auto_backup_port: {
785
769
  type: "Integer",
786
770
  excludeFromSnapshot: true,
787
771
  label: "Auto backup port",
788
772
  default: 22,
773
+ excludeFromMobile: true,
789
774
  },
790
775
  auto_backup_tenants: {
791
776
  type: "Bool",
@@ -793,6 +778,7 @@ const configTypes = {
793
778
  label: "Auto backup tenants",
794
779
  default: false,
795
780
  root_only: true,
781
+ excludeFromMobile: true,
796
782
  },
797
783
  auto_backup_expire_days: {
798
784
  type: "Integer",
@@ -800,17 +786,20 @@ const configTypes = {
800
786
  label: "Auto backup expiration days",
801
787
  default: null,
802
788
  root_only: true,
789
+ excludeFromMobile: true,
803
790
  },
804
791
  backup_with_event_log: {
805
792
  type: "Bool",
806
793
  label: "Backup with event log",
807
794
  default: false,
795
+ excludeFromMobile: true,
808
796
  },
809
797
  backup_with_system_zip: {
810
798
  type: "Bool",
811
799
  label: "Backup with system zip",
812
800
  sublabel: "Recommended. Executable <code>zip</code> must be installed",
813
801
  default: false,
802
+ excludeFromMobile: true,
814
803
  },
815
804
  backup_system_zip_level: {
816
805
  type: "Integer",
@@ -821,6 +810,7 @@ const configTypes = {
821
810
  min: 1,
822
811
  max: 9,
823
812
  },
813
+ excludeFromMobile: true,
824
814
  },
825
815
  snapshots_enabled: {
826
816
  type: "Bool",
@@ -914,15 +904,8 @@ const configTypes = {
914
904
  label: "Log IP address",
915
905
  sublabel: "Record the request IP address in log messages",
916
906
  default: false,
907
+ excludeFromMobile: true,
917
908
  },
918
- apple_team_id: {
919
- type: "String",
920
- default: null,
921
- label: "Apple Developer Team ID",
922
- blurb: "Issued by Apple for enrolled members of the 'Apple Developer Program'." +
923
- "The team id must be set to build mobile iOS apps that can run on a device.",
924
- },
925
- /** @type {object} */
926
909
  file_accept_filter_default: {
927
910
  type: "String",
928
911
  label: "Default File accept filter",
@@ -930,7 +913,6 @@ const configTypes = {
930
913
  blurb: "Specifies a default filter for what file types the user can pick from the file input dialog box. " +
931
914
  "Example is `.doc, text/csv,audio/*,video/*,image/*`",
932
915
  },
933
- /** @type {object} */
934
916
  csv_types_detection_rows: {
935
917
  type: "Integer",
936
918
  label: "CSV types detection rows",
@@ -938,45 +920,46 @@ const configTypes = {
938
920
  blurb: "Specifies how many rows from start of CSV file will be using to determine types in created tables. " +
939
921
  "Default is 500",
940
922
  },
941
- /** @type {object} */
942
923
  csv_bool_values: {
943
924
  type: "String",
944
925
  label: "CSV bool values",
945
926
  default: "true false yes no on off y n t f",
946
927
  blurb: "Allows to redefine list of values that recognized as bool values in cvs file",
947
928
  },
948
- /** @type {object} */
949
929
  file_upload_debug: {
950
930
  type: "Bool",
951
931
  label: "File upload debug",
952
932
  default: false,
953
933
  blurb: "Turn on to debug file upload in express-fileupload.",
934
+ excludeFromMobile: true,
954
935
  },
955
- /** @type {object} */
956
936
  file_upload_timeout: {
957
937
  type: "Integer",
958
938
  label: "File upload timeout",
959
939
  default: 0,
960
940
  blurb: "Defines how long to wait for data before aborting file upload. " +
961
941
  "Set to 0 if you want to turn off timeout checks. ",
942
+ excludeFromMobile: true,
962
943
  },
963
- /** @type {object} */
964
944
  file_upload_limit: {
965
945
  type: "Integer",
966
946
  label: "Upload size limit (Kb)",
967
947
  blurb: "Maximum upload file size in kilobytes",
948
+ excludeFromMobile: true,
968
949
  },
969
950
  body_limit: {
970
951
  type: "Integer",
971
952
  label: "Body size limit (Kb)",
972
953
  root_only: true,
973
954
  blurb: "Maximum request body size in kilobytes",
955
+ excludeFromMobile: true,
974
956
  },
975
957
  url_encoded_limit: {
976
958
  type: "Integer",
977
959
  root_only: true,
978
960
  label: "URL encoded size limit (Kb)",
979
961
  blurb: "Maximum URL encoded request size in kilobytes",
962
+ excludeFromMobile: true,
980
963
  },
981
964
  min_role_inspect_tables: {
982
965
  type: "Role",
@@ -984,6 +967,7 @@ const configTypes = {
984
967
  default: 1,
985
968
  required: true,
986
969
  blurb: "Minimum role to inspect (see, without editing) tables",
970
+ excludeFromMobile: true,
987
971
  },
988
972
  min_role_edit_tables: {
989
973
  type: "Role",
@@ -991,6 +975,7 @@ const configTypes = {
991
975
  default: 1,
992
976
  required: true,
993
977
  blurb: "Minimum role to edit tables",
978
+ excludeFromMobile: true,
994
979
  },
995
980
  min_role_edit_views: {
996
981
  type: "Role",
@@ -998,6 +983,7 @@ const configTypes = {
998
983
  default: 1,
999
984
  required: true,
1000
985
  blurb: "Minimum role to edit views",
986
+ excludeFromMobile: true,
1001
987
  },
1002
988
  min_role_edit_pages: {
1003
989
  type: "Role",
@@ -1005,6 +991,7 @@ const configTypes = {
1005
991
  default: 1,
1006
992
  required: true,
1007
993
  blurb: "Minimum role to edit pages",
994
+ excludeFromMobile: true,
1008
995
  },
1009
996
  min_role_edit_triggers: {
1010
997
  type: "Role",
@@ -1012,6 +999,7 @@ const configTypes = {
1012
999
  default: 1,
1013
1000
  required: true,
1014
1001
  blurb: "Minimum role to edit triggers",
1002
+ excludeFromMobile: true,
1015
1003
  },
1016
1004
  min_role_edit_menu: {
1017
1005
  type: "Role",
@@ -1019,8 +1007,8 @@ const configTypes = {
1019
1007
  default: 1,
1020
1008
  required: true,
1021
1009
  blurb: "Minimum role to edit menu",
1010
+ excludeFromMobile: true,
1022
1011
  },
1023
- /** @type {object} */
1024
1012
  min_role_search: {
1025
1013
  type: "Role",
1026
1014
  label: "Role for search",
@@ -1028,7 +1016,6 @@ const configTypes = {
1028
1016
  required: true,
1029
1017
  blurb: "Minimum role to access search page",
1030
1018
  },
1031
- /** @type {object} */
1032
1019
  search_page_size: {
1033
1020
  type: "Integer",
1034
1021
  label: "Search page size",
@@ -1055,16 +1042,19 @@ const configTypes = {
1055
1042
  type: "String",
1056
1043
  label: "Backup file prefix",
1057
1044
  default: "sc-backup-",
1045
+ excludeFromMobile: true,
1058
1046
  },
1059
1047
  backup_history: {
1060
1048
  type: "Bool",
1061
1049
  label: "Include table history in backup",
1062
1050
  default: true,
1051
+ excludeFromMobile: true,
1063
1052
  },
1064
1053
  max_relations_layer_depth: {
1065
1054
  type: "Integer",
1066
1055
  label: "Max relations layer depth",
1067
1056
  default: 6,
1057
+ excludeFromMobile: true,
1068
1058
  },
1069
1059
  missing_screen_info_strategy: {
1070
1060
  type: "String",
@@ -1087,6 +1077,7 @@ const configTypes = {
1087
1077
  type: "hidden",
1088
1078
  label: "Joined log socket ids",
1089
1079
  default: [],
1080
+ excludeFromMobile: true,
1090
1081
  },
1091
1082
  prune_session_interval: {
1092
1083
  type: "Integer",
@@ -1096,17 +1087,20 @@ const configTypes = {
1096
1087
  "0, empty or a negative number to disable",
1097
1088
  root_only: true,
1098
1089
  restart_required: true,
1090
+ excludeFromMobile: true,
1099
1091
  },
1100
1092
  engines_cache: {
1101
1093
  type: "JSON",
1102
1094
  label: "Cached plugin version infos",
1103
1095
  default: {},
1096
+ excludeFromMobile: true,
1104
1097
  },
1105
1098
  // when this is different from the current version, the engines cache is cleared
1106
1099
  engines_cache_sc_version: {
1107
1100
  type: "String",
1108
1101
  label: "Saltcorn version for engines cache",
1109
1102
  default: "",
1103
+ excludeFromMobile: true,
1110
1104
  },
1111
1105
  delete_finished_workflows_days: {
1112
1106
  type: "Integer",