mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 12:36:47 +00:00
📝 Docs: 升级新版 NonePress 主题 (#2375)
This commit is contained in:
16
website/src/types/adapter.ts
Normal file
16
website/src/types/adapter.ts
Normal 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
14
website/src/types/bot.ts
Normal 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[];
|
16
website/src/types/driver.ts
Normal file
16
website/src/types/driver.ts
Normal 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[];
|
22
website/src/types/plugin.ts
Normal file
22
website/src/types/plugin.ts
Normal 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
4
website/src/types/tag.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export type Tag = {
|
||||
label: string;
|
||||
color: `#${string}`;
|
||||
};
|
Reference in New Issue
Block a user