Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ module.exports = {
'dbPath': './.db',
'port': 8443,
'serverUri': 'https://localhost:8443',
'webid': true
'webid': true,
'dataBrowserPath': 'default'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are possible alternative values? Why isn't this static/databrowser.html?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure why it was done this way. I do know that it's what activates it.

}
21 changes: 12 additions & 9 deletions static/databrowser.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
<script type="text/javascript" src="https://linkeddata.github.io/mashlib/dist/mashlib-prealpha.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var UI = require('mashlib')
var $rdf = UI.rdf
var UI = Mashlib

$rdf.Fetcher.crossSiteProxyTemplate = document.origin + '/xss?uri={uri}';
var uri = window.location.href;
window.document.title = uri;
var kb = UI.store;
var subject = kb.sym(uri);
UI.outline.GotoSubject(subject, true, undefined, true, undefined);
});
UI.rdf.Fetcher.crossSiteProxyTemplate = document.origin + '/proxy?uri={uri}'

UI.authn.checkUser()
.then(function () {
var uri = window.location.href
window.document.title = uri

var subject = UI.rdf.namedNode(uri)
UI.outline.GotoSubject(subject, true, undefined, true, undefined)
})
})
</script>
</head>
<body>
Expand Down