From db2a550e50efde82fba04f99ad61f6cc168b6760 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Sun, 28 Jun 2020 02:31:31 +0200 Subject: [PATCH] minor style changes --- docs/.vuepress/components/Generator.vue | 81 ++++++++++--------- .../components/GroupSelectComponent.vue | 1 + docs/.vuepress/components/SelectComponent.vue | 1 + docs/.vuepress/components/StageLoader.vue | 36 +++++---- 4 files changed, 67 insertions(+), 52 deletions(-) diff --git a/docs/.vuepress/components/Generator.vue b/docs/.vuepress/components/Generator.vue index d86bf64..ee48071 100644 --- a/docs/.vuepress/components/Generator.vue +++ b/docs/.vuepress/components/Generator.vue @@ -14,7 +14,10 @@
Use Stage Loader: - +
Download: @@ -34,7 +37,10 @@ :onInspect="inspect" />
-
+

Stage Loader

@@ -51,14 +57,10 @@ This is a cheatfile generator for Super Mario Sunshine speedrun practice. If this is your first time using the generator we highly recommend to check out the - guide first. Visit the - the troubleshooting section + guide first. Visit the + the troubleshooting section if you encounter any issues.

@@ -66,42 +68,41 @@

The generator is brought to you by - Psychonauter, - Noki Doki + Psychonauter, + Noki Doki and Milk.

@@ -134,17 +135,17 @@ import axios from "axios"; export default { mounted() { Promise.all( - gameVersions.map(async v => ({ + gameVersions.map(async (v) => ({ identifier: v.identifier, cheats: parseXml((await axios.get(`/codes/${v.identifier}.xml`)).data), - fastCodes: (await axios.get(`/codes/fast/${v.identifier}.json`)).data + fastCodes: (await axios.get(`/codes/fast/${v.identifier}.json`)).data, })) ) - .then(codes => { + .then((codes) => { localStorage.setItem("codes", JSON.stringify(codes)); this.isLoading = false; }) - .catch(err => { + .catch((err) => { if (localStorage.getItem("codes") != null) this.isLoading = false; }); }, @@ -161,8 +162,8 @@ export default { stageLoaderCodes: [], useStageLoaderOptions: [ { value: false, label: "No" }, - { value: true, label: "Yes" } - ] + { value: true, label: "Yes" }, + ], }; }, methods: { @@ -170,9 +171,9 @@ export default { this.selectedVersion = e; this.selectedCheats = []; const storedCodes = JSON.parse(localStorage.getItem("codes")); - this.codes = storedCodes.find(c => c.identifier === e).cheats; + this.codes = storedCodes.find((c) => c.identifier === e).cheats; this.stageLoaderCodes = storedCodes.find( - c => c.identifier === e + (c) => c.identifier === e ).fastCodes; this.inspectingCode = null; }, @@ -187,8 +188,8 @@ export default { }, inspect(code) { this.inspectingCode = code; - } - } + }, + }, };