From 1d56d799c22a193f425ccf82ae1391aabee0dcba Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 24 Oct 2020 21:49:19 +0200 Subject: [PATCH] Resize templates --- src/app.mjs | 2 +- src/templates/classic/image.svg | 18 +++++++++--------- src/templates/terminal/image.svg | 27 +++++++++++++++------------ src/templates/terminal/style.css | 1 + 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/src/app.mjs b/src/app.mjs index da5a28c9..97a21ca3 100644 --- a/src/app.mjs +++ b/src/app.mjs @@ -40,7 +40,7 @@ }) //Base routes - const limiter = ratelimit({max:60, windowMs:60*1000}) + const limiter = ratelimit({max:debug ? Number.MAX_SAFE_INTEGER : 60, windowMs:60*1000}) const templates = [...new Set([conf.settings.templates.default, ...(conf.settings.templates.enabled.length ? Object.keys(Templates).filter(key => conf.settings.templates.enabled.includes(key)) : Object.keys(Templates))])] const enabled = Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key) const actions = {flush:new Map()} diff --git a/src/templates/classic/image.svg b/src/templates/classic/image.svg index 58807cb9..1aa78d4e 100644 --- a/src/templates/classic/image.svg +++ b/src/templates/classic/image.svg @@ -1,13 +1,13 @@ ${user.login}@metrics:~${computed.token.scopes.includes("repo") ? "#" : "$"}` @@ -52,13 +55,13 @@
<%# -%> <% if (base.metadata) { %> -