暖通平台前端

wangcong 135971ead5 chore(config): 配置 meta2d 类型 hai 2 meses
.husky 40f4807a62 chore(config): 添加 commitlint 配置 hai 3 meses
.vscode b115149fd5 chore(config): 移除 element-plus 配置 hai 3 meses
cypress 4fe30a9ae7 init: 初始化项目 hai 4 meses
public 4fe30a9ae7 init: 初始化项目 hai 4 meses
src a98c021087 feat(views): 环境监控区域支持复制画布 hai 2 meses
.commitlintrc.cjs 9142be5b77 chore(icons): 添加 iconfont hai 3 meses
.editorconfig 4fe30a9ae7 init: 初始化项目 hai 4 meses
.env.development 7199184553 chore(api): 封装接口请求函数 hai 3 meses
.env.production 4fe30a9ae7 init: 初始化项目 hai 4 meses
.env.test 4fe30a9ae7 init: 初始化项目 hai 4 meses
.gitignore 4fe30a9ae7 init: 初始化项目 hai 4 meses
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 hai 3 meses
.prettierignore 9142be5b77 chore(icons): 添加 iconfont hai 3 meses
.prettierrc.json 4fe30a9ae7 init: 初始化项目 hai 4 meses
.stylelintignore 4fe30a9ae7 init: 初始化项目 hai 4 meses
.stylelintrc.cjs e9d044f965 chore(config): 更新 stylelint 字体样式规则 hai 2 meses
CHANGELOG.md 4fe30a9ae7 init: 初始化项目 hai 4 meses
README.md 4fe30a9ae7 init: 初始化项目 hai 4 meses
cypress.config.ts 4fe30a9ae7 init: 初始化项目 hai 4 meses
eslint.config.js 3816aad32f feat(components): 添加图标组件 hai 3 meses
index.html 4fe30a9ae7 init: 初始化项目 hai 4 meses
package.json a98c021087 feat(views): 环境监控区域支持复制画布 hai 2 meses
pnpm-lock.yaml a98c021087 feat(views): 环境监控区域支持复制画布 hai 2 meses
tsconfig.app.json 135971ead5 chore(config): 配置 meta2d 类型 hai 2 meses
tsconfig.json 4fe30a9ae7 init: 初始化项目 hai 4 meses
tsconfig.node.json 4fe30a9ae7 init: 初始化项目 hai 4 meses
tsconfig.vitest.json 4fe30a9ae7 init: 初始化项目 hai 4 meses
uno.config.ts 4fe30a9ae7 init: 初始化项目 hai 4 meses
vite.config.ts b115149fd5 chore(config): 移除 element-plus 配置 hai 3 meses
vitest.config.ts 4fe30a9ae7 init: 初始化项目 hai 4 meses

README.md

暖通平台

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Run End-to-End Tests with Cypress

pnpm test:e2e:dev

This runs the end-to-end tests against the Vite development server. It is much faster than the production build.

But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):

pnpm build
pnpm test:e2e

Lint with ESLint

pnpm lint