feat: added border_color option (#1000)

* feat: Allow customization of border color

* docs: Update readme
This commit is contained in:
Rishi Suresh
2021-04-28 00:28:44 +05:30
committed by GitHub
parent f9abae804b
commit 7a096acf66
15 changed files with 56 additions and 12 deletions
+2
View File
@@ -32,6 +32,7 @@ module.exports = async (req, res) => {
locale,
disable_animations,
border_radius,
border_color,
} = req.query;
let stats;
@@ -76,6 +77,7 @@ module.exports = async (req, res) => {
theme,
custom_title,
border_radius,
border_color,
locale: locale ? locale.toLowerCase() : null,
disable_animations: parseBoolean(disable_animations),
}),
+2
View File
@@ -24,6 +24,7 @@ module.exports = async (req, res) => {
cache_seconds,
locale,
border_radius,
border_color,
} = req.query;
let repoData;
@@ -71,6 +72,7 @@ module.exports = async (req, res) => {
bg_color,
theme,
border_radius,
border_color,
show_owner: parseBoolean(show_owner),
locale: locale ? locale.toLowerCase() : null,
}),
+3 -1
View File
@@ -28,7 +28,8 @@ module.exports = async (req, res) => {
exclude_repo,
custom_title,
locale,
border_radius
border_radius,
border_color,
} = req.query;
let topLangs;
@@ -71,6 +72,7 @@ module.exports = async (req, res) => {
theme,
layout,
border_radius,
border_color,
locale: locale ? locale.toLowerCase() : null,
}),
);
+2
View File
@@ -29,6 +29,7 @@ module.exports = async (req, res) => {
api_domain,
range,
border_radius,
border_color,
} = req.query;
res.setHeader("Content-Type", "image/svg+xml");
@@ -65,6 +66,7 @@ module.exports = async (req, res) => {
theme,
hide_progress,
border_radius,
border_color,
locale: locale ? locale.toLowerCase() : null,
layout,
langs_count,