renderer: use named import for util class

This commit is contained in:
leejooy96 committed 2022-10-24 17:51:01 +09:00
1 parent ce22d55026
commit b8f0700e0d
3 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
import { createI18n } from 'vue-i18n'
import en from '@/renderer/locales/en.json'
import ko from '@/renderer/locales/ko.json'
import Utils from '@/renderer/utils'
import { getCurrentLocale } from '@/renderer/utils'
export default createI18n({
legacy: false,
locale: Utils.getCurrentLocale(),
locale: getCurrentLocale(),
fallbackLocale: 'en',
globalInjection: true,
messages: {
+2 -2
View File
@@ -1,7 +1,7 @@
<script setup lang="tsx">
import { useI18n } from 'vue-i18n'
import { useTheme } from 'vuetify'
import Utils from '@/renderer/utils'
import { openExternal } from '@/renderer/utils'
import { useTempStore } from '@/renderer/store/temp'
import { storeToRefs } from 'pinia'
@@ -23,7 +23,7 @@ const handleChangeLanguage = (): void => {
}
const handleAbout = async (): Promise<void> => {
await Utils.openExternal('https://github.com/jooy2/vutron')
await openExternal('https://github.com/jooy2/vutron')
}
const handleCountIncrease = (): void => {
+2
View File
@@ -9,3 +9,5 @@ export default class Utils {
await shell.openExternal(url)
}
}
export const { getCurrentLocale, openExternal } = Utils