99 <v-spacer ></v-spacer >
1010 <div v-if =" content.hasWebsite" >
1111 <v-btn
12- @click =" openWebsite('_self')"
13- @auxclick =" openWebsite('_blank')"
14- variant =" text" > Open Website </v-btn >
15- <v-icon right >mdi-open-in-new</v-icon >
12+ :href =" props.content.url"
13+ variant =" text" >
14+ Open Website
15+ <v-icon end >mdi-open-in-new</v-icon >
16+ </v-btn >
1617 </div >
1718 </v-toolbar >
1819 <div v-else >
3334 </v-sheet >
3435
3536 <v-sheet v-if =" content.hasWebsite" width =" 100%" class =" button" >
36- <v-btn @click = " openWebsite('_self') " @auxclick = " openWebsite('_blank') " variant =" text" style =" width : 100% " >
37+ <v-btn :href = " props.content.url " variant =" text" style =" width : 100% " >
3738 Open Website
3839 </v-btn >
3940 </v-sheet >
4445 <v-card-actions >
4546 <div >
4647 <v-chip :color =" chipColor" >
47- <div class =" prechip" >Status: </div >
48+ <div class =" prechip" >Status</div >
4849 {{ content.status }}
4950 </v-chip >
5051 </div >
5152 <div style =" display : flex ; flex-wrap : nowrap " v-if =" content.hasRepo" >
52- <v-btn @click =" openRepo('_self')" @auxclick =" openRepo('_blank')" >Open Repo</v-btn >
53- <v-icon >mdi-github</v-icon >
53+ <v-btn :href =" props.content.repo" >
54+ Open Repo
55+ <v-icon end >mdi-github</v-icon >
56+ </v-btn >
5457 </div >
5558 </v-card-actions >
5659 </v-card >
@@ -76,14 +79,6 @@ const chipColor = computed(() => {
7679});
7780
7881const isMobile = useMediaQuery (" (max-width: 700px)" );
79-
80- function openWebsite (target ) {
81- window .open (props .content .url , target);
82- }
83-
84- function openRepo (target ) {
85- window .open (props .content .repo , target);
86- }
8782 </script >
8883
8984<style scoped>
0 commit comments