refactor: Rename IndexConverter to DefaultUiConverter

This commit is contained in:
Joachim Van Herwegen 2021-07-13 14:43:14 +02:00
parent a07ea5e8b1
commit 4e0c8291ca
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"@graph": [ "@graph": [
{ {
"comment": "This value can be used to set a custom handler for index files. See the example file.", "comment": "This value can be used to set a custom handler for index files. See the example file.",
"@id": "urn:solid-server:default:IndexConverter", "@id": "urn:solid-server:default:DefaultUiConverter",
"@type": "UnsupportedAsyncHandler" "@type": "UnsupportedAsyncHandler"
} }
] ]

View File

@ -6,7 +6,7 @@
"This converter replaces every browser request for text/html with the Databrowser UI (which then in turn loads a Turtle or other representation of the same resource).", "This converter replaces every browser request for text/html with the Databrowser UI (which then in turn loads a Turtle or other representation of the same resource).",
"This is useful when you want to serve a UI for every file from the pod." "This is useful when you want to serve a UI for every file from the pod."
], ],
"@id": "urn:solid-server:default:IndexConverter", "@id": "urn:solid-server:default:DefaultUiConverter",
"@type": "ConstantConverter", "@type": "ConstantConverter",
"contentType": "text/html", "contentType": "text/html",
"filePath": "./node_modules/mashlib/dist/databrowser.html", "filePath": "./node_modules/mashlib/dist/databrowser.html",

View File

@ -11,7 +11,7 @@
"@id": "urn:solid-server:default:RepresentationConverter", "@id": "urn:solid-server:default:RepresentationConverter",
"@type": "WaterfallHandler", "@type": "WaterfallHandler",
"handlers": [ "handlers": [
{ "@id": "urn:solid-server:default:IndexConverter" }, { "@id": "urn:solid-server:default:DefaultUiConverter" },
{ {
"@type": "IfNeededConverter", "@type": "IfNeededConverter",
"comment": "Only continue converting if the requester cannot accept the available content type" "comment": "Only continue converting if the requester cannot accept the available content type"