-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
607f5ee
commit 8c74e79
Showing
12 changed files
with
236,511 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
30,112 changes: 30,112 additions & 0 deletions
30,112
reports/conformance-1727139121/11004844220-conformance-run-BCGov.html
Large diffs are not rendered by default.
Oops, something went wrong.
25,047 changes: 25,047 additions & 0 deletions
25,047
reports/conformance-1727139121/11004844220-conformance-run-BCGov.json
Large diffs are not rendered by default.
Oops, something went wrong.
31,504 changes: 31,504 additions & 0 deletions
31,504
reports/conformance-1727139121/11004844220-conformance-run-GS1US.html
Large diffs are not rendered by default.
Oops, something went wrong.
25,306 changes: 25,306 additions & 0 deletions
25,306
reports/conformance-1727139121/11004844220-conformance-run-GS1US.json
Large diffs are not rendered by default.
Oops, something went wrong.
40,411 changes: 40,411 additions & 0 deletions
40,411
reports/conformance-1727139121/11004844220-conformance-run-Mavennet.html
Large diffs are not rendered by default.
Oops, something went wrong.
26,867 changes: 26,867 additions & 0 deletions
26,867
reports/conformance-1727139121/11004844220-conformance-run-Mavennet.json
Large diffs are not rendered by default.
Oops, something went wrong.
31,365 changes: 31,365 additions & 0 deletions
31,365
reports/conformance-1727139121/11004844220-conformance-run-mesur.io.html
Large diffs are not rendered by default.
Oops, something went wrong.
25,278 changes: 25,278 additions & 0 deletions
25,278
reports/conformance-1727139121/11004844220-conformance-run-mesur.io.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"items": [ | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-BCGov.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-BCGov.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-GS1US.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-GS1US.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-Mavennet.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-Mavennet.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-mesur.io.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1727139121/11004844220-conformance-run-mesur.io.json" | ||
] | ||
} |