pack: vutron now uses typescript

This commit is contained in:
leejooy96 committed 2022-10-18 11:08:55 +09:00
1 parent 30b0676f13
commit 5a4fa9a981
25 files changed
+580 -26

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="tsx">
import { DefaultLayout } from '@/renderer/components/layout'
</script>
@@ -1,5 +1,5 @@
<script setup>
import HeaderLayout from '@/renderer/components/layout/HeaderLayout'
<script setup lang="tsx">
import HeaderLayout from '@/renderer/components/layout/HeaderLayout.vue'
</script>
<template>
+1 -1
View File
@@ -6,5 +6,5 @@
<body>
<div id="app"></div>
</body>
<script type="module" src="./main.js"></script>
<script type="module" src="./main.ts"></script>
</html>
@@ -1,7 +1,7 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from '@/renderer/App'
import App from '@/renderer/App.vue'
import router from '@/renderer/router'
import vuetify from '@/renderer/plugins/vuetify'
import i18n from '@/renderer/plugins/i18n'
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="tsx">
</script>
<template>
+1 -1
View File
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="tsx">
import { useI18n } from 'vue-i18n'
import { useTheme } from 'vuetify'
import Utils from '@/renderer/utils'
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,11 @@
import { shell } from 'electron'
export default class Utils {
static getCurrentLocale () {
static getCurrentLocale () : string {
return navigator?.language?.split('-')[0] || 'en'
}
static async openExternal (url) {
static async openExternal (url: string) : Promise<void> {
await shell.openExternal(url)
}
}