This commit is contained in:
砂糖
2026-01-24 16:54:44 +08:00
commit 70f337bb92
186 changed files with 23792 additions and 0 deletions

16
types/blog.ts Normal file
View File

@@ -0,0 +1,16 @@
export type BlogPost = {
locale?: string
title: string
description?: string
image?: string
slug: string
tags?: string
date: Date
visible?: 'draft' | 'invisible' | 'published'
pin?: boolean
content: string
metadata: {
[key: string]: any
},
}

22
types/common.ts Normal file
View File

@@ -0,0 +1,22 @@
export interface HeaderLink {
id?: string;
name: string;
href: string;
target?: string;
rel?: string;
children?: HeaderLink[];
};
export interface FooterLink {
title: string;
links: Link[];
};
interface Link {
id?: string;
href: string;
name: string;
target?: string;
rel?: string;
useA?: boolean;
};

9
types/line.ts Normal file
View File

@@ -0,0 +1,9 @@
export type Line = {
locale: string;
title: string;
desc: string;
cover: string;
images: string[];
properties?: string[];
slug: string;
}

12
types/product.ts Normal file
View File

@@ -0,0 +1,12 @@
export type Product = {
locale: string;
title: string;
model: string;
place: string;
publishedTime: Date;
images: string[];
detail: string;
spec: string[];
packaging: string;
slug: string;
}

32
types/siteConfig.ts Normal file
View File

@@ -0,0 +1,32 @@
export type AuthorsConfig = {
name: string
url: string
}
export type ThemeColor = {
media: string
color: string
}
export type SiteConfig = {
name: string
tagLine?: string
description?: string
url: string
authors: AuthorsConfig[]
socialLinks?: {
github?: string
bluesky?: string
twitter?: string
twitterZh?: string
discord?: string
email?: string
}
creator: string
themeColors?: string | ThemeColor[]
defaultNextTheme?: string
icons: {
icon: string
shortcut?: string
apple?: string
}
}

8
types/workShop.ts Normal file
View File

@@ -0,0 +1,8 @@
export type WorkShop = {
locale: string;
title: string;
desc: string;
cover: string;
images: string[];
slug: string;
}