refactor(plugins): 将导航/友链/关于/统计 4 模块迁出 framework 至 plugins
- 在 applications/config.py 中通过 PLUGIN_ENABLE_FOLDERS 启用 4 个业务插件
- 删除 framework 内 applications/view/system/nav.py 与 templates/system/nav/* 模板
- applications/extensions/init_plugs 移除重复的 broadcast_execute('event_init'/'event_finish')
(由 init_bps / init_script 触发,避免 Blueprint 注册冲突)
- applications/view/system/index.py:未登录访问 / 直接渲染前台公开聚合页
- templates/system/index.html:移动端首屏即折叠侧边栏
- 新增 5 个 model(Nav 字段 status→enable 兼容、NavCategory、About、Friend、VisitLog/PageStat、NavClick)
- 新增 2 个 schema(NavCategorySchema、FriendOutSchema/ManageSchema)
- admin_about/admin_friend/admin_nav_category 在 init.json 中以「网站管理」分组挂载
- .gitignore 补充一次性备份、调试截图、探针截图不入库
This commit is contained in:
+10
@@ -152,3 +152,13 @@ logs/
|
||||
# 临时下载/构建产物
|
||||
tmp/
|
||||
build/
|
||||
|
||||
# 一次性数据备份 / 临时调试产物
|
||||
pear.db.*.bak
|
||||
nav_extracted.js
|
||||
dedup_nav.py
|
||||
|
||||
# 测试截图与探针截图(不入库,回归测试现场本地保留即可)
|
||||
scripts/_verify_*.png
|
||||
scripts/screenshots/
|
||||
output/
|
||||
|
||||
Reference in New Issue
Block a user