arreglados problemas de lint
All checks were successful
build-and-deploy / build (push) Successful in 54s
build-and-deploy / deploy (push) Successful in 11s

This commit is contained in:
2025-08-28 20:19:36 -06:00
parent 04b53a755c
commit 286393aa84
9 changed files with 34 additions and 101 deletions

View File

@@ -127,13 +127,13 @@ async function buildCsvByUuid(): Promise<string> {
} catch {
history = [];
}
historyCache.set(uuid, history);
historyCache.set(uuid, (history as any));
}
// Build events_made generically:
// - If kind starts with p1_ or p2_, include only when event.role matches P1/P2
// - Otherwise include by default (system/agnostic events)
const events = (history || []).filter((h: any) => {
const events = (history ?? []).filter((h: any) => {
const kind = (h?.kind || '').toString();
if (!kind) return false;
const evRole = kind.startsWith('p1_') ? 'P1' : (kind.startsWith('p2_') ? 'P2' : null);
@@ -253,13 +253,13 @@ async function handleFileUpload(event: Event) {
: `Estado cargado exitosamente. ${result.message || 'NameManager actualizado.'}`;
alert(message);
} catch (error) {
} catch (error: any) {
console.error('Error uploading nameManager state:', error);
// Handle different error types
if (error.message && error.message.includes('413')) {
if (error?.message && error.message.includes('413')) {
alert('Error: El archivo es demasiado grande (máximo 50MB). Considera crear un archivo de guardado más pequeño.');
} else if (error.message && error.message.includes('400')) {
} else if (error?.message && error.message.includes('400')) {
alert('Error: Archivo inválido. Asegúrate de subir un archivo .snatchSave válido.');
} else {
alert('Error al cargar el estado del nameManager. Verifica que el archivo sea válido y la conexión sea estable.');

View File

@@ -15,7 +15,7 @@
</template>
<script setup lang="ts">
import { ref, watch, computed } from 'vue';
import { ref, watch } from 'vue';
import AnimatedNumber from '../views/games/AnimatedNumber.vue';
interface SystemMessage {