update plugin market docs

This commit is contained in:
crazywhalecc
2023-02-12 20:02:02 +08:00
committed by Jerry
parent b0e43b68fb
commit 32ae5cb633
5 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
<template>
<a-row>
<a-col :span="8" v-for="item in plugin_list" v-bind="item" >
<a :href="item.link">
<a-card hoverable style="width: 280px; margin: 8px; height: 120px" >
<a-card-meta :title="item.name" :description="item.description">
<template #avatar>
<a-avatar :src="item.avatar == null ? 'https://zhamao.xin/file/hello.jpg' : item.avatar" />
</template>
</a-card-meta>
</a-card>
</a>
</a-col>
</a-row>
</template>
<script>
export default {
name: "PluginList",
data() {
return {
plugin_list: []
}
},
created() {
this.plugin_list = require('./plugin_list');
console.log(this.plugin_list);
},
methods: {
jumpTo(link) {
window.location.href = link.link;
return true;
}
}
}
</script>
<style scoped>
.ant-avatar {
width: 36px;
height: 36px;
}
</style>

View File

@@ -0,0 +1,14 @@
module.exports = [
{
name: 'baidu-translate',
description: '翻译插件(百度)',
avatar: null,
link: 'https://github.com/zhamao-robot/baidu-translate-plugin'
},
{
name: 'go-cqhttp-adapter-plugin',
description: '框架接入 gocq 的适配器(将 OneBot 11 转为 12',
avatar: 'https://user-images.githubusercontent.com/25968335/120111974-8abef880-c139-11eb-99cd-fa928348b198.png',
link: 'https://github.com/zhamao-robot/go-cqhttp-adapter-plugin'
}
];

View File

@@ -19,6 +19,7 @@ module.exports = {
],
themeConfig: {
repo: 'zhamao-robot/zhamao-framework',
docsBranch: 'main',
logo: '/logo_trans.png',
docsDir: 'docs',
editLinks: true,

View File

@@ -6,8 +6,8 @@ actions:
link: /guide/
type: primary
size: large
- text: 快速上手v2 旧版)
link: https://docs-v2.zhamao.xin/
- text: 插件市场
link: /plugin-market/
type: primary
ghost: true
size: large

View File

@@ -0,0 +1,13 @@
# 插件市场
这里列出了框架的部分插件。
::: tip 提示
这里也可以分享你的插件,点击 [这里](https://github.com/zhamao-robot/zhamao-framework/edit/main/docs/.vuepress/plugin_list.js),提交 PR 即可添加!
如果对这里的插件有疑问,请到插件对应的 GitHub 仓库发起 Issue 提问。
:::
<plugin-list></plugin-list>