feat: 完整 MVP — 剁手小黑屋反冲动消费 Web App

- 数据层: Prisma 7 + SQLite (better-sqlite3 adapter), Item 模型
- API: POST/GET/PATCH /api/items, 商品 CRUD 与状态流转
- 关押表单: 图片拖拽上传 + Canvas 压缩, Base64 存储
- 首页看守所: 72h 倒计时 Hook, 省钱看板, 冷却/释放卡片交互
- PWA: manifest.ts, apple-icon, viewport 沉浸配置, iOS 引导组件
- 部署: Dockerfile 多阶段构建, docker-compose, Jenkinsfile CI/CD
- 图标: 全套专属像素风锁头+购物车图标 (favicon/96/180/192/512/OG)
This commit is contained in:
2026-02-25 18:14:38 +08:00
committed by 田东生
parent 97d5eb72ba
commit 5bf98753f1
37 changed files with 9124 additions and 79 deletions
@@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "Item" (
"id" TEXT NOT NULL PRIMARY KEY,
"name" TEXT NOT NULL,
"price" REAL NOT NULL,
"link" TEXT NOT NULL,
"image" TEXT NOT NULL,
"status" TEXT NOT NULL DEFAULT 'cooling',
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
+3
View File
@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "sqlite"