abingyydsandClaude Sonnet 4.6 cc9a8bcc0e fix: 分站价格单位改为每1M tokens + 移除所有SubRouter主站标识
- 价格表单位从 "per 1K tokens" 改为 "per 1M tokens"(价格×1000显示)
- 移除 footer "Powered by SubRouter" 字样
- 默认站名从 "SubRouter" 改为 "AI Platform"
- HTML title 从 "SubRouter Dist Site" 改为 "AI Platform"
- 分站不再包含任何主站品牌标识

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 06:01:43 +09:00

SubRouter Dist-Site Template

A beautiful, open-source frontend template for SubRouter distributors. Built with React, Vite, Tailwind CSS, and react-bits animation components.

Features

  • Dark-mode-first design with glassmorphism UI
  • Animated landing page with gradient text, spotlight cards, and count-up stats
  • User registration, login, and dashboard
  • API key management
  • Model pricing table
  • Package subscription
  • Fully responsive
  • OpenAI-compatible API endpoint display

Quick Start

# Install dependencies
npm install

# Development server (port 3001, proxies /api to localhost:3000)
npm run dev

# Production build
npm run build

Configuration

The template automatically fetches site configuration from the backend API:

  • Site info: GET /api/dist/site/info — name, logo, favicon, announcement
  • Models: GET /api/dist/site/models — available AI models
  • Pricing: GET /api/dist/site/pricing — per-model pricing
  • Packages: GET /api/dist/site/packages — subscription packages

Customization

Theming

Edit tailwind.config.js to customize colors, fonts, and animations.

Components

react-bits animation components are in src/components/bits/:

  • GradientText — Animated gradient text
  • ShinyText — Sweeping shine effect
  • BlurText — Words blur-in animation
  • CountUp — Spring-physics number counter
  • SpotlightCard — Mouse-following spotlight glow
  • StarBorder — Animated star-light border

Pages

  • Home — Landing page with hero, features, models preview
  • Login / Register — Authentication
  • Dashboard — User overview with balance, usage, redeem
  • Tokens — API key management
  • Pricing — Model pricing table
  • Packages — Subscription packages

Tech Stack

License

MIT

S
Description
No description provided
Readme
1.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 96%
CSS 3.8%
HTML 0.2%