mashlib
mashlib copied to clipboard
Run mashlib in an extension
Has been mentioned a few times it would be nice to run mashlib in a browser extension similar to tabulator
The operation would be to request files as RDF / turtle.
Then display them with various panes and allow clicking on hyperlinks
<link type="text/css" rel="stylesheet" href="https://linkeddata.github.io/solid-app-set/style/tabbedtab.css" /> <script>
var $SOLID_GLOBAL_config = {
popupUri: window.location.origin + '/common/popup.html'
}
</script> <script type="text/javascript" src="https://linkeddata.github.io/mashlib/dist/mashlib.min.js"></script> <script>
document.addEventListener('DOMContentLoaded', function () {
var UI = Mashlib
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> <div class="TabulatorOutline" id="DummyUUID"> <table id="outline"></table> </div>
The rough code to do this as per the current mashlib.