- Backend (FastAPI, SQLAlchemy 2, Alembic): single-admin cookie auth, news/crawler/market APIs with SSE and WebSocket streaming - Crawler (Scrapy + Scrapy-Redis): wscn_news, wscn_live, cls_depth, cls_telegraph spiders, idempotent upserts with revisions, raw response archiving, per-source subprocess supervision, restart and backoff - Market worker: full-history Binance spot/USD-M kline backfill, realtime WS stream, hourly and on-reconnect catch-up - Frontend (Vue 3, Element Plus, UnoCSS, KLineChart): news feed, crawler console with live logs, Binance-style chart page - Deploy: docker compose, nginx site, migrate and daily backup scripts
26 lines
581 B
TypeScript
26 lines
581 B
TypeScript
import { defineConfig, presetAttributify, presetWind3 } from "unocss"
|
|
|
|
export default defineConfig({
|
|
// 预设
|
|
presets: [
|
|
// 属性化模式 & 无值的属性模式
|
|
presetAttributify({
|
|
prefix: "un-",
|
|
prefixedOnly: false
|
|
}),
|
|
// 默认预设
|
|
presetWind3({
|
|
important: "#app"
|
|
})
|
|
],
|
|
// 自定义规则
|
|
rules: [],
|
|
// 自定义快捷方式
|
|
shortcuts: {
|
|
"wh-full": "w-full h-full",
|
|
"flex-center": "flex justify-center items-center",
|
|
"flex-x-center": "flex justify-center",
|
|
"flex-y-center": "flex items-center"
|
|
}
|
|
})
|