Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add a small description
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Apr 26, 2023
1 parent aea6ed2 commit 64cf044
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<h1>Are We ESM Yet?</h1>
<div id="status">Loading ....</div>
<canvas id="chart"></canvas>
<small id="description"></small>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script type="text/javascript">
function circleAPI(path) {
Expand All @@ -40,6 +41,10 @@ <h1>Are We ESM Yet?</h1>
}
}

function displayProjectDescription(project, branch) {
document.getElementById('description').innerHTML = `We are migrating our API to ESM modules. <a href="https://github.com/${project}/tree/${branch}">See the code</a>`;
}

function displayChart(results) {
const ctx = document.getElementById('chart');

Expand Down Expand Up @@ -80,6 +85,7 @@ <h1>Are We ESM Yet?</h1>
async function areWeESMYet() {
const branch = "pix-7202-migrate-api-module-from-cjs-to-esm";
const project = "1024pix/pix";
displayProjectDescription(project, branch);
const pipelines = await circleAPI(`/project/gh/${project}/pipeline?branch=${branch}`);
const lastPipelines = pipelines.items.reverse();
const results = await Promise.all(lastPipelines.map(({ id }) => {
Expand Down

0 comments on commit 64cf044

Please sign in to comment.