npm run format

This commit is contained in:
2025-01-09 16:02:17 +01:00
parent 7b1dcf7ce3
commit fb18841c91
13 changed files with 39 additions and 70 deletions

View File

@ -1,17 +1,9 @@
<template>
</template>
<template></template>
<script setup lang="ts">
import { onMounted, onUnmounted } from 'vue'
import {
CharacterHairStorage,
CharacterTypeStorage,
MapObjectStorage,
MapStorage, SpriteStorage,
TileStorage
} from '@/storage/storages'
import { CharacterHairStorage, CharacterTypeStorage, MapObjectStorage, MapStorage, SpriteStorage, TileStorage } from '@/storage/storages'
import { TextureStorage } from '@/storage/textureStorage'
import { onMounted, onUnmounted } from 'vue'
const mapStorage = new MapStorage()
const tileStorage = new TileStorage()
@ -25,8 +17,7 @@ let currentString = ''
async function handleKeyPress(event: KeyboardEvent) {
// Ignore if typing in input/textarea
if (document.activeElement?.tagName.toUpperCase() === 'INPUT' ||
document.activeElement?.tagName.toUpperCase() === 'TEXTAREA') {
if (document.activeElement?.tagName.toUpperCase() === 'INPUT' || document.activeElement?.tagName.toUpperCase() === 'TEXTAREA') {
return
}
@ -52,4 +43,4 @@ async function handleKeyPress(event: KeyboardEvent) {
onMounted(() => window.addEventListener('keydown', handleKeyPress))
onUnmounted(() => window.removeEventListener('keydown', handleKeyPress))
</script>
</script>