imageLens.ts 382 B

1234567891011121314
  1. import { Lens } from "./lenses"
  2. const imageLens: Lens = {
  3. lensName: "response.image",
  4. isSupportedContentType: (contentType) =>
  5. /\bimage\/(?:gif|jpeg|png|bmp|svg\+xml|x-icon|vnd\.microsoft\.icon)\b/i.test(
  6. contentType
  7. ),
  8. renderer: "imageres",
  9. rendererImport: () =>
  10. import("~/components/lenses/renderers/ImageLensRenderer.vue"),
  11. }
  12. export default imageLens