Skip to content

Commit

Permalink
deploy: d1da4dd
Browse files Browse the repository at this point in the history
  • Loading branch information
brownoxford committed Dec 16, 2023
1 parent 4c0f37b commit 228cb65
Show file tree
Hide file tree
Showing 12 changed files with 254,329 additions and 0 deletions.
Empty file.
34,691 changes: 34,691 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-GS1US.html

Large diffs are not rendered by default.

28,720 changes: 28,720 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-GS1US.json

Large diffs are not rendered by default.

36,433 changes: 36,433 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-Mavennet.html

Large diffs are not rendered by default.

29,028 changes: 29,028 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-Mavennet.json

Large diffs are not rendered by default.

34,130 changes: 34,130 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-Transmute.html

Large diffs are not rendered by default.

28,608 changes: 28,608 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-Transmute.json

Large diffs are not rendered by default.

33,768 changes: 33,768 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-mesur.io.html

Large diffs are not rendered by default.

28,545 changes: 28,545 additions & 0 deletions reports/conformance-1702687121/7228515851-conformance-run-mesur.io.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions reports/conformance-1702687121/archive/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<html>

<body>
<script>
(async () => {
async function list_directory(user, repo, directory) {
const url = `https://api.github.com/repos/${user}/${repo}/git/trees/gh-pages`;
directory = directory.split('/').filter(Boolean);
const dir = await directory.reduce(async (acc, dir) => {
const { url } = await acc;
const list = await fetch(url).then(res => res.json());
return list.tree.find(node => node.path === dir);
}, { url });
if (dir) {
const list = await fetch(dir.url).then(res => res.json());
return list.tree.map(node => node.path);
}
}

function generate_list(title, suite, folders) {
const re = new RegExp(`(?<suite>${suite})\-(?<unixtime>\\d+)`)
let htmlString = `<h2>${title}</h2>` + '<ul>';

for (let folder of folders) {
const match = folder.match(re);
if (!match) {
console.log("no match " + folder);
continue;
}
const { suite, unixtime } = match.groups;
const datestring = new Date(unixtime * 1000).toLocaleString();
htmlString += `<li><a href="https://w3id.org/traceability/interoperability/reports/${folder}">${suite} - ${datestring}</a></li>`;
}

return htmlString + '</ul>';
}

const folders = await list_directory('w3c-ccg', 'traceability-interop', 'reports');
folders.reverse();

let markup = '';
markup += generate_list("Conformance Report Archive", 'conformance', folders);
markup += generate_list('Interoperability Report Archive', 'interoperability', folders);

document.getElementsByTagName('body')[0].innerHTML = markup;
})()
</script>

</body>

</html>
343 changes: 343 additions & 0 deletions reports/conformance-1702687121/index.html

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions reports/conformance-1702687121/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"items": [
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-GS1US.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-GS1US.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-Mavennet.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-Mavennet.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-mesur.io.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-mesur.io.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-Transmute.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1702687121/7228515851-conformance-run-Transmute.json"
]
}

0 comments on commit 228cb65

Please sign in to comment.