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" ;
22
33export const myBulletin : BulletinOptions = {
44 enablePage : true ,
55 lifetime : 'session' ,
66 contentType : 'markdown' ,
7- title : 'FasAPI 最佳架构 ' ,
8- content : '欢迎大家加入 Discord 社区闲聊,分享,提供建议,高频艾特,你们的活跃度是我更新的动力 🌹 ' ,
7+ title : '通知/公告 ' ,
8+ content : '插件系统已发布, 欢迎体验和共创 🤗 ' ,
99}
Original file line number Diff line number Diff line change 1- import { defineClientConfig } from 'vuepress/client'
1+ import { defineClientConfig } from 'vuepress/client'
22import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
33import Layout from './layouts/Layout.vue'
44
@@ -7,7 +7,7 @@ import Swiper from "./components/Swiper.vue";
77import SponsorPanel from "./components/SponsorPanel.vue" ;
88
99export default defineClientConfig ( {
10- enhance ( { app} ) {
10+ enhance ( { app } ) {
1111 app . component ( 'RepoCard' , RepoCard )
1212 app . component ( 'Swiper' , Swiper )
1313 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' ;
24
35export const goldSponsors = ref ( [
46 {
@@ -10,13 +12,13 @@ export const goldSponsors = ref([
1012 {
1113 link : '' ,
1214 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 ,
1416 alt : 'wu-clan' ,
1517 } ,
1618 {
1719 link : '' ,
1820 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 ,
2022 alt : 'wu-clan' ,
2123 }
2224] )
@@ -31,31 +33,31 @@ export const generalSponsors = ref([
3133 {
3234 link : '' ,
3335 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 ,
3537 alt : 'wu-clan' ,
3638 } ,
3739 {
3840 link : '' ,
3941 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 ,
4143 alt : 'wu-clan' ,
4244 } ,
4345 {
4446 link : '' ,
4547 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 ,
4749 alt : 'wu-clan' ,
4850 } ,
4951 {
5052 link : '' ,
5153 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 ,
5355 alt : 'wu-clan' ,
5456 } ,
5557 {
5658 link : '' ,
5759 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 ,
5961 alt : 'wu-clan' ,
6062 }
6163] )
Original file line number Diff line number Diff line change 11: root {
22 /* 公告宽度 */
3- /*--vp-bulletin-width: 385px ;*/
3+ /*--vp-bulletin-width: 333px ;*/
44 /* 链接颜色、强调色 */
55 --vp-c-brand-1 : rgba (0 , 148 , 133 , 1 );
66 /* 链接、按钮 hover 颜色 */
77 --vp-c-brand-2 : rgba (0 , 148 , 133 , 1 );
88 /* 背景色、边框色 */
99 --vp-c-brand-3 : rgba (0 , 148 , 133 , 1 );
10+
1011 /* 导航栏分组 */
1112 .vp-menu-group {
1213 .title {
2223 --vp-c-brand-2 : rgba (0 , 148 , 133 , 1 );
2324 /* 背景色、边框色 */
2425 --vp-c-brand-3 : rgba (0 , 148 , 133 , 1 );
26+
2527 /* 导航栏分组 */
2628 .vp-menu-group {
2729 .title {
3032 }
3133}
3234
33-
35+ /* 首页文字说明 */
36+ .hero-text {
37+ margin : 24px 0 40px !important ;
38+ }
3439
3540.vp-swiper .swiper-slide-img {
3641 /* 轮播图图片拉伸效果 */
Original file line number Diff line number Diff line change @@ -21,28 +21,28 @@ config:
2121 features :
2222 - title : 最新技术栈
2323 icon : 🚀
24- details : 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery、等最新技术栈
24+ details : 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery 等技术栈
2525 - title : 自研架构
2626 icon : 🧠
27- details : 独特的「伪三层架构」,让所有开发者轻松驾驭
28- - title : 全局异步
29- icon : 🔄
30- details : 基于 async/await + asgiref 实现全局异步处理,告别协程阻塞问题
27+ details : 独特的「伪三层架构」,让所有开发者可轻松驾驭
28+ - title : 插件系统
29+ icon : unjs:unplugin
30+ details : 告别高耦合集成,让功能变得可轻松 Hot Swap(热插拔)
3131 - title : JWT
3232 icon : 🔏
33- details : 带有缓存和白名单的 JWT 中间件自动认证
34- - title : 权限管理
33+ details : 带有缓存和白名单的 JWT 授权中间件
34+ - title : RBAC
3535 icon : 🛠️
36- details : 提供 Casbin、Role-Menu 两种 RBAC 权限方案。开关控制选择
36+ details : 提供 Casbin、Role-Menu 两种 RBAC 方案
3737 - title : 代码生成
3838 icon : ⚙️
39- details : 提供后端代码自动生成,告别繁琐基础代码结构 cv
39+ details : 内置代码自动生成,告别通用代码频繁 cv
4040 - title : 时区时间
4141 icon : ⌛
42- details : 通过配置一键应用全局时区时间 ,告别时间处理烦恼
42+ details : 提供全局时区时间配置 ,告别时间处理烦恼
4343 - title : 日志
4444 icon : 📝
45- details : 内置十分强大的日志系统,全方位 Trace ID 助你一步锁定问题
45+ details : 强大的日志系统, Trace ID 助你轻松定位任何问题
4646 - title : Docker
4747 icon : 🐳
4848 details : 提供 Docker compose 一键部署方案
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ mvc 架构作为常规设计模式,在 python web 中很常见,但是三层
8181 - middleware/ 中间件
8282 - plugin 插件
8383 - code_generator/ 代码生成
84- - ...
84+ - …
8585 - scripts/ 脚本
8686 - sql/ SQL 文件
8787 - static/ 静态文件
Original file line number Diff line number Diff line change @@ -182,12 +182,12 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
182182## 开发流程
183183
184184::: tip
185- 仅供参考,实际以个人习惯为准
185+ 仅供参考,实际以个人开发习惯为准
186186:::
187187
188188::: steps
189189
190- 1. 定义数据库模型(model)
190+ 1. 定义数据库模型([ model](../reference/model.md) )
191191
1921922. 定义数据验证模型([schema](../reference/schema.md))
193193
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ tags = ''
100100 - utils/ 工具包 <Badge type =" warning " text =" 非必须 " />
101101 - \_\_ init\_\_ .py 作为 python 包保留 <Badge type =" danger " text =" 必须 " />
102102 - conf.py 插件独立配置 <Badge type =" warning " text =" 非必须 " />
103- - ... 更多其他配置,例如 enums.py... <Badge type =" warning " text =" 非必须 " />
103+ - … 更多其他配置,例如 enums.py... <Badge type =" warning " text =" 非必须 " />
104104 - plugin.toml 插件配置文件 <Badge type =" danger " text =" 必须 " />
105105 - README.md 插件使用说明 <Badge type =" danger " text =" 必须 " />
106106 - requirements.txt 依赖包文件 <Badge type =" warning " text =" 非必须 " />;
You can’t perform that action at this time.
0 commit comments