mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-03 16:16:45 +00:00
Add format stats option (#2155)
* feat: added `format_stats` option (#2128) * refactor: change `format_stats` to `short_values` (#2128) * test: create shorten values test (#2128) * Update readme.md Co-authored-by: Rick Staa <rick.staa@outlook.com> * refactor: rename ``short_values`` to ``number_format`` * Update readme.md Co-authored-by: Rick Staa <rick.staa@outlook.com> * Update src/cards/stats-card.js Co-authored-by: Rick Staa <rick.staa@outlook.com> * refactor: format codebase --------- Co-authored-by: Rick Staa <rick.staa@outlook.com>
This commit is contained in:
co-authored by
Rick Staa
parent
b928f51442
commit
d8244a7fe5
@@ -35,6 +35,7 @@ export default async (req, res) => {
|
||||
locale,
|
||||
disable_animations,
|
||||
border_radius,
|
||||
number_format,
|
||||
border_color,
|
||||
} = req.query;
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
@@ -88,6 +89,7 @@ export default async (req, res) => {
|
||||
custom_title,
|
||||
border_radius,
|
||||
border_color,
|
||||
number_format,
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
disable_animations: parseBoolean(disable_animations),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user