Skip to content

Commit 1edd152

Browse files
committed
update docs
1 parent b6320a8 commit 1edd152

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed

docs/.vuepress/components/PluginMarket.vue

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div
1313
v-for="(item, index) in filteredItems"
1414
:key="index"
15-
:class="{ 'clickable': item.link }"
15+
:class="{ 'clickable': item.link, 'expired': item.expired }"
1616
class="plugin-card"
1717
@click="handleCardClick(item)"
1818
>
@@ -32,6 +32,9 @@
3232
>
3333
<span class="price-corner-text">Not Free</span>
3434
</div>
35+
<div v-if="item.expired" class="expired-overlay">
36+
<span class="expired-text">已过期</span>
37+
</div>
3538
</div>
3639
<div class="card-content">
3740
<div class="card-title-row">
@@ -57,6 +60,7 @@
5760
/>
5861
</div>
5962
</div>
63+
<div v-if="item.expired" class="expired-overlay-card"></div>
6064
</div>
6165
</div>
6266
</template>
@@ -74,6 +78,7 @@ export interface PluginItem {
7478
image?: string
7579
logo: string
7680
free?: boolean
81+
expired?: boolean
7782
}
7883
7984
const props = withDefaults(
@@ -141,6 +146,7 @@ const handleCardClick = (item: PluginItem) => {
141146
height: 100%;
142147
max-height: 360px;
143148
border: 1px solid var(--vp-c-border);
149+
position: relative;
144150
}
145151
146152
.plugin-card.clickable:hover {
@@ -292,6 +298,35 @@ const handleCardClick = (item: PluginItem) => {
292298
border-color: var(--vp-c-brand);
293299
}
294300
301+
.expired-overlay {
302+
position: absolute;
303+
top: 0;
304+
left: 0;
305+
width: 100%;
306+
height: 100%;
307+
background-color: rgba(0, 0, 0, 0.6);
308+
display: flex;
309+
align-items: center;
310+
justify-content: center;
311+
}
312+
313+
.expired-overlay-card {
314+
position: absolute;
315+
top: 0;
316+
left: 0;
317+
width: 100%;
318+
height: 100%;
319+
background-color: rgba(0, 0, 0, 0.6);
320+
z-index: 3;
321+
pointer-events: none;
322+
}
323+
324+
.expired-text {
325+
color: white;
326+
font-size: 1.5rem;
327+
font-weight: bold;
328+
}
329+
295330
@media (max-width: 767px) {
296331
.plugin-card-container {
297332
grid-template-columns: repeat(1, 1fr);

docs/.vuepress/data/plugin.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,42 @@ export const pluginItems: PluginItem[] = [
66
title: "代码生成",
77
description: "生成通用业务代码",
88
tags: ["mysql", "pgsql", "后端", "前端"],
9-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
9+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
1010
},
1111
{
1212
icon: "fe:notice-active",
1313
title: "通知公告",
1414
description: "发布系统内部通知、公告",
1515
tags: ["mysql", "pgsql", "后端", "前端"],
16-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
16+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
1717
},
1818
{
1919
icon: "fluent-mdl2:dictionary",
2020
title: "数据字典",
2121
description: "通常用于约束前端工程数据传输/展示",
2222
tags: ["mysql", "pgsql", "后端", "前端"],
23-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
23+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
2424
},
2525
{
2626
icon: "icon-park-outline:config",
2727
title: "参数配置",
2828
description: "通常用于动态配置系统参数/前端工程数据展示",
2929
tags: ["mysql", "pgsql", "后端", "前端"],
30-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
30+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
3131
},
3232
{
3333
icon: "logos:oauth",
3434
title: "OAuth 2.0",
3535
description: "通过 OAuth 2.0 的方式登录系统",
3636
tags: ["mysql", "pgsql", "后端"],
37-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
37+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
3838
},
3939
{
4040
icon: "ic:twotone-email",
4141
title: "Email",
4242
description: "发送电子邮件,例如验证码、通知等",
4343
tags: ["mysql", "pgsql", "后端"],
44-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
44+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
4545
},
4646
{
4747
icon: "charm:shield-keyhole",
@@ -51,7 +51,7 @@ export const pluginItems: PluginItem[] = [
5151
tags: ["mysql", "pgsql", "后端"],
5252
link: "https://github.com/fastapi-practices/casbin_rbac",
5353
image: "https://avatars.githubusercontent.com/u/27810343?s=200&v=4",
54-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
54+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
5555
},
5656
{
5757
icon: "codicon:mcp",
@@ -60,7 +60,7 @@ export const pluginItems: PluginItem[] = [
6060
label: '官方',
6161
tags: ["mysql", "pgsql", "后端"],
6262
link: "https://github.com/fastapi-practices/mcp",
63-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
63+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
6464
},
6565
{
6666
icon: "ant-design:aliyun-outlined",
@@ -70,7 +70,7 @@ export const pluginItems: PluginItem[] = [
7070
tags: ["mysql", "pgsql", "后端"],
7171
link: "https://github.com/fastapi-practices/aliyun_oss",
7272
image: "https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/alibabacloud-color.png",
73-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png'
73+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
7474
},
7575
{
7676
icon: "material-symbols:token-outline",
@@ -90,6 +90,7 @@ export const pluginItems: PluginItem[] = [
9090
link: "https://github.com/dividduang/wecom-task",
9191
image: "https://play-lh.googleusercontent.com/Grc8X-UKT5qlDyUeGACwt9npfGFi8RM5N7lxZHfEtavSSu5zavMdv1YwBB3rHYokorw=w240-h480-rw",
9292
logo: 'https://avatars.githubusercontent.com/u/110005582?v=4',
93+
expired: true,
9394
},
9495
{
9596
icon: "arcticons:sso-plus",
@@ -100,7 +101,7 @@ export const pluginItems: PluginItem[] = [
100101
link: "/fastapi_best_architecture_docs/planet.html",
101102
image: "https://casdoor.org/zh/img/casdoor.png",
102103
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
103-
free: false
104+
free: false,
104105
},
105106
{
106107
icon: "material-icon-theme:authors",

0 commit comments

Comments
 (0)