2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 import keyMirror from 'nfvo-utils/KeyMirror.js';
22 import i18n from 'nfvo-utils/i18n/i18n.js';
24 export const actionTypes = keyMirror({
25 TOGGLE_EXPANDED: null,
30 export const errorTypes = keyMirror({
31 MISSING_FILE_IN_ZIP: i18n('missing file in zip'),
32 MISSING_FILE_IN_MANIFEST: i18n('missing file in manifest'),
33 MISSING_OR_ILLEGAL_FILE_TYPE_IN_MANIFEST: i18n('missing or illegal file type in manifest'),
34 FILE_IS_YML_WITHOUT_YML_EXTENSION: i18n('file is defined as a heat file but it doesn\'t have .yml or .yaml extension'),
35 FILE_IS_ENV_WITHOUT_ENV_EXTENSION: i18n('file is defined as an env file but it doesn\'t have .env extension'),
36 ILLEGAL_YAML_FILE_CONTENT: i18n('illegal yaml file content'),
37 ILLEGAL_HEAT_YAML_FILE_CONTENT: i18n('illegal HEAT yaml file content'),
38 MISSING_FILE_NAME_IN_MANIFEST: i18n('a file is written in manifest without file name'),
39 MISSING_ENV_FILE_IN_ZIP: i18n('missing env file in zip'),
40 ARTIFACT_NOT_IN_USE: i18n('artifact not in use')
43 export const nodeTypes = keyMirror({
45 volume: i18n('Volume'),
46 network: i18n('Network'),
47 artifact: i18n('Artifact'),
48 env: i18n('Environment'),
52 export const mouseActions = keyMirror({