📝 Docs: 升级新版 NonePress 主题 (#2375)

This commit is contained in:
Ju4tCode
2023-09-27 16:00:26 +08:00
committed by GitHub
parent 7754f6da1d
commit 842c6ff4c6
234 changed files with 8759 additions and 5887 deletions

View File

@ -0,0 +1,16 @@
import type { Tag } from "./tag";
type BaseAdapter = {
module_name: string;
project_link: string;
name: string;
desc: string;
author: string;
homepage: string;
tags: Tag[];
is_official: boolean;
};
export type Adapter = { resourceType: "adapter" } & BaseAdapter;
export type AdaptersResponse = BaseAdapter[];

14
website/src/types/bot.ts Normal file
View File

@ -0,0 +1,14 @@
import type { Tag } from "./tag";
type BaseBot = {
name: string;
desc: string;
author: string;
homepage: string;
tags: Tag[];
is_official: boolean;
};
export type Bot = { resourceType: "bot" } & BaseBot;
export type BotsResponse = BaseBot[];

View File

@ -0,0 +1,16 @@
import type { Tag } from "./tag";
type BaseDriver = {
module_name: string;
project_link: string;
name: string;
desc: string;
author: string;
homepage: string;
tags: Tag[];
is_official: boolean;
};
export type Driver = { resourceType: "driver" } & BaseDriver;
export type DriversResponse = BaseDriver[];

View File

@ -0,0 +1,22 @@
import type { Tag } from "./tag";
type BasePlugin = {
author: string;
name: string;
desc: string;
homepage: string;
is_official: boolean;
module_name: string;
project_link: string;
skip_test: boolean;
supported_adapters: string[] | null;
tags: Array<Tag>;
time: string;
type: string;
valid: boolean;
version: string;
};
export type Plugin = { resourceType: "plugin" } & BasePlugin;
export type PluginsResponse = BasePlugin[];

4
website/src/types/tag.ts Normal file
View File

@ -0,0 +1,4 @@
export type Tag = {
label: string;
color: `#${string}`;
};