feat: introduce dioc into hoppscotch-common

This commit is contained in:
Andrew Bastin
2023-06-07 15:15:56 +05:30
parent e75391cdf1
commit 81a7e23a12
20 changed files with 1117 additions and 65 deletions

View File

@@ -0,0 +1,13 @@
import { HoppModule } from "."
import { Container } from "dioc"
import { diocPlugin } from "dioc/vue"
export default <HoppModule>{
onVueAppInit(app) {
// TODO: look into this
// @ts-expect-error Something weird with Vue versions
app.use(diocPlugin, {
container: new Container(),
})
},
}