htmlLens.ts (hoppscotch-2.2.1) | : | htmlLens.ts (hoppscotch-3.0.0) | ||
---|---|---|---|---|
import { defineAsyncComponent } from "vue" | ||||
import { Lens } from "./lenses" | import { Lens } from "./lenses" | |||
const htmlLens: Lens = { | const htmlLens: Lens = { | |||
lensName: "response.html", | lensName: "response.html", | |||
isSupportedContentType: (contentType) => | isSupportedContentType: (contentType) => | |||
/\btext\/html|application\/xhtml\+xml\b/i.test(contentType), | /\btext\/html|application\/xhtml\+xml\b/i.test(contentType), | |||
renderer: "htmlres", | renderer: "htmlres", | |||
rendererImport: () => | rendererImport: defineAsyncComponent( | |||
import("~/components/lenses/renderers/HTMLLensRenderer.vue"), | () => import("~/components/lenses/renderers/HTMLLensRenderer.vue") | |||
), | ||||
} | } | |||
export default htmlLens | export default htmlLens | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added |