Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 36e94f9

Browse files
Eslint, code style/indents fixes
1 parent a575ad4 commit 36e94f9

File tree

7 files changed

+41
-21
lines changed

7 files changed

+41
-21
lines changed

.editorconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
root = true
33

44
[*]
5-
indent_style = space
6-
indent_size = 2
5+
indent_style = tab
6+
indent_size = 4
77
end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

1212
[*.md]
1313
trim_trailing_whitespace = false
14+
15+
[*.{yml,yaml}]
16+
indent_style = space
17+
indent_size = 2

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
demo/*.js
2-
demo/*.vue

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
presets: [
33
'@vue/app'
4+
// {
5+
// targets: {
6+
// ie: '11'
7+
// }
8+
// }
49
]
510
}

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
44
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
55
ga('create', 'UA-104121614-1', 'auto');
6-
ga('send', 'pageview');</script><script src=/vue-agile/js/chunk-vendors.6a6591ab.js></script><script src=/vue-agile/js/app.1007498c.js></script></body></html>
6+
ga('send', 'pageview');</script><script src=/vue-agile/js/chunk-vendors.6a6591ab.js></script><script src=/vue-agile/js/app.1007498c.js></script></body></html>

public/index.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,38 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
77
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
8-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
8+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
9+
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
910

1011
<title>vue-agile | demo</title>
1112

12-
<meta name="description" content="vue-agile is a touch-friendly, responsive, easy to use carousel component for Vue.js inspired by Slick.">
13+
<meta name="description"
14+
content="vue-agile is a touch-friendly, responsive, easy to use carousel component for Vue.js inspired by Slick.">
1315
</head>
16+
1417
<body>
1518
<noscript>
1619
<strong>We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1720
</noscript>
21+
1822
<div id="app"></div>
1923
<!-- built files will be auto injected -->
2024

2125
<script async defer src="https://buttons.github.io/buttons.js"></script>
2226
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
2327

2428
<script>
25-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
26-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
27-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
28-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
29+
(function (i, s, o, g, r, a, m) {
30+
i['GoogleAnalyticsObject'] = r;
31+
i[r] = i[r] || function () {
32+
(i[r].q = i[r].q || []).push(arguments)
33+
}, i[r].l = 1 * new Date();
34+
a = s.createElement(o),
35+
m = s.getElementsByTagName(o)[0];
36+
a.async = 1;
37+
a.src = g;
38+
m.parentNode.insertBefore(a, m)
39+
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
2940
ga('create', 'UA-104121614-1', 'auto');
3041
ga('send', 'pageview');
3142
</script>

src/mixins/handlers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const mixin = {
1818
this.dragStartY = e.clientY
1919
}
2020
},
21+
2122
handleMouseMove (e) {
2223
let positionX
2324
let positionY
@@ -36,6 +37,7 @@ const mixin = {
3637
this.dragDistance = positionX - this.dragStartX
3738
}
3839
},
40+
3941
handleMouseUp () {
4042
this.mouseDown = false
4143
this.enableScroll()

src/mixins/props.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ const mixin = {
5151
default: '15%'
5252
},
5353

54-
/**
55-
* Slide change delay in milliseconds
56-
*/
57-
changeDelay: {
58-
type: Number,
59-
default: 0
60-
},
61-
62-
/**
54+
/**
55+
* Slide change delay in milliseconds
56+
*/
57+
changeDelay: {
58+
type: Number,
59+
default: 0
60+
},
61+
62+
/**
6363
* Enable dot indicators/pagination
6464
*/
6565
dots: {
@@ -75,7 +75,7 @@ const mixin = {
7575
default: false
7676
},
7777

78-
/**
78+
/**
7979
* Infinite loop sliding
8080
*/
8181
infinite: {

0 commit comments

Comments
 (0)