Skip to content

Commit

Permalink
Merge pull request #74 from SolidLabResearch/master
Browse files Browse the repository at this point in the history
Upload changes to github pages
  • Loading branch information
maartyman authored Sep 17, 2024
2 parents 8342a1a + 4e106cb commit 11ac770
Show file tree
Hide file tree
Showing 11 changed files with 1,500 additions and 695 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ Welcome to Solid Watchparty, a platform designed for shared media viewing experi
Find our live deployment at [solidlabresearch.github.io/solid-watch-party/](https://solidlabresearch.github.io/solid-watch-party/). Information on how to use the platform can be found in our [faq](https://solidlabresearch.github.io/solid-watch-party/auth#faq).


https://github.com/SolidLabResearch/solid-watch-party/assets/37975937/e78ec297-3538-44c7-ad32-14ea310a35e7



## :zap: Development Quick Start


Expand Down
29 changes: 29 additions & 0 deletions solid-watchparty/compile-engine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {compileConfig} from "componentsjs";
import fs from "node:fs";
import process from "process";

// Compiles a configuration to a module (single file) that exports the instantiated instance,
// where all dependencies are injected.
// This is a simplified version of components-compile-config that is shipped with Components.js.

const mainModulePath = process.cwd();
const configResourceUri = 'urn:comunica:default:Runner';
const configPath = `./engine-config/config.json`;
let exportVariableName = 'urn:comunica:default:init/actors#query';

compileConfig(mainModulePath, configPath, configResourceUri, exportVariableName, false, true)
.then((out) => {
// This instantiation is unneeded (MUST be done for excluding Components.js in browser environnments)
out = out.replace('new (require(\'@comunica/runner\').Runner)', '');
out = out.replace('module.exports =', 'export default');
out = out.replaceAll(/require\(([^)]+)\)/g, '(await import($1))');
fs.writeFile(`./engine-config/engine.js`, out + "\n", err => {
if (err) {
console.error(`error with ./engine-config/engine.js:\n`, err);
} else {
console.log(`made ./engine-config/engine.js`)
}
});
}).catch((error) => {
console.error(`${error.stack}\n`);
});
61 changes: 61 additions & 0 deletions solid-watchparty/engine-config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@incremunica/config-query-sparql-incremental/^1.0.0/components/context.jsonld"
],
"import": [
"ccqs:config/context-preprocess/actors.json",
"ccqs:config/context-preprocess/mediators.json",
"ccqs:config/hash-bindings/actors.json",
"ccqs:config/hash-bindings/mediators.json",
"ccqs:config/http/actors.json",
"ccqs:config/http/mediators.json",
"ccqs:config/http-invalidate/actors.json",
"ccqs:config/http-invalidate/mediators.json",
"ccqs:config/init/actors.json",
"ccqs:config/optimize-query-operation/actors.json",
"ccqs:config/optimize-query-operation/mediators.json",
"icqsi:config/query-operation/actors.json",
"ccqs:config/query-operation/mediators.json",
"ccqs:config/query-parse/actors.json",
"ccqs:config/query-parse/mediators.json",
"ccqs:config/query-result-serialize/actors.json",
"ccqs:config/query-result-serialize/mediators.json",
"ccqs:config/dereference/actors.json",
"ccqs:config/dereference/mediators.json",
"ccqs:config/dereference-rdf/actors.json",
"ccqs:config/dereference-rdf/mediators.json",
"icqsi:config/rdf-join/actors.json",
"ccqs:config/rdf-join/mediators.json",
"ccqs:config/rdf-join-entries-sort/actors.json",
"ccqs:config/rdf-join-entries-sort/mediators.json",
"ccqs:config/rdf-join-selectivity/actors.json",
"ccqs:config/rdf-join-selectivity/mediators.json",
"ccqs:config/rdf-metadata/actors.json",
"ccqs:config/rdf-metadata/mediators.json",
"icqsi:config/rdf-metadata-extract/actors.json",
"ccqs:config/rdf-metadata-extract/mediators.json",
"ccqs:config/rdf-parse/actors.json",
"ccqs:config/rdf-parse/mediators.json",
"ccqs:config/rdf-parse-html/actors.json",
"icqsi:config/rdf-resolve-hypermedia/actors.json",
"ccqs:config/rdf-resolve-hypermedia/mediators.json",
"ccqs:config/rdf-resolve-hypermedia-links/actors.json",
"ccqs:config/rdf-resolve-hypermedia-links/mediators.json",
"ccqs:config/rdf-resolve-hypermedia-links-queue/actors.json",
"ccqs:config/rdf-resolve-hypermedia-links-queue/mediators.json",
"icqsi:config/rdf-resolve-quad-pattern/actors.json",
"ccqs:config/rdf-resolve-quad-pattern/mediators.json",
"ccqs:config/rdf-serialize/actors.json",
"ccqs:config/rdf-serialize/mediators.json",
"ccqs:config/rdf-update-hypermedia/actors.json",
"ccqs:config/rdf-update-hypermedia/mediators.json",
"ccqs:config/rdf-update-quads/actors.json",
"ccqs:config/rdf-update-quads/mediators.json",

"icqsi:config/guard/mediators.json",
"icqsi:config/guard/actors.json",
"icqsi:config/resource-watch/mediators.json",
"./resource-watch/actors.json"
]
}
Loading

0 comments on commit 11ac770

Please sign in to comment.