Skip to content

Commit 52c8640

Browse files
committed
let's just remove everything
1 parent 859b54c commit 52c8640

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

src/client/layouts/default.vue

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,8 @@
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")
@@ -82,12 +76,6 @@
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")
@@ -141,7 +129,7 @@
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

src/client/store/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
export const state = () => ({
22
user: {},
3-
discordUser: {},
43
});
54

65
export const mutations = {
7-
discordUser(state, user) {
8-
state.discordUser = user;
9-
},
106
user(state, user) {
117
state.user = user;
128
},
139
};
1410

1511
export 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
};

0 commit comments

Comments
 (0)