SolidOS / SolidOS/mashlib

Run mashlib in an extension

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
CSS
Stars
70
Forks
31
Avg merge
4h 14m
Merged PRs (30d)
5

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current mashlib usage shown in the issue, including Mashlib, UI.rdf.Fetcher, UI.authn.checkUser, and UI.outline.GotoSubject. Then define the browser-extension entry points and acceptance criteria for requesting RDF/Turtle files, rendering panes, and following hyperlinks; the issue currently names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.