initial commit
This commit is contained in:
39
types/config.type.ts
Normal file
39
types/config.type.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export type TConfig = {
|
||||
AvatarURL: string;
|
||||
Sentence?: string;
|
||||
Nickname: string;
|
||||
|
||||
SiteTitle: string;
|
||||
SiteDomain: string;
|
||||
|
||||
PageCovers: {
|
||||
websiteCoverURL: string;
|
||||
};
|
||||
|
||||
SocialLinks: {
|
||||
twitter?: string;
|
||||
facebook?: string;
|
||||
instagram?: string;
|
||||
github?: string;
|
||||
mastodon?: string;
|
||||
linkedin?: string;
|
||||
email: string;
|
||||
};
|
||||
|
||||
Giscus?: {
|
||||
enabled: boolean;
|
||||
repo: string;
|
||||
repoId: string;
|
||||
category: string;
|
||||
categoryId: string;
|
||||
};
|
||||
|
||||
SponsorLink?: {
|
||||
wechatPay?: string;
|
||||
alipay?: string;
|
||||
paypal?: string;
|
||||
};
|
||||
|
||||
YearStart: number;
|
||||
AuthorName: string;
|
||||
};
|
||||
4
types/friend.type.ts
Normal file
4
types/friend.type.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type TFriendItem = {
|
||||
title: string;
|
||||
url: string;
|
||||
};
|
||||
11
types/frontmatter.type.ts
Normal file
11
types/frontmatter.type.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export type TFrontmatter = {
|
||||
title: string;
|
||||
time: string;
|
||||
tags: string[] | null;
|
||||
subtitle: string | null;
|
||||
summary: string | null;
|
||||
coverURL: string | null;
|
||||
pin: boolean | null;
|
||||
noPrompt: boolean | null;
|
||||
allowShare: boolean | null;
|
||||
};
|
||||
10
types/post-list.ts
Normal file
10
types/post-list.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { TFrontmatter } from "./frontmatter.type";
|
||||
|
||||
export type TPostListItem = {
|
||||
id: string;
|
||||
frontMatter: TFrontmatter;
|
||||
};
|
||||
|
||||
export type TTagSubPostSet = {
|
||||
[tagName: string]: TPostListItem[];
|
||||
};
|
||||
5
types/toc.type.ts
Normal file
5
types/toc.type.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type TTOCItem = {
|
||||
level: number;
|
||||
title: string;
|
||||
anchorId: string;
|
||||
};
|
||||
Reference in New Issue
Block a user