From fd6f69738cdd46778464a73617c1a1cca51f402f Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:14:05 +0200 Subject: [PATCH] feat(plugins/isocalendar): add highest commit in day and some design changes (#528) [skip ci] --- source/plugins/isocalendar/index.mjs | 2 +- .../templates/classic/partials/isocalendar.ejs | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/source/plugins/isocalendar/index.mjs b/source/plugins/isocalendar/index.mjs index 136b7179..62de7587 100644 --- a/source/plugins/isocalendar/index.mjs +++ b/source/plugins/isocalendar/index.mjs @@ -46,7 +46,7 @@ export default async function({login, data, graphql, q, imports, queries, accoun const size = 6 let i = 0, j = 0 let svg = ` - + ${ [1, 2].map(k => ` diff --git a/source/templates/classic/partials/isocalendar.ejs b/source/templates/classic/partials/isocalendar.ejs index 4ca8b45b..e765bf56 100644 --- a/source/templates/classic/partials/isocalendar.ejs +++ b/source/templates/classic/partials/isocalendar.ejs @@ -15,6 +15,10 @@ <% if (!plugins.isocalendar.error) { %>
+

+ + Commits streaks +

<% if (plugins.isocalendar.streak.current) { %>
@@ -25,9 +29,17 @@ Best streak <%= plugins.isocalendar.streak.max %> day<%= s(plugins.isocalendar.streak.max) %>
+

+ + Commits per day +

- - ~<%= plugins.isocalendar.average %> commits per day + + Highest in a day at <%= plugins.isocalendar.max %> +
+
+ + Average per day at ~<%= plugins.isocalendar.average %>
<% } %>