blob: 487ada0d884af6ee557f774545db3d058dab4998 [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';
AviZi280f8012017-06-09 02:39:56 +030032
Avi Zivb8e2faf2017-07-18 19:45:38 +030033export const modalContentMapper = {
AviZi280f8012017-06-09 02:39:56 +030034 SOFTWARE_PRODUCT_CREATION: 'SOFTWARE_PRODUCT_CREATION',
35 LICENSE_MODEL_CREATION: 'LICENSE_MODEL_CREATION',
Avi Zivb8e2faf2017-07-18 19:45:38 +030036 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',
talig8e9c0652017-12-20 14:30:43 +020042 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'
AviZi280f8012017-06-09 02:39:56 +030049};
50
51export const modalContentComponents = {
52 SUMBIT_ERROR_RESPONSE: SubmitErrorResponse,
53 SOFTWARE_PRODUCT_CREATION: SoftwareProductCreation,
talig8e9c0652017-12-20 14:30:43 +020054 VERSION_CREATION: VersionPageCreation,
AviZi280f8012017-06-09 02:39:56 +030055 LICENSE_MODEL_CREATION: LicenseModelCreation,
Avi Zivb8e2faf2017-07-18 19:45:38 +030056 COMPONENT_COMPUTE_FLAVOR_EDITOR: ComputeFlavorEditor,
57 NIC_EDITOR: SoftwareProductComponentsNICEditor,
58 NIC_CREATION: NICCreation,
59 COMPONENT_CREATION: ComponentCreation,
60 SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR : SoftwareProductComponentImageEditor,
talig8e9c0652017-12-20 14:30:43 +020061 DEPLOYMENT_FLAVOR_EDITOR: SoftwareProductDeploymentEditor,
62 MANAGE_PERMISSIONS: PermissionsManager,
63 COMMIT_COMMENT: CommitCommentModal,
64 VERSION_TREE: Tree,
65 MERGE_EDITOR: MergeEditor,
66 REVISIONS_LIST: Revisions
Avi Zivb8e2faf2017-07-18 19:45:38 +030067};