Skip to content

Commit

Permalink
let's just remove everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 committed Oct 1, 2024
1 parent 859b54c commit 52c8640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
16 changes: 2 additions & 14 deletions src/client/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,8 @@
)
b-icon(icon="steam")
span  Steam
//- a.navbar-item(
//- v-if="!$store.state.discordUser.id",
//- href="https://metastruct.net/discord/auth"
//- )
//- b-icon(icon="discord")
//- span  Discord
.navbar-item.has-dropdown.is-hoverable(
v-if="$store.state.user.steamId || $store.state.discordUser.id"
v-if="$store.state.user.steamId"
)
a.navbar-link
b-icon(icon="logout")
Expand All @@ -82,12 +76,6 @@
a.navbar-item(v-if="$store.state.user.steamId", :href="`/auth/logout`")
b-icon(icon="steam")
span  Steam
a.navbar-item(
v-if="$store.state.discordUser.id",
href="https://metastruct.net/discord/auth/logout"
)
b-icon(icon="discord")
span  Discord

.hero.is-dark
CyclingBackground(:images="backgrounds")
Expand Down Expand Up @@ -141,7 +129,7 @@
|
a(href="https://zombie.computer") ukgamer
p
| discord linking:
| old discord linking:
|
a(href="http://potcfdk.bplaced.net") PotcFdk
p
Expand Down
13 changes: 1 addition & 12 deletions src/client/store/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
export const state = () => ({
user: {},
discordUser: {},
});

export const mutations = {
discordUser(state, user) {
state.discordUser = user;
},
user(state, user) {
state.user = user;
},
};

export const actions = {
nuxtServerInit(store, { req, $axios }) {
nuxtServerInit(store, { req }) {
if (req.user) {
store.commit("user", req.user);
}

$axios
.get("https://metastruct.net/discord/auth/info.json")
.then(res => {
store.commit("discordUser", res.data);
})
.catch(console.error);
},
};

0 comments on commit 52c8640

Please sign in to comment.