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

@@ -18,6 +18,7 @@
"do-lintfix": "pnpm run lintfix"
},
"dependencies": {
"dioc": "workspace:^",
"@apidevtools/swagger-parser": "^10.1.0",
"@codemirror/autocomplete": "^6.0.3",
"@codemirror/commands": "^6.0.1",

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(),
})
},
}