File tree Expand file tree Collapse file tree 8 files changed +37
-30
lines changed Expand file tree Collapse file tree 8 files changed +37
-30
lines changed Original file line number Diff line number Diff line change 1
- import { BulletinOptions } from "vuepress-theme-plume" ;
1
+ import { BulletinOptions } from "vuepress-theme-plume" ;
2
2
3
3
export const myBulletin : BulletinOptions = {
4
4
enablePage : true ,
5
5
lifetime : 'session' ,
6
6
contentType : 'markdown' ,
7
- title : 'FasAPI 最佳架构 ' ,
8
- content : '欢迎大家加入 Discord 社区闲聊,分享,提供建议,高频艾特,你们的活跃度是我更新的动力 🌹 ' ,
7
+ title : '通知/公告 ' ,
8
+ content : '插件系统已发布, 欢迎体验和共创 🤗 ' ,
9
9
}
Original file line number Diff line number Diff line change 1
- import { defineClientConfig } from 'vuepress/client'
1
+ import { defineClientConfig } from 'vuepress/client'
2
2
import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
3
3
import Layout from './layouts/Layout.vue'
4
4
@@ -7,7 +7,7 @@ import Swiper from "./components/Swiper.vue";
7
7
import SponsorPanel from "./components/SponsorPanel.vue" ;
8
8
9
9
export default defineClientConfig ( {
10
- enhance ( { app} ) {
10
+ enhance ( { app } ) {
11
11
app . component ( 'RepoCard' , RepoCard )
12
12
app . component ( 'Swiper' , Swiper )
13
13
app . component ( 'SponsorPanel' , SponsorPanel )
Original file line number Diff line number Diff line change 1
- import { ref } from "vue" ;
1
+ import { ref } from "vue" ;
2
+
3
+ const sponsorUrl : string = window . location . origin + '/fastapi_best_architecture_docs/sponsors.html' ;
2
4
3
5
export const goldSponsors = ref ( [
4
6
{
@@ -10,13 +12,13 @@ export const goldSponsors = ref([
10
12
{
11
13
link : '' ,
12
14
text : '成为赞助商' ,
13
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
15
+ href : sponsorUrl ,
14
16
alt : 'wu-clan' ,
15
17
} ,
16
18
{
17
19
link : '' ,
18
20
text : '成为赞助商' ,
19
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
21
+ href : sponsorUrl ,
20
22
alt : 'wu-clan' ,
21
23
}
22
24
] )
@@ -31,31 +33,31 @@ export const generalSponsors = ref([
31
33
{
32
34
link : '' ,
33
35
text : '成为赞助商' ,
34
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
36
+ href : sponsorUrl ,
35
37
alt : 'wu-clan' ,
36
38
} ,
37
39
{
38
40
link : '' ,
39
41
text : '成为赞助商' ,
40
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
42
+ href : sponsorUrl ,
41
43
alt : 'wu-clan' ,
42
44
} ,
43
45
{
44
46
link : '' ,
45
47
text : '成为赞助商' ,
46
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
48
+ href : sponsorUrl ,
47
49
alt : 'wu-clan' ,
48
50
} ,
49
51
{
50
52
link : '' ,
51
53
text : '成为赞助商' ,
52
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
54
+ href : sponsorUrl ,
53
55
alt : 'wu-clan' ,
54
56
} ,
55
57
{
56
58
link : '' ,
57
59
text : '成为赞助商' ,
58
- href : 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86' ,
60
+ href : sponsorUrl ,
59
61
alt : 'wu-clan' ,
60
62
}
61
63
] )
Original file line number Diff line number Diff line change 1
1
: root {
2
2
/* 公告宽度 */
3
- /*--vp-bulletin-width: 385px ;*/
3
+ /*--vp-bulletin-width: 333px ;*/
4
4
/* 链接颜色、强调色 */
5
5
--vp-c-brand-1 : rgba (0 , 148 , 133 , 1 );
6
6
/* 链接、按钮 hover 颜色 */
7
7
--vp-c-brand-2 : rgba (0 , 148 , 133 , 1 );
8
8
/* 背景色、边框色 */
9
9
--vp-c-brand-3 : rgba (0 , 148 , 133 , 1 );
10
+
10
11
/* 导航栏分组 */
11
12
.vp-menu-group {
12
13
.title {
22
23
--vp-c-brand-2 : rgba (0 , 148 , 133 , 1 );
23
24
/* 背景色、边框色 */
24
25
--vp-c-brand-3 : rgba (0 , 148 , 133 , 1 );
26
+
25
27
/* 导航栏分组 */
26
28
.vp-menu-group {
27
29
.title {
30
32
}
31
33
}
32
34
33
-
35
+ /* 首页文字说明 */
36
+ .hero-text {
37
+ margin : 24px 0 40px !important ;
38
+ }
34
39
35
40
.vp-swiper .swiper-slide-img {
36
41
/* 轮播图图片拉伸效果 */
Original file line number Diff line number Diff line change @@ -21,28 +21,28 @@ config:
21
21
features :
22
22
- title : 最新技术栈
23
23
icon : 🚀
24
- details : 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery、等最新技术栈
24
+ details : 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery 等技术栈
25
25
- title : 自研架构
26
26
icon : 🧠
27
- details : 独特的「伪三层架构」,让所有开发者轻松驾驭
28
- - title : 全局异步
29
- icon : 🔄
30
- details : 基于 async/await + asgiref 实现全局异步处理,告别协程阻塞问题
27
+ details : 独特的「伪三层架构」,让所有开发者可轻松驾驭
28
+ - title : 插件系统
29
+ icon : unjs:unplugin
30
+ details : 告别高耦合集成,让功能变得可轻松 Hot Swap(热插拔)
31
31
- title : JWT
32
32
icon : 🔏
33
- details : 带有缓存和白名单的 JWT 中间件自动认证
34
- - title : 权限管理
33
+ details : 带有缓存和白名单的 JWT 授权中间件
34
+ - title : RBAC
35
35
icon : 🛠️
36
- details : 提供 Casbin、Role-Menu 两种 RBAC 权限方案。开关控制选择
36
+ details : 提供 Casbin、Role-Menu 两种 RBAC 方案
37
37
- title : 代码生成
38
38
icon : ⚙️
39
- details : 提供后端代码自动生成,告别繁琐基础代码结构 cv
39
+ details : 内置代码自动生成,告别通用代码频繁 cv
40
40
- title : 时区时间
41
41
icon : ⌛
42
- details : 通过配置一键应用全局时区时间 ,告别时间处理烦恼
42
+ details : 提供全局时区时间配置 ,告别时间处理烦恼
43
43
- title : 日志
44
44
icon : 📝
45
- details : 内置十分强大的日志系统,全方位 Trace ID 助你一步锁定问题
45
+ details : 强大的日志系统, Trace ID 助你轻松定位任何问题
46
46
- title : Docker
47
47
icon : 🐳
48
48
details : 提供 Docker compose 一键部署方案
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ mvc 架构作为常规设计模式,在 python web 中很常见,但是三层
81
81
- middleware/ 中间件
82
82
- plugin 插件
83
83
- code_generator/ 代码生成
84
- - ...
84
+ - …
85
85
- scripts/ 脚本
86
86
- sql/ SQL 文件
87
87
- static/ 静态文件
Original file line number Diff line number Diff line change @@ -182,12 +182,12 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
182
182
## 开发流程
183
183
184
184
::: tip
185
- 仅供参考,实际以个人习惯为准
185
+ 仅供参考,实际以个人开发习惯为准
186
186
:::
187
187
188
188
::: steps
189
189
190
- 1. 定义数据库模型(model)
190
+ 1. 定义数据库模型([ model](../reference/model.md) )
191
191
192
192
2. 定义数据验证模型([schema](../reference/schema.md))
193
193
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ tags = ''
100
100
- utils/ 工具包 <Badge type =" warning " text =" 非必须 " />
101
101
- \_\_ init\_\_ .py 作为 python 包保留 <Badge type =" danger " text =" 必须 " />
102
102
- conf.py 插件独立配置 <Badge type =" warning " text =" 非必须 " />
103
- - ... 更多其他配置,例如 enums.py... <Badge type =" warning " text =" 非必须 " />
103
+ - … 更多其他配置,例如 enums.py... <Badge type =" warning " text =" 非必须 " />
104
104
- plugin.toml 插件配置文件 <Badge type =" danger " text =" 必须 " />
105
105
- README.md 插件使用说明 <Badge type =" danger " text =" 必须 " />
106
106
- requirements.txt 依赖包文件 <Badge type =" warning " text =" 非必须 " />;
You can’t perform that action at this time.
0 commit comments