File tree Expand file tree Collapse file tree 16 files changed +65
-106
lines changed Expand file tree Collapse file tree 16 files changed +65
-106
lines changed Original file line number Diff line number Diff line change 35
35
- name : Install dependencies
36
36
run : yarn
37
37
38
+ - name : Run Linter
39
+ run : yarn lint
40
+
38
41
- name : Run build project
39
42
run : yarn build
Original file line number Diff line number Diff line change 1
1
{
2
+ "bracketSpacing": true,
3
+ "printWidth": 120,
4
+ "singleQuote": true,
2
5
"semi": false,
3
- "singleQuote ": true
4
- }
6
+ "trailingComma ": "es5"
7
+ }
Original file line number Diff line number Diff line change 5
5
"build" : " gridsome build" ,
6
6
"dev" : " gridsome develop" ,
7
7
"explore" : " gridsome explore" ,
8
- "lint:fix" : " eslint --fix --ext .js,.vue --ignore-path .gitignore ."
8
+ "lint" : " eslint src/**/*.{vue,js}" ,
9
+ "lint:fix" : " eslint src/**/*.{vue,js} --fix"
9
10
},
10
11
"dependencies" : {
11
12
"@gridsome/plugin-google-analytics" : " 0.1.2" ,
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ export default {
27
27
props: {
28
28
showTitle: {
29
29
type: Boolean ,
30
- default: true
31
- }
32
- }
30
+ default: true ,
31
+ },
32
+ },
33
33
}
34
34
</script >
35
35
Original file line number Diff line number Diff line change 4
4
{{ post.author.title }}
5
5
</span >
6
6
<g-link class =" post-author__link" :to =" post.author.path" >
7
- <g-image
8
- v-if =" post.author.avatar"
9
- alt =" Author"
10
- class =" post-author__avatar"
11
- :src =" post.author.avatar"
12
- />
7
+ <g-image v-if =" post.author.avatar" alt =" Author" class =" post-author__avatar" :src =" post.author.avatar" />
13
8
</g-link >
14
9
</div >
15
10
</template >
@@ -19,9 +14,9 @@ export default {
19
14
props: {
20
15
post: {
21
16
type: Object ,
22
- default : () => {}
23
- }
24
- }
17
+ default : () => {},
18
+ },
19
+ },
25
20
}
26
21
</script >
27
22
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div
3
- class =" post-card content-box"
4
- :class =" { 'post-card--has-poster': post.poster }"
5
- >
2
+ <div class =" post-card content-box" :class =" { 'post-card--has-poster': post.poster }" >
6
3
<div class =" post-card__header" >
7
- <g-image
8
- v-if =" post.cover_image"
9
- alt =" Cover image"
10
- class =" post-card__image"
11
- :src =" post.cover_image"
12
- />
4
+ <g-image v-if =" post.cover_image" alt =" Cover image" class =" post-card__image" :src =" post.cover_image" />
13
5
</div >
14
6
<div class =" post-card__content" >
15
7
<h2 class =" post-card__title" v-html =" post.title" />
@@ -30,14 +22,14 @@ import PostTags from '~/components/PostTags'
30
22
export default {
31
23
components: {
32
24
PostMeta,
33
- PostTags
25
+ PostTags,
34
26
},
35
27
props: {
36
28
post: {
37
29
type: Object ,
38
- default : () => {}
39
- }
40
- }
30
+ default : () => {},
31
+ },
32
+ },
41
33
}
42
34
</script >
43
35
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ import PostAuthor from '~/components/PostAuthor'
15
15
16
16
export default {
17
17
components: {
18
- PostAuthor
18
+ PostAuthor,
19
19
},
20
20
props: {
21
21
post: {
22
22
type: Object ,
23
- default : () => {}
24
- }
25
- }
23
+ default : () => {},
24
+ },
25
+ },
26
26
}
27
27
</script >
28
28
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" post-tags" >
3
- <g-link
4
- v-for =" tag in post.tags"
5
- :key =" tag.id"
6
- class =" post-tags__link"
7
- :to =" tag.path"
8
- >
3
+ <g-link v-for =" tag in post.tags" :key =" tag.id" class =" post-tags__link" :to =" tag.path" >
9
4
<span >#</span >
10
5
{{ tag.title }}
11
6
</g-link >
@@ -17,9 +12,9 @@ export default {
17
12
props: {
18
13
post: {
19
14
type: Object ,
20
- default : () => {}
21
- }
22
- }
15
+ default : () => {},
16
+ },
17
+ },
23
18
}
24
19
</script >
25
20
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" social__links" >
3
- <a
4
- href =" https://www.facebook.com/groups/1675298779418239/"
5
- title =" Facebook"
6
- >
3
+ <a href =" https://www.facebook.com/groups/1675298779418239/" title =" Facebook" >
7
4
<svg
8
5
xmlns =" http://www.w3.org/2000/svg"
9
6
width =" 24"
16
13
stroke-linejoin =" round"
17
14
class =" feather feather-facebook"
18
15
>
19
- <path
20
- d =" M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"
21
- ></path >
16
+ <path d =" M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" ></path >
22
17
</svg >
23
18
</a >
24
19
<a href =" https://t.me/vuejsindonesia" title =" Telegram" >
71
66
>
72
67
<circle cx =" 12" cy =" 12" r =" 10" ></circle >
73
68
<line x1 =" 2" y1 =" 12" x2 =" 22" y2 =" 12" ></line >
74
- <path
75
- d =" M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
76
- ></path >
69
+ <path d =" M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" ></path >
77
70
</svg >
78
71
</a >
79
72
<a href =" https://docs.vuejs.id/" title =" Docs" >
96
89
</template >
97
90
<script >
98
91
export default {
99
- name: ' SocialLinks'
92
+ name: ' SocialLinks' ,
100
93
}
101
94
</script >
102
95
<style lang="scss">
Original file line number Diff line number Diff line change 1
1
<template >
2
- <button
3
- role =" button"
4
- aria-label =" Toggle dark/light"
5
- class =" toggle-theme"
6
- @click.prevent =" toggleTheme"
7
- >
2
+ <button role =" button" aria-label =" Toggle dark/light" class =" toggle-theme" @click.prevent =" toggleTheme" >
8
3
<svg
9
4
v-if =" darkTheme"
10
5
xmlns =" http://www.w3.org/2000/svg"
50
45
export default {
51
46
data () {
52
47
return {
53
- darkTheme: false
48
+ darkTheme: false ,
54
49
}
55
50
},
56
51
mounted () {
@@ -62,8 +57,8 @@ export default {
62
57
63
58
// This is using a script that is added in index.html
64
59
window .__setPreferredTheme (this .darkTheme ? ' dark' : ' light' )
65
- }
66
- }
60
+ },
61
+ },
67
62
}
68
63
</script >
69
64
You can’t perform that action at this time.
0 commit comments