@jjlmoya/utils-sports 1.24.0 → 1.25.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-sports",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,15 +1,6 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import { bibliography } from './bibliography';
3
4
  ---
4
5
 
5
- <ul>
6
- {
7
- bibliography.map((link) => (
8
- <li>
9
- <a href={link.url} target="_blank" rel="noopener noreferrer">
10
- {link.title}
11
- </a>
12
- </li>
13
- ))
14
- }
15
- </ul>
6
+ <SharedBibliography links={bibliography} />
@@ -1 +1,15 @@
1
- <meta name="robots" content="index, follow" />
1
+ ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { beachVolleyballScoreKeeper } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'en' } = Astro.props;
11
+ const content = await beachVolleyballScoreKeeper.i18n[locale]?.();
12
+ if (!content) return null;
13
+ ---
14
+
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
@@ -1,15 +1,6 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import { bibliography } from './bibliography';
3
4
  ---
4
5
 
5
- <ul class="tn-bib-list">
6
- {
7
- bibliography.map((entry) => (
8
- <li>
9
- <a href={entry.url} target="_blank" rel="noopener noreferrer">
10
- {entry.name}
11
- </a>
12
- </li>
13
- ))
14
- }
15
- </ul>
6
+ <SharedBibliography links={bibliography} />
@@ -1,4 +1,15 @@
1
1
  ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { padelScoreKeeper } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'en' } = Astro.props;
11
+ const content = await padelScoreKeeper.i18n[locale]?.();
12
+ if (!content) return null;
2
13
  ---
3
14
 
4
- <meta name="robots" content="index, follow" />
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
@@ -1,15 +1,6 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
2
3
  import { bibliography } from './bibliography';
3
4
  ---
4
5
 
5
- <ul class="tn-bib-list">
6
- {
7
- bibliography.map((entry) => (
8
- <li>
9
- <a href={entry.url} target="_blank" rel="noopener noreferrer">
10
- {entry.name}
11
- </a>
12
- </li>
13
- ))
14
- }
15
- </ul>
6
+ <SharedBibliography links={bibliography} />
@@ -1,4 +1,15 @@
1
1
  ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { streetballScoreKeeper } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'en' } = Astro.props;
11
+ const content = await streetballScoreKeeper.i18n[locale]?.();
12
+ if (!content) return null;
2
13
  ---
3
14
 
4
- <meta name="robots" content="index, follow" />
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}