提交 1259b4ab authored 作者: gebidepixiu's avatar gebidepixiu

前端页面开发完成

上级
> 0.5%
last 2 versions
not IE 11
iOS >= 8
Android >= 4
# 开发环境配置
# 环境配置文件.env文件内配置必须以VITE_开头
NODE_ENV= 'development'
# 页面标题
VITE_TITLE = 新模板文和智能化工程数字平台-开发环境
# 管理系统/生产环境
VITE_BASE_API = '/whorigin-admin-api'
VITE_BASE_PATH = '/whorigin-admin-web'
# 路由懒加载
VITE_BABEL_TRANSPILE_MODULES = true
# 生产环境配置
NODE_ENV = 'production'
# 页面标题
VITE_TITLE = 文和智能化工程数字平台
# 管理系统/生产环境
VITE_BASE_API = '/originapi'
VITE_BASE_PATH = '/whorigin'
# 环境配置
NODE_ENV= 'staging'
# 页面标题
VITE_TITLE = 文和智能化工程数字平台
# 管理系统/生产环境
VITE_BASE_API = '/whorigin-admin-api'
# BASE_PATH
VITE_BASE_PATH = '/whorigin-admin-web'
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
*.local
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
\ No newline at end of file
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}
MIT License
Copyright (c) 2021 xiaofei
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# vite-vue-h5-app
**English** | [中文](./README.zh-CN.md)
## Technology
```code
Vue 3 + Typescript + Vite + Vant
```
## Preview
![home](./preview/1.jpg)![my](./preview/2.jpg)
## Development environment
| type | name | version |
| ----------------------- | ----------------------- | -------------- |
| operating system | Windows 11 professional | 22000.1098 |
| development tool | Microsoft VS Code | 1.72.2 |
| debugging tools | Google Chrome | 104.0.5112.102 |
| code version control | git | 2.37.0 |
| environment | node | 16.13.0 |
| package manager | npm | 8.1.3 |
| package manager | yarn | 1.22.17 |
| node version management | nvm | 1.1.7 |
| npm origin management | nrm | 1.2.5 |
## Project Structure
```sh
.
├── README.md #Project introduction
├── README.zh-CN.md #Project introduction
├── commitlint.config.js #commitlint config
├── cypress #unit testing , End to end testing
├── index.html #entry
├── mock #mock
├── package.json #package
├── postcss.config.js #postcss config
├── public # public file
│ ├── favicon.ico #icon
├── src # core code
│ ├── App.vue #root component
│ ├── api #api
│ ├── assets #assets
│ ├── components #components
│ ├── icons #svg icons
│ ├── main.ts #entry
│ ├── router #router ,router-guards
│ ├── store #store
│ ├── styles #styles
│ ├── utils #utils
│ └── views #views
├── types #ts type
├── tsconfig.json #ts config
├── update.sh #commit code
├── viteConfig #vite config
├── vite.config.ts #vite config
└── yarn.lock #npm lock
```
## Project setup
### Installation Dependencies
```sh
yarn
```
### Compiles and hot-reloads for development
```sh
yarn dev
```
## Code lints and fixes files
```sh
yarn lint
```
## Style lint and fixes files
```sh
yarn stylelint
```
## Code commit
```sh
./update.sh
```
## Compiles and minifies for production
```sh
yarn build:prod
```
## License
MIT
# vite-vue-h5-app
**中文** | [English](./README.md)
## 技术栈
```code
Vue 3 + Typescript + Vite + Vant
```
## 预览
![首页](./preview/1.jpg)![](./preview/2.jpg)
## 开发环境
| 类型 | 名称 | 版本 |
| ------------- | ----------------- | -------------- |
| 操作系统 | Windows 11 专业版 | 22000.1098 |
| 开发工具 | Microsoft VS Code | 1.72.2 |
| 调试工具 | Google Chrome | 104.0.5112.102 |
| 代码版本控制 | git | 2.37.0 |
| 语言环境 | node | 16.13.0 |
| 包管理器 | npm | 8.1.3 |
| 包管理器 | yarn | 1.22.17 |
| node 版本管理 | nvm | 1.1.7 |
| npm 源管理 | nrm | 1.2.5 |
## 项目结构
```sh
.
├── README.md #项目简介
├── cypress #单元测试 端到端测试
├── index.html #页面入口
├── mock #mock
├── package.json #package
├── postcss.config.js #postcss配置
├── public #静态文件
│ ├── favicon.ico #icon
├── src #核心源码
│ ├── App.vue #根组件
│ ├── api #接口
│ ├── assets #资源
│ ├── components #组件
│ ├── icons #svg图标
│ ├── main.ts #项目入口
│ ├── router #路由,导航守卫
│ ├── store #数据仓库
│ ├── styles #全局样式和样式变量
│ ├── utils #工具函数
│ └── views #业务页面
├── types #ts类型
├── tsconfig.json #ts项目配置
├── update.sh #提交代码脚本
├── viteConfig #vite配置
├── vite.config.ts #vite项目配置
└── yarn.lock #npm包版本锁定
```
## 项目启动
### 安装依赖
```sh
yarn
```
### 开启开发环境
```sh
yarn dev
```
## 代码检验
```sh
yarn lint
```
## 样式检验
```sh
yarn stylelint
```
## 代码提交
```sh
./update.sh
```
## 打包部署
```sh
yarn build:prod
```
## License
MIT
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'
export {}
declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Src: typeof import('./src/components/Tabbar/src/index.vue')['default']
VanButton: typeof import('vant/es')['Button']
VanCard: typeof import('vant/es')['Card']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanField: typeof import('vant/es')['Field']
VanForm: typeof import('vant/es')['Form']
VanImage: typeof import('vant/es')['Image']
VanList: typeof import('vant/es')['List']
VanNoticeBar: typeof import('vant/es')['NoticeBar']
VanPullRefresh: typeof import('vant/es')['PullRefresh']
VanTabbar: typeof import('vant/es')['Tabbar']
VanTabbarItem: typeof import('vant/es')['TabbarItem']
VanUploader: typeof import('vant/es')['Uploader']
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论