@jjlmoya/utils-hardware 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-hardware",
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,4 +1,5 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import type { KnownLocale } from '../../types';
3
4
  import { pixelesPantalla } from './index';
4
5
 
@@ -10,22 +11,4 @@ const { locale = 'es' } = Astro.props;
10
11
  const content = await pixelesPantalla.i18n[locale]?.();
11
12
  ---
12
13
 
13
- {
14
- content && content.bibliography.length > 0 && (
15
- <article class="prose prose-lg dark:prose-invert max-w-4xl mx-auto mt-20 px-6 font-sans">
16
- <h2 class="text-3xl font-black dark:text-blue-100 mb-8 tracking-tight">
17
- {content.bibliographyTitle}
18
- </h2>
19
- <ul>
20
- {content.bibliography.map((item) => (
21
- <li>
22
- <a href={item.url} target="_blank" rel="noopener noreferrer">
23
- {item.name}
24
- </a>
25
- </li>
26
- ))}
27
- </ul>
28
- </article>
29
- )
30
- }
31
-
14
+ {content && content.bibliography.length > 0 && <SharedBibliography links={content.bibliography} />}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import type { KnownLocale } from '../../types';
3
4
  import { testMando } from './index';
4
5
 
@@ -10,21 +11,4 @@ const { locale = 'es' } = Astro.props;
10
11
  const content = await testMando.i18n[locale]?.();
11
12
  ---
12
13
 
13
- {
14
- content && content.bibliography.length > 0 && (
15
- <article class="prose prose-lg dark:prose-invert max-w-4xl mx-auto mt-20 px-6 font-sans">
16
- <h2 class="text-3xl font-black dark:text-blue-100 mb-8 tracking-tight">
17
- {content.bibliographyTitle}
18
- </h2>
19
- <ul>
20
- {content.bibliography.map((item) => (
21
- <li>
22
- <a href={item.url} target="_blank" rel="noopener noreferrer">
23
- {item.name}
24
- </a>
25
- </li>
26
- ))}
27
- </ul>
28
- </article>
29
- )
30
- }
14
+ {content && content.bibliography.length > 0 && <SharedBibliography links={content.bibliography} />}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import type { KnownLocale } from '../../types';
3
4
  import { testTeclado } from './index';
4
5
 
@@ -10,21 +11,4 @@ const { locale = 'es' } = Astro.props;
10
11
  const content = await testTeclado.i18n[locale]?.();
11
12
  ---
12
13
 
13
- {
14
- content && content.bibliography.length > 0 && (
15
- <article class="prose prose-lg dark:prose-invert max-w-4xl mx-auto mt-20 px-6 font-sans">
16
- <h2 class="text-3xl font-black dark:text-blue-100 mb-8 tracking-tight">
17
- {content.bibliographyTitle}
18
- </h2>
19
- <ul>
20
- {content.bibliography.map((item) => (
21
- <li>
22
- <a href={item.url} target="_blank" rel="noopener noreferrer">
23
- {item.name}
24
- </a>
25
- </li>
26
- ))}
27
- </ul>
28
- </article>
29
- )
30
- }
14
+ {content && content.bibliography.length > 0 && <SharedBibliography links={content.bibliography} />}