diff --git a/src/assets/logo-mock/algolia.svg b/src/assets/logo-mock/algolia.svg new file mode 100644 index 00000000..6b797ed6 --- /dev/null +++ b/src/assets/logo-mock/algolia.svg @@ -0,0 +1,5 @@ + + Algolia + + diff --git a/src/views/system/plugins/plugins-mock.ts b/src/views/system/plugins/plugins-mock.ts index 0327c966..d0651470 100644 --- a/src/views/system/plugins/plugins-mock.ts +++ b/src/views/system/plugins/plugins-mock.ts @@ -6,6 +6,7 @@ import wechat from "@/assets/logo-mock/wechat.svg"; import github from "@/assets/logo-mock/github.svg"; import redis from "@/assets/logo-mock/redis.svg"; import elasticsearch from "@/assets/logo-mock/elasticsearch.svg"; +import algolia from "@/assets/logo-mock/algolia.svg"; export const plugins = [ { @@ -262,4 +263,27 @@ export const plugins = [ license: "GPL V3", }, }, + { + apiVersion: "v1", + kind: "Plugin", + metadata: { + name: "Algolia", + enabled: true, + labels: { + "extensions.halo.run/category": "search-engine", + }, + }, + spec: { + version: "1.0.0", + requires: ">=2.0.0", + author: "halo-dev", + logo: algolia, + pluginClass: "run.halo.plugins.algolia", + pluginDependencies: {}, + homepage: "https://github.com/halo-dev/halo-plugin-algolia", + shortDescription: "this is a test plugin", + description: "接入 Algolia 作为全文搜索系统", + license: "GPL V3", + }, + }, ];