format all code (#386)

This commit is contained in:
Katsuyuki Karasawa
2025-04-08 23:08:31 +09:00
committed by GitHub
parent 7ea2f7f40f
commit 286b050fa8
61 changed files with 1329 additions and 1307 deletions

View File

@@ -1,88 +1,88 @@
import type { AUTO_MODE, DARK_MODE, LIGHT_MODE } from '@constants/constants'
import type { AUTO_MODE, DARK_MODE, LIGHT_MODE } from "@constants/constants";
export type SiteConfig = {
title: string
subtitle: string
title: string;
subtitle: string;
lang: string
lang: string;
themeColor: {
hue: number
fixed: boolean
}
banner: {
enable: boolean
src: string
position?: 'top' | 'center' | 'bottom'
credit: {
enable: boolean
text: string
url?: string
}
}
toc: {
enable: boolean
depth: 1 | 2 | 3
}
themeColor: {
hue: number;
fixed: boolean;
};
banner: {
enable: boolean;
src: string;
position?: "top" | "center" | "bottom";
credit: {
enable: boolean;
text: string;
url?: string;
};
};
toc: {
enable: boolean;
depth: 1 | 2 | 3;
};
favicon: Favicon[]
}
favicon: Favicon[];
};
export type Favicon = {
src: string
theme?: 'light' | 'dark'
sizes?: string
}
src: string;
theme?: "light" | "dark";
sizes?: string;
};
export enum LinkPreset {
Home = 0,
Archive = 1,
About = 2,
Home = 0,
Archive = 1,
About = 2,
}
export type NavBarLink = {
name: string
url: string
external?: boolean
}
name: string;
url: string;
external?: boolean;
};
export type NavBarConfig = {
links: (NavBarLink | LinkPreset)[]
}
links: (NavBarLink | LinkPreset)[];
};
export type ProfileConfig = {
avatar?: string
name: string
bio?: string
links: {
name: string
url: string
icon: string
}[]
}
avatar?: string;
name: string;
bio?: string;
links: {
name: string;
url: string;
icon: string;
}[];
};
export type LicenseConfig = {
enable: boolean
name: string
url: string
}
enable: boolean;
name: string;
url: string;
};
export type LIGHT_DARK_MODE =
| typeof LIGHT_MODE
| typeof DARK_MODE
| typeof AUTO_MODE
| typeof LIGHT_MODE
| typeof DARK_MODE
| typeof AUTO_MODE;
export type BlogPostData = {
body: string
title: string
published: Date
description: string
tags: string[]
draft?: boolean
image?: string
category?: string
prevTitle?: string
prevSlug?: string
nextTitle?: string
nextSlug?: string
}
body: string;
title: string;
published: Date;
description: string;
tags: string[];
draft?: boolean;
image?: string;
category?: string;
prevTitle?: string;
prevSlug?: string;
nextTitle?: string;
nextSlug?: string;
};