chore: v1 整理 — 清理历史文件、DDL 合并、文档归档

- 清理 1155 个已删除的历史文件(废弃 prompt_logs、tmp、旧 ops 脚本)
- export/ 数据文件从 git 移除(已在 .gitignore)
- demo-miniprogram 从 tmp/ 移入 apps/,添加 CLAUDE.md 注解
- DDL 合并:完整 schema 定义填充到 db/*/schemas/(从 docs/database/ddl/ 复制)
- 39 个 v1 迁移脚本归档到 db/_archived/migrations_v1_merged/
- 4 个迁移变更类 BD_Manual 文档归档到 docs/database/_archived/
- .gitignore 补充 .vite/ 和 apps/*.zip
- settings.json 添加 effortLevel 默认配置
- scripts/ops/ 新增运维脚本入库

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Neo
2026-04-06 00:39:27 +08:00
parent 6f8f12314f
commit 779b2f6d52
1340 changed files with 9124 additions and 132087 deletions

View File

@@ -0,0 +1,49 @@
Component({
options: {
styleIsolation: 'shared',
},
/**
* ai-title-badge — 标题行 AI 徽章组件
*
* ## 用法
* 1. 在页面/组件的 .json 中注册:
* "ai-title-badge": "/components/ai-title-badge/ai-title-badge"
*
* 2. 在 WXML 中使用:
* <!-- 固定配色,默认文字 -->
* <ai-title-badge color="indigo" />
*
* <!-- 自定义文字 -->
* <ai-title-badge color="blue" label="AI 建议" />
*
* <!-- 页面随机配色(推荐) -->
* <ai-title-badge color="{{aiColor}}" />
*
* ## color 可选值
* red | orange | yellow | blue | indigo默认| purple
*
* ## label 默认值
* "AI智能洞察"
*
* ## 样式来源
* 全局 app.wxss.ai-title-badge + .ai-color-*
*
* ## 页面随机配色初始化(复制到 Page.onLoad
* const AI_COLORS = ['red','orange','yellow','blue','indigo','purple']
* const aiColor = AI_COLORS[Math.floor(Math.random() * AI_COLORS.length)]
* this.setData({ aiColor })
*/
properties: {
/** 颜色系列red | orange | yellow | blue | indigo | purple */
color: {
type: String,
value: 'indigo',
},
/** 徽章文字默认「AI智能洞察」 */
label: {
type: String,
value: 'AI智能洞察',
},
},
})