Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c41cf0e

Browse filesBrowse files
committed
更换成 elemefe 的 eslint
1 parent 926460c commit c41cf0e
Copy full SHA for c41cf0e

25 files changed

+329
-383
lines changed

‎.eslintrc.js

Copy file name to clipboardExpand all lines: .eslintrc.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
browser: true,
1111
},
1212
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
13-
extends: 'standard',
13+
extends: 'elemefe',
1414
// required to lint *.vue files
1515
plugins: [
1616
'html'

‎package.json

Copy file name to clipboardExpand all lines: package.json
+15-14Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,28 @@
3636
"babel-core": "^6.22.1",
3737
"babel-eslint": "^7.1.1",
3838
"babel-loader": "^6.2.10",
39+
"babel-plugin-istanbul": "^4.1.1",
3940
"babel-plugin-transform-runtime": "^6.22.0",
4041
"babel-preset-env": "^1.3.2",
4142
"babel-preset-stage-2": "^6.22.0",
4243
"babel-register": "^6.22.0",
44+
"chai": "^3.5.0",
4345
"chalk": "^1.1.3",
46+
"chromedriver": "^2.27.2",
4447
"connect-history-api-fallback": "^1.3.0",
4548
"copy-webpack-plugin": "^4.0.1",
49+
"cross-env": "^4.0.0",
50+
"cross-spawn": "^5.0.1",
4651
"css-loader": "^0.28.0",
4752
"electron": "^1.6.11",
4853
"electron-builder": "^19.4.2",
4954
"electron-packager": "^8.7.1",
5055
"eslint": "^3.19.0",
56+
"eslint-config-elemefe": "^0.3.0",
57+
"eslint-config-standard": "^6.2.1",
5158
"eslint-friendly-formatter": "^2.0.7",
5259
"eslint-loader": "^1.7.1",
5360
"eslint-plugin-html": "^2.0.0",
54-
"eslint-config-standard": "^6.2.1",
5561
"eslint-plugin-promise": "^3.4.0",
5662
"eslint-plugin-standard": "^2.0.1",
5763
"eventsource-polyfill": "^0.9.6",
@@ -61,8 +67,7 @@
6167
"friendly-errors-webpack-plugin": "^1.1.3",
6268
"html-webpack-plugin": "^2.28.0",
6369
"http-proxy-middleware": "^0.17.3",
64-
"webpack-bundle-analyzer": "^2.2.1",
65-
"cross-env": "^4.0.0",
70+
"inject-loader": "^3.0.0",
6671
"karma": "^1.4.1",
6772
"karma-coverage": "^1.1.1",
6873
"karma-mocha": "^1.3.0",
@@ -74,27 +79,23 @@
7479
"karma-webpack": "^2.0.2",
7580
"lolex": "^1.5.2",
7681
"mocha": "^3.2.0",
77-
"chai": "^3.5.0",
78-
"sinon": "^2.1.0",
79-
"sinon-chai": "^2.8.0",
80-
"inject-loader": "^3.0.0",
81-
"babel-plugin-istanbul": "^4.1.1",
82-
"phantomjs-prebuilt": "^2.1.14",
83-
"chromedriver": "^2.27.2",
84-
"cross-spawn": "^5.0.1",
8582
"nightwatch": "^0.9.12",
86-
"selenium-server": "^3.0.1",
87-
"semver": "^5.3.0",
88-
"shelljs": "^0.7.6",
8983
"opn": "^4.0.2",
9084
"optimize-css-assets-webpack-plugin": "^1.3.0",
9185
"ora": "^1.2.0",
86+
"phantomjs-prebuilt": "^2.1.14",
9287
"rimraf": "^2.6.0",
88+
"selenium-server": "^3.0.1",
89+
"semver": "^5.3.0",
90+
"shelljs": "^0.7.6",
91+
"sinon": "^2.1.0",
92+
"sinon-chai": "^2.8.0",
9393
"url-loader": "^0.5.8",
9494
"vue-loader": "^12.1.0",
9595
"vue-style-loader": "^3.0.1",
9696
"vue-template-compiler": "^2.3.3",
9797
"webpack": "^2.6.1",
98+
"webpack-bundle-analyzer": "^2.2.1",
9899
"webpack-dev-middleware": "^1.10.0",
99100
"webpack-hot-middleware": "^2.18.0",
100101
"webpack-merge": "^4.1.0"

‎src/components/bookCard.vue

Copy file name to clipboardExpand all lines: src/components/bookCard.vue
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</template>
2222

2323
<script>
24-
import router from '@/router'
24+
import router from '@/router';
2525
2626
export default {
2727
props: [
@@ -31,10 +31,10 @@ export default {
3131
],
3232
methods: {
3333
goGoodsCart() {
34-
this.$store.state.user.isLogin ? router.push('/goodscart') : router.push('/login')
34+
this.$store.state.user.isLogin ? router.push('/goodscart') : router.push('/login');
3535
}
3636
}
37-
}
37+
};
3838
</script>
3939

4040
<style>

‎src/components/issuesList.vue

Copy file name to clipboardExpand all lines: src/components/issuesList.vue
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
'issue_header_meta',
2323
'issue_content_list'
2424
]
25-
}
25+
};
2626
</script>
2727

