How to use the mashlib.UI function in mashlib

To help you get started, we’ve selected a few mashlib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github solid / node-solid-server / static / databrowser.html View on Github external
document.addEventListener('DOMContentLoaded', function () {
        const panes = require('mashlib')
        const UI = panes.UI

        // Set up cross-site proxy
        const $rdf = UI.rdf
        $rdf.Fetcher.crossSiteProxyTemplate = document.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)
          })
      })

mashlib

Data mashup library

MIT
Latest version published 6 months ago

Package Health Score

56 / 100
Full package analysis