Du Wenbo 6a62272ba4 fix: update VERSIONS.json to match v1.2.0 tag
VERSIONS.json was still showing 1.1.0 while the git tag and commit
message already referenced v1.2.0. Sync version metadata.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 08:22:19 +08:00

EMS Frontend Template

Base React frontend template for EMS customer projects.

Usage

When creating a new customer project, copy this template:

cp -r ems-frontend-template/ <customer-repo>/frontend/
cd <customer-repo>/frontend
npm install

Then customize:

  1. Edit src/App.tsx — add/remove routes per customer needs
  2. Edit src/layouts/MainLayout.tsx — customer branding (logo, colors, sidebar)
  3. Edit package.json — remove unused deps (e.g., Three.js if no 3D)
  4. Edit vite.config.ts — update proxy target if backend port differs

Tech Stack

  • React 19 + TypeScript
  • Ant Design 5 + ProComponents
  • ECharts 6
  • Three.js + React Three Fiber (optional, for 3D visualization)
  • i18next (zh + en)
  • Vite 8

Available Pages

  • Dashboard, Monitoring, Devices, DeviceDetail
  • Analysis (cost, loss, YoY, MoM, subitem)
  • Alarms, Carbon, Reports
  • BigScreen (2D), BigScreen3D (3D)
  • Charging (stations, piles, orders, pricing)
  • Prediction, EnergyStrategy, AIOperations
  • Maintenance, DataQuery, Management, Quota
  • System (settings, audit log)
  • Login

Notes

  • Not all pages are needed for every customer
  • Remove unused page imports from App.tsx
  • Remove corresponding dependencies from package.json
Description
[v1.2.0] EMS Frontend Template — React/TypeScript base UI
Readme 306 KiB
Languages
TypeScript 96.3%
CSS 3.5%
JavaScript 0.1%