mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-11 16:25:26 +00:00
feat(wakatime card): add disable animations query option (#3496)
* feat(wakatime card): add disable animations query option * docs
This commit is contained in:
Vendored
+1
@@ -54,6 +54,7 @@ type WakaTimeOptions = CommonOptions & {
|
||||
custom_title: string;
|
||||
layout: "compact" | "normal";
|
||||
langs_count: number;
|
||||
disable_animations: boolean;
|
||||
};
|
||||
|
||||
export type GistCardOptions = CommonOptions & {
|
||||
|
||||
@@ -218,6 +218,7 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {
|
||||
langs_count = languages.length,
|
||||
border_radius,
|
||||
border_color,
|
||||
disable_animations,
|
||||
} = options;
|
||||
|
||||
const shouldHideLangs = Array.isArray(hide) && hide.length > 0;
|
||||
@@ -382,6 +383,10 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {
|
||||
},
|
||||
});
|
||||
|
||||
if (disable_animations) {
|
||||
card.disableAnimations();
|
||||
}
|
||||
|
||||
card.setHideBorder(hide_border);
|
||||
card.setHideTitle(hide_title);
|
||||
card.setCSS(
|
||||
|
||||
Reference in New Issue
Block a user