chore: split app to commons and web (squash commit)
This commit is contained in:
14
packages/hoppscotch-common/src/helpers/lenses/htmlLens.ts
Normal file
14
packages/hoppscotch-common/src/helpers/lenses/htmlLens.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineAsyncComponent } from "vue"
|
||||
import { Lens } from "./lenses"
|
||||
|
||||
const htmlLens: Lens = {
|
||||
lensName: "response.html",
|
||||
isSupportedContentType: (contentType) =>
|
||||
/\btext\/html|application\/xhtml\+xml\b/i.test(contentType),
|
||||
renderer: "htmlres",
|
||||
rendererImport: defineAsyncComponent(
|
||||
() => import("~/components/lenses/renderers/HTMLLensRenderer.vue")
|
||||
),
|
||||
}
|
||||
|
||||
export default htmlLens
|
||||
Reference in New Issue
Block a user