feat: added repo card hide border option (#488)

* 🚀 Prettier config

* 🚀 hide_border for Repo Card

* fix: wrong total commits (#490)

* chore: run prettier on all files

* chore: lol lets add the trailing commas

Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
This commit is contained in:
Bas950andAnurag Hazra authored and GitHub committed 2020-09-24 21:38:14 +05:30
1 parent 3c6c142c75
commit 8aea1e3c35
35 files changed
+152 -134

No files matched your search

+4 -2
View File
@@ -13,6 +13,7 @@ module.exports = async (req, res) => {
const {
username,
repo,
hide_border,
title_color,
icon_color,
text_color,
@@ -36,7 +37,7 @@ module.exports = async (req, res) => {
let cacheSeconds = clampValue(
parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
CONSTANTS.TWO_HOURS,
CONSTANTS.ONE_DAY
CONSTANTS.ONE_DAY,
);
/*
@@ -56,13 +57,14 @@ module.exports = async (req, res) => {
return res.send(
renderRepoCard(repoData, {
hide_border,
title_color,
icon_color,
text_color,
bg_color,
theme,
show_owner: parseBoolean(show_owner),
})
}),
);
} catch (err) {
return res.send(renderError(err.message, err.secondaryMessage));