From: sebdet Date: Wed, 6 Nov 2019 10:40:46 +0000 (+0100) Subject: Upgrade the libs X-Git-Tag: 5.0.0~106^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=81f5cab8902c7221013a751c72f3634b429fde29;p=clamp.git Upgrade the libs Upgrade the version of some libraries for NPM so for React UI Issue-ID: CLAMP-544 Change-Id: Ie5238c699a2b441892e6e12f3a6f17640d26b10c Signed-off-by: sebdet --- diff --git a/pom.xml b/pom.xml index 76a0e4f1..227b48f9 100644 --- a/pom.xml +++ b/pom.xml @@ -1091,8 +1091,8 @@ generate-sources - v12.10.0 - 6.10.3 + v12.13.0 + 6.13.0 diff --git a/ui-react/package.json b/ui-react/package.json index d876b6c7..2d70e270 100644 --- a/ui-react/package.json +++ b/ui-react/package.json @@ -30,14 +30,14 @@ "react": "16.9.0", "react-dom": "16.9.0", "react-scripts": "3.1.1", - "react-bootstrap": "1.0.0-beta.12", + "react-bootstrap": "1.0.0-beta.14", "bootstrap-css-only": "4.3.1", "styled-components": "4.3.2", "react-router-dom": "5.0.1", - "@material-ui/core": "4.3.2", - "@material-ui/icons": "4.2.1", - "material-table": "1.48.0", - "react-select": "3.0.4" + "@material-ui/core": "4.6.0", + "@material-ui/icons": "4.5.1", + "material-table": "1.53.0", + "react-select": "3.0.8" }, "devDependencies": { "jest": "24.8.0", diff --git a/ui-react/src/LoopUI.js b/ui-react/src/LoopUI.js index 11808da3..05f466bc 100644 --- a/ui-react/src/LoopUI.js +++ b/ui-react/src/LoopUI.js @@ -42,7 +42,7 @@ import ConfigurationPolicyModal from './components/dialogs/ConfigurationPolicy/C import LoopProperties from './components/dialogs/LoopProperties'; import UserInfo from './components/dialogs/UserInfo'; import LoopService from './api/LoopService'; -import ViewToscaModals from './components/dialogs/ViewToscaModals/ViewToscaModals'; +import ViewToscaModal from './components/dialogs/ViewToscaModal/ViewToscaModal'; import PerformAction from './components/dialogs/PerformActions'; import RefreshStatus from './components/dialogs/RefreshStatus'; import DeployLoop from './components/dialogs/DeployLoop'; @@ -248,7 +248,7 @@ export default class LoopUI extends React.Component { render() { return ( - ()} /> + ()} /> ()} /> ()} /> diff --git a/ui-react/src/__snapshots__/LoopUI.test.js.snap b/ui-react/src/__snapshots__/LoopUI.test.js.snap index 3c84e956..ab4ea499 100644 --- a/ui-react/src/__snapshots__/LoopUI.test.js.snap +++ b/ui-react/src/__snapshots__/LoopUI.test.js.snap @@ -5,7 +5,7 @@ exports[`Verify LoopUI Test the render method 1`] = ` id="main_div" > - + Read Only ), - LastPage: forwardRef((props, ref) => ), - NextPage: forwardRef((props, ref) => ), - PreviousPage: forwardRef((props, ref) => ), - ResetSearch: forwardRef((props, ref) => ), - Search: forwardRef((props, ref) => ), - SortArrow: forwardRef((props, ref) => ), + FirstPage: forwardRef((props, ref) => ), + LastPage: forwardRef((props, ref) => ), + NextPage: forwardRef((props, ref) => ), + PreviousPage: forwardRef((props, ref) => ), + ResetSearch: forwardRef((props, ref) => ), + Search: forwardRef((props, ref) => ), + SortArrow: forwardRef((props, ref) => ) } }; constructor(props, context) { super(props, context); this.handleClose = this.handleClose.bind(this); - this.getToscaModals = this.getToscaModals.bind(this); + this.getToscaModels = this.getToscaModels.bind(this); this.handleYamlContent = this.handleYamlContent.bind(this); } componentWillMount() { - this.getToscaModals(); + this.getToscaModels(); } - getToscaModals() { - TemplateMenu.getToscaModals().then(toscaNames => { + getToscaModels() { + TemplateMenuService.getToscaModels().then(toscaNames => { this.setState({ toscaNames: toscaNames }); }); } handleYamlContent(event) { - console.log('inside handleYamlContent'); this.setState({ content: event.target.value }); } @@ -138,9 +134,9 @@ export default class ViewToscalModals extends React.Component { }) }} /> - - - +
+