style: remove unused imports and variables (#17)

This commit is contained in:
ayangweb
2025-03-29 10:58:56 +08:00
committed by GitHub
parent 874173b1bc
commit 910abeb4d0
2 changed files with 0 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
declare interface Window {
availableKeys: string[]
}

View File

@@ -1,5 +1,3 @@
import { readdirSync } from 'node:fs'
import { parse, resolve } from 'node:path'
import { env } from 'node:process'
import vue from '@vitejs/plugin-vue'
@@ -8,10 +6,6 @@ import { defineConfig } from 'vite'
const host = env.TAURI_DEV_HOST
const availableKeys = readdirSync(resolve(__dirname, 'public/images/keys'))
.filter(file => !file.startsWith('.'))
.map(file => parse(file).name)
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [vue(), UnoCSS()],
@@ -41,7 +35,4 @@ export default defineConfig(async () => ({
ignored: ['**/src-tauri/**'],
},
},
define: {
'window.availableKeys': availableKeys,
},
}))