feat: introduce dioc into hoppscotch-common
This commit is contained in:
@@ -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",
|
||||
|
||||
13
packages/hoppscotch-common/src/modules/dioc.ts
Normal file
13
packages/hoppscotch-common/src/modules/dioc.ts
Normal 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(),
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user