fix vue-tsc

This commit is contained in:
2025-10-29 03:44:57 +01:00
parent 007bb4a0eb
commit 72d5fbb803
8 changed files with 13 additions and 98 deletions
+1 -1
View File
@@ -142,7 +142,7 @@
<script setup lang="ts">
import { ref, watch, nextTick } from 'vue'
import { ocrService, type OpusMagnumData } from '../services/ocrService'
import { ocrService } from '../services/ocrService'
import type { SubmissionFile, SteamCollectionItem } from '@/types'
interface Props {
+1 -13
View File
@@ -115,19 +115,7 @@ interface Props {
defineProps<Props>()
const formatFileSize = (bytes: number): string => {
if (bytes === 0) return '0 Bytes'
const k = 1024
const sizes = ['Bytes', 'KB', 'MB', 'GB']
const i = Math.floor(Math.log(bytes) / Math.log(k))
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]
}
const formatDate = (dateString: string): string => {
return new Date(dateString).toLocaleDateString()
}
// Utility functions removed - not used in template
</script>
<style scoped>