refactor: update hopp-ui to be independent (#2927)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
Andrew Bastin
2023-02-24 13:20:12 +05:30
committed by GitHub
parent 82c6f6f6bc
commit cae1840506
165 changed files with 2134 additions and 2069 deletions

View File

@@ -1,10 +1,11 @@
import { HoppModule } from "."
import HoppUI from "./../../../hoppscotch-ui/src"
import { HoppUIPluginOptions } from "@hoppscotch/ui/src"
import { plugin as HoppUI, HoppUIPluginOptions } from "@hoppscotch/ui"
import { useKeybindingDisabler } from "~/helpers/keybindings"
import { useI18n } from "vue-i18n"
const { disableKeybindings, enableKeybindings } = useKeybindingDisabler()
import "@hoppscotch/ui/style.css"
const HoppUIOptions: HoppUIPluginOptions = {
t: (key: string) => useI18n().t(key).toString(),
onModalOpen: disableKeybindings,