Skip to content

zhaohui90-lee/kioskView

Repository files navigation

kioskView

基本结构

assets

存放静态资源,包括字体、图片和css文件

components

存放组件类文件,首页使用的公共类型组件

error

报错页面

http

axios框架做了封装

优化了http封装的写法,加入的TS语法

router

vue路由配置

shared

公共配置,全局使用的对象

slot

插槽

stores

vue中的储存对象

views

随路由变化的视图,包括:广告ad,读卡card,菜单按钮content,页脚footer 支付页面payment,页头信息subTitle,主页标题title

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

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 TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Cypress

npm run build
npm run test:e2e # or `npm run test:e2e:ci` for headless testing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published