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 28
28
<script >
29
29
import {
30
30
CodepenIcon ,
31
+ CodesandboxIcon ,
31
32
FacebookIcon ,
32
33
GithubIcon ,
33
34
GitlabIcon ,
@@ -36,13 +37,17 @@ import {
36
37
LinkedinIcon ,
37
38
MailIcon ,
38
39
MessageSquareIcon ,
40
+ MusicIcon ,
39
41
PhoneIcon ,
40
42
TwitterIcon ,
43
+ VideoIcon ,
44
+ YoutubeIcon ,
41
45
} from ' vue-feather-icons'
42
46
43
47
export default {
44
48
components: {
45
49
CodepenIcon,
50
+ CodesandboxIcon,
46
51
FacebookIcon,
47
52
GithubIcon,
48
53
GitlabIcon,
@@ -51,8 +56,11 @@ export default {
51
56
LinkedinIcon,
52
57
MailIcon,
53
58
MessageSquareIcon,
59
+ MusicIcon,
54
60
PhoneIcon,
55
61
TwitterIcon,
62
+ VideoIcon,
63
+ YoutubeIcon,
56
64
},
57
65
58
66
computed: {
@@ -80,6 +88,10 @@ export default {
80
88
methods: {
81
89
getIconComponentName (contactType ) {
82
90
switch (contactType) {
91
+ case ' codepen' :
92
+ return ' CodepenIcon'
93
+ case ' codesandbox' :
94
+ return ' CodesandboxIcon'
83
95
case ' facebook' :
84
96
return ' FacebookIcon'
85
97
case ' github' :
@@ -94,14 +106,18 @@ export default {
94
106
return ' MailIcon'
95
107
case ' messenger' :
96
108
return ' MessageSquareIcon'
109
+ case ' music' :
110
+ return ' MusicIcon'
97
111
case ' phone' :
98
112
return ' PhoneIcon'
99
113
case ' twitter' :
100
114
return ' TwitterIcon'
115
+ case ' video' :
116
+ return ' VideoIcon'
101
117
case ' web' :
102
118
return ' GlobeIcon'
103
- case ' codepen ' :
104
- return ' CodepenIcon '
119
+ case ' youtube ' :
120
+ return ' YoutubeIcon '
105
121
default :
106
122
return ' '
107
123
}
Original file line number Diff line number Diff line change @@ -79,17 +79,21 @@ module.exports = {
79
79
80
80
For now ` ContactType ` supports following enums:
81
81
82
+ - codepen
83
+ - codesandbox
82
84
- facebook
83
85
- github
84
86
- gitlab
85
87
- instagram
86
88
- linkedin
87
89
- mail
88
90
- messenger
91
+ - music
89
92
- phone
90
93
- twitter
94
+ - video
91
95
- web
92
- - codepen
96
+ - youtube
93
97
94
98
::: tip
95
99
Welcome contribution of adding more built-in contact type.
Original file line number Diff line number Diff line change @@ -35,47 +35,63 @@ module.exports = {
35
35
contact : [
36
36
{
37
37
type : 'codepen' ,
38
- link : '#' ,
38
+ link : '/' ,
39
+ } ,
40
+ {
41
+ type : 'codesandbox' ,
42
+ link : '/' ,
39
43
} ,
40
44
{
41
45
type : 'facebook' ,
42
- link : '# ' ,
46
+ link : '/ ' ,
43
47
} ,
44
48
{
45
49
type : 'github' ,
46
- link : 'https://github.com/ulivz ' ,
50
+ link : 'https://github.com/vuepressjs/vuepress-theme-blog ' ,
47
51
} ,
48
52
{
49
53
type : 'gitlab' ,
50
- link : '# ' ,
54
+ link : '/ ' ,
51
55
} ,
52
56
{
53
57
type : 'instagram' ,
54
- link : '# ' ,
58
+ link : '/ ' ,
55
59
} ,
56
60
{
57
61
type : 'linkedin' ,
58
- link : '# ' ,
62
+ link : '/ ' ,
59
63
} ,
60
64
{
61
65
type : 'mail' ,
62
- link : '# ' ,
66
+ link : '/ ' ,
63
67
} ,
64
68
{
65
69
type : 'messenger' ,
66
- link : '#' ,
70
+ link : '/' ,
71
+ } ,
72
+ {
73
+ type :'music' ,
74
+ link :'/'
67
75
} ,
68
76
{
69
77
type : 'phone' ,
70
- link : '# ' ,
78
+ link : '/ ' ,
71
79
} ,
72
80
{
73
81
type : 'twitter' ,
74
- link : 'https://twitter.com/_ulivz' ,
82
+ link : 'https://twitter.com/vuepressjs' ,
83
+ } ,
84
+ {
85
+ type :'video' ,
86
+ link :'/'
75
87
} ,
76
88
{
77
89
type : 'web' ,
78
- link : '#' ,
90
+ link : '/' ,
91
+ } ,
92
+ {
93
+ type : 'youtube' ,
94
+ link : '/'
79
95
}
80
96
] ,
81
97
copyright : [
You can’t perform that action at this time.
0 commit comments