- API 路由统一: 移除 /api/h5/,统一 /api/pms/ 入口 - 二进制改名: api-server -> pms-api(与服务名一致) - nginx: 合并 /api/ + /pms/api/ 为 /api/pms/ - 新增 docs/API.md 接口文档 - 后端: CabinetDetail 增加 rssi/pow_fail/address/soc 等字段 - Redis 管道批量读取仓体实时数据(SOC/电压/电流/功率) - DB: 所有 TIMESTAMP 列改为 DATETIME(修复类型不匹配) - 用户管理: 新增创建时间/修改时间列,状态改用 Switch - 角色管理/用户管理: 操作按钮改为图标 - PC 设备详情: 基本信息补全 RSSI/ICCID/电源/地址 - PC 卡片: 通道统计改用 Lucide 图标,颜色统一 - PC 二维码: canvas 渲染,含编号文字,支持右键下载 - H5: 按 uni-app 规范修正导航(navigateTo 替代 reLaunch) - H5: 详情页加返回导航条 - H5: 扫码支持摄像头(jsQR)+ ?id= 参数 - H5: 底部 tabBar 在所有页面常显 - H5: 首页统计改为 6 项(设备/通道/空闲/充电/充满/故障) - H5: 下拉刷新 / 上拉加载 - 产品首页: 添加业务联系 - 文档: 清理过时文件,补充缺失规范章节
51 lines
3.0 KiB
Markdown
51 lines
3.0 KiB
Markdown
---
|
|
name: vite
|
|
description: Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production.
|
|
metadata:
|
|
author: Anthony Fu
|
|
version: "2026.1.28"
|
|
source: Generated from https://github.com/vitejs/vite, scripts located at https://github.com/antfu/skills
|
|
---
|
|
|
|
Vite is a modern build tool for frontend development featuring instant server start with native ES modules, lightning-fast HMR, and optimized production builds using Rolldown/Rollup. It supports TypeScript, JSX, CSS pre-processors out of the box and has a rich plugin ecosystem.
|
|
|
|
> The skill is based on Vite 6.x, generated at 2026-01-28.
|
|
|
|
## Core
|
|
|
|
| Topic | Description | Reference |
|
|
|-------|-------------|-----------|
|
|
| Configuration | Config file setup, defineConfig, conditional and async configs | [core-config](references/core-config.md) |
|
|
| CLI Commands | Dev server, build, preview commands and options | [core-cli](references/core-cli.md) |
|
|
| Core Features | TypeScript, JSX, CSS, HTML processing, JSON handling | [core-features](references/core-features.md) |
|
|
| Using Plugins | Adding, configuring, and ordering plugins | [core-plugins](references/core-plugins.md) |
|
|
|
|
## Features
|
|
|
|
| Topic | Description | Reference |
|
|
|-------|-------------|-----------|
|
|
| CSS Handling | CSS modules, pre-processors, PostCSS, Lightning CSS | [features-css](references/features-css.md) |
|
|
| Static Assets | Asset imports, public directory, URL handling | [features-assets](references/features-assets.md) |
|
|
| Glob Import | import.meta.glob, dynamic imports, batch loading | [features-glob-import](references/features-glob-import.md) |
|
|
| Environment Variables | .env files, modes, import.meta.env constants | [features-env](references/features-env.md) |
|
|
| HMR API | Hot Module Replacement client API | [features-hmr](references/features-hmr.md) |
|
|
| Web Workers | Worker imports and configuration | [features-workers](references/features-workers.md) |
|
|
| Dependency Pre-Bundling | optimizeDeps, caching, monorepo setup | [features-dep-bundling](references/features-dep-bundling.md) |
|
|
|
|
## Build
|
|
|
|
| Topic | Description | Reference |
|
|
|-------|-------------|-----------|
|
|
| Production Build | Build options, browser targets, multi-page apps | [build-production](references/build-production.md) |
|
|
| Library Mode | Building libraries with proper package exports | [build-library](references/build-library.md) |
|
|
| SSR | Server-side rendering setup and configuration | [build-ssr](references/build-ssr.md) |
|
|
|
|
## Advanced
|
|
|
|
| Topic | Description | Reference |
|
|
|-------|-------------|-----------|
|
|
| JavaScript API | createServer, build, preview programmatic APIs | [advanced-api](references/advanced-api.md) |
|
|
| Plugin API | Creating Vite plugins, hooks, virtual modules | [advanced-plugin-api](references/advanced-plugin-api.md) |
|
|
| Performance | Optimization tips for dev server and builds | [advanced-performance](references/advanced-performance.md) |
|
|
| Backend Integration | Integrating Vite with traditional backends | [advanced-backend](references/advanced-backend.md) |
|