From dc30abe4eee3ff9000999b9856cb02c8d61241f1 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Mon, 27 Feb 2023 17:17:00 +0900 Subject: [PATCH] renderer: rename temp store to counter store --- src/renderer/screens/MainScreen.vue | 6 +++--- src/renderer/store/{temp.ts => counter.ts} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/renderer/store/{temp.ts => counter.ts} (80%) diff --git a/src/renderer/screens/MainScreen.vue b/src/renderer/screens/MainScreen.vue index 30baa99..a73cccf 100644 --- a/src/renderer/screens/MainScreen.vue +++ b/src/renderer/screens/MainScreen.vue @@ -2,13 +2,13 @@ import { useI18n } from 'vue-i18n' import { useTheme } from 'vuetify' import { openExternal } from '@/renderer/utils' -import { useTempStore } from '@/renderer/store/temp' +import { useCounterStore } from '@/renderer/store/counter' import { storeToRefs } from 'pinia' import { onMounted, ref } from 'vue' const { locale, availableLocales } = useI18n() -const { counterIncrease } = useTempStore() -const { counter } = storeToRefs(useTempStore()) +const { counterIncrease } = useCounterStore() +const { counter } = storeToRefs(useCounterStore()) const theme = useTheme() const languages = ref(['en']) const appVersion = ref('Unknown') diff --git a/src/renderer/store/temp.ts b/src/renderer/store/counter.ts similarity index 80% rename from src/renderer/store/temp.ts rename to src/renderer/store/counter.ts index a895399..5a71546 100644 --- a/src/renderer/store/temp.ts +++ b/src/renderer/store/counter.ts @@ -1,6 +1,6 @@ import { defineStore } from 'pinia' -export const useTempStore = defineStore('temp', { +export const useCounterStore = defineStore('counter', { state: () => ({ counter: 0 }),