refactor: merge branch 'main' into refactor/monorepo
This commit is contained in:
14
packages/hoppscotch-app/helpers/lenses/imageLens.ts
Normal file
14
packages/hoppscotch-app/helpers/lenses/imageLens.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Lens } from "./lenses"
|
||||
|
||||
const imageLens: Lens = {
|
||||
lensName: "response.image",
|
||||
isSupportedContentType: (contentType) =>
|
||||
/\bimage\/(?:gif|jpeg|png|bmp|svg\+xml|x-icon|vnd\.microsoft\.icon)\b/i.test(
|
||||
contentType
|
||||
),
|
||||
renderer: "imageres",
|
||||
rendererImport: () =>
|
||||
import("~/components/lenses/renderers/ImageLensRenderer.vue"),
|
||||
}
|
||||
|
||||
export default imageLens
|
||||
Reference in New Issue
Block a user