-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin work, adding chart graph widget
- Loading branch information
Samantha Kraft
committed
Apr 25, 2024
1 parent
e1a7273
commit 5dcc534
Showing
28 changed files
with
201 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/storybook | ||
src/ | ||
test/ | ||
storybook-static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
import { SparcDashboard } from './components/Index' | ||
import "../tailwind/output.css" | ||
import { createPinia } from 'pinia' | ||
import { defineAsyncComponent } from 'vue' | ||
import mitt from 'mitt' | ||
import { useGlobalVarsStore } from './stores/globalVars' | ||
import '../node_modules/sparc-design-system-components-2/dist/style.css'; | ||
|
||
|
||
//for auto install ----------------------------------------------------------------------------------------------------------------- | ||
|
||
export default { | ||
install: (app) => { | ||
|
||
const emitter = mitt(); | ||
app.provide('emitter', emitter); | ||
//app.config.globalProperties.$emitter = emitter; | ||
app.use(createPinia()); | ||
|
||
const componentMap = [ | ||
'ImageSelector', | ||
'QDBChart', | ||
'FlatmapViewer', | ||
'BiolucidaViewer' | ||
] | ||
componentMap.forEach(comp=>{ | ||
const asyncComponent = defineAsyncComponent(() => import(`./components/${comp}.vue`)); | ||
app.component(comp, asyncComponent); | ||
}) | ||
|
||
//add list of components to add componet drop down | ||
const globalVars = useGlobalVarsStore(); | ||
globalVars.componentList = componentMap; | ||
|
||
app.component("SparcDashboard", SparcDashboard); | ||
}, | ||
}; | ||
export {SparcDashboard}; | ||
// Auto-install when vue is found (eg. in browser via <script> tag) | ||
// let GlobalVue = null; | ||
// if (typeof window !== 'undefined') { | ||
// GlobalVue = window.Vue; | ||
// } else if (typeof global !== 'undefined') { | ||
// GlobalVue = global.Vue; | ||
// } | ||
// if (GlobalVue) { | ||
// GlobalVue.use(sparcDash); | ||
// } | ||
//------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.