feat: add corner rounding parameter so we can make square cards (#845)
* add corner rounding parameter so i can make square cards * rename rx to border_radius
This commit is contained in:
1 parent
ad486d1aa2
commit
c8a5e835a5
14 files changed
+49
-1
No files matched your search
@@ -31,6 +31,7 @@ module.exports = async (req, res) => {
|
||||
custom_title,
|
||||
locale,
|
||||
disable_animations,
|
||||
border_radius,
|
||||
} = req.query;
|
||||
let stats;
|
||||
|
||||
@@ -74,6 +75,7 @@ module.exports = async (req, res) => {
|
||||
bg_color,
|
||||
theme,
|
||||
custom_title,
|
||||
border_radius,
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
disable_animations: parseBoolean(disable_animations),
|
||||
}),
|
||||
|
||||
@@ -23,6 +23,7 @@ module.exports = async (req, res) => {
|
||||
show_owner,
|
||||
cache_seconds,
|
||||
locale,
|
||||
border_radius,
|
||||
} = req.query;
|
||||
|
||||
let repoData;
|
||||
@@ -69,6 +70,7 @@ module.exports = async (req, res) => {
|
||||
text_color,
|
||||
bg_color,
|
||||
theme,
|
||||
border_radius,
|
||||
show_owner: parseBoolean(show_owner),
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
}),
|
||||
|
||||
@@ -28,6 +28,7 @@ module.exports = async (req, res) => {
|
||||
exclude_repo,
|
||||
custom_title,
|
||||
locale,
|
||||
border_radius
|
||||
} = req.query;
|
||||
let topLangs;
|
||||
|
||||
@@ -68,6 +69,7 @@ module.exports = async (req, res) => {
|
||||
bg_color,
|
||||
theme,
|
||||
layout,
|
||||
border_radius,
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -26,6 +26,7 @@ module.exports = async (req, res) => {
|
||||
locale,
|
||||
layout,
|
||||
api_domain,
|
||||
border_radius,
|
||||
} = req.query;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
@@ -61,6 +62,7 @@ module.exports = async (req, res) => {
|
||||
bg_color,
|
||||
theme,
|
||||
hide_progress,
|
||||
border_radius,
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
layout,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user