@jjlmoya/utils-converters 1.11.0 → 1.14.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.
Files changed (47) hide show
  1. package/package.json +3 -2
  2. package/src/category/index.ts +20 -20
  3. package/src/entries.ts +62 -0
  4. package/src/index.ts +1 -1
  5. package/src/pages/[locale]/[slug].astro +3 -4
  6. package/src/tool/avifAJpg/entry.ts +29 -0
  7. package/src/tool/avifAJpg/index.ts +5 -38
  8. package/src/tool/avifAPng/entry.ts +29 -0
  9. package/src/tool/avifAPng/index.ts +5 -38
  10. package/src/tool/avifAWebp/entry.ts +29 -0
  11. package/src/tool/avifAWebp/index.ts +5 -38
  12. package/src/tool/bmpAJpg/entry.ts +29 -0
  13. package/src/tool/bmpAJpg/index.ts +5 -38
  14. package/src/tool/bmpAPng/entry.ts +29 -0
  15. package/src/tool/bmpAPng/index.ts +5 -38
  16. package/src/tool/bmpAWebp/entry.ts +29 -0
  17. package/src/tool/bmpAWebp/index.ts +5 -38
  18. package/src/tool/gifAJpg/entry.ts +29 -0
  19. package/src/tool/gifAJpg/index.ts +5 -38
  20. package/src/tool/gifAPng/entry.ts +29 -0
  21. package/src/tool/gifAPng/index.ts +5 -38
  22. package/src/tool/gifAWebp/entry.ts +29 -0
  23. package/src/tool/gifAWebp/index.ts +5 -38
  24. package/src/tool/imagenBase64/index.ts +3 -7
  25. package/src/tool/jpgAIco/entry.ts +29 -0
  26. package/src/tool/jpgAIco/index.ts +5 -38
  27. package/src/tool/jpgAPng/entry.ts +29 -0
  28. package/src/tool/jpgAPng/index.ts +5 -38
  29. package/src/tool/jpgAWebp/entry.ts +29 -0
  30. package/src/tool/jpgAWebp/index.ts +5 -38
  31. package/src/tool/pngAIco/entry.ts +29 -0
  32. package/src/tool/pngAIco/index.ts +5 -38
  33. package/src/tool/pngAJpg/entry.ts +29 -0
  34. package/src/tool/pngAJpg/index.ts +5 -38
  35. package/src/tool/pngAWebp/entry.ts +29 -0
  36. package/src/tool/pngAWebp/index.ts +5 -38
  37. package/src/tool/svgAJpg/entry.ts +29 -0
  38. package/src/tool/svgAJpg/index.ts +5 -38
  39. package/src/tool/svgAPng/entry.ts +29 -0
  40. package/src/tool/svgAPng/index.ts +5 -38
  41. package/src/tool/webpAIco/entry.ts +29 -0
  42. package/src/tool/webpAIco/index.ts +5 -38
  43. package/src/tool/webpAJpg/entry.ts +29 -0
  44. package/src/tool/webpAJpg/index.ts +5 -38
  45. package/src/tool/webpAPng/entry.ts +29 -0
  46. package/src/tool/webpAPng/index.ts +5 -38
  47. package/src/tools.ts +1 -1
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type PngAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const pngAWebp: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'png-a-webp',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import PngAWebpCalculator from './component.astro';
4
- import PngAWebpSEO from './seo.astro';
5
- import PngAWebpBibliography from './bibliography.astro';
6
-
7
- export type PngAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const pngAWebp: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'png-a-webp',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { PngAWebpCalculator, PngAWebpSEO, PngAWebpBibliography };
35
-
1
+ import { pngAWebp } from './entry';
2
+ export * from './entry';
36
3
  export const PNG_A_WEBP_TOOL: ToolDefinition = {
37
4
  entry: pngAWebp,
38
- Component: PngAWebpCalculator,
39
- SEOComponent: PngAWebpSEO,
40
- BibliographyComponent: PngAWebpBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type SvgAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const svgAJpg: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'svg-a-jpg',
8
+ icons: {
9
+ bg: 'mdi:svg',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import SvgAJpgCalculator from './component.astro';
4
- import SvgAJpgSEO from './seo.astro';
5
- import SvgAJpgBibliography from './bibliography.astro';
6
-
7
- export type SvgAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const svgAJpg: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'svg-a-jpg',
11
- icons: {
12
- bg: 'mdi:svg',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { SvgAJpgCalculator, SvgAJpgSEO, SvgAJpgBibliography };
35
-
1
+ import { svgAJpg } from './entry';
2
+ export * from './entry';
36
3
  export const SVG_A_JPG_TOOL: ToolDefinition = {
37
4
  entry: svgAJpg,
38
- Component: SvgAJpgCalculator,
39
- SEOComponent: SvgAJpgSEO,
40
- BibliographyComponent: SvgAJpgBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type SvgAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const svgAPng: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'svg-a-png',
8
+ icons: {
9
+ bg: 'mdi:svg',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import SvgAPngCalculator from './component.astro';
4
- import SvgAPngSEO from './seo.astro';
5
- import SvgAPngBibliography from './bibliography.astro';
6
-
7
- export type SvgAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const svgAPng: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'svg-a-png',
11
- icons: {
12
- bg: 'mdi:svg',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { SvgAPngCalculator, SvgAPngSEO, SvgAPngBibliography };
35
-
1
+ import { svgAPng } from './entry';
2
+ export * from './entry';
36
3
  export const SVG_A_PNG_TOOL: ToolDefinition = {
37
4
  entry: svgAPng,
38
- Component: SvgAPngCalculator,
39
- SEOComponent: SvgAPngSEO,
40
- BibliographyComponent: SvgAPngBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type WebpAIcoLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const webpAIco: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'webp-a-ico',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAIcoCalculator from './component.astro';
4
- import WebpAIcoSEO from './seo.astro';
5
- import WebpAIcoBibliography from './bibliography.astro';
6
-
7
- export type WebpAIcoLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const webpAIco: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'webp-a-ico',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { WebpAIcoCalculator, WebpAIcoSEO, WebpAIcoBibliography };
35
-
1
+ import { webpAIco } from './entry';
2
+ export * from './entry';
36
3
  export const WEBP_A_ICO_TOOL: ToolDefinition = {
37
4
  entry: webpAIco,
38
- Component: WebpAIcoCalculator,
39
- SEOComponent: WebpAIcoSEO,
40
- BibliographyComponent: WebpAIcoBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type WebpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const webpAJpg: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'webp-a-jpg',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAJpgCalculator from './component.astro';
4
- import WebpAJpgSEO from './seo.astro';
5
- import WebpAJpgBibliography from './bibliography.astro';
6
-
7
- export type WebpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const webpAJpg: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'webp-a-jpg',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { WebpAJpgCalculator, WebpAJpgSEO, WebpAJpgBibliography };
35
-
1
+ import { webpAJpg } from './entry';
2
+ export * from './entry';
36
3
  export const WEBP_A_JPG_TOOL: ToolDefinition = {
37
4
  entry: webpAJpg,
38
- Component: WebpAJpgCalculator,
39
- SEOComponent: WebpAJpgSEO,
40
- BibliographyComponent: WebpAJpgBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type WebpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const webpAPng: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'webp-a-png',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,41 +1,8 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAPngCalculator from './component.astro';
4
- import WebpAPngSEO from './seo.astro';
5
- import WebpAPngBibliography from './bibliography.astro';
6
-
7
- export type WebpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const webpAPng: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'webp-a-png',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- es: () => import('./i18n/es').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- fr: () => import('./i18n/fr').then((m) => m.content),
19
- de: () => import('./i18n/de').then((m) => m.content),
20
- id: () => import('./i18n/id').then((m) => m.content),
21
- it: () => import('./i18n/it').then((m) => m.content),
22
- ja: () => import('./i18n/ja').then((m) => m.content),
23
- ko: () => import('./i18n/ko').then((m) => m.content),
24
- nl: () => import('./i18n/nl').then((m) => m.content),
25
- pl: () => import('./i18n/pl').then((m) => m.content),
26
- pt: () => import('./i18n/pt').then((m) => m.content),
27
- ru: () => import('./i18n/ru').then((m) => m.content),
28
- sv: () => import('./i18n/sv').then((m) => m.content),
29
- tr: () => import('./i18n/tr').then((m) => m.content),
30
- zh: () => import('./i18n/zh').then((m) => m.content),
31
- },
32
- };
33
-
34
- export { WebpAPngCalculator, WebpAPngSEO, WebpAPngBibliography };
35
-
1
+ import { webpAPng } from './entry';
2
+ export * from './entry';
36
3
  export const WEBP_A_PNG_TOOL: ToolDefinition = {
37
4
  entry: webpAPng,
38
- Component: WebpAPngCalculator,
39
- SEOComponent: WebpAPngSEO,
40
- BibliographyComponent: WebpAPngBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import { PNG_A_JPG_TOOL } from './tool/pngAJpg';
2
3
  import { JPG_A_PNG_TOOL } from './tool/jpgAPng';
3
4
  import { WEBP_A_PNG_TOOL } from './tool/webpAPng';
@@ -69,4 +70,3 @@ export {
69
70
  WEBP_A_ICO_TOOL,
70
71
  };
71
72
 
72
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);