This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +50
-14
lines changed Expand file tree Collapse file tree 3 files changed +50
-14
lines changed Original file line number Diff line number Diff line change 2828<script >
2929import {
3030 CodepenIcon ,
31+ CodesandboxIcon ,
3132 FacebookIcon ,
3233 GithubIcon ,
3334 GitlabIcon ,
@@ -36,13 +37,17 @@ import {
3637 LinkedinIcon ,
3738 MailIcon ,
3839 MessageSquareIcon ,
40+ MusicIcon ,
3941 PhoneIcon ,
4042 TwitterIcon ,
43+ VideoIcon ,
44+ YoutubeIcon ,
4145} from ' vue-feather-icons'
4246
4347export default {
4448 components: {
4549 CodepenIcon,
50+ CodesandboxIcon,
4651 FacebookIcon,
4752 GithubIcon,
4853 GitlabIcon,
@@ -51,8 +56,11 @@ export default {
5156 LinkedinIcon,
5257 MailIcon,
5358 MessageSquareIcon,
59+ MusicIcon,
5460 PhoneIcon,
5561 TwitterIcon,
62+ VideoIcon,
63+ YoutubeIcon,
5664 },
5765
5866 computed: {
@@ -80,6 +88,10 @@ export default {
8088 methods: {
8189 getIconComponentName (contactType ) {
8290 switch (contactType) {
91+ case ' codepen' :
92+ return ' CodepenIcon'
93+ case ' codesandbox' :
94+ return ' CodesandboxIcon'
8395 case ' facebook' :
8496 return ' FacebookIcon'
8597 case ' github' :
@@ -94,14 +106,18 @@ export default {
94106 return ' MailIcon'
95107 case ' messenger' :
96108 return ' MessageSquareIcon'
109+ case ' music' :
110+ return ' MusicIcon'
97111 case ' phone' :
98112 return ' PhoneIcon'
99113 case ' twitter' :
100114 return ' TwitterIcon'
115+ case ' video' :
116+ return ' VideoIcon'
101117 case ' web' :
102118 return ' GlobeIcon'
103- case ' codepen ' :
104- return ' CodepenIcon '
119+ case ' youtube ' :
120+ return ' YoutubeIcon '
105121 default :
106122 return ' '
107123 }
Original file line number Diff line number Diff line change @@ -79,17 +79,21 @@ module.exports = {
7979
8080For now ` ContactType ` supports following enums:
8181
82+ - codepen
83+ - codesandbox
8284- facebook
8385- github
8486- gitlab
8587- instagram
8688- linkedin
8789- mail
8890- messenger
91+ - music
8992- phone
9093- twitter
94+ - video
9195- web
92- - codepen
96+ - youtube
9397
9498::: tip
9599Welcome contribution of adding more built-in contact type.
Original file line number Diff line number Diff line change @@ -35,47 +35,63 @@ module.exports = {
3535 contact : [
3636 {
3737 type : 'codepen' ,
38- link : '#' ,
38+ link : '/' ,
39+ } ,
40+ {
41+ type : 'codesandbox' ,
42+ link : '/' ,
3943 } ,
4044 {
4145 type : 'facebook' ,
42- link : '# ' ,
46+ link : '/ ' ,
4347 } ,
4448 {
4549 type : 'github' ,
46- link : 'https://github.com/ulivz ' ,
50+ link : 'https://github.com/vuepressjs/vuepress-theme-blog ' ,
4751 } ,
4852 {
4953 type : 'gitlab' ,
50- link : '# ' ,
54+ link : '/ ' ,
5155 } ,
5256 {
5357 type : 'instagram' ,
54- link : '# ' ,
58+ link : '/ ' ,
5559 } ,
5660 {
5761 type : 'linkedin' ,
58- link : '# ' ,
62+ link : '/ ' ,
5963 } ,
6064 {
6165 type : 'mail' ,
62- link : '# ' ,
66+ link : '/ ' ,
6367 } ,
6468 {
6569 type : 'messenger' ,
66- link : '#' ,
70+ link : '/' ,
71+ } ,
72+ {
73+ type :'music' ,
74+ link :'/'
6775 } ,
6876 {
6977 type : 'phone' ,
70- link : '# ' ,
78+ link : '/ ' ,
7179 } ,
7280 {
7381 type : 'twitter' ,
74- link : 'https://twitter.com/_ulivz' ,
82+ link : 'https://twitter.com/vuepressjs' ,
83+ } ,
84+ {
85+ type :'video' ,
86+ link :'/'
7587 } ,
7688 {
7789 type : 'web' ,
78- link : '#' ,
90+ link : '/' ,
91+ } ,
92+ {
93+ type : 'youtube' ,
94+ link : '/'
7995 }
8096 ] ,
8197 copyright : [
You can’t perform that action at this time.
0 commit comments