From 558fd2ee441197d432ea74a54138b627fef8f5b6 Mon Sep 17 00:00:00 2001 From: Shigma Date: Wed, 10 Apr 2024 01:10:56 +0800 Subject: [PATCH] feat(market): enhance hints for search endpoint --- plugins/market/client/components/market.vue | 2 +- plugins/market/src/node/index.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/market/client/components/market.vue b/plugins/market/client/components/market.vue index 4b00a0bc..1bc22742 100644 --- a/plugins/market/client/components/market.vue +++ b/plugins/market/client/components/market.vue @@ -42,7 +42,7 @@

无法连接到插件市场。这可能是以下原因导致的:

diff --git a/plugins/market/src/node/index.ts b/plugins/market/src/node/index.ts index b8a0ed6e..30fa722e 100644 --- a/plugins/market/src/node/index.ts +++ b/plugins/market/src/node/index.ts @@ -33,6 +33,17 @@ declare module '@koishijs/console' { export const name = 'market' export const inject = ['http'] +export const usage = ` +如果插件市场页面提示「无法连接到插件市场」,则可以选择一个 Koishi 社区提供的镜像地址,填入下方对应的配置项中。 + +## 插件市场(填入 search.endpoint) + +- [t4wefan](https://k.ilharp.cc/2611)(大陆):https://registry.koishi.t4wefan.pub/index.json +- [Lipraty](https://k.ilharp.cc/3530)(大陆):https://koi.nyan.zone/registry/index.json +- Koishi(全球):https://registry.koishi.chat/index.json + +要浏览更多社区镜像,请访问 [Koishi 论坛上的镜像一览](https://k.ilharp.cc/4000)。` + export interface Config { registry?: Installer.Config search?: MarketProvider.Config