Added XML lens

This commit is contained in:
Andrew Bastin
2020-06-23 03:20:51 -04:00
parent 0fc901bd24
commit 4da44131eb
4 changed files with 136 additions and 1 deletions

View File

@@ -2,8 +2,9 @@ import jsonLens from "./jsonLens"
import rawLens from "./rawLens"
import imageLens from "./imageLens"
import htmlLens from "./htmlLens"
import xmlLens from "./xmlLens"
const lenses = [jsonLens, imageLens, htmlLens, rawLens]
const lenses = [jsonLens, imageLens, htmlLens, xmlLens, rawLens]
function getSuitableLenses(response) {
const result = []

View File

@@ -0,0 +1,7 @@
const htmlLens = {
lensName: "XML",
supportedContentTypes: ["application/xml", "image/svg+xml", "text/xml", "application/rss+xml"],
renderer: "xmlres",
}
export default htmlLens