From 007e32fd632da33ea1b1442f9a55f6ad008ad177 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Tue, 9 May 2023 23:35:04 +0200 Subject: style: Partially autoformat Vue source files (#326) * style: Add/remove spaces where applicable * style: Add missing newlines * style: Fix indentation * style: Add newlines between CSS classes --- src-vue/src/components/LanguageSelector.vue | 2 +- src-vue/src/components/ModsMenu.vue | 6 +++--- src-vue/src/components/PlayButton.vue | 7 ++++--- src-vue/src/components/PullRequestsSelector.vue | 2 +- src-vue/src/components/ThunderstoreModCard.vue | 28 ++++++++++++------------- src-vue/src/views/ChangelogView.vue | 10 ++++----- src-vue/src/views/DeveloperView.vue | 12 +++++------ src-vue/src/views/PlayView.vue | 3 ++- src-vue/src/views/RepairView.vue | 2 +- src-vue/src/views/SettingsView.vue | 3 ++- src-vue/src/views/mods/LocalModsView.vue | 2 +- src-vue/src/views/mods/ThunderstoreModsView.vue | 17 ++++++++++----- 12 files changed, 52 insertions(+), 42 deletions(-) diff --git a/src-vue/src/components/LanguageSelector.vue b/src-vue/src/components/LanguageSelector.vue index a99ef0e5..9bb1d97a 100644 --- a/src-vue/src/components/LanguageSelector.vue +++ b/src-vue/src/components/LanguageSelector.vue @@ -44,7 +44,7 @@ export default defineComponent({ }, ] }), - mounted: async function() { + mounted: async function () { const lang: string = await persistentStore.get('lang') as string; this.value = lang; }, diff --git a/src-vue/src/components/ModsMenu.vue b/src-vue/src/components/ModsMenu.vue index de247984..03eea787 100644 --- a/src-vue/src/components/ModsMenu.vue +++ b/src-vue/src/components/ModsMenu.vue @@ -19,7 +19,7 @@ ({ value: key, label: this.$t('mods.menu.sort.' + Object.values(SortOptions)[Object.keys(SortOptions).indexOf(key)]) @@ -85,7 +85,7 @@ export default defineComponent({ margin: 8px 0 16px 5px; } -.fc_mods__menu h5:not(:first-child){ +.fc_mods__menu h5:not(:first-child) { margin-top: 32px; } diff --git a/src-vue/src/components/PlayButton.vue b/src-vue/src/components/PlayButton.vue index 208b4703..83a23ae5 100644 --- a/src-vue/src/components/PlayButton.vue +++ b/src-vue/src/components/PlayButton.vue @@ -21,7 +21,7 @@ export default defineComponent({ return this.$t("play.button.northstar_is_running"); } - switch(this.$store.state.northstar_state) { + switch (this.$store.state.northstar_state) { case NorthstarState.GAME_NOT_FOUND: return this.$t("play.button.select_game_dir"); case NorthstarState.INSTALL: @@ -42,7 +42,7 @@ export default defineComponent({ northstarIsRunning(): boolean { return this.$store.state.northstar_is_running; }, - options(): {key: string, value: string}[] { + options(): { key: string, value: string }[] { return Object.keys(ReleaseCanal).map(function (v) { return { key: v, @@ -50,7 +50,7 @@ export default defineComponent({ } }); }, - selectOptions(): {label: string, options: {value: ReleaseCanal, label: string}[]}[] { + selectOptions(): { label: string, options: { value: ReleaseCanal, label: string }[] }[] { return [ { label: 'Beta', @@ -125,6 +125,7 @@ button { font-size: 15px; margin-right: 0; } + .fc_launch__button:focus { background-color: var(--el-color-primary); border-color: var(--el-color-primary); diff --git a/src-vue/src/components/PullRequestsSelector.vue b/src-vue/src/components/PullRequestsSelector.vue index 585b3e6a..4bc8f9f5 100644 --- a/src-vue/src/components/PullRequestsSelector.vue +++ b/src-vue/src/components/PullRequestsSelector.vue @@ -37,7 +37,7 @@
diff --git a/src-vue/src/components/ThunderstoreModCard.vue b/src-vue/src/components/ThunderstoreModCard.vue index fec95f14..a0e8c481 100644 --- a/src-vue/src/components/ThunderstoreModCard.vue +++ b/src-vue/src/components/ThunderstoreModCard.vue @@ -18,7 +18,7 @@ -
+
{{ mod.name }}
{{ $t('mods.card.by') }} {{ mod.owner }}
@@ -53,7 +53,7 @@ {{ $t('mods.card.more_info') }} - + {{ $t('mods.card.remove') }} @@ -65,13 +65,13 @@