2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * permissions and limitations under the License.
17 import SoftwareProductCreation from 'sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreation.js';
18 import LicenseModelCreation from 'sdc-app/onboarding/licenseModel/creation/LicenseModelCreation.js';
19 import SoftwareProductComponentImageEditor from 'sdc-app/onboarding/softwareProduct/components/images/SoftwareProductComponentsImageEditor.js';
20 import VersionPageCreation from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreation.js';
21 import SubmitErrorResponse from 'nfvo-components/SubmitErrorResponse.jsx';
22 import ComputeFlavorEditor from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditor.js';
23 import NICCreation from 'sdc-app/onboarding/softwareProduct/components/network/NICCreation/NICCreation.js';
24 import SoftwareProductComponentsNICEditor from 'sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditor.js';
25 import ComponentCreation from 'sdc-app/onboarding/softwareProduct/components/creation/SoftwareProductComponentCreation.js';
26 import SoftwareProductDeploymentEditor from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditor.js';
27 import PermissionsManager from 'sdc-app/onboarding/permissions/PermissionsManager.js';
28 import CommitCommentModal from 'nfvo-components/panel/versionController/components/CommitCommentModal.jsx';
29 import Tree from 'nfvo-components/tree/Tree.jsx';
30 import MergeEditor from 'sdc-app/common/merge/MergeEditor.js';
31 import Revisions from 'sdc-app/onboarding/revisions/Revisions.js';
33 export const modalContentMapper = {
34 SOFTWARE_PRODUCT_CREATION: 'SOFTWARE_PRODUCT_CREATION',
35 LICENSE_MODEL_CREATION: 'LICENSE_MODEL_CREATION',
36 SUMBIT_ERROR_RESPONSE: 'SUMBIT_ERROR_RESPONSE',
37 COMPONENT_COMPUTE_FLAVOR_EDITOR: 'COMPONENT_COMPUTE_FLAVOR_EDITOR',
38 NIC_EDITOR: 'NIC_EDITOR',
39 NIC_CREATION: 'NIC_CREATION',
40 COMPONENT_CREATION: 'COMPONENT_CREATION',
41 SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR : 'SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR',
42 DEPLOYMENT_FLAVOR_EDITOR: 'DEPLOYMENT_FLAVOR_EDITOR',
43 MANAGE_PERMISSIONS: 'MANAGE_PERMISSIONS',
44 VERSION_CREATION: 'VERSION_CREATION',
45 COMMIT_COMMENT: 'COMMIT_COMMENT',
46 VERSION_TREE: 'VERSION_TREE',
47 MERGE_EDITOR: 'MERGE_EDITOR',
48 REVISIONS_LIST: 'REVISIONS_LIST'
51 export const modalContentComponents = {
52 SUMBIT_ERROR_RESPONSE: SubmitErrorResponse,
53 SOFTWARE_PRODUCT_CREATION: SoftwareProductCreation,
54 VERSION_CREATION: VersionPageCreation,
55 LICENSE_MODEL_CREATION: LicenseModelCreation,
56 COMPONENT_COMPUTE_FLAVOR_EDITOR: ComputeFlavorEditor,
57 NIC_EDITOR: SoftwareProductComponentsNICEditor,
58 NIC_CREATION: NICCreation,
59 COMPONENT_CREATION: ComponentCreation,
60 SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR : SoftwareProductComponentImageEditor,
61 DEPLOYMENT_FLAVOR_EDITOR: SoftwareProductDeploymentEditor,
62 MANAGE_PERMISSIONS: PermissionsManager,
63 COMMIT_COMMENT: CommitCommentModal,
65 MERGE_EDITOR: MergeEditor,
66 REVISIONS_LIST: Revisions