Skip to content

Commit

Permalink
graph: display the oci graph
Browse files Browse the repository at this point in the history
Cincinnati now serves a separate graph for OCI images, since
coreos/fedora-coreos-cincinnati#99

Allow displaying the oci graph by passing `oci=true` as a query
parameter.
See coreos/fedora-coreos-tracker#1823
  • Loading branch information
jbtrystram committed Dec 18, 2024
1 parent cda30cc commit edc5723
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions graph/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
var pageInfra = "";
var pageStream = "";
var pageArch = "";
var pageOci = false;
var pageStreamDetails = zeroStream();
</script>

Expand Down Expand Up @@ -59,7 +60,7 @@
<!-- Navbar -->
<nav class="navbar is-light" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="."><img src="https://getfedora.org/static/images/fedora-coreos-logo.png"/></a>
<a class="navbar-item" href="."><img src="https://fedoraproject.org/assets/images/coreos-logo-light.png"/></a>
</div>

<div class="navbar-end">
Expand All @@ -83,6 +84,14 @@
<a class="navbar-item">Staging</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">Distribution</a>
<div class="navbar-dropdown">
<a class="navbar-item">OCI images</a>
<a class="navbar-item">OSTree repository</a>
</div>
</div>

</div>
</nav>

Expand Down Expand Up @@ -171,7 +180,13 @@
}
pageInfra = infra;

const updatesUrl = `https://raw-updates.coreos.${infraPrefix}fedoraproject.org/v1/graph?basearch=${basearch}&stream=${stream}`;
var oci = urlParams.get('oci');
if (oci === null) {
oci = false;
}
pageOci = oci;

const updatesUrl = `https://raw-updates.coreos.${infraPrefix}fedoraproject.org/v1/graph?basearch=${basearch}&stream=${stream}&oci=${oci}`;
return updatesUrl;
}

Expand Down

0 comments on commit edc5723

Please sign in to comment.