Refactor: Move hide_border into common options (#3086)

This commit is contained in:
Alexandr Garbuzov 2023-08-16 10:45:58 +03:00 committed by GitHub
parent 9174e79fc2
commit 6c15843c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,13 +10,13 @@ export type CommonOptions = {
border_radius: number;
border_color: string;
locale: string;
hide_border: boolean;
};
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;
@ -31,13 +31,11 @@ export type StatCardOptions = CommonOptions & {
};
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" | "donut" | "donut-vertical" | "pie";
@ -49,7 +47,6 @@ export type TopLangOptions = CommonOptions & {
type WakaTimeOptions = CommonOptions & {
hide_title: boolean;
hide_border: boolean;
hide: string[];
line_height: string;
hide_progress: boolean;
@ -59,6 +56,5 @@ type WakaTimeOptions = CommonOptions & {
};
export type GistCardOptions = CommonOptions & {
hide_border: boolean;
show_owner: boolean;
};