mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-30 20:23:19 +00:00
feat: custom card title (#293)
* Custom stats title (anuraghazra#229) * Add custom title test * remove unused code * Update readme.md to include the `custom_title` option * Update readme_es.md to include `custom_title` option Co-Authored-By: José Javier Rodríguez Zas <jjavierdguezas@gmail.com> * Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats.git into custom-title * feat: added customTitle option in Card Co-authored-by: José Javier Rodríguez Zas <jjavierdguezas@gmail.com> Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
co-authored by
José Javier Rodríguez Zas
Anurag
parent
e1932fdf74
commit
057ff69ac2
@@ -27,6 +27,7 @@ module.exports = async (req, res) => {
|
||||
bg_color,
|
||||
theme,
|
||||
cache_seconds,
|
||||
custom_title,
|
||||
} = req.query;
|
||||
let stats;
|
||||
|
||||
@@ -65,6 +66,7 @@ module.exports = async (req, res) => {
|
||||
text_color,
|
||||
bg_color,
|
||||
theme,
|
||||
custom_title,
|
||||
}),
|
||||
);
|
||||
} catch (err) {
|
||||
|
||||
@@ -25,6 +25,7 @@ module.exports = async (req, res) => {
|
||||
layout,
|
||||
langs_count,
|
||||
exclude_repo,
|
||||
custom_title,
|
||||
} = req.query;
|
||||
let topLangs;
|
||||
|
||||
@@ -51,6 +52,7 @@ module.exports = async (req, res) => {
|
||||
|
||||
return res.send(
|
||||
renderTopLanguages(topLangs, {
|
||||
custom_title,
|
||||
hide_title: parseBoolean(hide_title),
|
||||
hide_border: parseBoolean(hide_border),
|
||||
card_width: parseInt(card_width, 10),
|
||||
|
||||
@@ -21,6 +21,7 @@ module.exports = async (req, res) => {
|
||||
cache_seconds,
|
||||
hide_title,
|
||||
hide_progress,
|
||||
custom_title,
|
||||
} = req.query;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
@@ -42,6 +43,7 @@ module.exports = async (req, res) => {
|
||||
|
||||
return res.send(
|
||||
wakatimeCard(last7Days, {
|
||||
custom_title,
|
||||
hide_title: parseBoolean(hide_title),
|
||||
hide_border: parseBoolean(hide_border),
|
||||
line_height,
|
||||
|
||||
Reference in New Issue
Block a user