Files
Ydisks-Xianyu-Helper/frontend/tailwind.config.js
T
ChristandClaude Opus 4.8 3f7954af84 feat: token 保活 + 通知系统 + 批量铺货 + 卡密批量 + 前端路由与样式对齐
后端
- token 刷新:session 过期立即触发密码登录兜底(不再空跑5次冷却);
  FAIL_SYS_SESSION_EXPIRED 识别为凭证失效;token 刷新成功日志;
  在线定时刷新 token 间隔从 1h 调整为 15min,持续续期 cookie
- QR 登录:修复自动验证成功状态被 EXPIRED 覆盖的竞态(前端拿不到 cookie)
- 通知系统:Notifier 加 NotifyAccountAlert/SendToChannel;engine Handler
  加 OnAccountAlert(warn/critical/风控三触发点);handlerAdapter 接 notifier;
  通知渠道测试发送端点 POST /notification-channels/{id}/test;
  NotificationChannelRow 加 json tag 修复前端读不到字段
- 卡密批量:POST /cards/batch 批量创建卡密组;POST /cards/{id}/append-data
  往 data 组充卡密;DB AppendBatchData
- 通知渠道启用切换修复(全量更新避免 type CHECK 约束报错)

前端
- history 路由(/app/ 前缀避开 API 冲突,刷新不丢位置,popstate 同步)
- 通知设置页:渠道管理 + 账号绑定 + 配置指南 + SMTP(从系统设置移入)
- 卡密批量导入弹窗(批量建组 + 单组充卡密)
- 商品卡片缩小约 2/3;Rules/Notifications 头部样式对齐标准页
- 初始化提示按 OS 区分命令(Windows/macOS)
- updateChannel 全量更新修复启用切换失败

文档
- docs/批量铺货使用文档.md(给铺货 agent 的资料包准备规格)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 12:27:37 +08:00

52 lines
1.4 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
// Ydisks 官网配色:Apple 风格蓝色系 + 浅灰背景 + 深色文字。
brand: {
DEFAULT: '#0094f7', // 主品牌蓝(Ydisks logo/按钮色)
dark: '#0071e3', // 深蓝(hover/强调)
light: '#287efe', // 亮蓝(辅助)
},
// Ydisks 中性色
ink: '#1d1d1f', // 主文字
muted: '#86868b', // 次要文字
line: '#d2d2d7', // 边框/分隔
canvas: '#fbfbfd', // 页面背景
surface: '#f5f5f7', // 卡片背景/区块
},
// 圆角统一收紧到 5–10px 区间,UI 更紧凑、信息密度更高。
borderRadius: {
'none': '0px',
'sm': '5px',
DEFAULT: '6px',
'md': '6px',
'lg': '7px',
'xl': '8px',
'2xl': '10px',
'3xl': '10px',
},
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'"PingFang SC"',
'"Hiragino Sans GB"',
'"Microsoft YaHei"',
'"Helvetica Neue"',
'Helvetica',
'Arial',
'sans-serif',
],
},
},
},
plugins: [],
}