-
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
429f59e
commit b1df6f2
Showing
12 changed files
with
254,329 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
34,691 changes: 34,691 additions & 0 deletions
34,691
reports/conformance-1700959313/6992330177-conformance-run-GS1US.html
Large diffs are not rendered by default.
Oops, something went wrong.
28,720 changes: 28,720 additions & 0 deletions
28,720
reports/conformance-1700959313/6992330177-conformance-run-GS1US.json
Large diffs are not rendered by default.
Oops, something went wrong.
36,433 changes: 36,433 additions & 0 deletions
36,433
reports/conformance-1700959313/6992330177-conformance-run-Mavennet.html
Large diffs are not rendered by default.
Oops, something went wrong.
29,028 changes: 29,028 additions & 0 deletions
29,028
reports/conformance-1700959313/6992330177-conformance-run-Mavennet.json
Large diffs are not rendered by default.
Oops, something went wrong.
34,130 changes: 34,130 additions & 0 deletions
34,130
reports/conformance-1700959313/6992330177-conformance-run-Transmute.html
Large diffs are not rendered by default.
Oops, something went wrong.
28,608 changes: 28,608 additions & 0 deletions
28,608
reports/conformance-1700959313/6992330177-conformance-run-Transmute.json
Large diffs are not rendered by default.
Oops, something went wrong.
33,768 changes: 33,768 additions & 0 deletions
33,768
reports/conformance-1700959313/6992330177-conformance-run-mesur.io.html
Large diffs are not rendered by default.
Oops, something went wrong.
28,545 changes: 28,545 additions & 0 deletions
28,545
reports/conformance-1700959313/6992330177-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-1700959313/6992330177-conformance-run-GS1US.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-GS1US.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-Mavennet.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-Mavennet.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-mesur.io.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-mesur.io.json", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-Transmute.html", | ||
"https://w3id.org/traceability/interoperability/reports/conformance-1700959313/6992330177-conformance-run-Transmute.json" | ||
] | ||
} |