尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
UI interface sonar
翻譯準備中
正在載入完整 README。 以下為已儲存的摘錄。
A modern, real-time cryptocurrency dashboard with beautiful UI and smooth animations, built with React and styled-components.檢視完整 README ↗��# Sonar Cryptocurrency Dashboard
A modern, real-time cryptocurrency dashboard with beautiful UI and smooth animations, built with React and styled-components.
npm installnpm startMIT
Server-only integration using Next.js App Router.
Environment variables (set in Vercel Project �! Settings �! Environment Variables):
SUPABASE_URL (e.g., https://fwbwfvqzomipoftgodof.supabase.co)SUPABASE_SERVICE_ROLE (server only; never expose to client)Server client:
app/lib/supabaseAdmin.js server-only Supabase client.API route:
GET /api/whales/latest returns latest 100 rows from public.whale_transactions with cache headers.Server page:
/whales SSR page rendering the latest transactions.Security:
SUPABASE_SERVICE_ROLE to the client.This repo uses two independent test suites:
npm test run the suite once.npm run test:watch re-run on change.npm run test:ui open the Vitest UI.npm run test:coverage produce a v8 coverage report (text + html + lcov).npm run test:engine runs scripts/test-signal-engine.mjs. It also runs automatically as the prebuild hook before next build.Vitest is configured in vitest.config.ts. Test setup (jest-dom matchers, afterEach(cleanup), browser API stubs) lives in test/setup.ts.