From cb81e29c315992b1c6ca83310373c8776908eee0 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 04:27:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Reformat=20computed=20properties?= =?UTF-8?q?=20and=20conditional=20assignments=20for=20improved=20readabili?= =?UTF-8?q?ty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/gamemaster/FileSelector.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/code/websites/pokedex.online/src/components/gamemaster/FileSelector.vue b/code/websites/pokedex.online/src/components/gamemaster/FileSelector.vue index 0436235..8759b7d 100644 --- a/code/websites/pokedex.online/src/components/gamemaster/FileSelector.vue +++ b/code/websites/pokedex.online/src/components/gamemaster/FileSelector.vue @@ -43,21 +43,29 @@ const props = defineProps({ } }); -const internalFilesState = props.client ? useGamemasterFiles(props.client) : null; +const internalFilesState = props.client + ? useGamemasterFiles(props.client) + : null; const activeFilesState = computed(() => props.filesState || internalFilesState); const selectedFile = computed({ get: () => activeFilesState.value?.selectedFile?.value, - set: (val) => { + set: val => { if (activeFilesState.value?.selectedFile) { activeFilesState.value.selectedFile.value = val; } } }); const fileContent = computed(() => activeFilesState.value?.fileContent?.value); -const fileLines = computed(() => activeFilesState.value?.fileLines?.value || []); -const uniqueFiles = computed(() => activeFilesState.value?.uniqueFiles?.value || []); -const isLoading = computed(() => activeFilesState.value?.isLoading?.value || false); +const fileLines = computed( + () => activeFilesState.value?.fileLines?.value || [] +); +const uniqueFiles = computed( + () => activeFilesState.value?.uniqueFiles?.value || [] +); +const isLoading = computed( + () => activeFilesState.value?.isLoading?.value || false +); const fileError = computed(() => activeFilesState.value?.fileError?.value); const formatSize = (...args) => activeFilesState.value?.formatSize?.(...args);