Skip to content

Commit

Permalink
feat(market): enhance hints for search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 9, 2024
1 parent 4855bb6 commit 558fd2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/market/client/components/market.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p>无法连接到插件市场。这可能是以下原因导致的:</p>
<ul>
<li>无法连接到网络,请检查你的网络连接和代理设置</li>
<li>您所用的 registry 不支持搜索功能 (如 npmmirror),请考虑进行更换</li>
<li>您所用的 registry 不支持搜索功能,请考虑进行更换</li>
</ul>
</k-comment>
</k-layout>
Expand Down
11 changes: 11 additions & 0 deletions plugins/market/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 558fd2e

Please sign in to comment.