Skip to content

Commit 6f8c669

Browse files
committed
Merge branch 'feature/wp4'
2 parents 3a069ef + ca1e5d1 commit 6f8c669

File tree

12 files changed

+4316
-2140
lines changed

12 files changed

+4316
-2140
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<p align="center">
99
<a href="http://vue.tigerb.cn/#/"><img src="https://img.shields.io/badge/build-passing-brightgreen.svg" alt="Build Status"></a>
10-
<a href="https://github.com/TIGERB/easy-vue/releases"><img src="https://img.shields.io/badge/version-0.7.2-lightgrey.svg" alt="Version"></a>
11-
<a href="https://github.com/TIGERB/easy-vue/releases"><img src="https://img.shields.io/badge/download-400kb-yellow.svg" alt="Downloads"></a>
10+
<a href="https://github.com/TIGERB/easy-vue/releases"><img src="https://img.shields.io/badge/version-0.8.0-lightgrey.svg" alt="Version"></a>
11+
<a href="https://github.com/TIGERB/easy-vue/releases"><img src="https://img.shields.io/badge/download-yellow.svg" alt="Downloads"></a>
1212
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
1313
<a href="#backers" alt="sponsors on Open Collective"><img src="https://opencollective.com/easy-vue/backers/badge.svg" /></a> <a href="#sponsors" alt="Sponsors on Open Collective"><img src="https://opencollective.com/easy-vue/sponsors/badge.svg" /></a>
1414
</p>
@@ -24,11 +24,14 @@
2424
## Dependence
2525
Dependence |Version
2626
-------------------|-------
27-
Vue |2.0+
28-
Vuex |2.0+
29-
Webpack |3.0+
30-
31-
## Latest Version 0.7.2(2017/11/12)
27+
Vue |2.6.10
28+
Vuex |3.1.1
29+
Webpack |4.32.2
30+
31+
## Latest Version 0.8.0(2019/05/26)
32+
- 0.8.0 [2019/05/26]
33+
+ use webpack 4.32.2
34+
+ use vue 2.6.10
3235
- 0.7.2 [2017/11/12]
3336
+ refactor ui for card component
3437
- 0.7.1 [2017/06/20]
@@ -75,8 +78,8 @@ Webpack |3.0+
7578
step 1: yarn install
7679
7780
step 2:
78-
- develop: npm run dev
79-
- build : npm run build, and use *lite-server* or *http-server* to visit the dist directory
81+
- develop: yarn run dev
82+
- build : yarn run build, and use *lite-server* or *http-server* to visit the dist directory
8083
8184
```
8285

package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easy-vue",
3-
"version": "0.7.2",
3+
"version": "0.8.0",
44
"description": "Learn Vue Easily",
55
"main": "index.js",
66
"scripts": {
@@ -12,38 +12,39 @@
1212
"license": "MIT",
1313
"dependencies": {
1414
"animate.css": "^3.5.2",
15-
"fastclick": "^1.0.6",
15+
"babel": "^6.23.0",
1616
"font-awesome": "^4.7.0",
17+
"mini-css-extract-plugin": "^0.6.0",
1718
"opencollective": "^1.0.3",
1819
"ratchet-npm": "^2.0.4",
19-
"vue": "^2.2.6",
20-
"vue-infinite-scroll": "^2.0.1",
21-
"vue-progressbar": "^0.7.1",
20+
"vue": "^2.6.10",
21+
"vue-infinite-scroll": "^2.0.2",
22+
"vue-progressbar": "^0.7.5",
2223
"vue-resource": "^1.3.0",
23-
"vue-router": "^2.3.1",
24-
"vuex": "^2.0.0"
24+
"vue-router": "^3.0.6",
25+
"vue-template-compiler": "^2.6.10",
26+
"vuex": "^3.1.1"
2527
},
2628
"devDependencies": {
27-
"babel-cli": "^6.24.1",
28-
"babel-core": "^6.24.1",
29-
"babel-loader": "^7.0.0",
29+
"babel-cli": "^6.26.0",
30+
"babel-core": "^6.26.3",
31+
"babel-loader": "7",
3032
"babel-plugin-transform-runtime": "^6.4.3",
3133
"babel-preset-es2015": "^6.24.1",
3234
"babel-runtime": "^6.23.0",
33-
"copy-webpack-plugin": "^4.0.1",
34-
"css-loader": "^0.28.0",
35-
"extract-text-webpack-plugin": "^2.1.0",
36-
"file-loader": "^0.11.1",
37-
"html-webpack-plugin": "^2.16.0",
35+
"copy-webpack-plugin": "^5.0.3",
36+
"css-loader": "^2.1.1",
37+
"file-loader": "^3.0.1",
38+
"html-webpack-plugin": "^3.2.0",
3839
"style-loader": "^0.18.2",
39-
"vue-loader": "^12.2.1",
40-
"vue-style-loader": "^3.0.1",
41-
"vue-template-compiler": "^2.2.6",
42-
"webpack": "3.0.0",
43-
"webpack-dev-server": "^2.4.2"
40+
"vue-loader": "^15.7.0",
41+
"vue-style-loader": "^4.1.2",
42+
"webpack": "^4.32.2",
43+
"webpack-cli": "^3.3.2",
44+
"webpack-dev-server": "^3.4.1"
4445
},
4546
"collective": {
4647
"type": "opencollective",
4748
"url": "https://opencollective.com/easy-vue"
4849
}
49-
}
50+
}

src/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'ratchet-npm/dist/css/ratchet.css'; // get ratchet
22
import 'font-awesome/css/font-awesome.css'; // get font-awesome
33
import 'animate.css/animate.css'; // get animate.css
44

5-
import FastClick from 'fastclick';
5+
// import FastClick from 'fastclick';
66
import Vue from 'vue'; // get vue
77
import VueProgressBar from 'vue-progressbar'; // get vue-progressbar
88
import InfiniteScroll from 'vue-infinite-scroll'; // get vue-infinite-scroll
@@ -11,7 +11,7 @@ import App from './app.vue'; // get root module
1111
import router from './router';
1212
import store from './store'; // get vuex -> store
1313

14-
FastClick.attach(document.body); // init fastclick
14+
// FastClick.attach(document.body); // init fastclick
1515
const options = {
1616
color: '#fff',
1717
failedColor: '#874b4b',

src/components/alert.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ export default {
6262
.easy-alert > div > p:first-child {
6363
font-size: 20px;
6464
line-height: 80px;
65-
color: #1abc9c;
65+
color: #19caad;
6666
}
6767
6868
.easy-alert > div > p:last-child {
6969
border-top: 1px solid #ddd;
7070
line-height: 22px;
7171
padding: 9px 0;
7272
color: #fff;
73-
background-color: #1abc9c;
73+
background-color: #19caad;
7474
}
7575
</style>

src/components/barBottom.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default {
5050

5151
<style>
5252
.easy-bottom-bar {
53-
background-color: #1abc9c;
53+
background-color: #19caad;
5454
color: #fff;
5555
border: none;
5656
}

src/components/barTop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939

4040
<style>
4141
.bar-easy-vue {
42-
background-color: #1abc9c;
42+
background-color: #19caad;
4343
}
4444
.bar-easy-vue a, h1 {
4545
color: #fff !important;

src/components/button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default {
7777
margin-top: 100px !important;
7878
}
7979
.easy-button span {
80-
color: #1abc9c;
80+
color: #19caad;
8181
}
8282
.easy-button li {
8383
border-bottom: 1px solid #eee;

src/components/card.vue

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,26 @@
44
infinite-scroll-disabled="busy"
55
infinite-scroll-distance="10">
66
<div class="easy-card" v-for="res in results">
7-
<img v-bind:src="res.img" alt="">
8-
<p>{{res.content}}</p>
9-
<div class="easy-card-user-info">
10-
<p>
11-
<img v-bind:src="res.avatar" alt="">
12-
<span>from</span>{{res.nickname}}
13-
</p>
14-
<p @click="favourite">
15-
<span class="fa"
16-
:class="{
17-
'fa-heart': isFavourited,
18-
'nsr-favourited': isFavourited,
19-
'fa-heart-o': isNotFavourited
20-
}">
21-
</span>
22-
{{res.date}}
23-
</p>
7+
<img :src="res.img" alt="">
8+
<p>{{res.content}}</p>
9+
<div class="easy-card-user-info">
10+
<p>
11+
<img :src="res.avatar" alt="">
12+
<span>from</span>{{res.nickname}}
13+
</p>
14+
<p>
15+
<!-- <p @click="favourite"> -->
16+
<!-- <span class="fa"
17+
:class="{
18+
'fa-heart': isFavourited,
19+
'nsr-favourited': isFavourited,
20+
'fa-heart-o': isNotFavourited
21+
}">
22+
</span> -->
23+
{{res.date}}
24+
</p>
25+
</div>
2426
</div>
25-
</div>
2627
<div class="nsr-card-loading">
2728
<nsr-loading
2829
:hide-loading="isloadingComplete"
@@ -113,7 +114,7 @@ export default {
113114
}
114115
115116
.easy-card-user-info p:first-child span{
116-
color: #1abc9c;
117+
color: #19caad;
117118
font-size: 12px;
118119
padding-right: 2px;
119120
}
@@ -125,7 +126,7 @@ export default {
125126
}
126127
127128
.easy-card-user-info .easy-favourited{
128-
color: #1abc9c !important;
129+
color: #19caad !important;
129130
}
130131
131132
.easy-card-user-info img{

src/components/list.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<ul class="content table-view easy-list" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="10">
2+
<ul class="content table-view easy-list"
3+
v-infinite-scroll="loadMore"
4+
infinite-scroll-disabled="busy"
5+
infinite-scroll-distance="10">
36
<li class="table-view-cell media" v-for="result in results">
47
<router-link class="navigate-right" to="/detail">
58
<img class="media-object pull-left" :src="result.img">
@@ -10,7 +13,9 @@
1013
</router-link>
1114
</li>
1215
<div class="nsr-card-loading">
13-
<nsr-loading :hide-loading="isloadingComplete" :is-end-text="endText">
16+
<nsr-loading
17+
:hide-loading="isloadingComplete"
18+
:is-end-text="endText">
1419
</nsr-loading>
1520
</div>
1621
</ul>

src/components/text.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
padding-top: 200px;
2626
}
2727
.easy-content p:first-child {
28-
color: #1abc9c;
28+
color: #19caad;
2929
font-size: 25px;
3030
}
3131
.easy-content p:last-child {

0 commit comments

Comments
 (0)