* add card_width to wakatime card * better handling of card_width in wakatime card * move default card_width for wakatime card, add to readme * review * review --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
67 lines
1.6 KiB
TypeScript
67 lines
1.6 KiB
TypeScript
type ThemeNames = keyof typeof import("../../themes/index.js");
|
|
type RankIcon = "default" | "github" | "percentile";
|
|
|
|
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;
|
|
hide_border: boolean;
|
|
};
|
|
|
|
export type StatCardOptions = CommonOptions & {
|
|
hide: string[];
|
|
show_icons: boolean;
|
|
hide_title: boolean;
|
|
card_width: number;
|
|
hide_rank: boolean;
|
|
include_all_commits: boolean;
|
|
commits_year: number;
|
|
line_height: number | string;
|
|
custom_title: string;
|
|
disable_animations: boolean;
|
|
number_format: string;
|
|
ring_color: string;
|
|
text_bold: boolean;
|
|
rank_icon: RankIcon;
|
|
show: string[];
|
|
};
|
|
|
|
export type RepoCardOptions = CommonOptions & {
|
|
show_owner: boolean;
|
|
description_lines_count: number;
|
|
};
|
|
|
|
export type TopLangOptions = CommonOptions & {
|
|
hide_title: boolean;
|
|
card_width: number;
|
|
hide: string[];
|
|
layout: "compact" | "normal" | "donut" | "donut-vertical" | "pie";
|
|
custom_title: string;
|
|
langs_count: number;
|
|
disable_animations: boolean;
|
|
hide_progress: boolean;
|
|
stats_format: "percentages" | "bytes";
|
|
};
|
|
|
|
export type WakaTimeOptions = CommonOptions & {
|
|
hide_title: boolean;
|
|
hide: string[];
|
|
card_width: number;
|
|
line_height: string;
|
|
hide_progress: boolean;
|
|
custom_title: string;
|
|
layout: "compact" | "normal";
|
|
langs_count: number;
|
|
display_format: "time" | "percent";
|
|
disable_animations: boolean;
|
|
};
|
|
|
|
export type GistCardOptions = CommonOptions & {
|
|
show_owner: boolean;
|
|
};
|