From 0d1f7fb135610ecf45714690279ca6f73265052c Mon Sep 17 00:00:00 2001 From: Laryssa Abdala Date: Thu, 21 Jul 2022 15:33:57 -0400 Subject: [PATCH 1/2] feat(ui-naming): change file and variable names from materialUI to boostrapUI --- index.html | 77 +++++++++--------- public/index.html | 79 +++++++++---------- ...ptions.js => bootstrapUIMachineOptions.js} | 4 +- vite.config.js | 2 +- 4 files changed, 78 insertions(+), 84 deletions(-) rename src/{materialUIMachineOptions.js => bootstrapUIMachineOptions.js} (90%) diff --git a/index.html b/index.html index c377c8a..0404e70 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,15 @@ - - - - - Custom itk-viewer Material UI Demo - - -
+ + + Custom itk-viewer Boostrap UI Demo + + + +
- - + + - const uiMachineOptions = { - href: new URL( - '/src/materialUIMachineOptions.js', - document.location.origin - ).href - } - itkVtkViewer.createViewer(container, { - image: ipfsImage, - labelImage, - rotate: false, - config: { uiMachineOptions } - }) - - - + \ No newline at end of file diff --git a/public/index.html b/public/index.html index 5cc3c7b..0233a7e 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,15 @@ - - - - - Custom itk-viewer Material UI Demo - - -
+ + + Custom itk-viewer Bootstrap UI Demo + + + +
- - + + - const uiMachineOptions = { - href: new URL( - './materialUIMachineOptions.js.es.js', - document.location.origin - ).href - } - itkVtkViewer.createViewer(container, { - image: ipfsImage, - labelImage, - rotate: false, - config: { uiMachineOptions } - }) - - - + \ No newline at end of file diff --git a/src/materialUIMachineOptions.js b/src/bootstrapUIMachineOptions.js similarity index 90% rename from src/materialUIMachineOptions.js rename to src/bootstrapUIMachineOptions.js index a8c337f..1eda93e 100644 --- a/src/materialUIMachineOptions.js +++ b/src/bootstrapUIMachineOptions.js @@ -9,7 +9,7 @@ import toggleUICollapsed from './toggleUICollapsed.jsx' import './App.scss' -const materialUIMachineOptions = { +const boostrapUIMachineOptions = { main: mainUIMachineOptions, layers: layersUIMachineOptions, @@ -27,4 +27,4 @@ const materialUIMachineOptions = { } } -export default materialUIMachineOptions +export default boostrapUIMachineOptions diff --git a/vite.config.js b/vite.config.js index b55098c..aae8c21 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,7 +8,7 @@ export default defineConfig({ plugins: [reactRefresh(), cssInjectedByJsPlugin()], build: { lib: { - entry: path.resolve(__dirname, 'src', 'materialUIMachineOptions.js'), + entry: path.resolve(__dirname, 'src', 'bootstrapUIMachineOptions.js'), name: 'materialUIMachineOptions', formats: ['es'], fileName: 'materialUIMachineOptions.js' From 6f7a48cf37e74817b6bcbfab7a08605960480320 Mon Sep 17 00:00:00 2001 From: Laryssa Abdala Date: Mon, 25 Jul 2022 11:22:21 -0400 Subject: [PATCH 2/2] feat(ui-naming): Change ui name in vite.config.js --- vite.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index aae8c21..27b58ef 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,9 +9,8 @@ export default defineConfig({ build: { lib: { entry: path.resolve(__dirname, 'src', 'bootstrapUIMachineOptions.js'), - name: 'materialUIMachineOptions', + name: 'bootstrapUIMachineOptions', formats: ['es'], - fileName: 'materialUIMachineOptions.js' } }, resolve: {