@jjlmoya/utils-streaming 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-streaming",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,15 +1,13 @@
1
1
  ---
2
2
  import { Icon } from 'astro-icon/components';
3
- import { SORTEO_TOOL } from './index';
4
- import type { KnownLocale } from '../../types';
3
+ import type { SorteoUI } from './ui';
5
4
 
6
5
  interface Props {
7
- locale?: KnownLocale;
6
+ ui?: Record<string, string>;
8
7
  }
9
8
 
10
- const { locale = 'es' } = Astro.props;
11
- const content = await SORTEO_TOOL.entry.i18n[locale]?.();
12
- const ui = content?.ui;
9
+ const { ui: rawUi } = Astro.props;
10
+ const ui = (rawUi ?? {}) as SorteoUI;
13
11
  ---
14
12
 
15
13
  <div id="sorteo-app" class="sorteo-container">
@@ -156,7 +154,7 @@ const ui = content?.ui;
156
154
  <div class="dot yellow"></div>
157
155
  <div class="dot green"></div>
158
156
  </div>
159
- <div class="sorteo-version">LIVE STUDIO v2.0</div>
157
+ <div class="sorteo-version">{ui?.studioHeader}</div>
160
158
  </div>
161
159
 
162
160
  <div class="sorteo-arena">
@@ -222,6 +222,8 @@ export const content: ToolLocaleContent<SorteoUI> = {
222
222
  },
223
223
  ],
224
224
  ui: {
225
+ faqTitle: 'Frequently Asked Questions',
226
+ bibliographyTitle: 'Technical References',
225
227
  title: 'Random Giveaway',
226
228
  totalParticipants: 'Total Unique Participants',
227
229
  ready: 'READY',
@@ -249,5 +251,6 @@ export const content: ToolLocaleContent<SorteoUI> = {
249
251
  history: 'History for this session',
250
252
  noWinnersYet: 'No winners yet...',
251
253
  startGiveaway: 'Start Giveaway',
254
+ studioHeader: 'LIVE STUDIO v2.0',
252
255
  },
253
256
  };
@@ -222,6 +222,8 @@ export const content: ToolLocaleContent<SorteoUI> = {
222
222
  },
223
223
  ],
224
224
  ui: {
225
+ faqTitle: 'Preguntas Frecuentes',
226
+ bibliographyTitle: 'Referencias Técnicas',
225
227
  title: 'Sorteo Aleatorio',
226
228
  totalParticipants: 'Total Participantes Únicos',
227
229
  ready: 'LISTO',
@@ -249,5 +251,6 @@ export const content: ToolLocaleContent<SorteoUI> = {
249
251
  history: 'Historial de esta sesión',
250
252
  noWinnersYet: 'Aún no hay ganadores...',
251
253
  startGiveaway: 'Iniciar Sorteo',
254
+ studioHeader: 'LIVE STUDIO v2.0',
252
255
  },
253
256
  };
@@ -222,6 +222,8 @@ export const content: ToolLocaleContent<SorteoUI> = {
222
222
  },
223
223
  ],
224
224
  ui: {
225
+ faqTitle: 'Questions Fréquemment Posées',
226
+ bibliographyTitle: 'Références Techniques',
225
227
  title: 'Tirage au Sort Aléatoire',
226
228
  totalParticipants: 'Total Participants Uniques',
227
229
  ready: 'PRÊT',
@@ -249,5 +251,6 @@ export const content: ToolLocaleContent<SorteoUI> = {
249
251
  history: 'Historique de cette session',
250
252
  noWinnersYet: 'Pas encore de gagnants...',
251
253
  startGiveaway: 'Démarrer le Tirage',
254
+ studioHeader: 'LIVE STUDIO v2.0',
252
255
  },
253
256
  };
@@ -1,5 +1,7 @@
1
1
  export interface SorteoUI {
2
2
  [key: string]: string;
3
+ faqTitle: string;
4
+ bibliographyTitle: string;
3
5
  title: string;
4
6
  totalParticipants: string;
5
7
  ready: string;
@@ -27,4 +29,5 @@ export interface SorteoUI {
27
29
  history: string;
28
30
  noWinnersYet: string;
29
31
  startGiveaway: string;
32
+ studioHeader: string;
30
33
  }
@@ -1,16 +1,14 @@
1
1
  ---
2
2
  import { Icon } from 'astro-icon/components';
3
- import { TEBAS_CHECK_TOOL } from './index';
4
- import type { KnownLocale } from '../../types';
3
+ import type { TebasCheckUI } from './types';
5
4
  import targetIps from './ips.json';
6
5
 
7
6
  interface Props {
8
- locale?: KnownLocale;
7
+ ui?: Record<string, string>;
9
8
  }
10
9
 
11
- const { locale = 'es' } = Astro.props;
12
- const content = await TEBAS_CHECK_TOOL.entry.i18n[locale]?.();
13
- const ui = content?.ui;
10
+ const { ui: rawUi } = Astro.props;
11
+ const ui = (rawUi ?? {}) as TebasCheckUI;
14
12
  ---
15
13
 
16
14
  <div
@@ -214,6 +214,8 @@ export const content: ToolLocaleContent<TebasCheckUI> = {
214
214
  },
215
215
  ],
216
216
  ui: {
217
+ faqTitle: 'Frequently Asked Questions',
218
+ bibliographyTitle: 'References and Context',
217
219
  scanning: 'Scanning the matrix...',
218
220
  seekingBlocks: 'Searching for concrete blocks in your fiber...',
219
221
  blockedTitle: 'BLOCKING...',
@@ -214,6 +214,8 @@ export const content: ToolLocaleContent<TebasCheckUI> = {
214
214
  },
215
215
  ],
216
216
  ui: {
217
+ faqTitle: 'Preguntas Frecuentes',
218
+ bibliographyTitle: 'Referencias y Contexto',
217
219
  scanning: 'Escaneando la matrix...',
218
220
  seekingBlocks: 'Buscando bloques de hormigón en tu fibra...',
219
221
  blockedTitle: 'BLOQUEANDO...',
@@ -214,6 +214,8 @@ export const content: ToolLocaleContent<TebasCheckUI> = {
214
214
  },
215
215
  ],
216
216
  ui: {
217
+ faqTitle: 'Questions Fréquemment Posées',
218
+ bibliographyTitle: 'Références et Contexte',
217
219
  scanning: 'Scan de la matrix...',
218
220
  seekingBlocks: 'Recherche de blocs de béton dans votre fibre...',
219
221
  blockedTitle: 'BLOCAGE...',
@@ -1,5 +1,7 @@
1
1
  export interface TebasCheckUI {
2
- [key: string]: string | string[];
2
+ [key: string]: string;
3
+ faqTitle: string;
4
+ bibliographyTitle: string;
3
5
  scanning: string;
4
6
  seekingBlocks: string;
5
7
  blockedTitle: string;