feat: add wakatime compact layout (#560)

* Add wakatime compact layout

* Update readme

* test: added & updated test snapshots

Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
Willian Rodrigues
2020-11-04 23:51:57 +05:30
committed by GitHub
co-authored by Anurag
parent 6e82cfb32d
commit 94aeabe300
6 changed files with 854 additions and 116 deletions
+2
View File
@@ -24,6 +24,7 @@ module.exports = async (req, res) => {
hide_progress,
custom_title,
locale,
layout,
} = req.query;
res.setHeader("Content-Type", "image/svg+xml");
@@ -60,6 +61,7 @@ module.exports = async (req, res) => {
theme,
hide_progress,
locale: locale ? locale.toLowerCase() : null,
layout,
}),
);
} catch (err) {