You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
1.5 KiB

4 years ago
# tall-mui-cli
4 years ago
## 项目运行
### 安装依赖
```
yarn
```
### 本地环境运行
+ h5
```
yarn dev:h5
```
4 years ago
浏览器输入网址:
project (#1) fix: 交付物+考勤管理 chore: 关掉了treeShaking Merge remote-tracking branch 'origin/lucky' into project chore(node-sass): 替换node-sass为sass(dart-sass) /deep/替换为::deep fix: 检查交付物传参修改 fix: 检查交付物传参修改 feat: 检查交付物 refactor: puppeteer升级v10 refactor: 重构时间刻度渲染任务 解决了时间刻度未替换的问题;解决重复渲染的问题 feat: 添加内置插件-交付物 fix: 调试定期任务bug;不能合并使用 fix: 滚动id函数优化 feat: network控制本地缓存的使用 network控制本地缓存的使用;删除了projects相关的代码 refactor(tailwindcss): tailwindcss CDN引入;移除相关配置文件及包;开启treeShaking chore: 删除vuedragable及修改运行端口为9000 refactor: 只保留project内容 feat: 细节调整,添加project-webview 准备分离project feat(phone-bind): 验证码validate feat(mp): 兼容小程序,去除window,document等 feat(bind phone): 图形验证码;短信验证码;绑定手机号 Merge remote-tracking branch 'origin/songsong' into temp feat: 添加项目排序 feat: 绑定手机号 Merge remote-tracking branch 'origin/songsong' into temp feat: 适配小程序;小程序登录 fix: 定期任务本地缓存和api赋值,未完成 fix(定期任务本地缓存和api赋值,未完成): 定期任务本地缓存和api赋值,未完成 fix: api 存storage feat: api封装 Merge remote-tracking branch 'origin/lucky' into song perf: 小红点api缓存修改 feat: 缓存修改 style: indexedDB.js格式整理 feat: cache indexedDB处理 Co-authored-by: song <srf428110@163.com> Reviewed-on: https://dd.tall.wiki/gitea/wally/tall-mui-3-project/pulls/1
4 years ago
http://localhost:8080/tall/v3.0.1/#/?u=1217647686598135808&p=1420652719055839232
4 years ago
- u: userId
- p: projectId
- r: roleId
- pn: projectName
- t: taskId
4 years ago
+ 微信小程序
```
yarn dev:mp-weixin
```
+ app
4 years ago
```
4 years ago
yarn dev:app-plus
4 years ago
```
4 years ago
### 生产环境构建
+ h5
4 years ago
```
4 years ago
yarn build:h5
4 years ago
```
4 years ago
+ app
4 years ago
```
4 years ago
yarn build:app-plus
```
+ 微信小程序
```
yarn build:mp-weixin
4 years ago
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
4 years ago
## 代码提交
+ 项目设置了commit lint, commit信息验证;运行`yarn cz` 命令依次填写commit信息即可
+ 以及pre-commit钩子执行eslint代码格式检测, 代码格式不符合规则无法提交
```
yarn cz
```
## 技术栈
### UI及工具库
+ uni-app的cli构建版本
+ vuex vue官方状态管理库
+ tailwindcss 公共样式库(注意这个版本不是最新版本, 最新版本安装后报错)
+ uview-ui uni-app组件库
+ alloyfinger 移动端手势库
+ dayjs 时间处理库
+ pwa 处理缓存, 构建离线应用
### 构建相关
+ sass node-sass
+ prettier 自动格式化代码
+ eslint 代码可是校验
+ commitlint git commit信息校验
+ husky lint-staged git钩子处理commit校验及eslint代码检测
+ vue-cli-plugin-mock mock数据
4 years ago
## H5 indexedDB
### 设计概要
db挂载到全局的store上,store存放的数据:
```js
{
db: null, // object
name: 'TALL_indexedDB', // string
version: 1, // number
}
```