mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-13 15:36:48 +00:00
📝 Docs: 升级新版 NonePress 主题 (#2375)
This commit is contained in:
20
website/src/pages/store/adapters.tsx
Normal file
20
website/src/pages/store/adapters.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
import { translate } from "@docusaurus/Translate";
|
||||
|
||||
import AdapterPageContent from "@/components/Store/Content/Adapter";
|
||||
import StoreLayout from "@/components/Store/Layout";
|
||||
|
||||
export default function StoreAdapters(): JSX.Element {
|
||||
const title = translate({
|
||||
id: "pages.store.adapter.title",
|
||||
message: "适配器商店",
|
||||
description: "Title for the adapter store page",
|
||||
});
|
||||
|
||||
return (
|
||||
<StoreLayout title={title}>
|
||||
<AdapterPageContent />
|
||||
</StoreLayout>
|
||||
);
|
||||
}
|
20
website/src/pages/store/bots.tsx
Normal file
20
website/src/pages/store/bots.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
import { translate } from "@docusaurus/Translate";
|
||||
|
||||
import BotPageContent from "@/components/Store/Content/Bot";
|
||||
import StoreLayout from "@/components/Store/Layout";
|
||||
|
||||
export default function StoreBots(): JSX.Element {
|
||||
const title = translate({
|
||||
id: "pages.store.bot.title",
|
||||
message: "机器人商店",
|
||||
description: "Title for the bot store page",
|
||||
});
|
||||
|
||||
return (
|
||||
<StoreLayout title={title}>
|
||||
<BotPageContent />
|
||||
</StoreLayout>
|
||||
);
|
||||
}
|
20
website/src/pages/store/drivers.tsx
Normal file
20
website/src/pages/store/drivers.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
import { translate } from "@docusaurus/Translate";
|
||||
|
||||
import DriverPageContent from "@/components/Store/Content/Driver";
|
||||
import StoreLayout from "@/components/Store/Layout";
|
||||
|
||||
export default function StoreDrivers(): JSX.Element {
|
||||
const title = translate({
|
||||
id: "pages.store.driver.title",
|
||||
message: "驱动器商店",
|
||||
description: "Title for the driver store page",
|
||||
});
|
||||
|
||||
return (
|
||||
<StoreLayout title={title}>
|
||||
<DriverPageContent />
|
||||
</StoreLayout>
|
||||
);
|
||||
}
|
7
website/src/pages/store/index.tsx
Normal file
7
website/src/pages/store/index.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
import { Redirect } from "@docusaurus/router";
|
||||
|
||||
export default function Store(): JSX.Element {
|
||||
return <Redirect to="/store/plugins" />;
|
||||
}
|
20
website/src/pages/store/plugins.tsx
Normal file
20
website/src/pages/store/plugins.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
import { translate } from "@docusaurus/Translate";
|
||||
|
||||
import PluginPageContent from "@/components/Store/Content/Plugin";
|
||||
import StoreLayout from "@/components/Store/Layout";
|
||||
|
||||
export default function StorePlugins(): JSX.Element {
|
||||
const title = translate({
|
||||
id: "pages.store.plugin.title",
|
||||
message: "插件商店",
|
||||
description: "Title for the plugin store page",
|
||||
});
|
||||
|
||||
return (
|
||||
<StoreLayout title={title}>
|
||||
<PluginPageContent />
|
||||
</StoreLayout>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user