feat(plugins/stargazers): add plugin_stargazers_days and migrate to d3

This commit is contained in:
Simon Lecoq
2023-03-15 19:16:22 -04:00
parent b2d9cdc245
commit a9e442c3da
8 changed files with 39 additions and 59 deletions

View File

@@ -42,7 +42,7 @@
<div class="column chart largeable">
<h3>Commit activity per hour of day</h3>
<% if (Array.isArray(plugins.habits.charts)) { %>
<div class="row margin-bottom chartist">
<div class="row margin-bottom">
<%- plugins.habits.charts[0] %>
</div>
<% } else { %>
@@ -72,7 +72,7 @@
<section class="column chart">
<h3>Commit activity per day of week</h3>
<% if (Array.isArray(plugins.habits.charts)) { %>
<div class="margin-bottom chartist">
<div class="margin-bottom">
<%- plugins.habits.charts[1] %>
</div>
<% } else { %>
@@ -92,7 +92,7 @@
<section class="column chart">
<h3>Language activity</h3>
<% if (Array.isArray(plugins.habits.charts)) { %>
<div class="margin-bottom chartist">
<div class="margin-bottom">
<%- plugins.habits.charts[2] %>
</div>
<% } else { %>

View File

@@ -12,7 +12,7 @@
<% } else { %>
<% if (plugins.stargazers.charts) { %>
<div class="row margin-bottom">
<section class="column chart chartist">
<section class="column chart">
<h3>Total stargazers</h3>
<% if (Array.isArray(plugins.stargazers.charts)) { %>
<%- plugins.stargazers.charts[0] %>
@@ -31,7 +31,7 @@
</div>
<% } %>
</section>
<section class="column chart chartist">
<section class="column chart">
<h3>New stargazers per day</h3>
<% if (Array.isArray(plugins.stargazers.charts)) { %>
<%- plugins.stargazers.charts[1] %>

View File

@@ -356,15 +356,6 @@
padding-left: 37px;
}
/* Chartist */
/* purgecss ignore */
.chartist .ct-post {
fill: rgba(127, 127, 127, 0.8) !important;
color: rgba(127, 127, 127, 0.8) !important;
font-size: 9px;
text-anchor: middle;
}
/* Footer */
footer {
margin-top: 8px;