@@ -20,28 +20,8 @@ export type SimulacionKey = string;
2020export type SimulacionesSerial = [ SimulacionKey , Simulacion ] [ ] ;
2121export type Simulaciones = SvelteMap < SimulacionKey , Simulacion > ;
2222
23- const DEMO_SIMULACIONES : Simulaciones = new SvelteMap (
24- [
25- {
26- name : 'INF-134 - Peor Escenario' ,
27- date : new SvelteDate ( '2026-06-03' )
28- } ,
29- {
30- name : 'Aproximación con Gamma 1.1' ,
31- date : new SvelteDate ( '2026-05-28' )
32- } ,
33- {
34- name : 'Simulación Redes de Computadores' ,
35- date : new SvelteDate ( '2026-05-15' )
36- }
37- ] . map ( ( sim , idx ) => {
38- const id = ( idx + 1 ) . toString ( ) ;
39- return [ id , { ...sim , id } ] ;
40- } )
41- ) ;
42-
4323export class SimulacionesManager implements Serializable < SimulacionesSerial > {
44- private _simulaciones = $state < Simulaciones > ( new SvelteMap ( DEMO_SIMULACIONES ) ) ;
24+ private _simulaciones = $state < Simulaciones > ( new SvelteMap ( ) ) ;
4525 private _actual = $state < Simulacion > ( DEFAULT_SIMULACION ) ;
4626
4727 loadActual ( newActual : Simulacion ) {
@@ -68,7 +48,7 @@ export class SimulacionesManager implements Serializable<SimulacionesSerial> {
6848 }
6949 return ;
7050 }
71- this . _simulaciones = new SvelteMap ( DEMO_SIMULACIONES ) ;
51+ this . _simulaciones = new SvelteMap ( ) ;
7252 this . _actual = DEFAULT_SIMULACION ;
7353 }
7454
0 commit comments