@kineticdata/react 5.1.2 → 6.0.1
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/assets/task/icons/drag-handle.svg +3 -0
- package/assets/task/icons/plus_small.svg +2 -4
- package/lib/apis/agent/adapters.js +16 -12
- package/lib/apis/agent/bridges.js +54 -41
- package/lib/apis/agent/handlers.js +51 -38
- package/lib/apis/core/activity.js +19 -11
- package/lib/apis/core/attributeDefinitions.js +54 -46
- package/lib/apis/core/attributeDefinitions.test.js +47 -55
- package/lib/apis/core/authentication.js +58 -63
- package/lib/apis/core/backgroundJobs.js +38 -30
- package/lib/apis/core/bridgeModelAttributeMappings.js +42 -34
- package/lib/apis/core/bridgeModelAttributes.js +47 -37
- package/lib/apis/core/bridgeModelMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualificationMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualifications.js +42 -34
- package/lib/apis/core/bridgeModels.js +56 -46
- package/lib/apis/core/bridgeModels.test.js +64 -80
- package/lib/apis/core/bridgedresources.js +64 -72
- package/lib/apis/core/bridgedresources.test.js +33 -30
- package/lib/apis/core/categories.js +59 -52
- package/lib/apis/core/categories.test.js +36 -33
- package/lib/apis/core/fileResources.js +41 -33
- package/lib/apis/core/filestores.js +42 -34
- package/lib/apis/core/formTypes.js +50 -44
- package/lib/apis/core/forms.js +53 -49
- package/lib/apis/core/forms.test.js +60 -74
- package/lib/apis/core/kapps.js +45 -39
- package/lib/apis/core/kapps.test.js +45 -52
- package/lib/apis/core/logs.js +20 -16
- package/lib/apis/core/memberships.js +23 -20
- package/lib/apis/core/meta.js +31 -19
- package/lib/apis/core/notices.js +17 -9
- package/lib/apis/core/oauthClients.js +49 -45
- package/lib/apis/core/platformComponents.js +73 -57
- package/lib/apis/core/platformItems.js +22 -13
- package/lib/apis/core/profile.js +28 -21
- package/lib/apis/core/profile.test.js +20 -17
- package/lib/apis/core/securityPolicyDefinitions.js +48 -41
- package/lib/apis/core/securityPolicyDefinitions.test.js +50 -60
- package/lib/apis/core/space.js +23 -16
- package/lib/apis/core/space.test.js +31 -38
- package/lib/apis/core/submissions.js +213 -186
- package/lib/apis/core/submissions.test.js +39 -36
- package/lib/apis/core/teams.js +51 -44
- package/lib/apis/core/teams.test.js +42 -39
- package/lib/apis/core/translations.js +123 -130
- package/lib/apis/core/translations.test.js +278 -368
- package/lib/apis/core/users.js +56 -49
- package/lib/apis/core/users.test.js +42 -39
- package/lib/apis/core/version.js +20 -11
- package/lib/apis/core/webApis.js +42 -34
- package/lib/apis/core/webhooks.js +48 -41
- package/lib/apis/core/webhooks.test.js +50 -60
- package/lib/apis/core/webhooksJobs.js +30 -26
- package/lib/apis/core/workflows.js +52 -44
- package/lib/apis/http.js +121 -80
- package/lib/apis/http.test.js +137 -38
- package/lib/apis/index.js +506 -50
- package/lib/apis/system/index.js +363 -215
- package/lib/apis/task/index.js +294 -227
- package/lib/components/agent/bridge/BridgeForm.js +50 -50
- package/lib/components/agent/bridge/BridgeTable.js +16 -9
- package/lib/components/agent/filestore/FilestoreForm.js +49 -48
- package/lib/components/agent/filestore/FilestoreTable.js +16 -9
- package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
- package/lib/components/agent/handler/AgentHandlerTable.js +17 -10
- package/lib/components/common/AttributeSelect.js +15 -9
- package/lib/components/common/BridgeSelect.js +48 -43
- package/lib/components/common/ComponentConfigContext.js +9 -2
- package/lib/components/common/ContentEditable.js +36 -60
- package/lib/components/common/FormSelect.js +70 -58
- package/lib/components/common/NodeSelect.js +23 -19
- package/lib/components/common/Scroller.js +24 -23
- package/lib/components/common/StaticSelect.js +57 -50
- package/lib/components/common/TableInput.js +54 -57
- package/lib/components/common/TeamSelect.js +42 -39
- package/lib/components/common/ToastContainer.js +170 -0
- package/lib/components/common/Typeahead.js +121 -138
- package/lib/components/common/UserSelect.js +42 -41
- package/lib/components/common/authentication/AuthInterceptor.js +15 -19
- package/lib/components/common/authentication/AuthInterceptor.test.js +46 -64
- package/lib/components/common/authentication/AuthenticationContainer.js +350 -454
- package/lib/components/common/authentication/RequestInterceptor.js +16 -19
- package/lib/components/common/code_input/CodeInput.js +92 -122
- package/lib/components/common/code_input/draftHelpers.js +96 -90
- package/lib/components/common/code_input/languageHelpers.js +49 -47
- package/lib/components/common/code_input/languageHelpers.test.js +21 -16
- package/lib/components/common/defaults/Toast.js +26 -0
- package/lib/components/common/defaults/index.js +13 -0
- package/lib/components/core/CoreFormModal.js +26 -24
- package/lib/components/core/CoreModal.js +37 -31
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +24 -23
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +25 -18
- package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
- package/lib/components/core/bridge_model/BridgeModelTable.js +17 -10
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +17 -16
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +25 -21
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +20 -20
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +27 -22
- package/lib/components/core/category/CategoryForm.js +22 -22
- package/lib/components/core/category/CategoryTable.js +28 -16
- package/lib/components/core/core_form/CoreForm.js +209 -285
- package/lib/components/core/core_form/CoreForm.test.js +12 -10
- package/lib/components/core/core_form/defaults/index.js +52 -44
- package/lib/components/core/core_form/globals.js +14 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +23 -21
- package/lib/components/core/field_definition/FieldDefinitionTable.js +26 -15
- package/lib/components/core/file_resource/FileResourceForm.js +38 -37
- package/lib/components/core/file_resource/FileResourceTable.js +16 -12
- package/lib/components/core/form/FormForm.js +56 -61
- package/lib/components/core/form/FormTable.js +47 -33
- package/lib/components/core/form_type/FormTypeForm.js +14 -13
- package/lib/components/core/form_type/FormTypeTable.js +15 -9
- package/lib/components/core/i18n/I18n.js +54 -61
- package/lib/components/core/i18n/I18nContext.js +9 -2
- package/lib/components/core/i18n/I18nProvider.js +40 -43
- package/lib/components/core/i18n/Moment.js +40 -50
- package/lib/components/core/index_definition/IndexDefinitionForm.js +23 -24
- package/lib/components/core/index_definition/IndexDefinitionTable.js +31 -16
- package/lib/components/core/index_job/IndexJobTable.js +20 -15
- package/lib/components/core/kapp/KappForm.js +57 -58
- package/lib/components/core/kapp/KappTable.js +34 -44
- package/lib/components/core/log/LogTable.js +42 -34
- package/lib/components/core/oauth_client/OAuthClientForm.js +17 -17
- package/lib/components/core/oauth_client/OAuthClientTable.js +12 -8
- package/lib/components/core/platform_component/AgentComponentForm.js +15 -15
- package/lib/components/core/platform_component/AgentComponentTable.js +10 -5
- package/lib/components/core/platform_component/TaskComponentForm.js +14 -14
- package/lib/components/core/profile/ProfileForm.js +40 -39
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +28 -25
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +27 -17
- package/lib/components/core/space/SpaceForm.js +79 -90
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +39 -40
- package/lib/components/core/submission/DatastoreSubmissionTable.js +37 -34
- package/lib/components/core/submission/FormSubmissionFilters.js +79 -75
- package/lib/components/core/submission/FormSubmissionTable.js +64 -39
- package/lib/components/core/submission/KappSubmissionTable.js +67 -48
- package/lib/components/core/submission/SubmissionForm.js +126 -55
- package/lib/components/core/submission/SubmissionTable.js +24 -20
- package/lib/components/core/submission/helpers.js +37 -33
- package/lib/components/core/submission/helpers.test.js +69 -20
- package/lib/components/core/team/TeamForm.js +24 -21
- package/lib/components/core/team/TeamTable.js +27 -16
- package/lib/components/core/translation/ContextForm.js +13 -10
- package/lib/components/core/translation/ContextTable.js +13 -10
- package/lib/components/core/translation/EntryForm.js +27 -24
- package/lib/components/core/translation/EntryTable.js +19 -16
- package/lib/components/core/translation/LocaleForm.js +16 -13
- package/lib/components/core/translation/LocaleTable.js +12 -8
- package/lib/components/core/user/UserForm.js +38 -37
- package/lib/components/core/user/UserTable.js +42 -20
- package/lib/components/core/webapi/WebApiForm.js +87 -80
- package/lib/components/core/webapi/WebApiTable.js +28 -17
- package/lib/components/core/webhook/WebhookForm.js +33 -32
- package/lib/components/core/webhook/WebhookTable.js +41 -29
- package/lib/components/core/webhook_job/WebhookJobTable.js +58 -35
- package/lib/components/form/Form.helpers.js +182 -108
- package/lib/components/form/Form.js +467 -524
- package/lib/components/form/Form.models.js +39 -24
- package/lib/components/form/FormState.js +8 -5
- package/lib/components/form/KitchenSinkForm.js +135 -4
- package/lib/components/form/defaults/AttributesField.js +48 -59
- package/lib/components/form/defaults/CheckboxField.js +14 -6
- package/lib/components/form/defaults/CodeField.js +15 -7
- package/lib/components/form/defaults/FormButtons.js +12 -4
- package/lib/components/form/defaults/FormError.js +12 -4
- package/lib/components/form/defaults/FormField.js +15 -7
- package/lib/components/form/defaults/FormLayout.js +12 -4
- package/lib/components/form/defaults/FormMultiField.js +15 -7
- package/lib/components/form/defaults/PasswordField.js +14 -6
- package/lib/components/form/defaults/RadioField.js +15 -7
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +17 -9
- package/lib/components/form/defaults/SelectField.js +16 -8
- package/lib/components/form/defaults/SelectMultiField.js +15 -7
- package/lib/components/form/defaults/TableField.js +14 -6
- package/lib/components/form/defaults/TeamField.js +15 -7
- package/lib/components/form/defaults/TeamMultiField.js +15 -7
- package/lib/components/form/defaults/TextField.js +14 -6
- package/lib/components/form/defaults/TextMultiField.js +26 -28
- package/lib/components/form/defaults/UserField.js +15 -7
- package/lib/components/form/defaults/UserMultiField.js +15 -7
- package/lib/components/form/defaults/index.js +48 -41
- package/lib/components/form/tests/Form.test.js +568 -864
- package/lib/components/form/tests/components.js +15 -25
- package/lib/components/form/tests/helpers.test.js +35 -33
- package/lib/components/index.js +1034 -135
- package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
- package/lib/components/system/SystemCassandraForm.js +98 -0
- package/lib/components/system/SystemElasticSearchForm.js +98 -0
- package/lib/components/system/SystemFilestoreForm.js +36 -28
- package/lib/components/system/SystemForm.js +19 -16
- package/lib/components/system/SystemIngressForm.js +85 -36
- package/lib/components/system/SystemSecurityForm.js +17 -14
- package/lib/components/system/SystemSmtpForm.js +13 -13
- package/lib/components/system/SystemTaskAdapterForm.js +49 -21
- package/lib/components/system/SystemTrustedCertificateForm.js +40 -0
- package/lib/components/system/SystemTrustedCertificatesTable.js +74 -0
- package/lib/components/system/SystemUserForm.js +15 -14
- package/lib/components/system/helpers.js +281 -98
- package/lib/components/system/helpers.test.js +16 -12
- package/lib/components/system/spaces/SystemSpaceForm.js +25 -24
- package/lib/components/system/spaces/SystemTenantForm.js +112 -68
- package/lib/components/system/spaces/SystemTenantTable.js +12 -8
- package/lib/components/table/Table.js +295 -227
- package/lib/components/table/Table.redux.js +339 -355
- package/lib/components/table/Table.redux.test.js +49 -47
- package/lib/components/table/Table.test.js +146 -132
- package/lib/components/table/defaults/BodyCell.js +12 -6
- package/lib/components/table/defaults/BodyRow.js +10 -4
- package/lib/components/table/defaults/BooleanFilter.js +17 -11
- package/lib/components/table/defaults/ColumnControl.js +26 -0
- package/lib/components/table/defaults/EmptyBodyRow.js +12 -6
- package/lib/components/table/defaults/FilterLayout.js +17 -11
- package/lib/components/table/defaults/Footer.js +11 -5
- package/lib/components/table/defaults/FooterCell.js +10 -4
- package/lib/components/table/defaults/FooterRow.js +10 -4
- package/lib/components/table/defaults/Header.js +10 -4
- package/lib/components/table/defaults/HeaderCell.js +16 -10
- package/lib/components/table/defaults/HeaderRow.js +10 -4
- package/lib/components/table/defaults/PaginationControl.js +18 -9
- package/lib/components/table/defaults/TableBody.js +10 -4
- package/lib/components/table/defaults/TableLayout.js +12 -6
- package/lib/components/table/defaults/TextFilter.js +16 -10
- package/lib/components/table/defaults/index.js +43 -33
- package/lib/components/task/builder/Connector.js +100 -111
- package/lib/components/task/builder/ConnectorForm.js +17 -11
- package/lib/components/task/builder/Node.js +101 -83
- package/lib/components/task/builder/NodeForm.js +30 -27
- package/lib/components/task/builder/NodeParametersForm.js +27 -24
- package/lib/components/task/builder/SvgCanvas.js +67 -96
- package/lib/components/task/builder/SvgText.js +19 -134
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +27 -22
- package/lib/components/task/builder/TreeBuilder.js +140 -115
- package/lib/components/task/builder/builder.redux.js +311 -326
- package/lib/components/task/builder/constants.js +94 -45
- package/lib/components/task/builder/helpers.js +184 -173
- package/lib/components/task/builder/helpers.test.js +20 -18
- package/lib/components/task/builder/models.js +121 -98
- package/lib/components/task/category/TaskCategoryForm.js +31 -29
- package/lib/components/task/category/TaskCategoryTable.js +12 -8
- package/lib/components/task/common/UsageTable.js +16 -12
- package/lib/components/task/engine/EngineSettingsForm.js +13 -11
- package/lib/components/task/errors/RunErrorTable.js +50 -27
- package/lib/components/task/errors/SystemErrorsTable.js +13 -9
- package/lib/components/task/handlers/HandlerForm.js +55 -55
- package/lib/components/task/handlers/HandlerTable.js +35 -19
- package/lib/components/task/handlers/MissingHandlerTable.js +12 -8
- package/lib/components/task/policy_rule/PolicyRuleForm.js +33 -32
- package/lib/components/task/policy_rule/PolicyRuleTable.js +12 -8
- package/lib/components/task/runs/CreateManualTriggerForm.js +17 -15
- package/lib/components/task/runs/RunTable.js +45 -29
- package/lib/components/task/runs/RunTaskTable.js +10 -6
- package/lib/components/task/sources/SourceForm.js +47 -47
- package/lib/components/task/sources/SourceTable.js +29 -18
- package/lib/components/task/triggers/TriggerTable.js +71 -41
- package/lib/components/task/workflows/LinkedWorkflowForm.js +48 -54
- package/lib/components/task/workflows/LinkedWorkflowTable.js +46 -26
- package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
- package/lib/components/task/workflows/WorkflowForm.js +49 -44
- package/lib/components/task/workflows/WorkflowTable.js +47 -29
- package/lib/helpers/SearchBuilder.js +73 -127
- package/lib/helpers/SearchBuilder.test.js +184 -175
- package/lib/helpers/index.js +116 -74
- package/lib/index.js +87 -38
- package/lib/reducer.js +11 -3
- package/lib/saga.js +42 -38
- package/lib/store.js +59 -35
- package/package.json +17 -29
- package/proxyhelper.js +122 -57
- package/assets/discussions/images/avi_128.png +0 -0
- package/assets/discussions/images/excel_128.png +0 -0
- package/assets/discussions/images/html_128.png +0 -0
- package/assets/discussions/images/illustrator_128.png +0 -0
- package/assets/discussions/images/indesign_128.png +0 -0
- package/assets/discussions/images/movie_128.png +0 -0
- package/assets/discussions/images/mpeg_128.png +0 -0
- package/assets/discussions/images/pdf_128.png +0 -0
- package/assets/discussions/images/photoshop_128.png +0 -0
- package/assets/discussions/images/powerpoint_128.png +0 -0
- package/assets/discussions/images/txt_128.png +0 -0
- package/assets/discussions/images/unknown_128.png +0 -0
- package/assets/discussions/images/word_128.png +0 -0
- package/assets/discussions/styles/_discussion.scss +0 -506
- package/lib/apis/discussions/index.js +0 -395
- package/lib/apis/socket/index.js +0 -77
- package/lib/apis/socket/socket.js +0 -350
- package/lib/apis/socket/socket.test.js +0 -90
- package/lib/apis/socket/timer.js +0 -45
- package/lib/apis/socket/timer.test.js +0 -51
- package/lib/apis/socket/topic.js +0 -185
- package/lib/apis/topics/index.js +0 -19
- package/lib/components/discussions/ChatInputForm.js +0 -424
- package/lib/components/discussions/DateBanner.js +0 -10
- package/lib/components/discussions/Discussion.js +0 -202
- package/lib/components/discussions/DiscussionForm.js +0 -227
- package/lib/components/discussions/InvitationForm.js +0 -107
- package/lib/components/discussions/MessageHistory.js +0 -110
- package/lib/components/discussions/MessagesByDate.js +0 -40
- package/lib/components/discussions/MessagesList.js +0 -30
- package/lib/components/discussions/MoreMessagesBanner.js +0 -26
- package/lib/components/discussions/ScrollHelper.js +0 -84
- package/lib/components/discussions/SystemMessage.js +0 -88
- package/lib/components/discussions/SystemMessageGroup.js +0 -15
- package/lib/components/discussions/UserMessage.js +0 -163
- package/lib/components/discussions/UserMessageGroup.js +0 -34
- package/lib/components/discussions/redux.js +0 -178
- package/lib/components/discussions/sagas.js +0 -500
- package/lib/helpers/discussions/canManage.js +0 -30
- package/lib/helpers/discussions/canManage.test.js +0 -69
- package/lib/helpers/discussions/generateSystemMessageContent.js +0 -131
- package/lib/helpers/discussions/generateSystemMessageContent.test.js +0 -450
- package/lib/models/discussions.js +0 -76
- package/lib/models/index.js +0 -1
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateTable } from '../../table/Table';
|
|
3
|
-
import { fetchKapps } from '../../../apis';
|
|
4
|
-
import { defineKqlQuery } from '../../../helpers';
|
|
5
|
-
import { generatePaginationParams, generateSortParams } from '../../../apis/http';
|
|
6
|
-
var kappQuery = defineKqlQuery().matches('name', 'name').matches('slug', 'slug').end();
|
|
1
|
+
"use strict";
|
|
7
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.KappTable = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _Table = require("../../table/Table");
|
|
10
|
+
var _apis = require("../../../apis");
|
|
11
|
+
var _helpers = require("../../../helpers");
|
|
12
|
+
var _http = require("../../../apis/http");
|
|
13
|
+
var kappQuery = (0, _helpers.defineKqlQuery)().matches('name', 'name').matches('slug', 'slug').end();
|
|
8
14
|
var dataSource = function dataSource() {
|
|
9
15
|
return {
|
|
10
|
-
fn: fetchKapps,
|
|
16
|
+
fn: _apis.fetchKapps,
|
|
11
17
|
params: function params(paramData) {
|
|
12
|
-
return [
|
|
18
|
+
return [(0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({
|
|
13
19
|
include: 'details'
|
|
14
|
-
}, generateSortParams(paramData)), generatePaginationParams(paramData)), {}, {
|
|
20
|
+
}, (0, _http.generateSortParams)(paramData)), (0, _http.generatePaginationParams)(paramData)), {}, {
|
|
15
21
|
q: kappQuery(paramData.filters.toJS())
|
|
16
22
|
})];
|
|
17
23
|
},
|
|
@@ -23,7 +29,6 @@ var dataSource = function dataSource() {
|
|
|
23
29
|
}
|
|
24
30
|
};
|
|
25
31
|
};
|
|
26
|
-
|
|
27
32
|
var filters = function filters() {
|
|
28
33
|
return function () {
|
|
29
34
|
return [{
|
|
@@ -37,63 +42,48 @@ var filters = function filters() {
|
|
|
37
42
|
}];
|
|
38
43
|
};
|
|
39
44
|
};
|
|
40
|
-
|
|
41
45
|
var columns = [{
|
|
42
46
|
value: 'name',
|
|
43
47
|
title: 'Name',
|
|
44
|
-
sortable: true
|
|
48
|
+
sortable: true,
|
|
49
|
+
toggleable: false,
|
|
50
|
+
columnOrder: 'first'
|
|
45
51
|
}, {
|
|
46
52
|
value: 'slug',
|
|
47
53
|
title: 'Slug',
|
|
48
|
-
sortable: true
|
|
54
|
+
sortable: true,
|
|
55
|
+
toggleable: true
|
|
49
56
|
}, {
|
|
50
57
|
value: 'CreatedAt',
|
|
51
58
|
title: 'Created',
|
|
52
|
-
sortable: true
|
|
59
|
+
sortable: true,
|
|
60
|
+
toggleable: true
|
|
53
61
|
}, {
|
|
54
62
|
value: 'createdBy',
|
|
55
|
-
title: 'Created By'
|
|
63
|
+
title: 'Created By',
|
|
64
|
+
toggleable: true
|
|
56
65
|
}, {
|
|
57
66
|
value: 'updatedAt',
|
|
58
67
|
title: 'Updated',
|
|
59
|
-
sortable: true
|
|
68
|
+
sortable: true,
|
|
69
|
+
toggleable: true
|
|
60
70
|
}, {
|
|
61
71
|
value: 'updatedBy',
|
|
62
|
-
title: 'Updated By'
|
|
63
|
-
|
|
64
|
-
value: 'resetPasswordPage',
|
|
65
|
-
title: 'Reset Password Page'
|
|
72
|
+
title: 'Updated By',
|
|
73
|
+
toggleable: true
|
|
66
74
|
}, {
|
|
67
75
|
value: 'afterLogoutPath',
|
|
68
|
-
title: 'After Logout Path'
|
|
69
|
-
|
|
70
|
-
value: 'bundlePath',
|
|
71
|
-
title: 'Bundle Path'
|
|
72
|
-
}, {
|
|
73
|
-
value: 'defaultFormConfirmationPage',
|
|
74
|
-
title: 'Form Confirmation Page'
|
|
75
|
-
}, {
|
|
76
|
-
value: 'defaultFormDisplayPage',
|
|
77
|
-
title: 'Form Display Page'
|
|
76
|
+
title: 'After Logout Path',
|
|
77
|
+
toggleable: true
|
|
78
78
|
}, {
|
|
79
79
|
value: 'defaultSubmissionLabelExpression',
|
|
80
|
-
title: 'Default Submission Label'
|
|
81
|
-
|
|
82
|
-
value: 'displayType',
|
|
83
|
-
title: 'Display Type'
|
|
84
|
-
}, {
|
|
85
|
-
value: 'displayValue',
|
|
86
|
-
title: 'Display Value'
|
|
87
|
-
}, {
|
|
88
|
-
value: 'loginPage',
|
|
89
|
-
title: 'Login Page'
|
|
90
|
-
}, {
|
|
91
|
-
value: 'resetPasswordPage',
|
|
92
|
-
title: 'Reset Password Page'
|
|
80
|
+
title: 'Default Submission Label',
|
|
81
|
+
toggleable: true
|
|
93
82
|
}];
|
|
94
|
-
|
|
83
|
+
var KappTable = (0, _Table.generateTable)({
|
|
95
84
|
columns: columns,
|
|
96
85
|
filters: filters,
|
|
97
86
|
dataSource: dataSource
|
|
98
87
|
});
|
|
88
|
+
exports.KappTable = KappTable;
|
|
99
89
|
KappTable.displayName = 'KappTable';
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.generateLogQuery = exports.LogTable = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _Table = require("../../table/Table");
|
|
10
|
+
var _apis = require("../../../apis");
|
|
11
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
4
12
|
var EXCLUDED_FILTERS = ['startTime', 'endTime', 'timestampPreset'];
|
|
5
|
-
|
|
13
|
+
var generateLogQuery = function generateLogQuery(appliedFilters) {
|
|
6
14
|
var filters = JSON.stringify(appliedFilters.filter(function (_v, k) {
|
|
7
15
|
return !EXCLUDED_FILTERS.includes(k);
|
|
8
16
|
}).filter(function (filter) {
|
|
@@ -11,40 +19,38 @@ export var generateLogQuery = function generateLogQuery(appliedFilters) {
|
|
|
11
19
|
var q = filters === '{}' ? undefined : filters;
|
|
12
20
|
var preset = appliedFilters.get('timestampPreset');
|
|
13
21
|
var startDate, endDate;
|
|
14
|
-
|
|
15
22
|
if (preset && preset !== 'custom') {
|
|
16
23
|
var minutes = Number.parseInt(preset, 10);
|
|
17
|
-
startDate =
|
|
24
|
+
startDate = (0, _moment["default"])().subtract(minutes, 'minutes').format();
|
|
18
25
|
endDate = '';
|
|
19
26
|
} else {
|
|
20
27
|
startDate = appliedFilters.get('startTime', '');
|
|
21
28
|
endDate = appliedFilters.get('endTime', '');
|
|
22
29
|
}
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
var end = endDate === '' ? moment().toISOString() : moment(endDate).toISOString();
|
|
30
|
+
var start = startDate === '' && endDate === '' ? (0, _moment["default"])().subtract(60, 'minutes').toISOString() : startDate === '' && endDate !== '' ? (0, _moment["default"])(endDate).subtract(60, 'minutes').toISOString() : (0, _moment["default"])(startDate).toISOString();
|
|
31
|
+
var end = endDate === '' ? (0, _moment["default"])().toISOString() : (0, _moment["default"])(endDate).toISOString();
|
|
26
32
|
return {
|
|
27
33
|
q: q,
|
|
28
34
|
start: start,
|
|
29
35
|
end: end
|
|
30
36
|
};
|
|
31
37
|
};
|
|
32
|
-
|
|
38
|
+
exports.generateLogQuery = generateLogQuery;
|
|
33
39
|
var dataSource = function dataSource() {
|
|
34
40
|
return {
|
|
35
|
-
fn: fetchLogs,
|
|
41
|
+
fn: _apis.fetchLogs,
|
|
36
42
|
params: function params(paramData) {
|
|
37
43
|
var _generateLogQuery = generateLogQuery(paramData.filters),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
q = _generateLogQuery.q,
|
|
45
|
+
start = _generateLogQuery.start,
|
|
46
|
+
end = _generateLogQuery.end;
|
|
42
47
|
var fetchParams = [{
|
|
43
48
|
q: q,
|
|
44
49
|
limit: paramData.pageSize,
|
|
45
50
|
nextPageToken: paramData.nextPageToken,
|
|
46
51
|
start: start,
|
|
47
|
-
end: end
|
|
52
|
+
end: end,
|
|
53
|
+
tail: true
|
|
48
54
|
}];
|
|
49
55
|
return fetchParams;
|
|
50
56
|
},
|
|
@@ -58,7 +64,6 @@ var dataSource = function dataSource() {
|
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
66
|
};
|
|
61
|
-
|
|
62
67
|
var APP_COMPONENT_OPTIONS = ['agent', 'core', 'loghub', 'task'].map(function (component) {
|
|
63
68
|
return {
|
|
64
69
|
label: component,
|
|
@@ -87,7 +92,6 @@ var TIMESTAMP_PRESET_OPTIONS = [{
|
|
|
87
92
|
label: 'Custom',
|
|
88
93
|
value: 'custom'
|
|
89
94
|
}];
|
|
90
|
-
|
|
91
95
|
var filters = function filters() {
|
|
92
96
|
return function () {
|
|
93
97
|
return [{
|
|
@@ -141,7 +145,6 @@ var filters = function filters() {
|
|
|
141
145
|
onChange: function onChange(_ref3, _ref4) {
|
|
142
146
|
var values = _ref3.values;
|
|
143
147
|
var setValue = _ref4.setValue;
|
|
144
|
-
|
|
145
148
|
if (values.get('timestampPreset') !== 'custom') {
|
|
146
149
|
setValue('startTime', '');
|
|
147
150
|
setValue('endTime', '');
|
|
@@ -150,8 +153,20 @@ var filters = function filters() {
|
|
|
150
153
|
}];
|
|
151
154
|
};
|
|
152
155
|
};
|
|
153
|
-
|
|
154
156
|
var columns = [{
|
|
157
|
+
value: 'timestamp',
|
|
158
|
+
title: 'Timestamp',
|
|
159
|
+
sortable: false,
|
|
160
|
+
toggleable: false
|
|
161
|
+
}, {
|
|
162
|
+
value: 'message',
|
|
163
|
+
title: 'Message',
|
|
164
|
+
sortable: false
|
|
165
|
+
}, {
|
|
166
|
+
value: 'level',
|
|
167
|
+
title: 'Level',
|
|
168
|
+
sortable: false
|
|
169
|
+
}, {
|
|
155
170
|
value: 'app.component',
|
|
156
171
|
title: 'Component',
|
|
157
172
|
sortable: false
|
|
@@ -243,24 +258,17 @@ var columns = [{
|
|
|
243
258
|
value: 'k8s.pod',
|
|
244
259
|
title: 'Pod',
|
|
245
260
|
sortable: false
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
title: 'Message',
|
|
253
|
-
sortable: false
|
|
254
|
-
}, {
|
|
255
|
-
value: 'timestamp',
|
|
256
|
-
title: 'Timestamp',
|
|
257
|
-
sortable: false
|
|
258
|
-
}];
|
|
259
|
-
export var LogTable = generateTable({
|
|
261
|
+
}].map(function (column) {
|
|
262
|
+
return (0, _objectSpread2["default"])({
|
|
263
|
+
toggleable: true
|
|
264
|
+
}, column);
|
|
265
|
+
});
|
|
266
|
+
var LogTable = (0, _Table.generateTable)({
|
|
260
267
|
columns: columns,
|
|
261
268
|
dataSource: dataSource,
|
|
262
269
|
filters: filters
|
|
263
270
|
});
|
|
271
|
+
exports.LogTable = LogTable;
|
|
264
272
|
LogTable.displayName = 'LogTable';
|
|
265
273
|
LogTable.columns = columns.map(function (c) {
|
|
266
274
|
return c.value;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateForm } from '../../form/Form';
|
|
3
|
-
import { fetchOAuthClient, createOAuthClient, updateOAuthClient } from '../../../apis';
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OAuthClientForm = void 0;
|
|
7
|
+
var _immutable = require("immutable");
|
|
8
|
+
var _Form = require("../../form/Form");
|
|
9
|
+
var _apis = require("../../../apis");
|
|
5
10
|
var dataSources = function dataSources(_ref) {
|
|
6
11
|
var clientId = _ref.clientId;
|
|
7
12
|
return {
|
|
8
13
|
client: {
|
|
9
|
-
fn: fetchOAuthClient,
|
|
14
|
+
fn: _apis.fetchOAuthClient,
|
|
10
15
|
params: clientId && [{
|
|
11
16
|
clientId: clientId
|
|
12
17
|
}],
|
|
@@ -16,26 +21,22 @@ var dataSources = function dataSources(_ref) {
|
|
|
16
21
|
}
|
|
17
22
|
};
|
|
18
23
|
};
|
|
19
|
-
|
|
20
24
|
var handleSubmit = function handleSubmit(_ref2) {
|
|
21
25
|
var clientId = _ref2.clientId;
|
|
22
26
|
return function (values) {
|
|
23
|
-
return (clientId ? updateOAuthClient : createOAuthClient)({
|
|
27
|
+
return (clientId ? _apis.updateOAuthClient : _apis.createOAuthClient)({
|
|
24
28
|
clientId: clientId,
|
|
25
29
|
client: values.toJS()
|
|
26
30
|
}).then(function (_ref3) {
|
|
27
31
|
var client = _ref3.client,
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
error = _ref3.error;
|
|
30
33
|
if (error) {
|
|
31
34
|
throw error.statusCode === 400 && error.message || 'There was an error saving the OAuth Client';
|
|
32
35
|
}
|
|
33
|
-
|
|
34
36
|
return client;
|
|
35
37
|
});
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
|
-
|
|
39
40
|
var fields = function fields(_ref4) {
|
|
40
41
|
var clientId = _ref4.clientId;
|
|
41
42
|
return function (_ref5) {
|
|
@@ -45,19 +46,19 @@ var fields = function fields(_ref4) {
|
|
|
45
46
|
label: 'Name',
|
|
46
47
|
type: 'text',
|
|
47
48
|
required: true,
|
|
48
|
-
initialValue: get(client, 'name') || ''
|
|
49
|
+
initialValue: (0, _immutable.get)(client, 'name') || ''
|
|
49
50
|
}, {
|
|
50
51
|
name: 'description',
|
|
51
52
|
label: 'Description',
|
|
52
53
|
type: 'text',
|
|
53
54
|
required: false,
|
|
54
|
-
initialValue: get(client, 'description') || ''
|
|
55
|
+
initialValue: (0, _immutable.get)(client, 'description') || ''
|
|
55
56
|
}, {
|
|
56
57
|
name: 'clientId',
|
|
57
58
|
label: 'Client ID',
|
|
58
59
|
type: 'text',
|
|
59
60
|
required: true,
|
|
60
|
-
initialValue: get(client, 'clientId') || '',
|
|
61
|
+
initialValue: (0, _immutable.get)(client, 'clientId') || '',
|
|
61
62
|
helpText: 'A unique identifier for this client'
|
|
62
63
|
}, {
|
|
63
64
|
name: 'clientSecret',
|
|
@@ -86,7 +87,6 @@ var fields = function fields(_ref4) {
|
|
|
86
87
|
onChange: function onChange(_ref9, _ref10) {
|
|
87
88
|
var values = _ref9.values;
|
|
88
89
|
var setValue = _ref10.setValue;
|
|
89
|
-
|
|
90
90
|
if (values.get('clientSecret') !== '') {
|
|
91
91
|
setValue('clientSecret', '');
|
|
92
92
|
}
|
|
@@ -96,16 +96,16 @@ var fields = function fields(_ref4) {
|
|
|
96
96
|
label: 'Redirect URI',
|
|
97
97
|
type: 'text',
|
|
98
98
|
required: true,
|
|
99
|
-
initialValue: get(client, 'redirectUri') || '',
|
|
99
|
+
initialValue: (0, _immutable.get)(client, 'redirectUri') || '',
|
|
100
100
|
helpText: 'Identifier or location of OAuth callback'
|
|
101
101
|
}];
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
export var OAuthClientForm = generateForm({
|
|
104
|
+
var OAuthClientForm = (0, _Form.generateForm)({
|
|
106
105
|
formOptions: ['clientId'],
|
|
107
106
|
dataSources: dataSources,
|
|
108
107
|
fields: fields,
|
|
109
108
|
handleSubmit: handleSubmit
|
|
110
109
|
});
|
|
110
|
+
exports.OAuthClientForm = OAuthClientForm;
|
|
111
111
|
OAuthClientForm.displayName = 'OAuthClientForm';
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { fetchOAuthClients } from '../../../apis';
|
|
3
|
-
import { defineFilter } from '../../../helpers';
|
|
4
|
-
var clientSide = defineFilter(true).startsWith('name', 'name').end();
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OAuthClientTable = void 0;
|
|
7
|
+
var _Table = require("../../table/Table");
|
|
8
|
+
var _apis = require("../../../apis");
|
|
9
|
+
var _helpers = require("../../../helpers");
|
|
10
|
+
var clientSide = (0, _helpers.defineFilter)(true).startsWith('name', 'name').end();
|
|
6
11
|
var dataSource = function dataSource() {
|
|
7
12
|
return {
|
|
8
|
-
fn: fetchOAuthClients,
|
|
13
|
+
fn: _apis.fetchOAuthClients,
|
|
9
14
|
clientSide: clientSide,
|
|
10
15
|
params: function params() {
|
|
11
16
|
return [];
|
|
@@ -17,7 +22,6 @@ var dataSource = function dataSource() {
|
|
|
17
22
|
}
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
|
|
21
25
|
var filters = function filters() {
|
|
22
26
|
return function () {
|
|
23
27
|
return [{
|
|
@@ -27,7 +31,6 @@ var filters = function filters() {
|
|
|
27
31
|
}];
|
|
28
32
|
};
|
|
29
33
|
};
|
|
30
|
-
|
|
31
34
|
var columns = [{
|
|
32
35
|
value: 'clientId',
|
|
33
36
|
title: 'Client ID',
|
|
@@ -45,9 +48,10 @@ var columns = [{
|
|
|
45
48
|
title: 'Redirect URI',
|
|
46
49
|
sortable: true
|
|
47
50
|
}];
|
|
48
|
-
|
|
51
|
+
var OAuthClientTable = (0, _Table.generateTable)({
|
|
49
52
|
columns: columns,
|
|
50
53
|
filters: filters,
|
|
51
54
|
dataSource: dataSource
|
|
52
55
|
});
|
|
56
|
+
exports.OAuthClientTable = OAuthClientTable;
|
|
53
57
|
OAuthClientTable.displayName = 'OAuthClientTable';
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateForm } from '../../form/Form';
|
|
3
|
-
import { fetchAgentComponent, updateAgentComponent, createAgentComponent } from '../../../apis';
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentComponentForm = void 0;
|
|
7
|
+
var _immutable = require("immutable");
|
|
8
|
+
var _Form = require("../../form/Form");
|
|
9
|
+
var _apis = require("../../../apis");
|
|
5
10
|
var dataSources = function dataSources(_ref) {
|
|
6
11
|
var slug = _ref.slug;
|
|
7
12
|
return {
|
|
8
13
|
agent: {
|
|
9
|
-
fn: fetchAgentComponent,
|
|
14
|
+
fn: _apis.fetchAgentComponent,
|
|
10
15
|
params: slug && [{
|
|
11
16
|
slug: slug
|
|
12
17
|
}],
|
|
@@ -16,26 +21,22 @@ var dataSources = function dataSources(_ref) {
|
|
|
16
21
|
}
|
|
17
22
|
};
|
|
18
23
|
};
|
|
19
|
-
|
|
20
24
|
var handleSubmit = function handleSubmit(_ref2) {
|
|
21
25
|
var slug = _ref2.slug;
|
|
22
26
|
return function (values) {
|
|
23
|
-
return (slug ? updateAgentComponent : createAgentComponent)({
|
|
27
|
+
return (slug ? _apis.updateAgentComponent : _apis.createAgentComponent)({
|
|
24
28
|
slug: slug,
|
|
25
29
|
agent: values.toJS()
|
|
26
30
|
}).then(function (_ref3) {
|
|
27
31
|
var agent = _ref3.agent,
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
error = _ref3.error;
|
|
30
33
|
if (error) {
|
|
31
34
|
throw error.statusCode === 400 && error.message || 'There was an error saving the Agent';
|
|
32
35
|
}
|
|
33
|
-
|
|
34
36
|
return agent;
|
|
35
37
|
});
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
|
-
|
|
39
40
|
var fields = function fields(_ref4) {
|
|
40
41
|
var slug = _ref4.slug;
|
|
41
42
|
return function (_ref5) {
|
|
@@ -45,7 +46,7 @@ var fields = function fields(_ref4) {
|
|
|
45
46
|
label: 'Agent Slug',
|
|
46
47
|
type: 'text',
|
|
47
48
|
required: true,
|
|
48
|
-
initialValue: get(agent, 'slug') || ''
|
|
49
|
+
initialValue: (0, _immutable.get)(agent, 'slug') || ''
|
|
49
50
|
}, {
|
|
50
51
|
name: 'secret',
|
|
51
52
|
label: 'Agent Secret',
|
|
@@ -73,7 +74,6 @@ var fields = function fields(_ref4) {
|
|
|
73
74
|
onChange: function onChange(_ref9, _ref10) {
|
|
74
75
|
var values = _ref9.values;
|
|
75
76
|
var setValue = _ref10.setValue;
|
|
76
|
-
|
|
77
77
|
if (values.get('secret') !== '') {
|
|
78
78
|
setValue('secret', '');
|
|
79
79
|
}
|
|
@@ -83,16 +83,16 @@ var fields = function fields(_ref4) {
|
|
|
83
83
|
label: 'Agent Url',
|
|
84
84
|
type: 'text',
|
|
85
85
|
required: true,
|
|
86
|
-
initialValue: get(agent, 'url') || '',
|
|
86
|
+
initialValue: (0, _immutable.get)(agent, 'url') || '',
|
|
87
87
|
helpText: 'URL to the Agent'
|
|
88
88
|
}];
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
export var AgentComponentForm = generateForm({
|
|
91
|
+
var AgentComponentForm = (0, _Form.generateForm)({
|
|
93
92
|
formOptions: ['slug'],
|
|
94
93
|
dataSources: dataSources,
|
|
95
94
|
fields: fields,
|
|
96
95
|
handleSubmit: handleSubmit
|
|
97
96
|
});
|
|
97
|
+
exports.AgentComponentForm = AgentComponentForm;
|
|
98
98
|
AgentComponentForm.displayName = 'AgentComponentForm';
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import { fetchAgentComponents } from '../../../apis';
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentComponentTable = void 0;
|
|
7
|
+
var _Table = require("../../table/Table");
|
|
8
|
+
var _apis = require("../../../apis");
|
|
4
9
|
var dataSource = function dataSource() {
|
|
5
10
|
return {
|
|
6
|
-
fn: fetchAgentComponents,
|
|
11
|
+
fn: _apis.fetchAgentComponents,
|
|
7
12
|
clientSide: true,
|
|
8
13
|
params: function params() {
|
|
9
14
|
return [];
|
|
@@ -15,7 +20,6 @@ var dataSource = function dataSource() {
|
|
|
15
20
|
}
|
|
16
21
|
};
|
|
17
22
|
};
|
|
18
|
-
|
|
19
23
|
var columns = [{
|
|
20
24
|
value: 'slug',
|
|
21
25
|
title: 'Agent Slug',
|
|
@@ -25,8 +29,9 @@ var columns = [{
|
|
|
25
29
|
title: 'Agent Url',
|
|
26
30
|
sortable: false
|
|
27
31
|
}];
|
|
28
|
-
|
|
32
|
+
var AgentComponentTable = (0, _Table.generateTable)({
|
|
29
33
|
columns: columns,
|
|
30
34
|
dataSource: dataSource
|
|
31
35
|
});
|
|
36
|
+
exports.AgentComponentTable = AgentComponentTable;
|
|
32
37
|
AgentComponentTable.displayName = 'AgentComponentTable';
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateForm } from '../../form/Form';
|
|
3
|
-
import { fetchTaskComponent, updateTaskComponent } from '../../../apis';
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TaskComponentForm = void 0;
|
|
7
|
+
var _immutable = require("immutable");
|
|
8
|
+
var _Form = require("../../form/Form");
|
|
9
|
+
var _apis = require("../../../apis");
|
|
5
10
|
var dataSources = function dataSources() {
|
|
6
11
|
return {
|
|
7
12
|
task: {
|
|
8
|
-
fn: fetchTaskComponent,
|
|
13
|
+
fn: _apis.fetchTaskComponent,
|
|
9
14
|
params: [],
|
|
10
15
|
transform: function transform(result) {
|
|
11
16
|
return result.task;
|
|
@@ -13,24 +18,20 @@ var dataSources = function dataSources() {
|
|
|
13
18
|
}
|
|
14
19
|
};
|
|
15
20
|
};
|
|
16
|
-
|
|
17
21
|
var handleSubmit = function handleSubmit() {
|
|
18
22
|
return function (values) {
|
|
19
|
-
return updateTaskComponent({
|
|
23
|
+
return (0, _apis.updateTaskComponent)({
|
|
20
24
|
task: values.toJS()
|
|
21
25
|
}).then(function (_ref) {
|
|
22
26
|
var task = _ref.task,
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
error = _ref.error;
|
|
25
28
|
if (error) {
|
|
26
29
|
throw error.statusCode === 400 && error.message || 'There was an error saving the Task component';
|
|
27
30
|
}
|
|
28
|
-
|
|
29
31
|
return task;
|
|
30
32
|
});
|
|
31
33
|
};
|
|
32
34
|
};
|
|
33
|
-
|
|
34
35
|
var fields = function fields() {
|
|
35
36
|
return function (_ref2) {
|
|
36
37
|
var task = _ref2.task;
|
|
@@ -60,7 +61,6 @@ var fields = function fields() {
|
|
|
60
61
|
onChange: function onChange(_ref6, _ref7) {
|
|
61
62
|
var values = _ref6.values;
|
|
62
63
|
var setValue = _ref7.setValue;
|
|
63
|
-
|
|
64
64
|
if (values.get('secret') !== '') {
|
|
65
65
|
setValue('secret', '');
|
|
66
66
|
}
|
|
@@ -70,7 +70,7 @@ var fields = function fields() {
|
|
|
70
70
|
label: 'Task Url',
|
|
71
71
|
type: 'text',
|
|
72
72
|
required: true,
|
|
73
|
-
initialValue: get(task, 'url') || '',
|
|
73
|
+
initialValue: (0, _immutable.get)(task, 'url') || '',
|
|
74
74
|
helpText: 'URL to the Task Component'
|
|
75
75
|
}, {
|
|
76
76
|
name: 'platformSourceName',
|
|
@@ -94,11 +94,11 @@ var fields = function fields() {
|
|
|
94
94
|
}];
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
export var TaskComponentForm = generateForm({
|
|
97
|
+
var TaskComponentForm = (0, _Form.generateForm)({
|
|
99
98
|
formOptions: [],
|
|
100
99
|
dataSources: dataSources,
|
|
101
100
|
fields: fields,
|
|
102
101
|
handleSubmit: handleSubmit
|
|
103
102
|
});
|
|
103
|
+
exports.TaskComponentForm = TaskComponentForm;
|
|
104
104
|
TaskComponentForm.displayName = 'TaskComponentForm';
|