pack: add prettier and reformat all codes

This commit is contained in:
leejooy96 committed 2022-10-18 14:59:20 +09:00
1 parent 251394391a
commit 5d8a3672bb
23 files changed
+1044 -2040

No files matched your search

+8 -27
View File
@@ -6,11 +6,11 @@ import Utils from '@/renderer/utils'
const { locale } = useI18n()
const theme = useTheme()
const handleChangeTheme = () : void => {
const handleChangeTheme = (): void => {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
const handleChangeLanguage = () : void => {
const handleChangeLanguage = (): void => {
if (locale.value === 'en') {
locale.value = 'ko'
} else {
@@ -18,51 +18,32 @@ const handleChangeLanguage = () : void => {
}
}
const handleAbout = async () : Promise<void> => {
const handleAbout = async (): Promise<void> => {
await Utils.openExternal('https://github.com/jooy2/vutron')
}
</script>
<template>
<v-container>
<v-row
align="center"
class="text-center"
>
<v-row align="center" class="text-center">
<v-col cols="12">
<img
alt="logo"
class="ma-auto h-auto w-75"
src="/images/vutron-logo.webp"
>
<img alt="logo" class="ma-auto h-auto w-75" src="/images/vutron-logo.webp" />
</v-col>
<v-col cols="12">
{{ $t('desc.welcome') }}
</v-col>
<v-col cols="4">
<v-btn
block
color="primary"
@click="handleChangeTheme"
>
<v-btn block color="primary" @click="handleChangeTheme">
{{ $t('menu.change-theme') }}
</v-btn>
</v-col>
<v-col cols="4">
<v-btn
block
color="primary"
@click="handleChangeLanguage"
>
<v-btn block color="primary" @click="handleChangeLanguage">
{{ $t('menu.change-language') }}
</v-btn>
</v-col>
<v-col cols="4">
<v-btn
block
color="primary"
@click="handleAbout"
>
<v-btn block color="primary" @click="handleAbout">
{{ $t('menu.about') }}
</v-btn>
</v-col>