Skip to content
Open
Show file tree
Hide file tree
Changes from 17 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
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pids

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
dist

# Coverage directory used by tools like istanbul
coverage
Expand Down
34 changes: 0 additions & 34 deletions Makefile

This file was deleted.

22 changes: 19 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
module.exports = {
export default {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
plugins: [
["@babel/plugin-transform-runtime"]
[
'babel-plugin-inline-import', {
extensions: [
'.ttl'
]
}
]
]
};
}
14 changes: 7 additions & 7 deletions dev/context.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { DataBrowserContext, PaneRegistry } from "pane-registry";
import { LiveStore, solidLogicSingleton, store } from "solid-logic";
import { solidLogicSingleton, store } from 'solid-logic'

export const context = {
session: {
store: store,
store,
paneRegistry: {
byName: (name) => {
return // longChatPane
// longChatPane
return null
}
},
logic : solidLogicSingleton
logic: solidLogicSingleton
},
dom: document,
getOutliner: () => null,
};
}

export const fetcher = store.fetcher;
export const fetcher = store.fetcher
37 changes: 18 additions & 19 deletions dev/index.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
import { sym } from "rdflib";
import { default as pane } from "..";
import { context, fetcher } from "./context";
import { authn, authSession } from "solid-logic";
import * as UI from "solid-ui";
import { sym } from 'rdflib'
import pane from '../src/issuePane'
import { context, fetcher } from './context'
import { authn, authSession } from 'solid-logic'
import * as UI from 'solid-ui'

const loginBanner = document.getElementById("loginBanner");
const webId = document.getElementById("webId");
const loginBanner = document.getElementById('loginBanner')
const webId = document.getElementById('webId')

loginBanner.appendChild(UI.login.loginStatusBox(document, null, {}));
loginBanner.appendChild(UI.login.loginStatusBox(document, null, {}))

async function finishLogin() {
await authSession.handleIncomingRedirect();
const session = authSession;
async function finishLogin () {
await authSession.handleIncomingRedirect()
const session = authSession
if (session.info.isLoggedIn) {
// Update the page with the status.
webId.innerHTML = "Logged in as: " + authn.currentUser().uri;
webId.innerHTML = 'Logged in as: ' + authn.currentUser().uri
} else {
webId.innerHTML = "";
webId.innerHTML = ''
}
}

finishLogin();

finishLogin()

// https://testingsolidos.solidcommunity.net/profile/card#me
// https://timbl.solidcommunity.net/profile/card#me
Expand All @@ -34,9 +33,9 @@ finishLogin();

// const targetURIToShow = "https://timbl.com/timbl/Automation/mother/tracker.n3#mother"

const targetURIToShow = "http://localhost:8080/big-tracker.ttl#this"
const targetURIToShow = 'http://localhost:8080/big-tracker.ttl#this'

fetcher.load(targetURIToShow).then(() => {
const app = pane.render(sym(targetURIToShow), context);
document.getElementById("app").replaceWith(app);
});
const app = pane.render(sym(targetURIToShow), context)
document.getElementById('app').replaceWith(app)
})
238 changes: 0 additions & 238 deletions dist/big-tracker.ttl

This file was deleted.

Loading