31cc1e02ce
- 新增 AffiliateProgram / AffiliateLink / AffiliateClick 规范化 Prisma 模型 取代原手写裸表 affiliate_stats / affiliate_clicks - 新增迁移 prisma/migrations/20260711000000_add_affiliate_models - 重构 affiliate.service.ts 改用 Prisma ORM,消除 $queryRawUnsafe SQL 注入 - 重构 affiliate.controller.ts 接口:programs / links(?skillId,?toolId) / stats / click - 前端 affiliate 页接入真实接口,移除硬编码 demo 数据 - 技能详情页新增「学此技能推荐使用的工具」联盟链接区块 - 新增 affiliate.service.spec.ts(4 用例通过)与幂等种子 seed-affiliate.ts - 更新 docs/progress/current.md,明确无 ICP 经营许可证下以联盟返佣为合规变现主路径 - 含此前工作区未提交改动(工具 slug 路由、支付/订单、SEO 等) Co-Authored-By: opencode <opencode@anthropic.com>
75 lines
776 B
Plaintext
Executable File
75 lines
776 B
Plaintext
Executable File
# Dependencies
|
|
node_modules/
|
|
*/node_modules/
|
|
|
|
# Build outputs
|
|
dist/
|
|
*/dist/
|
|
out/
|
|
*/out/
|
|
.next/
|
|
*/.next/
|
|
|
|
# Environment files
|
|
.env
|
|
.env.local
|
|
.playwright-mcp/
|
|
gitea-login.png
|
|
.env.*.local
|
|
backend/.env
|
|
frontend/.env.local
|
|
|
|
# Database
|
|
*.db
|
|
*.db-journal
|
|
|
|
# Logs
|
|
logs/
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Runtime data
|
|
pids/
|
|
*.pid
|
|
*.seed
|
|
|
|
# Coverage
|
|
coverage/
|
|
*.lcov
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Certificates (keep template, ignore actual certs)
|
|
backend/cert/key/*.pem
|
|
backend/cert/key/*.p12
|
|
backend/cert/key/*.txt
|
|
|
|
# Build cache
|
|
*.tsbuildinfo
|
|
|
|
# AI agent workspace
|
|
.omo/
|
|
|
|
# Temp files
|
|
*.tmp
|
|
*.temp
|
|
|
|
# Playwright E2E test output
|
|
test-results/
|
|
playwright-report/
|
|
|
|
# Generated distribution archive
|
|
Distribution/
|
|
distribution/
|