Skip to content

Commit ee41cf3

Browse files
committed
update docs
1 parent 197279c commit ee41cf3

File tree

6 files changed

+39
-31
lines changed

6 files changed

+39
-31
lines changed

docs/.vuepress/components/BannerTop.vue

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function dismiss() {
1212
}
1313
1414
function updateDocumentClass() {
15-
console.log(isDismissed.value);
1615
if (typeof window !== 'undefined') {
1716
document.documentElement.classList.toggle("banner-dismissed", !isDismissed.value);
1817
}

docs/.vuepress/components/Price.vue

+24-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<div class="pricing-container">
33
<h1 class="pricing-title">选择适合您的版本</h1>
4+
<p class="pricing-subtitle">
5+
此仓库作为模板库公开,任何个人或企业均可自由使用!<br>
6+
专业版是社区共建计划的一部分,您的支持将加速功能升级,推动全社区技术架构演进
7+
</p>
48
<div class="pricing-cards">
59
<!-- 开源版 -->
610
<div class="pricing-card">
@@ -10,7 +14,8 @@
1014
<p class="card-description">{{ plans.openSource.description }}</p>
1115
</div>
1216
<div class="price-section">
13-
<div class="current-price">{{ plans.openSource.price.current }}</div>
17+
<div class="current-price">{{ plans.openSource.price.current }} <span class="billing-cycle">/ 年</span>
18+
</div>
1419
<div v-if="plans.openSource.price.original" class="original-price">
1520
<del>{{ plans.openSource.price.original }}</del>
1621
</div>
@@ -22,7 +27,10 @@
2227
</li>
2328
</ul>
2429
</div>
25-
<button class="cta-button">立即使用</button>
30+
<button class="cta-button"
31+
@click="openSponsorLink('/fastapi_best_architecture_docs/backend/summary/quick-start.html')">
32+
立即使用
33+
</button>
2634
</div>
2735

2836
<!-- 专业版 -->
@@ -34,7 +42,8 @@
3442
<p class="card-description">{{ plans.professional.description }}</p>
3543
</div>
3644
<div class="price-section">
37-
<div class="current-price">{{ plans.professional.price.current }} <span class="billing-cycle">/ 年</span></div>
45+
<div class="current-price">{{ plans.professional.price.current }} <span class="billing-cycle">/ 年</span>
46+
</div>
3847
<div v-if="plans.professional.price.original" class="original-price">
3948
<del>{{ plans.professional.price.original }}</del>
4049
</div>
@@ -46,7 +55,7 @@
4655
</li>
4756
</ul>
4857
</div>
49-
<button class="cta-button primary" @click="goSponsor">立即购买</button>
58+
<button class="cta-button primary" @click="openSponsorLink(sponsorUrl + '#有偿赞助')">立即购买</button>
5059
</div>
5160

5261
<!-- 企业版 -->
@@ -57,7 +66,8 @@
5766
<p class="card-description">{{ plans.enterprise.description }}</p>
5867
</div>
5968
<div class="price-section">
60-
<div class="current-price">{{ plans.enterprise.price.current }} <span class="billing-cycle">/ 年</span></div>
69+
<div class="current-price">{{ plans.enterprise.price.current }} <span class="billing-cycle">/ 年</span>
70+
</div>
6171
<div v-if="plans.enterprise.price.original" class="original-price">
6272
<del>{{ plans.enterprise.price.original }}</del>
6373
</div>
@@ -69,7 +79,7 @@
6979
</li>
7080
</ul>
7181
</div>
72-
<button class="cta-button" @click="goSponsor">立即购买</button>
82+
<button class="cta-button">无此方案</button>
7383
</div>
7484
</div>
7585
</div>
@@ -78,23 +88,24 @@
7888
<script setup>
7989
import { plans } from "../data/price";
8090
import { openSponsorLink, sponsorUrl } from "../data/sponsors";
81-
82-
const goSponsor = () => {
83-
openSponsorLink(sponsorUrl + '#有偿赞助')
84-
}
8591
</script>
8692

8793
<style scoped>
94+
.pricing-subtitle {
95+
text-align: center;
96+
margin-bottom: 2.5rem;
97+
color: var(--vp-c-text-2);
98+
}
99+
88100
.pricing-container {
89-
max-width: 1200px;
90101
margin: 0 auto;
91102
padding: 2rem 0;
92103
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
93104
}
94105
95106
.pricing-title {
96107
text-align: center;
97-
margin-bottom: 3rem;
108+
margin-bottom: 2rem;
98109
}
99110
100111
.pricing-cards {
@@ -134,15 +145,10 @@ const goSponsor = () => {
134145
}
135146
136147
.card-header {
137-
margin-bottom: 1.5rem;
148+
margin: -1rem 0 1.5rem;
138149
text-align: center;
139150
}
140151
141-
.card-header h2 {
142-
font-size: 1.5rem;
143-
margin-bottom: 0.5rem;
144-
}
145-
146152
.card-description {
147153
font-size: 0.9rem;
148154
color: var(--vp-c-text-2);

docs/.vuepress/components/SponsorHome.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { homeSponsor, shouldShowSponsor } from "../data/sponsors";
1212
</section>
1313
<section v-else id="special-spsr">
1414
<span class="no-brand">
15-
<a href="/fastapi_best_architecture_docs/sponsors" target="_blank">特别赞助位目前空缺 - 现在咨询 💬</a>
15+
<a href="/fastapi_best_architecture_docs/sponsors.html" target="_blank">特别赞助位目前空缺 - 现在咨询 💬</a>
1616
</span>
1717
</section>
1818
</template>

docs/.vuepress/data/price.ts

+11-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ export const plans = {
44
title: '开源版',
55
description: '适合个人开发者和小型项目',
66
price: {
7-
current: '免费',
8-
original: ''
7+
current: '¥0',
8+
original: '¥0'
99
},
1010
features: [
11+
'全部基础功能',
1112
'全量架构源码',
1213
'社区支持',
1314
'MIT许可证',
14-
'剔除版权标识',
15+
'无需保留版权',
16+
'无需保留许可声明',
1517
'自主部署',
1618
'部分文档访问',
17-
'部分插件'
19+
'部分插件源码'
1820
]
1921
},
2022
professional: {
@@ -27,18 +29,18 @@ export const plans = {
2729
features: [
2830
'所有开源版功能',
2931
'优先支持',
30-
'所有文档',
31-
'所有官方插件',
3232
'一对一指导',
33-
'远程支持'
33+
'远程支持',
34+
'所有文档访问',
35+
'所有官方插件源码'
3436
]
3537
},
3638
enterprise: {
3739
title: '企业版',
3840
description: '适合大型企业和关键业务',
3941
price: {
40-
current: '¥99',
41-
original: '¥8888'
42+
current: '¥xxxx',
43+
original: '¥xxxx'
4244
},
4345
features: [
4446
'所有专业版功能',

docs/backend/summary/intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,5 @@ mvc 架构作为常规设计模式,在 python web 中很常见,但是三层
108108

109109
> [!IMPORTANT]
110110
> 特此感谢 [无名](https://github.com/lvright) 为此架构无偿设计的 LOGO
111+
>
111112
> LOGO 寓意:包含了 FBA 三个字母抽象结合,形成了一个类似从地面扩散投影上来的闪电

docs/backend/summary/why.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
77
</script>
88

99
> [!TIP]
10-
> 此仓库作为模板库公开,任何个人或企业均可免费使用
10+
> 此仓库作为模板库公开,任何个人或企业均可自由使用
1111
1212
::: note
1313
我们不会去对比任何其他架构,我们认为每个架构都有自己的特点,适用于不同的场景。
@@ -21,7 +21,7 @@ import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
2121

2222
## 承诺
2323

24-
此仓库作为模板库公开,任何个人或企业均可免费使用!您可以通过 [购买授权](../../price.md) 查看我们的授权方案
24+
此仓库作为模板库公开,任何个人或企业均可自由使用!您可以通过 [购买授权](../../price.md) 查看我们的授权方案
2525

2626
## 架构
2727

0 commit comments

Comments
 (0)