renderer: move screen component files

This commit is contained in:
leejooy96 committed 2022-10-12 17:51:48 +09:00
1 parent 18d49bb2a5
commit 23d638f365
4 files changed
+2 -2

No files matched your search

@@ -1,8 +0,0 @@
<script setup>
</script>
<template>
<div>
Unknown error occurred
</div>
</template>
@@ -1,71 +0,0 @@
<script setup>
import { useI18n } from 'vue-i18n'
import { useTheme } from 'vuetify'
import Utils from '../../utils'
const { locale } = useI18n()
const theme = useTheme()
const handleChangeTheme = () => {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
const handleChangeLanguage = () => {
if (locale.value === 'en') {
locale.value = 'ko'
} else {
locale.value = 'en'
}
}
const handleAbout = async () => {
await Utils.openExternal('https://github.com/jooy2/vutron')
}
</script>
<template>
<v-container>
<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"
>
</v-col>
<v-col cols="12">
{{ $t('desc.welcome') }}
</v-col>
<v-col cols="4">
<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"
>
{{ $t('menu.change-language') }}
</v-btn>
</v-col>
<v-col cols="4">
<v-btn
block
color="primary"
@click="handleAbout"
>
{{ $t('menu.about') }}
</v-btn>
</v-col>
</v-row>
</v-container>
</template>
-7
View File
@@ -1,7 +0,0 @@
import ErrorScreen from './ErrorScreen.vue'
import MainScreen from './MainScreen.vue'
export {
ErrorScreen,
MainScreen
}