forked from mirrored/github-readme-stats
* 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>
55 lines
1.2 KiB
TypeScript
55 lines
1.2 KiB
TypeScript
type ThemeNames = keyof typeof import("../../themes/index.js");
|
|
|
|
export type CommonOptions = {
|
|
title_color: string;
|
|
icon_color: string;
|
|
text_color: string;
|
|
bg_color: string;
|
|
theme: ThemeNames;
|
|
border_radius: number;
|
|
border_color: string;
|
|
locale: string;
|
|
};
|
|
|
|
export type StatCardOptions = CommonOptions & {
|
|
hide: string[];
|
|
show_icons: boolean;
|
|
hide_title: boolean;
|
|
hide_border: boolean;
|
|
card_width: number;
|
|
hide_rank: boolean;
|
|
include_all_commits: boolean;
|
|
line_height: number | string;
|
|
custom_title: string;
|
|
disable_animations: boolean;
|
|
number_format: string;
|
|
};
|
|
|
|
export type RepoCardOptions = CommonOptions & {
|
|
hide_border: boolean;
|
|
show_owner: boolean;
|
|
};
|
|
|
|
export type TopLangOptions = CommonOptions & {
|
|
hide_title: boolean;
|
|
hide_border: boolean;
|
|
card_width: number;
|
|
hide: string[];
|
|
layout: "compact" | "normal";
|
|
custom_title: string;
|
|
langs_count: number;
|
|
disable_animations: boolean;
|
|
hide_progress: boolean;
|
|
};
|
|
|
|
type WakaTimeOptions = CommonOptions & {
|
|
hide_title: boolean;
|
|
hide_border: boolean;
|
|
hide: string[];
|
|
line_height: string;
|
|
hide_progress: boolean;
|
|
custom_title: string;
|
|
layout: "compact" | "normal";
|
|
langs_count: number;
|
|
};
|