Skip to content

Commit

Permalink
test: stupid loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeraa committed Dec 31, 2023
1 parent 9a829ec commit b3716f6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/pages/contributors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
name: "Contributors",
auth: false,
async fetch() {
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.start();
}
} */
try {
const contributors = await this.$graphql(
`{
Expand Down Expand Up @@ -33,9 +33,9 @@
} catch (err) {
this.contributors = null;
}
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.finish();
}
} */
},
data() {
return {
Expand Down
8 changes: 4 additions & 4 deletions src/pages/partners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@
};
},
async fetch() {
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.start();
}
} */
try {
let { partners, sponsors } = await this.$graphql(
`{
Expand All @@ -209,9 +209,9 @@
} catch (err) {
return this.error(err.message);
}
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.finish();
}
} */
},
mounted() {
this.$auth.$storage.setUniversal("redirect", "/partners#req");
Expand Down
8 changes: 4 additions & 4 deletions src/pages/store/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
title: "Store"
},
async fetch() {
if(process.browser)
this.$nuxt.$loading.start();
/* if(process.browser)
this.$nuxt.$loading.start(); */
const { presences, partners, science } = await this.$graphql(
`
Expand Down Expand Up @@ -308,8 +308,8 @@
if ((p.users / usage) * 100 > 5) return p;
});
if(process.browser)
this.$nuxt.$loading.finish();
/* if(process.browser)
this.$nuxt.$loading.finish(); */
if (
this.pageCount < Number(this.$route.query.page) ||
this.$route.query.page <= -1
Expand Down
8 changes: 4 additions & 4 deletions src/pages/store/presences/_presenceName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@
},
async fetch() {
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.start();
}
} */
let { presences, partners, usage } = await this.$graphql(
`
{
Expand Down Expand Up @@ -381,9 +381,9 @@
} catch (err) {}
this.isMobile = false;
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.finish();
}
} */
if (!this.presence)
this.$nuxt.error({
statusCode: 404,
Expand Down
8 changes: 4 additions & 4 deletions src/pages/users/_userId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@
};
},
async fetch() {
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.start();
}
} */
let res = await this.$graphql(
`{
credits(id: "${this.$route.params.userId}") {
Expand Down Expand Up @@ -250,9 +250,9 @@
this.showContributions = false;
this.userPresences = userPresences;
this.userContributions = userContributions;
if (process.browser) {
/* if (process.browser) {
window.$nuxt.$loading.finish();
}
} */
},
methods: {
linkify(pls) {
Expand Down

0 comments on commit b3716f6

Please sign in to comment.