Skip to content

Commit 5daeab0

Browse files
committed
update docs
1 parent 4fd9f67 commit 5daeab0

File tree

2 files changed

+40
-17
lines changed

2 files changed

+40
-17
lines changed

docs/.vuepress/components/PluginMarket.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@
110110
/>
111111
<span>可用</span>
112112
</label>
113+
<label class="filter-badge" :class="{ active: selectedStatus === 'wip' }">
114+
<input
115+
type="radio"
116+
value="wip"
117+
v-model="selectedStatus"
118+
name="status"
119+
/>
120+
<span>开发中</span>
121+
</label>
113122
<label class="filter-badge" :class="{ active: selectedStatus === 'expired' }">
114123
<input
115124
type="radio"
@@ -166,7 +175,7 @@
166175
<div
167176
v-for="(item, index) in filteredItems"
168177
:key="index"
169-
:class="{ 'clickable': item.link, 'expired': item.expired }"
178+
:class="{ 'clickable': item.link, 'expired': item.expired || item.wip }"
170179
class="plugin-card"
171180
@click="handleCardClick(item)"
172181
>
@@ -183,6 +192,9 @@
183192
<div v-if="item.expired" class="expired-overlay">
184193
<span class="expired-text">已过期,不适用</span>
185194
</div>
195+
<div v-if="item.wip" class="expired-overlay">
196+
<span class="expired-text">正在开发中</span>
197+
</div>
186198
</div>
187199
<div class="card-content">
188200
<div class="card-title-row">
@@ -208,7 +220,7 @@
208220
/>
209221
</div>
210222
</div>
211-
<div v-if="item.expired" class="expired-overlay-card"></div>
223+
<div v-if="item.expired || item.wip" class="expired-overlay-card"></div>
212224
</div>
213225
</div>
214226
</div>
@@ -230,6 +242,7 @@ export interface PluginItem {
230242
logo: string
231243
free?: boolean
232244
expired?: boolean
245+
wip?: boolean
233246
}
234247
235248
const props = withDefaults(
@@ -317,9 +330,11 @@ const baseFilteredItems = computed(() => {
317330
}
318331
319332
if (selectedStatus.value === 'active') {
320-
result = result.filter(item => !item.expired)
333+
result = result.filter(item => !item.expired && !item.wip)
321334
} else if (selectedStatus.value === 'expired') {
322335
result = result.filter(item => item.expired)
336+
} else if (selectedStatus.value === 'wip') {
337+
result = result.filter(item => item.wip)
323338
}
324339
325340
return result
@@ -481,18 +496,6 @@ const handleCardClick = (item: PluginItem) => {
481496
overflow: hidden;
482497
}
483498
484-
.filter-content-enter-active,
485-
.filter-content-leave-active {
486-
transition: all 0.3s ease;
487-
max-height: 1000px;
488-
}
489-
490-
.filter-content-enter-from,
491-
.filter-content-leave-to {
492-
max-height: 0;
493-
opacity: 0;
494-
}
495-
496499
@media (max-width: 767px) {
497500
.filter-card.collapsed {
498501
margin-bottom: 0;

docs/.vuepress/data/plugin.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const pluginItems: PluginItem[] = [
5656
{
5757
icon: "codicon:mcp",
5858
title: "MCP 服务器管理",
59-
description: "提供了 MCP 服务器管理功能,并添加了可调用 MCP 的 AI 聊天接口",
59+
description: "提供了 MCP 服务器管理功能,可配合 AI 插件食用",
6060
label: '官方',
6161
tags: ["MCP", "pgsql", "mysql", "后端"],
6262
link: "https://github.com/fastapi-practices/mcp",
@@ -65,7 +65,7 @@ export const pluginItems: PluginItem[] = [
6565
{
6666
icon: "ant-design:aliyun-outlined",
6767
title: "阿里云 oss",
68-
description: "阿里云 oss 文件上传",
68+
description: "阿里云 oss 对象存储",
6969
label: '官方',
7070
tags: ["pgsql", "mysql", "后端"],
7171
link: "https://github.com/fastapi-practices/aliyun_oss",
@@ -122,4 +122,24 @@ export const pluginItems: PluginItem[] = [
122122
image: "https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/tencentcloud-color.png",
123123
logo: 'https://avatars.githubusercontent.com/u/67427627?v=4',
124124
},
125+
{
126+
icon: "carbon:ai-label",
127+
title: "AI",
128+
description: "为系统带来了 AI 赋能,是系统 AI 能力的基石",
129+
label: '官方',
130+
tags: ["AI", "pgsql", "mysql", "后端"],
131+
link: "https://github.com/fastapi-practices/ai",
132+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
133+
wip: true,
134+
},
135+
{
136+
icon: "logos:aws-s3",
137+
title: "S3",
138+
description: "提供兼容 S3 协议的对象存储能力",
139+
label: '官方',
140+
tags: ["S3", "pgsql", "mysql", "后端"],
141+
link: "https://github.com/fastapi-practices/s3",
142+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
143+
wip: true,
144+
},
125145
]

0 commit comments

Comments
 (0)