init
This commit is contained in:
16
types/blog.ts
Normal file
16
types/blog.ts
Normal 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
22
types/common.ts
Normal 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
9
types/line.ts
Normal 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
12
types/product.ts
Normal 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
32
types/siteConfig.ts
Normal 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
8
types/workShop.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export type WorkShop = {
|
||||
locale: string;
|
||||
title: string;
|
||||
desc: string;
|
||||
cover: string;
|
||||
images: string[];
|
||||
slug: string;
|
||||
}
|
||||
Reference in New Issue
Block a user