Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobhsu/vue-web-app
https://github.com/jacobhsu/vue-web-app
vue
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobhsu/vue-web-app
- Owner: JacobHsu
- Created: 2020-02-12T15:58:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T01:49:01.000Z (about 2 years ago)
- Last Synced: 2024-04-10T16:05:28.964Z (9 months ago)
- Topics: vue
- Language: Vue
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-web-app
[creating-a-project](https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create)
`vue create vue-web-app`
## mobile setting
Viewport的設定 用戶手指放大縮小無效
```html
```
[reset.css](https://meyerweb.com/eric/tools/css/reset/) 重置基本樣式表
移动端1像素边框问题
border.css 解決移動端[1像素邊框問題](https://www.jianshu.com/p/fa670b737a29)
[FastClick](https://www.npmjs.com/package/fastclick) is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap
[Iconfont](https://www.iconfont.cn/)-阿里巴巴矢量图标库[vue项目笔记(4)-常用的基础样式(reset.css与border.css)](https://blog.csdn.net/qq_41115965/article/details/81542910)
### CSS
reset.css
```html
html {overflow-x: hidden;height: 100%;font-size: 50px;
```1 rem = html font-size = 50px
43px / 50px = 86px / 100px = .86 rem `line-height: .86rem`[REM](https://www.hexschool.com/2016/01/02/2016-08-08-em-vs-rem/)
20px = 50 * 0.4 = .4rem### api
Vue CLI 2 模擬數據會放在`static/mock/index.json`
Vue CLI 3 模擬數據會放在`public/mock/index.json`
手動新建vue.config.js文件[配置](https://kknews.cc/zh-tw/code/2kkp33g.html)## Tools
[vue-awesome-swiper](https://github.com/surmon-china/vue-awesome-swiper)
`yarn add [email protected] `
[Vue.js devtools](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
[better-scroll](https://ustbhuangyi.github.io/better-scroll/doc/zh-hans/installation.html)
[Swiper3|Swiper中文网](https://3.swiper.com.cn/) API 文档 > Pagination(分页器)
[babel-polyfill](https://babeljs.io/docs/en/6.26.3/babel-polyfill) 解決手機瀏覽器不支持promise造成白屏問題 幫添加es6特性## Docs
vuejs.org > Ecosystem > Core Libraries > [Vuex](https://vuex.vuejs.org/zh/)
## Deploy
`$ yarn add gh-pages`
package.json
```js
"homepage": "https://jacobhsu.github.io/vue-web-app/",
"scripts": {
"deploy": "yarn build && gh-pages -d dist"
},
```vue.config.js
```js
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vue-web-app' : '/',
}
```## Project setup
```
yarn install
```### Compiles and hot-reloads for development
```
yarn run serve
```### Compiles and minifies for production
```
yarn run build
```### Run your tests
```
yarn run test
```### Lints and fixes files
```
yarn run lint
```### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).