@saltcorn/server 1.3.1-beta.10 → 1.3.1-beta.12
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/docs/assets/search.js +1 -1
- package/docs/classes/_saltcorn_common_code.Relation.html +10 -10
- package/docs/classes/_saltcorn_common_code.RelationsFinder.html +5 -5
- package/docs/classes/_saltcorn_data.models.Crash.html +17 -17
- package/docs/classes/_saltcorn_data.models.EventLog-1.html +19 -19
- package/docs/classes/_saltcorn_data.models.Field.html +74 -74
- package/docs/classes/_saltcorn_data.models.FieldRepeat.html +16 -16
- package/docs/classes/_saltcorn_data.models.File-1.html +48 -48
- package/docs/classes/_saltcorn_data.models.Form-1.html +39 -39
- package/docs/classes/_saltcorn_data.models.Library.html +13 -13
- package/docs/classes/_saltcorn_data.models.Page.html +24 -24
- package/docs/classes/_saltcorn_data.models.PageGroup-1.html +25 -25
- package/docs/classes/_saltcorn_data.models.Plugin.html +25 -25
- package/docs/classes/_saltcorn_data.models.Role.html +9 -9
- package/docs/classes/_saltcorn_data.models.Table-1.html +92 -92
- package/docs/classes/_saltcorn_data.models.TableConstraint.html +14 -14
- package/docs/classes/_saltcorn_data.models.Trigger.html +37 -37
- package/docs/classes/_saltcorn_data.models.User.html +48 -48
- package/docs/classes/_saltcorn_data.models.View-1.html +68 -54
- package/docs/classes/_saltcorn_data.models.Workflow.html +17 -17
- package/docs/classes/_saltcorn_data.models.WorkflowRun.html +35 -35
- package/docs/classes/_saltcorn_data.models.WorkflowStep.html +25 -25
- package/docs/classes/_saltcorn_data.models.WorkflowTrace.html +18 -18
- package/docs/classes/_saltcorn_mobile_builder.MobileBuilder.html +37 -37
- package/docs/enums/_saltcorn_common_code.RelationType.html +7 -7
- package/docs/enums/_saltcorn_common_code.ViewDisplayType.html +4 -4
- package/docs/functions/_saltcorn_admin_models.backup.create_backup.html +1 -1
- package/docs/functions/_saltcorn_admin_models.backup.create_csv_from_rows.html +1 -1
- package/docs/functions/_saltcorn_admin_models.backup.restore.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.add_to_menu.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.can_install_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.fetch_available_packs.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.fetch_pack_by_name.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.install_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.library_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.model_instance_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.model_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.page_group_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.page_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.plugin_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.role_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.table_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.trigger_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.uninstall_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.view_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.copy_tenant_template.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.create_tenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.deleteTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.domain_sanitize.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.eachTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.getAllTenantRows.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.getAllTenants.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.insertTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.switchToTenant.html +1 -1
- package/docs/functions/_saltcorn_common_code.buildTableCaches.html +1 -1
- package/docs/functions/_saltcorn_common_code.parseLegacyRelation.html +1 -1
- package/docs/functions/_saltcorn_common_code.parseRelationPath.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.check_email_mask.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.deleteConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.getAllConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.getConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.get_base_url.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.get_latest_npm_version.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.remove_from_menu.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.save_menu_items.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.setConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.discover_tables.html +5 -3
- package/docs/functions/_saltcorn_data.models.discovery.discoverable_tables.html +7 -3
- package/docs/functions/_saltcorn_data.models.discovery.findType.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.get_existing_views.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.implement_discovery.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.getMailTransport.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.send_verification_email.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.viewToEmailHtml.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.apply_calculated_fields.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.apply_calculated_fields_stored.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.eval_expression.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.expressionValidator.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.get_async_expression_function.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.get_expression_function.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.jsexprToWhere.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.recalculate_for_stored.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.transform_for_async.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.eachView.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.getStringsForI18n.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.getViews.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.translateLayout.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.traverse.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.traverseSync.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.all_views.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.fill_table_row.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.initial_view.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.random_table.html +1 -1
- package/docs/functions/_saltcorn_db_common.buildInsertBulkSql.html +1 -1
- package/docs/functions/_saltcorn_db_common.buildInsertSql.html +1 -1
- package/docs/functions/_saltcorn_db_common.commitAndBeginNewTransaction.html +1 -1
- package/docs/functions/_saltcorn_db_common.doCount.html +1 -1
- package/docs/functions/_saltcorn_db_common.doDeleteWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListScTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.do_add_index.html +1 -1
- package/docs/functions/_saltcorn_db_common.do_drop_index.html +1 -1
- package/docs/functions/_saltcorn_db_common.ftsFieldsSqlExpr.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkSelectOptions.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkVal.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.enable_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.getRequestContext.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.getTenantSchema.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.init.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.is_it_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db_common.multi_tenant.runWithTenant.html +1 -1
- package/docs/functions/_saltcorn_db_common.orderByIsObject.html +1 -1
- package/docs/functions/_saltcorn_db_common.orderByIsOperator.html +1 -1
- package/docs/functions/_saltcorn_db_common.prefixFieldsInWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.reprAsJson.html +1 -1
- package/docs/functions/_saltcorn_db_common.slugify.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlBinOp.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlFun.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlsanitize.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlsanitizeAllowDots.html +1 -1
- package/docs/functions/_saltcorn_db_common.subSelectWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.tryCatchInTransaction.html +1 -1
- package/docs/functions/_saltcorn_db_common.withTransaction.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.androidFeatures.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.androidPermissions.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.buildTablesFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyPrepopulatedDb.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyServerFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyShareExtFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copySiteLogo.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyTranslationFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.createSqliteDb.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.decodeProvisioningProfile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.extractDomain.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.generateAndroidVersionCode.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyAndroidManifest.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyConfigXml.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyGradleConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyInfoPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyXcodeProjectFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareBuildDir.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareExportOptionsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareSplashIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareSplashPage.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeCapacitorConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeCfgFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeDataExtractionRules.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeNetworkSecurityConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writePodfile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writePrivacyInfo.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.bundleMobileAppCode.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.bundlePackagesAndPlugins.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.copyMobileAppDirs.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.copyPublicDirs.html +1 -1
- package/docs/functions/_saltcorn_sqlite.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.begin.html +1 -1
- package/docs/functions/_saltcorn_sqlite.changeConnection.html +1 -1
- package/docs/functions/_saltcorn_sqlite.close.html +1 -1
- package/docs/functions/_saltcorn_sqlite.commit.html +1 -1
- package/docs/functions/_saltcorn_sqlite.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite.dropTable.html +1 -1
- package/docs/functions/_saltcorn_sqlite.dropTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.getVersion.html +1 -1
- package/docs/functions/_saltcorn_sqlite.get_db_filepath.html +1 -1
- package/docs/functions/_saltcorn_sqlite.get_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite.rollback.html +1 -1
- package/docs/functions/_saltcorn_sqlite.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.set_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sql_log.html +1 -1
- package/docs/functions/_saltcorn_sqlite.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.updateWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.insertRows.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.setConnectionObject.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.tableExists.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.time.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.update.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_field.instanceOfField.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_page.instanceOfPage.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_view.instanceOfView.html +1 -1
- package/docs/functions/_saltcorn_types.Types.base_types.instanceOWithHtmlFile.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfSuccessMsg.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfType.html +1 -1
- package/docs/functions/_saltcorn_types.generators.generateBool.html +1 -1
- package/docs/functions/_saltcorn_types.generators.generateString.html +1 -1
- package/docs/functions/_saltcorn_types.generators.num_between.html +1 -1
- package/docs/functions/_saltcorn_types.generators.oneOf.html +1 -1
- package/docs/interfaces/_saltcorn_mobile_builder.common_build_utils.ScCapacitorConfig.html +10 -10
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_field.AbstractField.html +15 -15
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_field.AbstractFieldRepeat.html +3 -3
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_form.AbstractForm.html +27 -27
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_page.AbstractPage.html +7 -7
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_role.AbstractRole.html +3 -3
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_table.AbstractTable.html +11 -11
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_trigger.AbstractTrigger.html +17 -17
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_view.AbstractView.html +10 -10
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_workflow.AbstractWorkflow.html +13 -13
- package/docs/modules/_saltcorn_admin_models.backup.html +1 -1
- package/docs/modules/_saltcorn_admin_models.html +1 -1
- package/docs/modules/_saltcorn_admin_models.pack.html +1 -1
- package/docs/modules/_saltcorn_admin_models.tenant.html +1 -1
- package/docs/modules/_saltcorn_common_code.html +1 -1
- package/docs/modules/_saltcorn_data.html +3 -3
- package/docs/modules/_saltcorn_data.models.EventLog.html +2 -2
- package/docs/modules/_saltcorn_data.models.File.html +2 -2
- package/docs/modules/_saltcorn_data.models.Form.html +2 -2
- package/docs/modules/_saltcorn_data.models.PageGroup.html +2 -2
- package/docs/modules/_saltcorn_data.models.Table.html +2 -2
- package/docs/modules/_saltcorn_data.models.View.html +2 -2
- package/docs/modules/_saltcorn_data.models.config.html +1 -1
- package/docs/modules/_saltcorn_data.models.discovery.html +1 -1
- package/docs/modules/_saltcorn_data.models.email.html +1 -1
- package/docs/modules/_saltcorn_data.models.expression.html +1 -1
- package/docs/modules/_saltcorn_data.models.html +1 -1
- package/docs/modules/_saltcorn_data.models.layout.html +1 -1
- package/docs/modules/_saltcorn_data.models.random.html +1 -1
- package/docs/modules/_saltcorn_data.models.scheduler.html +1 -1
- package/docs/modules/_saltcorn_data.plugin_helper.html +1 -1
- package/docs/modules/_saltcorn_data.utils.html +1 -1
- package/docs/modules/_saltcorn_db_common.html +2 -2
- package/docs/modules/_saltcorn_db_common.multi_tenant.html +1 -1
- package/docs/modules/_saltcorn_markup.html +2 -2
- package/docs/modules/_saltcorn_mobile_builder.common_build_utils.html +1 -1
- package/docs/modules/_saltcorn_mobile_builder.html +1 -1
- package/docs/modules/_saltcorn_mobile_builder.package_bundle_utils.html +1 -1
- package/docs/modules/_saltcorn_sqlite.html +1 -1
- package/docs/modules/_saltcorn_sqlite_mobile.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_field.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_form.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_library.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_page.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_plugin.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_role.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_table.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_trigger.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_view.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_workflow.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.html +1 -1
- package/docs/modules/_saltcorn_types.Types.base_types.html +1 -1
- package/docs/modules/_saltcorn_types.Types.common_types.html +1 -1
- package/docs/modules/_saltcorn_types.Types.html +1 -1
- package/docs/modules/_saltcorn_types.generators.html +1 -1
- package/docs/modules/_saltcorn_types.html +1 -1
- package/docs/types/_saltcorn_data.models.EventLog.EventLogCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.File.FileCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.Form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_data.models.Form.FormCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.PageGroup.ScreenInfoParams.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.ChildRelations.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.ParentRelations.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.RelationData.html +1 -1
- package/docs/types/_saltcorn_data.models.View.FindViewsPred.html +1 -1
- package/docs/types/_saltcorn_db_common.AggregationOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.CoordOpts.html +1 -1
- package/docs/types/_saltcorn_db_common.DatabaseClient.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinField.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinFields.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.JsonPath.html +1 -1
- package/docs/types/_saltcorn_db_common.JsonPathElem.html +1 -1
- package/docs/types/_saltcorn_db_common.Operator.html +1 -1
- package/docs/types/_saltcorn_db_common.PartialSome.html +1 -1
- package/docs/types/_saltcorn_db_common.PrimaryKeyValue.html +1 -1
- package/docs/types/_saltcorn_db_common.Row.html +1 -1
- package/docs/types/_saltcorn_db_common.SelectOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.SqlAndValues.html +1 -1
- package/docs/types/_saltcorn_db_common.StrongRow.html +1 -1
- package/docs/types/_saltcorn_db_common.SubselectOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.Value.html +1 -1
- package/docs/types/_saltcorn_db_common.Where.html +1 -1
- package/docs/types/_saltcorn_mobile_builder.IosCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_field.FieldCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_field.InputType.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_library.LibraryCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_library.LibraryPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_page.PageCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_page.PagePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_plugin.PluginCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_plugin.PluginPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_role.RoleCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_role.RolePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_table.TableCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_table.TablePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_trigger.TriggerCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_trigger.TriggerPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_view.ViewCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_view.ViewPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_workflow.ConfigWorkflowStep.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_workflow.RunResult.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Action.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.AuthenticationMethod.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CalcJoinfield.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CapacitorPlugin.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CodePagePack.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Column.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ConnectObjType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ConnectedObjects.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CopilotSkill.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ErrorObj.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.FieldLike.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.FieldView.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Header.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.JoinFieldOption.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Layout.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.MobileConfig.html +4 -2
- package/docs/types/_saltcorn_types.Types.base_types.ModelPattern.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Pack.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Plugin.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginFunction.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginLayout.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginRoute.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginSourceType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginWrap.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginWrapArg.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RelationOption.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Req.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Res.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ResultType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RouteAction.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RunExtra.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.SlugStepType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.StepResType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.SubField.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.TableProvider.html +5 -5
- package/docs/types/_saltcorn_types.Types.base_types.TableQuery.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Tablely.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ViewTemplate.html +4 -2
- package/docs/types/_saltcorn_types.Types.common_types.ErrorMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.GenObj.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.ReqRes.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.ResultMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.SuccessMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.Type.html +1 -1
- package/docs/variables/_saltcorn_data.db.html +1 -1
- package/docs/variables/_saltcorn_data.migrations.html +1 -1
- package/docs/variables/_saltcorn_data.models.config.available_languages.html +1 -1
- package/docs/variables/_saltcorn_data.models.config.configTypes.html +1 -1
- package/docs/variables/_saltcorn_data.models.scheduler.runScheduler.html +1 -1
- package/docs/variables/_saltcorn_data.plugin_helper.run_action_column.html +1 -1
- package/docs/variables/_saltcorn_data.utils.NotAuthorized.html +1 -1
- package/docs/variables/_saltcorn_data.utils.isPushEnabled.html +1 -1
- package/docs/variables/_saltcorn_data.utils.sleep.html +1 -1
- package/docs/variables/_saltcorn_db_common.multi_tenant.tenantNamespace.html +1 -1
- package/help/Entry point by role.tmd +1 -0
- package/package.json +9 -9
- package/public/saltcorn-common.js +18 -4
- package/public/saltcorn.js +36 -6
- package/routes/admin.js +257 -140
- package/routes/tables.js +2 -2
- package/serve.js +75 -35
- package/tests/admin.test.js +3 -3
- package/tests/auth.test.js +5 -1
- package/wrapper.js +2 -2
package/routes/admin.js
CHANGED
|
@@ -2269,7 +2269,7 @@ router.get(
|
|
|
2269
2269
|
);
|
|
2270
2270
|
const buildDialogScript = (capacitorBuilderAvailable, isSbadmin2) =>
|
|
2271
2271
|
`<script>
|
|
2272
|
-
var capacitorBuilderAvailable = ${capacitorBuilderAvailable};
|
|
2272
|
+
var capacitorBuilderAvailable = ${capacitorBuilderAvailable.installed};
|
|
2273
2273
|
var isSbadmin2 = ${isSbadmin2};
|
|
2274
2274
|
function showEntrySelect(type) {
|
|
2275
2275
|
for( const currentType of ["view", "page", "pagegroup"]) {
|
|
@@ -2305,19 +2305,50 @@ const buildDialogScript = (capacitorBuilderAvailable, isSbadmin2) =>
|
|
|
2305
2305
|
}
|
|
2306
2306
|
else
|
|
2307
2307
|
console.error('versionInput not found');
|
|
2308
|
+
|
|
2309
|
+
const entryByRoleBox = document.getElementById('entryPointByRoleBoxId');
|
|
2310
|
+
if (entryByRoleBox) {
|
|
2311
|
+
entryByRoleBox.addEventListener('change', () => {
|
|
2312
|
+
const entryByRole = entryByRoleBox.checked;
|
|
2313
|
+
const entryRow = document.getElementById('entryPointRowId');
|
|
2314
|
+
const selector = document.getElementById('entrySelectorsId');
|
|
2315
|
+
if (entryByRole) {
|
|
2316
|
+
entryRow.classList.remove('border', 'border-2', 'p-3', 'rounded');
|
|
2317
|
+
selector.classList.add('d-none');
|
|
2318
|
+
}
|
|
2319
|
+
else {
|
|
2320
|
+
entryRow.classList.add('border', 'border-2', 'p-3', 'rounded');
|
|
2321
|
+
selector.classList.remove('d-none');
|
|
2322
|
+
}
|
|
2323
|
+
});
|
|
2324
|
+
} else
|
|
2325
|
+
console.error('entryByRoleBox not found');
|
|
2308
2326
|
`)}
|
|
2309
2327
|
</script>`;
|
|
2310
2328
|
|
|
2311
|
-
const imageAvailable = async () => {
|
|
2329
|
+
const imageAvailable = async (preferedVersion) => {
|
|
2330
|
+
const docker = new Docker();
|
|
2312
2331
|
try {
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
`saltcorn/capacitor-builder:${state.scVersion}`
|
|
2332
|
+
const image = docker.getImage(
|
|
2333
|
+
`saltcorn/capacitor-builder:${preferedVersion}`
|
|
2316
2334
|
);
|
|
2317
2335
|
await image.inspect();
|
|
2318
|
-
return true;
|
|
2336
|
+
return { installed: true, version: preferedVersion };
|
|
2319
2337
|
} catch (e) {
|
|
2320
|
-
|
|
2338
|
+
try {
|
|
2339
|
+
const images = await docker.listImages({
|
|
2340
|
+
filters: { reference: ["saltcorn/capacitor-builder:*"] },
|
|
2341
|
+
});
|
|
2342
|
+
const tags = images.flatMap((img) => img.RepoTags || []);
|
|
2343
|
+
if (tags.length > 0)
|
|
2344
|
+
return { installed: true, version: tags[0].split(":")[1] };
|
|
2345
|
+
} catch (err) {
|
|
2346
|
+
getState().log(
|
|
2347
|
+
5,
|
|
2348
|
+
`Error checking for capacitor-builder image: ${err.message || err}`
|
|
2349
|
+
);
|
|
2350
|
+
}
|
|
2351
|
+
return { installed: false };
|
|
2321
2352
|
}
|
|
2322
2353
|
};
|
|
2323
2354
|
|
|
@@ -2373,13 +2404,15 @@ router.get(
|
|
|
2373
2404
|
.map((plugin) => plugin.name);
|
|
2374
2405
|
const builderSettings =
|
|
2375
2406
|
getState().getConfig("mobile_builder_settings") || {};
|
|
2376
|
-
const
|
|
2407
|
+
const scVersion = getState().scVersion;
|
|
2408
|
+
const dockerAvailable = await imageAvailable(scVersion);
|
|
2377
2409
|
const xcodeCheckRes = await checkXcodebuild();
|
|
2378
2410
|
const xcodebuildAvailable = xcodeCheckRes.installed;
|
|
2379
2411
|
const xcodebuildVersion = xcodeCheckRes.version;
|
|
2380
2412
|
const layout = getState().getLayout(req.user);
|
|
2381
2413
|
const isSbadmin2 = layout === getState().layouts.sbadmin2;
|
|
2382
2414
|
const pushEnabled = getState().getConfig("enable_push_notify", false);
|
|
2415
|
+
const isEntrypointByRole = builderSettings.entryPointByRole === "on";
|
|
2383
2416
|
send_admin_page({
|
|
2384
2417
|
res,
|
|
2385
2418
|
req,
|
|
@@ -2439,152 +2472,188 @@ router.get(
|
|
|
2439
2472
|
)
|
|
2440
2473
|
),
|
|
2441
2474
|
div(
|
|
2442
|
-
{ class: "row" },
|
|
2475
|
+
{ class: "row mb-3" },
|
|
2443
2476
|
div(
|
|
2444
|
-
{
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2477
|
+
{
|
|
2478
|
+
class: `col-sm-4 mt-2 ${isEntrypointByRole ? "" : "border border-2 p-3 rounded"}`,
|
|
2479
|
+
id: "entryPointRowId",
|
|
2480
|
+
},
|
|
2481
|
+
div(
|
|
2482
|
+
{ class: "row pb-2" },
|
|
2483
|
+
div(
|
|
2484
|
+
{ class: "col-sm-6" },
|
|
2485
|
+
input({
|
|
2486
|
+
type: "checkbox",
|
|
2487
|
+
id: "entryPointByRoleBoxId",
|
|
2488
|
+
class: "form-check-input me-2",
|
|
2489
|
+
name: "entryPointByRole",
|
|
2490
|
+
checked: isEntrypointByRole,
|
|
2491
|
+
}),
|
|
2492
|
+
label(
|
|
2454
2493
|
{
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
builderSettings.entryPointType === "view"
|
|
2458
|
-
? "active"
|
|
2459
|
-
: ""
|
|
2460
|
-
}`,
|
|
2461
|
-
id: "viewNavLinkID",
|
|
2494
|
+
for: "entryPointByRole",
|
|
2495
|
+
class: "form-label",
|
|
2462
2496
|
},
|
|
2463
|
-
req.__("
|
|
2497
|
+
req.__("Entry point by role"),
|
|
2498
|
+
a(
|
|
2499
|
+
{
|
|
2500
|
+
href: "javascript:ajax_modal('/admin/help/Entry point by role?')",
|
|
2501
|
+
},
|
|
2502
|
+
i({ class: "fas fa-question-circle ps-1" })
|
|
2503
|
+
)
|
|
2464
2504
|
)
|
|
2465
|
-
)
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2505
|
+
)
|
|
2506
|
+
),
|
|
2507
|
+
// 'view/page/pagegroup' tabs
|
|
2508
|
+
div(
|
|
2509
|
+
{
|
|
2510
|
+
id: "entrySelectorsId",
|
|
2511
|
+
class: isEntrypointByRole ? "d-none" : "",
|
|
2512
|
+
},
|
|
2513
|
+
ul(
|
|
2514
|
+
{ class: "nav nav-pills" },
|
|
2515
|
+
li(
|
|
2472
2516
|
{
|
|
2473
|
-
class:
|
|
2474
|
-
|
|
2475
|
-
? "active"
|
|
2476
|
-
: ""
|
|
2477
|
-
}`,
|
|
2478
|
-
id: "pageNavLinkID",
|
|
2517
|
+
class: "nav-item",
|
|
2518
|
+
onClick: "showEntrySelect('view')",
|
|
2479
2519
|
},
|
|
2480
|
-
|
|
2520
|
+
div(
|
|
2521
|
+
{
|
|
2522
|
+
class: `nav-link ${
|
|
2523
|
+
!builderSettings.entryPointType ||
|
|
2524
|
+
builderSettings.entryPointType === "view"
|
|
2525
|
+
? "active"
|
|
2526
|
+
: ""
|
|
2527
|
+
}`,
|
|
2528
|
+
id: "viewNavLinkID",
|
|
2529
|
+
},
|
|
2530
|
+
req.__("View")
|
|
2531
|
+
)
|
|
2481
2532
|
),
|
|
2482
2533
|
li(
|
|
2483
2534
|
{
|
|
2484
2535
|
class: "nav-item",
|
|
2485
|
-
onClick: "showEntrySelect('
|
|
2536
|
+
onClick: "showEntrySelect('page')",
|
|
2486
2537
|
},
|
|
2487
2538
|
div(
|
|
2488
2539
|
{
|
|
2489
2540
|
class: `nav-link ${
|
|
2490
|
-
builderSettings.entryPointType === "
|
|
2541
|
+
builderSettings.entryPointType === "page"
|
|
2491
2542
|
? "active"
|
|
2492
2543
|
: ""
|
|
2493
2544
|
}`,
|
|
2494
|
-
id: "
|
|
2545
|
+
id: "pageNavLinkID",
|
|
2495
2546
|
},
|
|
2496
|
-
req.__("
|
|
2497
|
-
)
|
|
2498
|
-
|
|
2499
|
-
)
|
|
2500
|
-
),
|
|
2501
|
-
// select entry-view
|
|
2502
|
-
select(
|
|
2503
|
-
{
|
|
2504
|
-
class: `form-select ${
|
|
2505
|
-
builderSettings.entryPointType === "page" ||
|
|
2506
|
-
builderSettings.entryPointType === "pagegroup"
|
|
2507
|
-
? "d-none"
|
|
2508
|
-
: ""
|
|
2509
|
-
}`,
|
|
2510
|
-
...(!builderSettings.entryPointType ||
|
|
2511
|
-
builderSettings.entryPointType === "view"
|
|
2512
|
-
? { name: "entryPoint" }
|
|
2513
|
-
: {}),
|
|
2514
|
-
id: "viewInputID",
|
|
2515
|
-
},
|
|
2516
|
-
views
|
|
2517
|
-
.map((view) =>
|
|
2518
|
-
option(
|
|
2547
|
+
req.__("Page")
|
|
2548
|
+
),
|
|
2549
|
+
li(
|
|
2519
2550
|
{
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
builderSettings.entryPointType === "view" &&
|
|
2523
|
-
builderSettings.entryPoint === view.name,
|
|
2551
|
+
class: "nav-item",
|
|
2552
|
+
onClick: "showEntrySelect('pagegroup')",
|
|
2524
2553
|
},
|
|
2525
|
-
|
|
2554
|
+
div(
|
|
2555
|
+
{
|
|
2556
|
+
class: `nav-link ${
|
|
2557
|
+
builderSettings.entryPointType ===
|
|
2558
|
+
"pagegroup"
|
|
2559
|
+
? "active"
|
|
2560
|
+
: ""
|
|
2561
|
+
}`,
|
|
2562
|
+
id: "pagegroupNavLinkID",
|
|
2563
|
+
},
|
|
2564
|
+
req.__("Pagegroup")
|
|
2565
|
+
)
|
|
2526
2566
|
)
|
|
2527
2567
|
)
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
:
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2568
|
+
),
|
|
2569
|
+
// select entry-view
|
|
2570
|
+
select(
|
|
2571
|
+
{
|
|
2572
|
+
class: `form-select ${
|
|
2573
|
+
builderSettings.entryPointType === "page" ||
|
|
2574
|
+
builderSettings.entryPointType === "pagegroup"
|
|
2575
|
+
? "d-none"
|
|
2576
|
+
: ""
|
|
2577
|
+
}`,
|
|
2578
|
+
...(!builderSettings.entryPointType ||
|
|
2579
|
+
builderSettings.entryPointType === "view"
|
|
2580
|
+
? { name: "entryPoint" }
|
|
2581
|
+
: {}),
|
|
2582
|
+
id: "viewInputID",
|
|
2583
|
+
},
|
|
2584
|
+
views
|
|
2585
|
+
.map((view) =>
|
|
2586
|
+
option(
|
|
2587
|
+
{
|
|
2588
|
+
value: view.name,
|
|
2589
|
+
selected:
|
|
2590
|
+
builderSettings.entryPointType === "view" &&
|
|
2591
|
+
builderSettings.entryPoint === view.name,
|
|
2592
|
+
},
|
|
2593
|
+
view.name
|
|
2594
|
+
)
|
|
2555
2595
|
)
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
:
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
group.name
|
|
2596
|
+
.join(",")
|
|
2597
|
+
),
|
|
2598
|
+
// select entry-page
|
|
2599
|
+
select(
|
|
2600
|
+
{
|
|
2601
|
+
class: `form-select ${
|
|
2602
|
+
!builderSettings.entryPointType ||
|
|
2603
|
+
builderSettings.entryPointType === "view" ||
|
|
2604
|
+
builderSettings.entryPointType === "pagegroup"
|
|
2605
|
+
? "d-none"
|
|
2606
|
+
: ""
|
|
2607
|
+
}`,
|
|
2608
|
+
...(builderSettings.entryPointType === "page"
|
|
2609
|
+
? { name: "entryPoint" }
|
|
2610
|
+
: {}),
|
|
2611
|
+
id: "pageInputID",
|
|
2612
|
+
},
|
|
2613
|
+
pages
|
|
2614
|
+
.map((page) =>
|
|
2615
|
+
option(
|
|
2616
|
+
{
|
|
2617
|
+
value: page.name,
|
|
2618
|
+
selected:
|
|
2619
|
+
builderSettings.entryPointType === "page" &&
|
|
2620
|
+
builderSettings.entryPoint === page.name,
|
|
2621
|
+
},
|
|
2622
|
+
page.name
|
|
2623
|
+
)
|
|
2585
2624
|
)
|
|
2586
|
-
|
|
2587
|
-
|
|
2625
|
+
.join("")
|
|
2626
|
+
),
|
|
2627
|
+
// select entry-pagegroup
|
|
2628
|
+
select(
|
|
2629
|
+
{
|
|
2630
|
+
class: `form-select ${
|
|
2631
|
+
!builderSettings.entryPointType ||
|
|
2632
|
+
builderSettings.entryPointType === "view" ||
|
|
2633
|
+
builderSettings.entryPointType === "page"
|
|
2634
|
+
? "d-none"
|
|
2635
|
+
: ""
|
|
2636
|
+
}`,
|
|
2637
|
+
...(builderSettings.entryPointType === "pagegroup"
|
|
2638
|
+
? { name: "entryPoint" }
|
|
2639
|
+
: {}),
|
|
2640
|
+
id: "pagegroupInputID",
|
|
2641
|
+
},
|
|
2642
|
+
pageGroups
|
|
2643
|
+
.map((group) =>
|
|
2644
|
+
option(
|
|
2645
|
+
{
|
|
2646
|
+
value: group.name,
|
|
2647
|
+
selected:
|
|
2648
|
+
builderSettings.entryPointType ===
|
|
2649
|
+
"pagegroup" &&
|
|
2650
|
+
builderSettings.entryPoint === group.name,
|
|
2651
|
+
},
|
|
2652
|
+
group.name
|
|
2653
|
+
)
|
|
2654
|
+
)
|
|
2655
|
+
.join("")
|
|
2656
|
+
)
|
|
2588
2657
|
)
|
|
2589
2658
|
),
|
|
2590
2659
|
div(
|
|
@@ -3133,15 +3202,58 @@ router.get(
|
|
|
3133
3202
|
id: "dockerBuilderStatusId",
|
|
3134
3203
|
class: "",
|
|
3135
3204
|
},
|
|
3136
|
-
dockerAvailable
|
|
3205
|
+
dockerAvailable.installed &&
|
|
3206
|
+
dockerAvailable.version === scVersion
|
|
3137
3207
|
? span(
|
|
3138
3208
|
req.__("installed"),
|
|
3139
3209
|
i({ class: "ps-2 fas fa-check text-success" })
|
|
3140
3210
|
)
|
|
3141
|
-
:
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3211
|
+
: dockerAvailable.installed
|
|
3212
|
+
? div(
|
|
3213
|
+
{
|
|
3214
|
+
id: "mismatchBoxId",
|
|
3215
|
+
class: "mt-3 p-3 border rounded bg-light",
|
|
3216
|
+
},
|
|
3217
|
+
div(
|
|
3218
|
+
{
|
|
3219
|
+
class: "d-flex align-items-center mb-2",
|
|
3220
|
+
},
|
|
3221
|
+
req.__("installed"),
|
|
3222
|
+
i({
|
|
3223
|
+
title: req.__("Information"),
|
|
3224
|
+
class:
|
|
3225
|
+
"ps-2 fas fa-info-circle text-warning",
|
|
3226
|
+
})
|
|
3227
|
+
),
|
|
3228
|
+
div(
|
|
3229
|
+
{ class: "fw-bold text-danger mb-1" },
|
|
3230
|
+
"Version Mismatch:"
|
|
3231
|
+
),
|
|
3232
|
+
|
|
3233
|
+
ul(
|
|
3234
|
+
{ class: "list-unstyled mb-0" },
|
|
3235
|
+
li(
|
|
3236
|
+
span(
|
|
3237
|
+
{ class: "fw-semibold text-muted" },
|
|
3238
|
+
req.__("Docker tag:")
|
|
3239
|
+
),
|
|
3240
|
+
dockerAvailable.version
|
|
3241
|
+
),
|
|
3242
|
+
li(
|
|
3243
|
+
span(
|
|
3244
|
+
{ class: "fw-semibold text-muted" },
|
|
3245
|
+
req.__("SC version:")
|
|
3246
|
+
),
|
|
3247
|
+
scVersion
|
|
3248
|
+
)
|
|
3249
|
+
)
|
|
3250
|
+
)
|
|
3251
|
+
: span(
|
|
3252
|
+
req.__("not available"),
|
|
3253
|
+
i({
|
|
3254
|
+
class: "ps-2 fas fa-times text-danger",
|
|
3255
|
+
})
|
|
3256
|
+
)
|
|
3145
3257
|
)
|
|
3146
3258
|
),
|
|
3147
3259
|
div(
|
|
@@ -3712,6 +3824,7 @@ router.post(
|
|
|
3712
3824
|
let {
|
|
3713
3825
|
entryPoint,
|
|
3714
3826
|
entryPointType,
|
|
3827
|
+
entryPointByRole,
|
|
3715
3828
|
androidPlatform,
|
|
3716
3829
|
iOSPlatform,
|
|
3717
3830
|
useDocker,
|
|
@@ -3815,10 +3928,12 @@ router.post(
|
|
|
3815
3928
|
await File.new_folder(outDirName, "/mobile_app");
|
|
3816
3929
|
const spawnParams = [
|
|
3817
3930
|
"build-app",
|
|
3818
|
-
"-e",
|
|
3819
|
-
entryPoint,
|
|
3820
3931
|
"-t",
|
|
3821
|
-
|
|
3932
|
+
entryPointByRole
|
|
3933
|
+
? "byrole"
|
|
3934
|
+
: entryPointType === "pagegroup"
|
|
3935
|
+
? "page"
|
|
3936
|
+
: entryPointType,
|
|
3822
3937
|
"-c",
|
|
3823
3938
|
outDir,
|
|
3824
3939
|
"-b",
|
|
@@ -3826,6 +3941,7 @@ router.post(
|
|
|
3826
3941
|
"-u",
|
|
3827
3942
|
req.user.email, // ensured by isAdmin
|
|
3828
3943
|
];
|
|
3944
|
+
if (!entryPointByRole) spawnParams.push("-e", entryPoint);
|
|
3829
3945
|
if (useDocker) spawnParams.push("-d");
|
|
3830
3946
|
if (androidPlatform) spawnParams.push("-p", "android");
|
|
3831
3947
|
if (iOSPlatform) {
|
|
@@ -3997,8 +4113,9 @@ router.get(
|
|
|
3997
4113
|
"/mobile-app/check-capacitor-builder",
|
|
3998
4114
|
isAdmin,
|
|
3999
4115
|
error_catcher(async (req, res) => {
|
|
4000
|
-
const
|
|
4001
|
-
|
|
4116
|
+
const state = getState();
|
|
4117
|
+
const { installed, version } = await imageAvailable(state.scVersion);
|
|
4118
|
+
res.json({ installed, version, sc_version: state.scVersion });
|
|
4002
4119
|
})
|
|
4003
4120
|
);
|
|
4004
4121
|
|
package/routes/tables.js
CHANGED
|
@@ -848,7 +848,7 @@ router.get(
|
|
|
848
848
|
r.typename +
|
|
849
849
|
span({ class: "badge bg-danger ms-1" }, "Unknown type"),
|
|
850
850
|
},
|
|
851
|
-
...(table.external || !user_can_edit_tables
|
|
851
|
+
...(table.external || !user_can_edit_tables || table.provider_name
|
|
852
852
|
? []
|
|
853
853
|
: [
|
|
854
854
|
{
|
|
@@ -865,7 +865,7 @@ router.get(
|
|
|
865
865
|
key: (r) => attribBadges(r),
|
|
866
866
|
},
|
|
867
867
|
{ label: req.__("Variable name"), key: (t) => code(t.name) },
|
|
868
|
-
...(table.external || !user_can_edit_tables
|
|
868
|
+
...(table.external || !user_can_edit_tables || table.provider_name
|
|
869
869
|
? []
|
|
870
870
|
: [
|
|
871
871
|
{
|