From 36d376ea2124d88d627a0ada4e176e37e070f571 Mon Sep 17 00:00:00 2001 From: Ariel Kenan Date: Sun, 7 Jul 2019 14:08:55 +0300 Subject: Upgrade to ONAP-UI Change-Id: I1266dea133a4bd5196ba7662c0905afaa021972d Issue-ID: SDC-2411 Signed-off-by: Ariel Kenan --- .../src/main/frontend/package.json | 3 +- .../src/main/frontend/resources/scss/_common.scss | 4 +- .../src/main/frontend/resources/scss/style.scss | 8 +- .../src/features/catalog/views/AddWorkflow.jsx | 2 +- .../frontend/src/features/catalog/views/Main.jsx | 2 +- .../src/features/catalog/views/Workflows.jsx | 2 +- .../composition/components/CompositionButton.js | 2 +- .../features/version/create/CreateVersionView.jsx | 2 +- .../CreateVersionView_snapshot-test.js.snap | 6 +- .../version/create/views/NewVersionContainer.jsx | 2 +- .../version/inputOutput/InputOutputView.jsx | 2 +- .../features/version/inputOutput/views/DataRow.jsx | 2 +- .../versionController/views/ActionButtons.js | 2 +- .../views/OperationModeButtons.js | 2 +- .../version/versionController/views/SvgButton.js | 2 +- .../versionController/views/VersionButton.js | 2 +- .../workflow/create/CreateWorkflowView.jsx | 2 +- .../CreateWorkflowView_snapshot-test.js.snap | 38 +++++----- .../OverviewView_snapshot-test.js.snap | 38 +++++----- .../workflow/overview/views/WorkflowDetails.jsx | 2 +- .../workflow/overview/views/WorkflowHeader.jsx | 3 +- .../src/shared/components/Description/index.js | 6 +- .../frontend/src/shared/modal/ModalWrapperView.jsx | 2 +- .../src/shared/notifications/NotificationsView.jsx | 2 +- .../src/shared/searchInput/SearchInput.jsx | 2 +- workflow-designer-ui/src/main/frontend/yarn.lock | 85 +++++----------------- 26 files changed, 94 insertions(+), 131 deletions(-) (limited to 'workflow-designer-ui') diff --git a/workflow-designer-ui/src/main/frontend/package.json b/workflow-designer-ui/src/main/frontend/package.json index f1fde4d4..bc43db1b 100644 --- a/workflow-designer-ui/src/main/frontend/package.json +++ b/workflow-designer-ui/src/main/frontend/package.json @@ -34,6 +34,8 @@ "lodash.set": "^4.3.2", "md5": "^2.2.1", "moment": "^2.18.1", + "onap-ui-common": "^1.0.101", + "onap-ui-react": "^1.0.0", "perfect-scrollbar": "^1.4.0", "prop-types": "^15.6.1", "qs": "^6.5.2", @@ -52,7 +54,6 @@ "redux-saga": "^0.16.0", "redux-thunk": "^2.3.0", "reselect": "^3.0.1", - "sdc-ui": "1.6.61", "uuid-js": "^0.7.5", "validator": "^10.2.0" }, diff --git a/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss b/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss index edde536f..825609d7 100644 --- a/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss +++ b/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss @@ -1,5 +1,5 @@ -@import '../../node_modules/sdc-ui/lib/style/scss/common/typography.scss'; -@import '../../node_modules/sdc-ui/lib/style/scss/common/variables.scss'; +@import '~onap-ui-common/lib/scss/_typography.scss'; +@import '~onap-ui-common/lib/scss/variables.scss'; @import 'common/fonts'; @import 'common/utils'; @import 'common/customVariables'; diff --git a/workflow-designer-ui/src/main/frontend/resources/scss/style.scss b/workflow-designer-ui/src/main/frontend/resources/scss/style.scss index 88e33a9c..09e8c8bc 100644 --- a/workflow-designer-ui/src/main/frontend/resources/scss/style.scss +++ b/workflow-designer-ui/src/main/frontend/resources/scss/style.scss @@ -1,7 +1,7 @@ -@import '../../node_modules/bpmn-js/dist/assets/diagram-js.css'; -@import '../../node_modules/bpmn-js/dist/assets/bpmn-font/css/bpmn.css'; +@import '~bpmn-js/dist/assets/diagram-js.css'; +@import '~bpmn-js/dist/assets/bpmn-font/css/bpmn.css'; @import 'common'; -@import '../../node_modules/sdc-ui/lib/css/style.css'; -@import '../../node_modules/perfect-scrollbar/css/perfect-scrollbar.css'; +@import '~onap-ui-common/lib/style.css'; +@import '~perfect-scrollbar/css/perfect-scrollbar.css'; @import 'components'; @import 'features'; diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx index 7209f633..1700d92e 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx +++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx @@ -17,7 +17,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Translate } from 'react-redux-i18n'; -import SVGIcon from 'sdc-ui/lib/react/SVGIcon'; +import { SVGIcon } from 'onap-ui-react'; class AddWorkflow extends React.Component { render() { diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx index b363dd84..b4288f3b 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx +++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx @@ -19,7 +19,7 @@ import PropTypes from 'prop-types'; import { Translate } from 'react-redux-i18n'; import { ASC } from 'features/catalog/catalogConstants'; -import SVGIcon from 'sdc-ui/lib/react/SVGIcon'; +import { SVGIcon } from 'onap-ui-react'; class Main extends Component { render() { diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx index a94e4541..d69ec47e 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx +++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx @@ -17,7 +17,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Tile, TileInfo, TileInfoLine } from 'sdc-ui/lib/react'; +import { Tile, TileInfo, TileInfoLine } from 'onap-ui-react'; const Workflows = ({ items, onWorkflowClick }) => items.map((workflow, index) => ( diff --git a/workflow-designer-ui/src/main/frontend/src/features/version/composition/components/CompositionButton.js b/workflow-designer-ui/src/main/frontend/src/features/version/composition/components/CompositionButton.js index 433e0559..62500d25 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/version/composition/components/CompositionButton.js +++ b/workflow-designer-ui/src/main/frontend/src/features/version/composition/components/CompositionButton.js @@ -15,7 +15,7 @@ */ import React from 'react'; import PropTypes from 'prop-types'; -import SVGIcon from 'sdc-ui/lib/react/SVGIcon'; +import { SVGIcon } from 'onap-ui-react'; const CompositionButton = ({ onClick, name, title, disabled }) => (
description