暖通平台前端

wangcong ac0c3d9520 feat(views): 优化“实时监测”页面的设备配置对话框 пре 23 часа
.husky 40f4807a62 chore(config): 添加 commitlint 配置 пре 3 месеци
.vscode b115149fd5 chore(config): 移除 element-plus 配置 пре 3 месеци
cypress 4fe30a9ae7 init: 初始化项目 пре 3 месеци
public b6273de9cf chore(config): 新增依赖"libpag“,"rollup-plugin-copy" пре 1 недеља
src ac0c3d9520 feat(views): 优化“实时监测”页面的设备配置对话框 пре 23 часа
.commitlintrc.cjs 9142be5b77 chore(icons): 添加 iconfont пре 3 месеци
.editorconfig 4fe30a9ae7 init: 初始化项目 пре 3 месеци
.env.development 7199184553 chore(api): 封装接口请求函数 пре 3 месеци
.env.production 1e6cdc2a4e chore(config): 更新生产环境变量 пре 1 месец
.env.test 4fe30a9ae7 init: 初始化项目 пре 3 месеци
.gitignore 4fe30a9ae7 init: 初始化项目 пре 3 месеци
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
.prettierignore 9142be5b77 chore(icons): 添加 iconfont пре 3 месеци
.prettierrc.json 4fe30a9ae7 init: 初始化项目 пре 3 месеци
.stylelintignore 4fe30a9ae7 init: 初始化项目 пре 3 месеци
.stylelintrc.cjs 27fae83b71 chore(config): 禁用 stylelint 样式优先级规则 пре 1 месец
CHANGELOG.md 4fe30a9ae7 init: 初始化项目 пре 3 месеци
README.md 4fe30a9ae7 init: 初始化项目 пре 3 месеци
cypress.config.ts 4fe30a9ae7 init: 初始化项目 пре 3 месеци
eslint.config.js 3816aad32f feat(components): 添加图标组件 пре 3 месеци
index.html 4fe30a9ae7 init: 初始化项目 пре 3 месеци
package.json 7a446534f5 chore(config): 新增依赖"js-cookie“,"@types/js-cookie" пре 3 дана
pnpm-lock.yaml 7a446534f5 chore(config): 新增依赖"js-cookie“,"@types/js-cookie" пре 3 дана
portal.pag 3793bdd28b perf(views): 编写首页 пре 1 недеља
tsconfig.app.json 135971ead5 chore(config): 配置 meta2d 类型 пре 2 месеци
tsconfig.json 4fe30a9ae7 init: 初始化项目 пре 3 месеци
tsconfig.node.json 4fe30a9ae7 init: 初始化项目 пре 3 месеци
tsconfig.vitest.json 4fe30a9ae7 init: 初始化项目 пре 3 месеци
uno.config.ts 4fe30a9ae7 init: 初始化项目 пре 3 месеци
vite.config.ts b6273de9cf chore(config): 新增依赖"libpag“,"rollup-plugin-copy" пре 1 недеља
vitest.config.ts 4fe30a9ae7 init: 初始化项目 пре 3 месеци

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