File tree 18 files changed +69
-13
lines changed
18 files changed +69
-13
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ module.exports = {
3
3
siteUrl : 'https://thermal.codecarrot.net/' ,
4
4
titleTemplate : "%s | Thermal" ,
5
5
6
+ chainWebpack : config => {
7
+ const svgRule = config . module . rule ( 'svg' )
8
+ svgRule . uses . clear ( )
9
+ svgRule
10
+ . use ( 'vue-svg-loader' )
11
+ . loader ( 'vue-svg-loader' )
12
+ } ,
13
+
6
14
plugins : [
7
15
{
8
16
use : '@gridsome/plugin-google-analytics' ,
Original file line number Diff line number Diff line change 30
30
"@gridsome/transformer-remark" : " ^0.3.1" ,
31
31
"node-sass" : " ^4.12.0" ,
32
32
"platform" : " ^1.3.5" ,
33
- "sass-loader" : " ^7.1.0"
33
+ "sass-loader" : " ^7.1.0" ,
34
+ "vue-svg-loader" : " ^0.12.0"
34
35
}
35
36
}
Original file line number Diff line number Diff line change 33
33
34
34
<div class =" footer__social" >
35
35
<a href =" https://www.github.com/gitthermal/thermal" class =" footer__social-item" >
36
- <g-image src =" ../../static/images/github-4x.png " />
36
+ <g-image src =" ../../static/images/icon/ github.svg " />
37
37
</a >
38
38
<a href =" https://discord.gg/KT3nAR5" class =" footer__social-item" >
39
- <g-image src =" ../../static/images/discord-4x.png " />
39
+ <g-image src =" ../../static/images/icon/ discord.svg " />
40
40
</a >
41
41
<a href =" https://www.producthunt.com/posts/thermal" class =" footer__social-item" >
42
- <g-image src =" ../../static/images/producthunt-4x.png " />
42
+ <g-image src =" ../../static/images/icon/ producthunt.svg " />
43
43
</a >
44
44
<a href =" https://www.twitter.com/gitthermal" class =" footer__social-item" >
45
- <g-image src =" ../../static/images/twitter-4x.png " />
45
+ <g-image src =" ../../static/images/icon/ twitter.svg " />
46
46
</a >
47
47
</div >
48
48
Original file line number Diff line number Diff line change 50
50
@click =" navbarToggle()"
51
51
class =" header__navbar-menu"
52
52
>
53
- <svg xmlns = " http://www.w3.org/2000/svg " viewbox = " 0 0 24 24 " width = " 24 " height = " 24 " fill = " none " stroke = " currentColor " stroke-width = " 2 " stroke-linecap = " round " stroke-linejoin = " round " >< path d = " M3 12h18M3 6h18M3 18h18 " /></ svg >
53
+ <MenuIcon / >
54
54
</div >
55
55
</div >
56
56
</Container >
60
60
<script >
61
61
import Container from " ../layouts/Container" ;
62
62
import Logo from " ./Logo" ;
63
+ import MenuIcon from " ../../static/images/icon/menu.svg"
63
64
import OutlineButton from " ./Button/OutlineButton"
64
65
import DownloadMixin from " ../mixins/download"
65
66
@@ -75,6 +76,7 @@ export default {
75
76
components: {
76
77
Container,
77
78
Logo,
79
+ MenuIcon,
78
80
OutlineButton
79
81
},
80
82
props: {
Original file line number Diff line number Diff line change 19
19
<div class =" download__other-list" >
20
20
<div class =" download__other-item" >
21
21
<g-image
22
- src =" ../../static/images/windows.svg"
22
+ src =" ../../static/images/icon/ windows.svg"
23
23
class =" download__other-image"
24
24
/>
25
25
<h4 >Windows</h4 >
26
26
</div >
27
27
<div class =" download__other-item" >
28
28
<g-image
29
- src =" ../../static/images/mac.png"
29
+ src =" ../../static/images/icon/ mac.png"
30
30
class =" download__other-image"
31
31
/>
32
32
<h4 >MacOS</h4 >
33
33
</div >
34
34
<div class =" download__other-item" >
35
35
<g-image
36
- src =" ../../static/images/linux.svg"
36
+ src =" ../../static/images/icon/ linux.svg"
37
37
class =" download__other-image"
38
38
/>
39
39
<h4 >Linux</h4 >
Original file line number Diff line number Diff line change 61
61
<container >
62
62
<div class =" index__features-container" >
63
63
<div class =" index__features-item" >
64
- <g-image src =" ../../static/images/open-source-2x.png " class =" index__features-icon" />
64
+ <g-image src =" ../../static/images/icon/ open-source.svg " class =" index__features-icon" />
65
65
<div class =" index__features-heading" >
66
66
Open Source
67
67
</div >
70
70
</div >
71
71
</div >
72
72
<div class =" index__features-item" >
73
- <g-image src =" ../../static/images/easy-to-use-2x.png " class =" index__features-icon" />
73
+ <g-image src =" ../../static/images/icon/ easy-to-use.svg " class =" index__features-icon" />
74
74
<div class =" index__features-heading" >
75
75
Easy to use
76
76
</div >
79
79
</div >
80
80
</div >
81
81
<div class =" index__features-item" >
82
- <g-image src =" ../../static/images/multi-os-2x.png " class =" index__features-icon" />
82
+ <g-image src =" ../../static/images/icon/ multi-os.svg " class =" index__features-icon" />
83
83
<div class =" index__features-heading" >
84
84
Cross platform
85
85
</div >
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -8006,7 +8006,14 @@ svg-tags@^1.0.0:
8006
8006
resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764"
8007
8007
integrity sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=
8008
8008
8009
- svgo@^1.0.0 :
8009
+ svg-to-vue@^0.4.0 :
8010
+ version "0.4.0"
8011
+ resolved "https://registry.yarnpkg.com/svg-to-vue/-/svg-to-vue-0.4.0.tgz#93a2fc9658c09593f6099ac7f5ded73ac83dc549"
8012
+ integrity sha512-g/ZHtEFf4QDsDtTk9tuYX/MJ2HESTUBMTkuLoffQGQ3xMtlmD9Ec4YyTgmMkP1P8QJtWWu2FiGdOnlKaXc/X/Q==
8013
+ dependencies :
8014
+ svgo "^1.1.1"
8015
+
8016
+ svgo@^1.0.0, svgo@^1.1.1 :
8010
8017
version "1.2.2"
8011
8018
resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.2.2.tgz#0253d34eccf2aed4ad4f283e11ee75198f9d7316"
8012
8019
integrity sha512-rAfulcwp2D9jjdGu+0CuqlrAUin6bBWrpoqXWwKDZZZJfXcUXQSxLJOFJCQCSA0x0pP2U0TxSlJu2ROq5Bq6qA==
@@ -8743,6 +8750,14 @@ vue-style-loader@^4.1.0:
8743
8750
hash-sum "^1.0.2"
8744
8751
loader-utils "^1.0.2"
8745
8752
8753
+ vue-svg-loader@^0.12.0 :
8754
+ version "0.12.0"
8755
+ resolved "https://registry.yarnpkg.com/vue-svg-loader/-/vue-svg-loader-0.12.0.tgz#5ea97d021edd3023236b92f96c3aba433b5d428b"
8756
+ integrity sha512-pg8H6iKCj+DAC7FZuxdfGJMHiFpJPv/YyoN1M7Iqlf+Hu4eU6Q/W/sEFx978syQA+aOx0NXrp+uQUAajqQvXbQ==
8757
+ dependencies :
8758
+ loader-utils "^1.2.3"
8759
+ svg-to-vue "^0.4.0"
8760
+
8746
8761
vue-template-compiler@^2.6.10 :
8747
8762
version "2.6.10"
8748
8763
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.10.tgz#323b4f3495f04faa3503337a82f5d6507799c9cc"
You can’t perform that action at this time.
0 commit comments