Changes for populating ReactJS component library 37/100837/4
authorTed Humphrey <Thomas.Humphrey@att.com>
Mon, 27 Jan 2020 23:57:39 +0000 (18:57 -0500)
committerTed Humphrey <Thomas.Humphrey@att.com>
Tue, 4 Feb 2020 22:31:38 +0000 (17:31 -0500)
commit01e5fde3fa45638f3ad884ca76ad861d8781868a
treed7193a0fcdabd169fb78c79c5ad191369f78e748
parent8d91398da6162c19643f3f7cae83327dd4e81263
Changes for populating ReactJS component library

Modification of Maven pom.xml to segregate creation of component library
away from the basic CLAMP UI. New directory ui-react-lib is introduced
and populated with just a few files to support the library creation.
Introduction of OnapConstants.js provides single focus for defining
constants shared across multiple components, resolving circular
dependency between LoopUI.js and MenuBar.js around defaultLoopName.
Modified LoopSvg.js to import withRoute from react-router-dom instead
of react-router, which was causing problems in usage of completed
component library.

Issue-ID: CLAMP-586
Change-Id: I3054d5388b8aa7417fe7566c34279390d24fb80a
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
pom.xml
ui-react-lib/libIndex.js [new file with mode: 0755]
ui-react-lib/package.json [new file with mode: 0755]
ui-react-lib/rollup.config.js [new file with mode: 0755]
ui-react/src/LoopUI.js
ui-react/src/LoopUI.test.js
ui-react/src/components/loop_viewer/svg/LoopSvg.js
ui-react/src/components/menu/MenuBar.js
ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
ui-react/src/utils/OnapConstants.js [new file with mode: 0644]