feat: pdf lens

This commit is contained in:
liyasthomas
2022-03-01 07:46:04 +05:30
parent e9dc7769ac
commit b3d0d4d86b
35 changed files with 327 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ import rawLens from "./rawLens"
import imageLens from "./imageLens"
import htmlLens from "./htmlLens"
import xmlLens from "./xmlLens"
import pdfLens from "./pdfLens"
export type Lens = {
lensName: string
@@ -12,7 +13,14 @@ export type Lens = {
rendererImport: () => Promise<typeof import("*.vue")>
}
export const lenses: Lens[] = [jsonLens, imageLens, htmlLens, xmlLens, rawLens]
export const lenses: Lens[] = [
jsonLens,
imageLens,
htmlLens,
xmlLens,
pdfLens,
rawLens,
]
export function getSuitableLenses(response: HoppRESTResponse): Lens[] {
// return empty array if response is loading or error