2828
<style>

‎src/components/layout.vue

Copy file name to clipboardExpand all lines: src/components/layout.vue
+7-33Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<div class="app-content">
88
<keep-alive>
99
<transition name="drop">
10-
<router-view></router-view>
11-
</transition>
10+
<router-view></router-view>
11+
</transition>
1212
</keep-alive>
1313
</div>
1414

@@ -19,9 +19,9 @@
1919
</template>
2020

2121
<script>
22-
import navgationBar from './navigationBar'
23-
import bookCard from './bookCard'
24-
import footerView from './footerView'
22+
import navgationBar from './navigationBar';
23+
import bookCard from './bookCard';
24+
import footerView from './footerView';
2525
2626
export default {
2727
components: {
@@ -30,35 +30,9 @@ export default {
3030
footerView
3131
},
3232
created() {
33-
this.$store.dispatch('loadUser')
34-
},
35-
data() {
36-
return {
37-
isShowAboutDialog: false,
38-
isShowLogDialog: false,
39-
isShowRegDialog: false,
40-
username: '',
41-
activeClass: 'navbar-item-select'
42-
}
43-
},
44-
methods: {
45-
aboutClick() {
46-
this.isShowAboutDialog = true
47-
},
48-
logClick() {
49-
this.isShowLogDialog = true
50-
},
51-
regClick() {
52-
this.isShowRegDialog = true
53-
},
54-
closeDialog(attr) {
55-
this[attr] = false
56-
},
57-
onSuccessLog(data) {
58-
59-
}
33+
this.$store.dispatch('loadUser');
6034
}
61-
}
35+
};
6236
</script>
6337

6438
<style>

‎src/components/navigationBar.vue

Copy file name to clipboardExpand all lines: src/components/navigationBar.vue
+4-8Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,21 @@
5353
</template>
5454

5555
<script>
56-
5756
export default {
58-
props: [],
5957
data() {
6058
return {
6159
showNavbar: false
62-
}
60+
};
6361
},
6462
methods: {
6563
logout() {
66-
this.$store.commit('userLogout')
64+
this.$store.commit('userLogout');
6765
},
6866
getUserLoginState() {
69-
return this.$store.state.user.isLogin
67+
return this.$store.state.user.isLogin;
7068
}
71-
},
72-
created() {
7369
}
74-
}
70+
};
7571
</script>
7672

7773
<style >

‎src/components/productsDetailInfo/productsAuthor.vue

