trifid-plugin-graph-explorer
Advanced tools
Comparing version
@@ -13,2 +13,3 @@ const absoluteUrl = require('absolute-url') | ||
options.template = options.template || path.join(__dirname, 'views/index.html') | ||
options.acceptBlankNodes = !!options.acceptBlankNodes | ||
@@ -28,2 +29,3 @@ // render index page | ||
res.locals.endpointUrl = new URL(options.endpointUrl, req.absoluteUrl()).href | ||
res.locals.acceptBlankNodes = options.acceptBlankNodes | ||
@@ -30,0 +32,0 @@ res.render(options.template) |
{ | ||
"name": "trifid-plugin-graph-explorer", | ||
"description": "Trifid Graph Explorer plugin", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/zazuko/trifid-plugin-graph-explorer", |
# trifid-plugin-graph-explorer | ||
[Graph Explorer](https://github.com/zazuko/graph-explorer) for Trifid. | ||
[Graph Explorer](https://github.com/zazuko/graph-explorer) for [Trifid](https://github.com/zazuko/trifid). | ||
This middleware does the static file hosting for all Graph Explorer files and renders an index page that points to the given endpoint URL. | ||
# Usage | ||
@@ -12,2 +12,3 @@ | ||
- `template`: Path to an alternative template (default: `views/index.html`) | ||
- `acceptBlankNodes`: Show blank nodes | ||
@@ -27,3 +28,4 @@ Configuring Trifid to use `trifid-plugin-graph-explorer` is done the same way as `trifid-plugin-yasgui`. | ||
+ "default": { | ||
+ "path": "/graph-explorer" | ||
+ "path": "/graph-explorer", | ||
+ "acceptBlankNodes": false | ||
+ } | ||
@@ -30,0 +32,0 @@ + }, |
Sorry, the diff of this file is not supported yet
6363
4.48%33
6.45%71
2.9%