File tree Expand file tree Collapse file tree 8 files changed +1067
-399
lines changed Expand file tree Collapse file tree 8 files changed +1067
-399
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ export default defineUserConfig({
65
65
watermark : true ,
66
66
markdownPower : {
67
67
icons : true ,
68
- bilibili : true ,
69
68
} ,
70
69
markdownEnhance : {
71
70
mermaid : true ,
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ async def get_pagination_apis(db: CurrentSession) -> ResponseModel:
39
39
40
40
这种方式由 SQLAlchemy 官方实现,在线程安全方面,由于在同一个函数中,可能存在多次调用,所以没有 Session 生成器严谨
41
41
42
- ``` python
43
- # [!code word:begin]
42
+ ``` python{2}
44
43
async def create(*, obj: CreateIns) -> None:
45
44
async with async_db_session.begin() as db:
46
45
await xxx_dao.create(db, obj)
Original file line number Diff line number Diff line change @@ -235,23 +235,21 @@ title: 快速开始
235
235
::: steps
236
236
237
237
1. 定义数据库模型(model)
238
-
239
238
2. 定义数据验证模型(schema)
240
-
241
239
3. 定义视图(api)和路由(router)
242
-
243
240
4. 编写业务(service)
244
241
245
242
5. 编写数据库操作(crud)
246
- :::
243
+
244
+ :::
247
245
248
246
# # 单元测试
249
247
250
248
::: info
251
249
通过 ` pytest` 运行单元测试,项目内仅提供了非常简易的 demo,并不是完整单元测试,如需要,请自行编写
252
250
:::
253
251
254
- :::: steps
252
+ ::: steps
255
253
256
254
1. 创建测试数据库 ` fba_test` ,选择 utf8mb4 编码,postgres 用户可忽略编码
257
255
2. 创建数据库表,执行 ` backend/sql/` 目录下对应数据库的 ` create_tables.sql` 脚本
@@ -262,4 +260,4 @@ title: 快速开始
262
260
pytest -vs --disable-warnings
263
261
` ` `
264
262
265
- ::::
263
+ :::
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ title: 知识星球
7
7
8
8
附:星球用于 [ 有偿赞助] ( ../../sponsors.md#有偿赞助 ) ,加入 Discord
9
9
社区,即可 [ 领取免费体验资格] ( https://discord.gg/Sdg6dT5kjz )
10
- <p style =" color : yellow " >如果您觉得还不错,再选择正式加入即可</p >
11
10
</div >
12
11
13
- ::: details 我要正式加入
12
+ ::: details 如果您觉得还不错,快来正式加入订阅吧
14
13
<div align =" center " >
15
- <p >大额优惠已发放 ,速速加入 <a href =" https://discord.gg/Sdg6dT5kjz " >Discord</a > 免费领取吧</p >
14
+ <p style = " color : yellow " >大额优惠券已发放 ,速速加入 <a href =" https://discord.gg/Sdg6dT5kjz " >Discord</a > 免费领取吧</p >
16
15
<img height =" 349 " width =" 415 " src =" https://wu-clan.github.io/picx-images-hosting/知识星球.png " alt =" 知识星球 " >
17
16
</div >
18
17
:::
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ title: 前言
10
10
11
11
提供一个共创平台,告别高耦合集成,让功能变得可轻松 Hot Swap(热插拔)
12
12
13
- 遗憾的是,我们并不会提供类似于会员制的插件系统对插件进行统一管理 ,我们计划将所有插件在 [ 插件市场] ( market.md ) 进行展示和导航
13
+ 遗憾的是,我们并不会提供会员制插件后台管理平台对插件进行统一管理 ,我们计划将所有插件在 [ 插件市场] ( market.md ) 进行展示和导航
14
14
15
15
## 开发
16
16
@@ -26,14 +26,14 @@ title: 前言
26
26
27
27
## 可商用吗
28
28
29
- 请务必遵守插件代码许可证
29
+ 取决于插件开发者
30
30
31
31
## 技术支持
32
32
33
- 插件作者需提供至少一种联系方式且必须加入 Discord 社区,我们会在 Discord 为每个插件提供独立互动频道
33
+ 插件作者需提供至少一种联系方式且必须加入 Discord 社区,我们会在社区内为每个插件提供独立互动频道
34
34
35
- 第三方插件用户需自行联系第三方插件作者,我们不提供第三方插件技术支持
35
+ 第三方插件用户需自行联系第三方插件作者,我们不提供任何第三方插件技术支持
36
36
37
37
## 免责声明
38
38
39
- 我们会尽可能加强审核力度 ,但对于插件作者跑路行为,我们不承担任何责任
39
+ 我们会尽可能的加强插件审核力度 ,但对于插件作者跑路行为,我们不承担任何责任
Original file line number Diff line number Diff line change 2
2
title : 插件市场
3
3
---
4
4
5
- > [ !IMPORTANT]
6
- > 插件需要人工审核,请 [ 点击此处] ( https://discord.gg/5SDAZgDya9 ) 与我们联系,一旦插件符合要求,我们会立即更新至此页面
7
-
8
- ## 官方
9
-
10
- 这些插件由 FBA 开发人员维护
11
-
12
- ### 免费
5
+ ::: warning
6
+ 插件功能目前处于测试阶段,如有任何建议,请立即和我们 [ 反馈] ( https://discord.com/channels/1185035164577972344/1332032404663046204 )
7
+ 吧
8
+ :::
13
9
14
- 即将到来...
10
+ ::: info
11
+ 你可以在 [ 插件互动频道] ( https://discord.gg/5SDAZgDya9 ) 与插件作者及社区人员进行互动和交流
12
+ :::
15
13
16
- ### 付费
14
+ > [ !IMPORTANT]
15
+ > 插件需要人工审核,请 [ 点击此处] ( https://discord.com/channels/1185035164577972344/1332032404663046204 )
16
+ > 与我们联系,一旦插件审核通过,我们会立即更新至此页面
17
17
18
- 请移步 [ 知识星球 ] ( ../planet.md#插件 )
18
+ ## 插件标签
19
19
20
- ## 第三方
20
+ - <Badge type =" tip " text =" free " /> - 免费
21
+ - <Badge type =" danger " text =" pay " /> - 付费
22
+ - <Badge type =" info " text =" fba " /> - 仅后端
23
+ - <Badge type =" info " text =" fba-arco " /> - 包含前端 [ fastapi_best_architecture_ui] ( https://github.com/fastapi-practices/fastapi_best_architecture_ui )
24
+ - <Badge type =" info " text =" fba-vben " /> - 包含前端 [ fba_ui] ( https://github.com/fastapi-practices/fba_ui )
21
25
22
- 这些插件由社区中的开发者提供
26
+ ## 官方
23
27
24
- ### 免费
28
+ 这些插件由 FBA 开发人员提供和维护
25
29
26
- 暂无
30
+ <CardGrid >
31
+ <LinkCard title =" 通知公告 " href =" https://discord.com/channels/1185035164577972344/1336557178437373984 " >
32
+ <p>添加后台通知公告功能</p>
33
+ <span>
34
+ <Badge type="tip" text="free" />
35
+ <Badge type="info" text="fba" />
36
+ </span>
37
+ </LinkCard >
38
+ </CardGrid >
27
39
40
+ ## 第三方
28
41
29
- ### 付费
42
+ 这些插件由社区中的开发者提供和维护
30
43
31
- 暂无
44
+ <CardGrid >
45
+ <Card title =" 空空如也 " >
46
+ </Card >
47
+ </CardGrid >
Original file line number Diff line number Diff line change 19
19
"sass-embedded" : " ^1.83.0" ,
20
20
"vue" : " ^3.5.13" ,
21
21
"vuepress" : " 2.0.0-rc.19" ,
22
- "vuepress-theme-plume" : " 1.0.0-rc.123 "
22
+ "vuepress-theme-plume" : " 1.0.0-rc.129 "
23
23
},
24
24
"dependencies" : {
25
25
"@iconify/json" : " ^2.2.282" ,
You can’t perform that action at this time.
0 commit comments