Copy file name to clipboardExpand all lines: src/components/productsDetailInfo/productsAuthor.vue
+30-30Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
<template>
2-
<div class="product-info row">
3-
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="authorList.length > 0">
4-
<h4 class="section-title">关于作者</h4>
5-
<ul class="product-authors">
6-
<li class="product-author" v-for="author in authorList">
7-
<figure class="product-media_image product-author-photo">
8-
<img width="200" height="200" :src=author.authorAvatar>
9-
</figure>
10-
<div class="product-author-body">
11-
<h4 class="product-author-name">
2+
<div class="product-info row">
3+
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="authorList.length > 0">
4+
<h4 class="section-title">关于作者</h4>
5+
<ul class="product-authors">
6+
<li class="product-author" v-for="author in authorList">
7+
<figure class="product-media_image product-author-photo">
8+
<img width="200" height="200" :src=author.authorAvatar>
9+
</figure>
10+
<div class="product-author-body">
11+
<h4 class="product-author-name">
1212
<a :href=author.authorLink>{{author.authorName}}</a>
1313
</h4>
14-
<div class="product-author-bio" v-html=author.authorDescribe>
15-
</div>
14+
<div class="product-author-bio" v-html=author.authorDescribe>
1615
</div>
17-
</li>
18-
</ul>
19-
</div>
20-
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="translatorList.length > 0">
21-
<h4 class="section-title">关于译者</h4>
22-
<ul class="product-authors">
23-
<li class="product-author" v-for="translator in translatorList">
24-
<figure class="product-media_image product-author-photo">
25-
<img width="200" height="200" :src=translator.authorAvatar>
26-
</figure>
27-
<div class="product-author-body">
28-
<h4 class="product-author-name">
16+
</div>
17+
</li>
18+
</ul>
19+
</div>
20+
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="translatorList.length > 0">
21+
<h4 class="section-title">关于译者</h4>
22+
<ul class="product-authors">
23+
<li class="product-author" v-for="translator in translatorList">
24+
<figure class="product-media_image product-author-photo">
25+
<img width="200" height="200" :src=translator.authorAvatar>
26+
</figure>
27+
<div class="product-author-body">
28+
<h4 class="product-author-name">
2929
<a :href=translator.authorLink>{{translator.authorName}}</a>
3030
</h4>
31-
<div class="product-author-bio" v-html=translator.authorDescribe>
32-
</div>
31+
<div class="product-author-bio" v-html=translator.authorDescribe>
3332
</div>
34-
</li>
35-
</ul>
36-
</div>
33+
</div>
34+
</li>
35+
</ul>
3736
</div>
37+
</div>
3838
</template>
3939

4040
<script>
@@ -43,7 +43,7 @@ export default {
4343
'author-list',
4444
'translator-list'
4545
]
46-
}
46+
};
4747
</script>
4848

4949
<style>

‎src/components/productsDetailInfo/productsContent.vue

Copy file name to clipboardExpand all lines: src/components/productsDetailInfo/productsContent.vue
+11-12Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
<template>
2-
<div class="product-content">
3-
<h4 class="section-title">本书内容</h4>
4-
<div class="product-content-list">
5-
<ul>
6-
<li v-for="item in contentInfo">
7-
<h4>{{item.title}}</h4>
8-
<p>{{item.subtitle}}</p>
9-
</li>
10-
</ul>
11-
</div>
2+
<div class="product-content">
3+
<h4 class="section-title">本书内容</h4>
4+
<div class="product-content-list">
5+
<ul>
6+
<li v-for="item in contentInfo">
7+
<h4>{{item.title}}</h4>
8+
<p>{{item.subtitle}}</p>
9+
</li>
10+
</ul>
1211
</div>
13-
12+
</div>
1413
</template>
1514

1615
<script>
1716
export default {
1817
props: [
1918
'content-info'
2019
]
21-
}
20+
};
2221
</script>
2322

2423
<style>

‎src/components/productsDetailInfo/productsDownloadTool.vue

Copy file name to clipboardExpand all lines: src/components/productsDetailInfo/productsDownloadTool.vue
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
2-
<div class="buy-button-group row">
3-
<div class="btn-group btn-group-lg btn-group-justified" role="group">
4-
<a class="btn btn-default" role="button" href="">PDF 格式</a>
5-
<a class="btn btn-default" role="button" href="">mobi 格式</a>
6-
<a class="btn btn-default" role="button" href="">epub 格式</a>
7-
<a class="btn btn-default" role="button" href="">打包下载</a>
8-
</div>
2+
<div class="buy-button-group row">
3+
<div class="btn-group btn-group-lg btn-group-justified" role="group">
4+
<a class="btn btn-default" role="button" href="">PDF 格式</a>
5+
<a class="btn btn-default" role="button" href="">mobi 格式</a>
6+
<a class="btn btn-default" role="button" href="">epub 格式</a>
7+
<a class="btn btn-default" role="button" href="">打包下载</a>
98
</div>
9+
</div>
1010
</template>
1111

1212
<script>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.