blob: b17536f4465737dc0259e12edd72efe70db01330 [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001/*!
2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17import SoftwareProductCreation from 'sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreation.js';
18import LicenseModelCreation from 'sdc-app/onboarding/licenseModel/creation/LicenseModelCreation.js';
Avi Zivb8e2faf2017-07-18 19:45:38 +030019import SoftwareProductComponentImageEditor from 'sdc-app/onboarding/softwareProduct/components/images/SoftwareProductComponentsImageEditor.js';
talig8e9c0652017-12-20 14:30:43 +020020import VersionPageCreation from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreation.js';
AviZi280f8012017-06-09 02:39:56 +030021import SubmitErrorResponse from 'nfvo-components/SubmitErrorResponse.jsx';
Avi Zivb8e2faf2017-07-18 19:45:38 +030022import ComputeFlavorEditor from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditor.js';
23import NICCreation from 'sdc-app/onboarding/softwareProduct/components/network/NICCreation/NICCreation.js';
24import SoftwareProductComponentsNICEditor from 'sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditor.js';
25import ComponentCreation from 'sdc-app/onboarding/softwareProduct/components/creation/SoftwareProductComponentCreation.js';
26import SoftwareProductDeploymentEditor from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditor.js';
talig8e9c0652017-12-20 14:30:43 +020027import PermissionsManager from 'sdc-app/onboarding/permissions/PermissionsManager.js';
28import CommitCommentModal from 'nfvo-components/panel/versionController/components/CommitCommentModal.jsx';
29import Tree from 'nfvo-components/tree/Tree.jsx';
30import MergeEditor from 'sdc-app/common/merge/MergeEditor.js';
31import Revisions from 'sdc-app/onboarding/revisions/Revisions.js';
svishnev091edfd2018-03-19 12:15:19 +020032import VendorSelector from 'sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsVendorSelector.jsx';
AviZi280f8012017-06-09 02:39:56 +030033
Avi Zivb8e2faf2017-07-18 19:45:38 +030034export const modalContentMapper = {
AviZi280f8012017-06-09 02:39:56 +030035 SOFTWARE_PRODUCT_CREATION: 'SOFTWARE_PRODUCT_CREATION',
36 LICENSE_MODEL_CREATION: 'LICENSE_MODEL_CREATION',
Avi Zivb8e2faf2017-07-18 19:45:38 +030037 SUMBIT_ERROR_RESPONSE: 'SUMBIT_ERROR_RESPONSE',
38 COMPONENT_COMPUTE_FLAVOR_EDITOR: 'COMPONENT_COMPUTE_FLAVOR_EDITOR',
39 NIC_EDITOR: 'NIC_EDITOR',
40 NIC_CREATION: 'NIC_CREATION',
41 COMPONENT_CREATION: 'COMPONENT_CREATION',
42 SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR : 'SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR',
talig8e9c0652017-12-20 14:30:43 +020043 DEPLOYMENT_FLAVOR_EDITOR: 'DEPLOYMENT_FLAVOR_EDITOR',
44 MANAGE_PERMISSIONS: 'MANAGE_PERMISSIONS',
45 VERSION_CREATION: 'VERSION_CREATION',
46 COMMIT_COMMENT: 'COMMIT_COMMENT',
47 VERSION_TREE: 'VERSION_TREE',
48 MERGE_EDITOR: 'MERGE_EDITOR',
svishnev091edfd2018-03-19 12:15:19 +020049 REVISIONS_LIST: 'REVISIONS_LIST',
50 VENDOR_SELECTOR: 'VENDOR_SELECTOR'
51
AviZi280f8012017-06-09 02:39:56 +030052};
53
54export const modalContentComponents = {
55 SUMBIT_ERROR_RESPONSE: SubmitErrorResponse,
56 SOFTWARE_PRODUCT_CREATION: SoftwareProductCreation,
talig8e9c0652017-12-20 14:30:43 +020057 VERSION_CREATION: VersionPageCreation,
AviZi280f8012017-06-09 02:39:56 +030058 LICENSE_MODEL_CREATION: LicenseModelCreation,
Avi Zivb8e2faf2017-07-18 19:45:38 +030059 COMPONENT_COMPUTE_FLAVOR_EDITOR: ComputeFlavorEditor,
60 NIC_EDITOR: SoftwareProductComponentsNICEditor,
61 NIC_CREATION: NICCreation,
62 COMPONENT_CREATION: ComponentCreation,
63 SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR : SoftwareProductComponentImageEditor,
talig8e9c0652017-12-20 14:30:43 +020064 DEPLOYMENT_FLAVOR_EDITOR: SoftwareProductDeploymentEditor,
65 MANAGE_PERMISSIONS: PermissionsManager,
66 COMMIT_COMMENT: CommitCommentModal,
67 VERSION_TREE: Tree,
68 MERGE_EDITOR: MergeEditor,
svishnev091edfd2018-03-19 12:15:19 +020069 REVISIONS_LIST: Revisions,
70 VENDOR_SELECTOR: VendorSelector
Avi Zivb8e2faf2017-07-18 19:45:38 +030071};