2424 <router-link to =" /" >{{ config.app.title }}</router-link >
2525 </v-toolbar-title >
2626 <div class =" flex-grow-1" ></div >
27- <v-btn v-if =" !isLoggedIn" icon >
28- <router-link to =" /signin" >
29- <v-icon :style =" {color: config.vuetify.theme.themes[theme].onPrimary}" >fa-user</v-icon >
30- </router-link >
31- </v-btn >
32- <v-btn v-else @click =" signout" icon >
33- <v-icon :style =" {color: config.vuetify.theme.themes[theme].onPrimary}" >fa-arrow-right</v-icon >
34- </v-btn >
27+ <!-- custom menu -->
28+ <v-tooltip v-for =" ({ icon, title, link }, i) in links" :key =" i" bottom >
29+ <template v-slot :activator =" { on , attrs } " >
30+ <v-btn v-bind =" attrs" v-on =" on" min-width =" 50" min-height =" 50" x-small icon >
31+ <a :href =" link" >
32+ <v-icon :style =" {color: config.vuetify.theme.themes[theme].onPrimary}" >{{icon}}</v-icon >
33+ </a >
34+ </v-btn >
35+ </template >
36+ <span >{{title}}</span >
37+ </v-tooltip >
38+ <!-- user menu -->
39+ <v-tooltip bottom >
40+ <template v-slot :activator =" { on , attrs } " >
41+ <v-btn v-if =" !isLoggedIn" v-bind =" attrs" v-on =" on" min-width =" 50" min-height =" 50" x-small icon >
42+ <router-link to =" /signin" >
43+ <v-icon :style =" {color: config.vuetify.theme.themes[theme].onPrimary}" >fa-user</v-icon >
44+ </router-link >
45+ </v-btn >
46+ </template >
47+ <span >Sign In</span >
48+ </v-tooltip >
49+ <v-tooltip bottom >
50+ <template v-slot :activator =" { on , attrs } " >
51+ <v-btn v-if =" isLoggedIn" @click =" signout" v-bind =" attrs" v-on =" on" min-width =" 50" min-height =" 50" x-small icon >
52+ <v-icon :style =" {color: config.vuetify.theme.themes[theme].onPrimary}" >fa-arrow-right</v-icon >
53+ </v-btn >
54+ </template >
55+ <span >Sign Out</span >
56+ </v-tooltip >
3557 </v-app-bar >
3658</template >
3759<script >
@@ -45,6 +67,42 @@ import { mapGetters } from 'vuex';
4567 */
4668export default {
4769 name: ' waosHeader' ,
70+ data () {
71+ return {
72+ links: [
73+ {
74+ icon: ' fab fa-github' ,
75+ title: ' Github' ,
76+ link: ' https://github.com/weareopensource/' ,
77+ },
78+ {
79+ icon: ' fab fa-docker' ,
80+ title: ' Docker Hub' ,
81+ link: ' https://hub.docker.com/orgs/weareopensource/repositories' ,
82+ },
83+ {
84+ icon: ' fab fa-github-alt' ,
85+ title: ' Github projects' ,
86+ link: ' https://github.com/WeAreOpenSourceProjects' ,
87+ },
88+ {
89+ icon: ' fab fa-discord' ,
90+ title: ' Discord' ,
91+ link: ' https://discord.gg/U2a2vVm' ,
92+ },
93+ {
94+ icon: ' fab fa-slack' ,
95+ title: ' Slack' ,
96+ link: ' https://join.slack.com/t/weareopensource/shared_invite/zt-62p1qxna-PEQn289qx6mmHobzKW8QFw' ,
97+ },
98+ {
99+ icon: ' fab fa-twitter' ,
100+ title: ' Twitter' ,
101+ link: ' https://twitter.com/waos_io' ,
102+ },
103+ ],
104+ };
105+ },
48106 computed: {
49107 ... mapGetters ([' theme' , ' isLoggedIn' ]),
50108 drawer: {
0 commit comments