cc120d359a8a8a54c94f7288e4e32857ba52272f
[sdc.git] /
1 /*!
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 import keyMirror from 'nfvo-utils/KeyMirror.js';
17
18 export const actionTypes = keyMirror({
19     COMPONENTS_LIST_UPDATE: null,
20     COMPONENTS_LIST_EDIT: null,
21     COMPONENT_UPDATE: null,
22     COMPONENT_DATA_CHANGED: null,
23     COMPONENT_DATA_CLEAR: null,
24     COMPONENT_QUESTIONNAIRE_UPDATE: null,
25     COMPONENT_DELETE: null,
26     COMPONENT_LOAD: null,
27     COMPONENT_CREATE_OPEN: null
28 });
29
30 export const storageConstants = keyMirror({
31     backupType: {
32         ON_SITE: 'OnSite',
33         OFF_SITE: 'OffSite'
34     }
35 });
36
37 export const forms = keyMirror({
38     ALL_SPC_FORMS: null,
39     NIC_EDIT_FORM: null,
40     CREATE_FORM: null,
41     IMAGE_EDIT_FORM: null
42 });
43
44 export const COMPONENTS_QUESTIONNAIRE = 'component';
45 export const COMPONENTS_COMPUTE_QUESTIONNAIRE = 'compute';
46
47 export const navigationItems = keyMirror({
48     STORAGE: 'Storage',
49     PROCESS_DETAILS: 'Process Details',
50     MONITORING: 'Monitoring',
51     NETWORK: 'Network',
52     IMAGES: 'Images',
53     COMPUTE: 'Compute',
54     LOAD_BALANCING: 'High Availability & Load Balancing'
55 });