mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 17:45:34 +08:00
update plugin market docs
This commit is contained in:
43
docs/.vuepress/components/PluginList.vue
Normal file
43
docs/.vuepress/components/PluginList.vue
Normal 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>
|
||||||
14
docs/.vuepress/components/plugin_list.js
Normal file
14
docs/.vuepress/components/plugin_list.js
Normal 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'
|
||||||
|
}
|
||||||
|
];
|
||||||
@@ -19,6 +19,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
repo: 'zhamao-robot/zhamao-framework',
|
repo: 'zhamao-robot/zhamao-framework',
|
||||||
|
docsBranch: 'main',
|
||||||
logo: '/logo_trans.png',
|
logo: '/logo_trans.png',
|
||||||
docsDir: 'docs',
|
docsDir: 'docs',
|
||||||
editLinks: true,
|
editLinks: true,
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ actions:
|
|||||||
link: /guide/
|
link: /guide/
|
||||||
type: primary
|
type: primary
|
||||||
size: large
|
size: large
|
||||||
- text: 快速上手(v2 旧版)
|
- text: 插件市场
|
||||||
link: https://docs-v2.zhamao.xin/
|
link: /plugin-market/
|
||||||
type: primary
|
type: primary
|
||||||
ghost: true
|
ghost: true
|
||||||
size: large
|
size: large
|
||||||
|
|||||||
13
docs/plugin-market/README.md
Normal file
13
docs/plugin-market/README.md
Normal 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>
|
||||||
Reference in New Issue
Block a user