forked from nodeSolidServer/node-solid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabrowser.html
More file actions
34 lines (32 loc) · 1.08 KB
/
databrowser.html
File metadata and controls
34 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html id="docHTML">
<head>
<link type="text/css" rel="stylesheet" href="https://solid.github.io/solid-panes/style/tabbedtab.css" />
<script type="text/javascript" src="/common/js/mashlib.min.js"></script>
<script>
const $SOLID_GLOBAL_config = {}
document.addEventListener('DOMContentLoaded', function () {
const panes = require('mashlib')
const UI = panes.UI
// Set up cross-site proxy
const $rdf = UI.rdf
$rdf.Fetcher.crossSiteProxyTemplate = self.origin + '/xss/?uri={uri}'
// Authenticate the user
UI.authn.checkUser()
.then(function () {
// Set up the view for the current subject
const kb = UI.store
const uri = window.location.href
const subject = kb.sym(uri)
const outliner = panes.getOutliner(document)
outliner.GotoSubject(subject, true, undefined, true, undefined)
})
})
</script>
</head>
<body>
<div class="TabulatorOutline" id="DummyUUID">
<table id="outline"></table>
</div>
</body>
</html>