From d92ca5876b44e311453694adf7794f61244d511e Mon Sep 17 00:00:00 2001 From: Lenni009 Date: Wed, 27 Dec 2023 21:08:47 +0100 Subject: [PATCH 01/30] remove duplicate code --- src/App.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5091888..fe2a006 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@ import NavBar from './components/NavBar.vue'; import { useRegionDataStore } from './stores/regionData'; import { storeToRefs } from 'pinia'; import GlyphInput from './components/GlyphInput.vue'; -import { ref } from 'vue'; +import { ref, computed } from 'vue'; import { useRegionAdjacency } from './composables/useRegionAdjacency'; import { useI18n } from './hooks/useI18n'; @@ -28,6 +28,8 @@ function checkAdjacency() { } isAdjacent.value = distance === 1 || distance === Math.sqrt(2) || distance === Math.sqrt(3); } + +const glyphInputLabels = computed(() => [t('translation.enterfirstregion'), t('translation.entersecondregion')]);