mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-06-02 16:14:41 +00:00
feat: added border_color option (#1000)
* feat: Allow customization of border color * docs: Update readme
This commit is contained in:
@@ -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),
|
||||
}),
|
||||
|
||||
@@ -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
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user