File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed
Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change 6666 )
6767 b-icon( icon ="steam" )
6868 span Steam
69- //- a.navbar-item(
70- //- v-if="!$store.state.discordUser.id",
71- //- href="https://metastruct.net/discord/auth"
72- //- )
73- //- b-icon(icon="discord")
74- //- span Discord
7569 .navbar-item.has-dropdown.is-hoverable (
76- v-if ="$store.state.user.steamId || $store.state.discordUser.id "
70+ v-if ="$store.state.user.steamId"
7771 )
7872 a.navbar-link
7973 b-icon( icon ="logout" )
8276 a.navbar-item ( v-if ="$store.state.user.steamId" , :href ="`/auth/logout`" )
8377 b-icon( icon ="steam" )
8478 span Steam
85- a.navbar-item (
86- v-if ="$store.state.discordUser.id" ,
87- href ="https://metastruct.net/discord/auth/logout"
88- )
89- b-icon( icon ="discord" )
90- span Discord
9179
9280 .hero.is-dark
9381 CyclingBackground( :images ="backgrounds" )
141129 |
142130 a( href ="https://zombie.computer" ) ukgamer
143131 p
144- | discord linking:
132+ | old discord linking:
145133 |
146134 a( href ="http://potcfdk.bplaced.net" ) PotcFdk
147135 p
Original file line number Diff line number Diff line change 11export const state = ( ) => ( {
22 user : { } ,
3- discordUser : { } ,
43} ) ;
54
65export const mutations = {
7- discordUser ( state , user ) {
8- state . discordUser = user ;
9- } ,
106 user ( state , user ) {
117 state . user = user ;
128 } ,
139} ;
1410
1511export const actions = {
16- nuxtServerInit ( store , { req, $axios } ) {
12+ nuxtServerInit ( store , { req } ) {
1713 if ( req . user ) {
1814 store . commit ( "user" , req . user ) ;
1915 }
20-
21- $axios
22- . get ( "https://metastruct.net/discord/auth/info.json" )
23- . then ( res => {
24- store . commit ( "discordUser" , res . data ) ;
25- } )
26- . catch ( console . error ) ;
2716 } ,
2817} ;
You can’t perform that action at this time.
0 commit comments