- 新建 components/ui/(Button/Input/Select/Modal/Tabs/Spinner/Skeleton 等),变体用联合类型约束,根治幻影变体 - admin/components.tsx 与 matches/ui.tsx 改为再导出壳,消除 Spinner 三份重复 - 日期工具收口到 lib/date.ts,滚动监听收口到 lib/useScroll.ts - index.css 引入 :root RGB 三元组令牌,tailwind.config 接 <alpha-value>(修复透明度修饰符静默失效) - 刘建毛草 5MB 全字库(jsDelivr 未锁版) → 1KB 自托管子集(仅「先知」二字,unicode-range 限定)
16 lines
623 B
TypeScript
16 lines
623 B
TypeScript
/**
|
|
* 【兼容壳】组件与工具已迁出本文件。
|
|
*
|
|
* 历史:本文件混装了两类内容 ——
|
|
* - 通用 UI 组件(Switch / SkeletonRows) → 已上移到 `components/ui`
|
|
* - 日期纯函数(formatDateHeader 等) → 已抽到 `lib/date.ts`
|
|
*
|
|
* 本文件保留为再导出壳,使既有 import 路径继续可用。
|
|
* **新代码请直接从 `components/ui` 或 `lib/date` 导入。**
|
|
*
|
|
* 本文件不含任何实现。
|
|
*/
|
|
|
|
export { Spinner, SkeletonRows, Switch } from '../../components/ui'
|
|
export { formatDateHeader, toLocalDateKey, groupByDate, withinNext3Days } from '../../lib/date'
|