@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
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-converters",
3
- "version": "1.11.0",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
7
7
  "exports": {
8
8
  ".": "./src/index.ts",
9
- "./data": "./src/data.ts"
9
+ "./data": "./src/data.ts",
10
+ "./entries": "./src/entries.ts"
10
11
  },
11
12
  "files": [
12
13
  "src"
@@ -1,25 +1,25 @@
1
1
  import type { ConvertersCategoryEntry } from '../types';
2
- import { pngAJpg } from '../tool/pngAJpg';
3
- import { jpgAPng } from '../tool/jpgAPng';
4
- import { webpAPng } from '../tool/webpAPng';
5
- import { webpAJpg } from '../tool/webpAJpg';
6
- import { pngAWebp } from '../tool/pngAWebp';
7
- import { jpgAWebp } from '../tool/jpgAWebp';
8
- import { svgAPng } from '../tool/svgAPng';
9
- import { svgAJpg } from '../tool/svgAJpg';
2
+ import { pngAJpg } from '../tool/pngAJpg/entry';
3
+ import { jpgAPng } from '../tool/jpgAPng/entry';
4
+ import { webpAPng } from '../tool/webpAPng/entry';
5
+ import { webpAJpg } from '../tool/webpAJpg/entry';
6
+ import { pngAWebp } from '../tool/pngAWebp/entry';
7
+ import { jpgAWebp } from '../tool/jpgAWebp/entry';
8
+ import { svgAPng } from '../tool/svgAPng/entry';
9
+ import { svgAJpg } from '../tool/svgAJpg/entry';
10
10
  import { imagenBase64 } from '../tool/imagenBase64';
11
- import { bmpAJpg } from '../tool/bmpAJpg';
12
- import { bmpAPng } from '../tool/bmpAPng';
13
- import { bmpAWebp } from '../tool/bmpAWebp';
14
- import { avifAJpg } from '../tool/avifAJpg';
15
- import { avifAPng } from '../tool/avifAPng';
16
- import { avifAWebp } from '../tool/avifAWebp';
17
- import { gifAJpg } from '../tool/gifAJpg';
18
- import { gifAPng } from '../tool/gifAPng';
19
- import { gifAWebp } from '../tool/gifAWebp';
20
- import { pngAIco } from '../tool/pngAIco';
21
- import { jpgAIco } from '../tool/jpgAIco';
22
- import { webpAIco } from '../tool/webpAIco';
11
+ import { bmpAJpg } from '../tool/bmpAJpg/entry';
12
+ import { bmpAPng } from '../tool/bmpAPng/entry';
13
+ import { bmpAWebp } from '../tool/bmpAWebp/entry';
14
+ import { avifAJpg } from '../tool/avifAJpg/entry';
15
+ import { avifAPng } from '../tool/avifAPng/entry';
16
+ import { avifAWebp } from '../tool/avifAWebp/entry';
17
+ import { gifAJpg } from '../tool/gifAJpg/entry';
18
+ import { gifAPng } from '../tool/gifAPng/entry';
19
+ import { gifAWebp } from '../tool/gifAWebp/entry';
20
+ import { pngAIco } from '../tool/pngAIco/entry';
21
+ import { jpgAIco } from '../tool/jpgAIco/entry';
22
+ import { webpAIco } from '../tool/webpAIco/entry';
23
23
 
24
24
  export const convertersCategory: ConvertersCategoryEntry = {
25
25
  icon: 'mdi:image-sync',
package/src/entries.ts ADDED
@@ -0,0 +1,62 @@
1
+ export { avifAJpg } from './tool/avifAJpg/entry';
2
+ export type { AvifAJpgLocaleContent } from './tool/avifAJpg/entry';
3
+ export { avifAPng } from './tool/avifAPng/entry';
4
+ export type { AvifAPngLocaleContent } from './tool/avifAPng/entry';
5
+ export { avifAWebp } from './tool/avifAWebp/entry';
6
+ export type { AvifAWebpLocaleContent } from './tool/avifAWebp/entry';
7
+ export { bmpAJpg } from './tool/bmpAJpg/entry';
8
+ export type { BmpAJpgLocaleContent } from './tool/bmpAJpg/entry';
9
+ export { bmpAPng } from './tool/bmpAPng/entry';
10
+ export type { BmpAPngLocaleContent } from './tool/bmpAPng/entry';
11
+ export { bmpAWebp } from './tool/bmpAWebp/entry';
12
+ export type { BmpAWebpLocaleContent } from './tool/bmpAWebp/entry';
13
+ export { gifAJpg } from './tool/gifAJpg/entry';
14
+ export type { GifAJpgLocaleContent } from './tool/gifAJpg/entry';
15
+ export { gifAPng } from './tool/gifAPng/entry';
16
+ export type { GifAPngLocaleContent } from './tool/gifAPng/entry';
17
+ export { gifAWebp } from './tool/gifAWebp/entry';
18
+ export type { GifAWebpLocaleContent } from './tool/gifAWebp/entry';
19
+ export { jpgAIco } from './tool/jpgAIco/entry';
20
+ export type { JpgAIcoLocaleContent } from './tool/jpgAIco/entry';
21
+ export { jpgAPng } from './tool/jpgAPng/entry';
22
+ export type { JpgAPngLocaleContent } from './tool/jpgAPng/entry';
23
+ export { jpgAWebp } from './tool/jpgAWebp/entry';
24
+ export type { JpgAWebpLocaleContent } from './tool/jpgAWebp/entry';
25
+ export { pngAIco } from './tool/pngAIco/entry';
26
+ export type { PngAIcoLocaleContent } from './tool/pngAIco/entry';
27
+ export { pngAJpg } from './tool/pngAJpg/entry';
28
+ export type { PngAJpgLocaleContent } from './tool/pngAJpg/entry';
29
+ export { pngAWebp } from './tool/pngAWebp/entry';
30
+ export type { PngAWebpLocaleContent } from './tool/pngAWebp/entry';
31
+ export { svgAJpg } from './tool/svgAJpg/entry';
32
+ export type { SvgAJpgLocaleContent } from './tool/svgAJpg/entry';
33
+ export { svgAPng } from './tool/svgAPng/entry';
34
+ export type { SvgAPngLocaleContent } from './tool/svgAPng/entry';
35
+ export { webpAIco } from './tool/webpAIco/entry';
36
+ export type { WebpAIcoLocaleContent } from './tool/webpAIco/entry';
37
+ export { webpAJpg } from './tool/webpAJpg/entry';
38
+ export type { WebpAJpgLocaleContent } from './tool/webpAJpg/entry';
39
+ export { webpAPng } from './tool/webpAPng/entry';
40
+ export type { WebpAPngLocaleContent } from './tool/webpAPng/entry';
41
+ export { convertersCategory } from './category';
42
+ import { avifAJpg } from './tool/avifAJpg/entry';
43
+ import { avifAPng } from './tool/avifAPng/entry';
44
+ import { avifAWebp } from './tool/avifAWebp/entry';
45
+ import { bmpAJpg } from './tool/bmpAJpg/entry';
46
+ import { bmpAPng } from './tool/bmpAPng/entry';
47
+ import { bmpAWebp } from './tool/bmpAWebp/entry';
48
+ import { gifAJpg } from './tool/gifAJpg/entry';
49
+ import { gifAPng } from './tool/gifAPng/entry';
50
+ import { gifAWebp } from './tool/gifAWebp/entry';
51
+ import { jpgAIco } from './tool/jpgAIco/entry';
52
+ import { jpgAPng } from './tool/jpgAPng/entry';
53
+ import { jpgAWebp } from './tool/jpgAWebp/entry';
54
+ import { pngAIco } from './tool/pngAIco/entry';
55
+ import { pngAJpg } from './tool/pngAJpg/entry';
56
+ import { pngAWebp } from './tool/pngAWebp/entry';
57
+ import { svgAJpg } from './tool/svgAJpg/entry';
58
+ import { svgAPng } from './tool/svgAPng/entry';
59
+ import { webpAIco } from './tool/webpAIco/entry';
60
+ import { webpAJpg } from './tool/webpAJpg/entry';
61
+ import { webpAPng } from './tool/webpAPng/entry';
62
+ export const ALL_ENTRIES = [avifAJpg, avifAPng, avifAWebp, bmpAJpg, bmpAPng, bmpAWebp, gifAJpg, gifAPng, gifAWebp, jpgAIco, jpgAPng, jpgAWebp, pngAIco, pngAJpg, pngAWebp, svgAJpg, svgAPng, webpAIco, webpAJpg, webpAPng];
package/src/index.ts CHANGED
@@ -21,7 +21,7 @@ export * from './tool/jpgAIco';
21
21
  export * from './tool/webpAIco';
22
22
 
23
23
  export { convertersCategory } from './category';
24
- export { default as ConvertersCategorySEO } from './category/seo.astro';
24
+ export const ConvertersCategorySEO = () => import('./category/seo.astro').then((m) => m.default);
25
25
 
26
26
  export type {
27
27
  KnownLocale,
@@ -14,7 +14,8 @@ import type { UtilitySEOContent } from "@jjlmoya/utils-shared";
14
14
  export async function getStaticPaths() {
15
15
  const paths = [];
16
16
 
17
- for (const { entry, Component } of ALL_TOOLS) {
17
+ for (const { entry, Component: lazyComp } of ALL_TOOLS) {
18
+ const { default: Component } = await lazyComp();
18
19
  const localeEntries = Object.entries(entry.i18n) as [
19
20
  KnownLocale,
20
21
  () => Promise<ToolLocaleContent>,
@@ -52,8 +53,6 @@ export async function getStaticPaths() {
52
53
  return paths;
53
54
  }
54
55
 
55
- type ToolComponent = (props: { ui: Record<string, string> }) => unknown;
56
-
57
56
  interface NavItem {
58
57
  id: string;
59
58
  title: string;
@@ -62,7 +61,7 @@ interface NavItem {
62
61
  }
63
62
 
64
63
  interface Props {
65
- Component: ToolComponent;
64
+ Component: unknown;
66
65
  locale: KnownLocale;
67
66
  content: ToolLocaleContent;
68
67
  localeUrls: Partial<Record<KnownLocale, string>>;
@@ -0,0 +1,29 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
+
4
+ export type AvifAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const avifAJpg: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'avif-a-jpg',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 AvifAJpgCalculator from './component.astro';
4
- import AvifAJpgSEO from './seo.astro';
5
- import AvifAJpgBibliography from './bibliography.astro';
6
-
7
- export type AvifAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const avifAJpg: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'avif-a-jpg',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { AvifAJpgCalculator, AvifAJpgSEO, AvifAJpgBibliography };
35
-
1
+ import { avifAJpg } from './entry';
2
+ export * from './entry';
36
3
  export const AVIF_A_JPG_TOOL: ToolDefinition = {
37
4
  entry: avifAJpg,
38
- Component: AvifAJpgCalculator,
39
- SEOComponent: AvifAJpgSEO,
40
- BibliographyComponent: AvifAJpgBibliography,
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 AvifAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const avifAPng: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'avif-a-png',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 AvifAPngCalculator from './component.astro';
4
- import AvifAPngSEO from './seo.astro';
5
- import AvifAPngBibliography from './bibliography.astro';
6
-
7
- export type AvifAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const avifAPng: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'avif-a-png',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { AvifAPngCalculator, AvifAPngSEO, AvifAPngBibliography };
35
-
1
+ import { avifAPng } from './entry';
2
+ export * from './entry';
36
3
  export const AVIF_A_PNG_TOOL: ToolDefinition = {
37
4
  entry: avifAPng,
38
- Component: AvifAPngCalculator,
39
- SEOComponent: AvifAPngSEO,
40
- BibliographyComponent: AvifAPngBibliography,
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 AvifAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const avifAWebp: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'avif-a-webp',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 AvifAWebpCalculator from './component.astro';
4
- import AvifAWebpSEO from './seo.astro';
5
- import AvifAWebpBibliography from './bibliography.astro';
6
-
7
- export type AvifAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const avifAWebp: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'avif-a-webp',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { AvifAWebpCalculator, AvifAWebpSEO, AvifAWebpBibliography };
35
-
1
+ import { avifAWebp } from './entry';
2
+ export * from './entry';
36
3
  export const AVIF_A_WEBP_TOOL: ToolDefinition = {
37
4
  entry: avifAWebp,
38
- Component: AvifAWebpCalculator,
39
- SEOComponent: AvifAWebpSEO,
40
- BibliographyComponent: AvifAWebpBibliography,
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 BmpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const bmpAJpg: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'bmp-a-jpg',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 BmpAJpgCalculator from './component.astro';
4
- import BmpAJpgSEO from './seo.astro';
5
- import BmpAJpgBibliography from './bibliography.astro';
6
-
7
- export type BmpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const bmpAJpg: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'bmp-a-jpg',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { BmpAJpgCalculator, BmpAJpgSEO, BmpAJpgBibliography };
35
-
1
+ import { bmpAJpg } from './entry';
2
+ export * from './entry';
36
3
  export const BMP_A_JPG_TOOL: ToolDefinition = {
37
4
  entry: bmpAJpg,
38
- Component: BmpAJpgCalculator,
39
- SEOComponent: BmpAJpgSEO,
40
- BibliographyComponent: BmpAJpgBibliography,
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 BmpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const bmpAPng: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'bmp-a-png',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 BmpAPngCalculator from './component.astro';
4
- import BmpAPngSEO from './seo.astro';
5
- import BmpAPngBibliography from './bibliography.astro';
6
-
7
- export type BmpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const bmpAPng: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'bmp-a-png',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { BmpAPngCalculator, BmpAPngSEO, BmpAPngBibliography };
35
-
1
+ import { bmpAPng } from './entry';
2
+ export * from './entry';
36
3
  export const BMP_A_PNG_TOOL: ToolDefinition = {
37
4
  entry: bmpAPng,
38
- Component: BmpAPngCalculator,
39
- SEOComponent: BmpAPngSEO,
40
- BibliographyComponent: BmpAPngBibliography,
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 BmpAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
5
+
6
+ export const bmpAWebp: ConvertersToolEntry<ImageConverterUI> = {
7
+ id: 'bmp-a-webp',
8
+ icons: {
9
+ bg: 'mdi:file-image',
10
+ fg: 'mdi:file-export',
11
+ },
12
+ i18n: {
13
+ de: () => import('./i18n/de').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ es: () => import('./i18n/es').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').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 BmpAWebpCalculator from './component.astro';
4
- import BmpAWebpSEO from './seo.astro';
5
- import BmpAWebpBibliography from './bibliography.astro';
6
-
7
- export type BmpAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
-
9
- export const bmpAWebp: ConvertersToolEntry<ImageConverterUI> = {
10
- id: 'bmp-a-webp',
11
- icons: {
12
- bg: 'mdi:file-image',
13
- fg: 'mdi:file-export',
14
- },
15
- i18n: {
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- en: () => import('./i18n/en').then((m) => m.content),
18
- es: () => import('./i18n/es').then((m) => m.content),
19
- fr: () => import('./i18n/fr').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 { BmpAWebpCalculator, BmpAWebpSEO, BmpAWebpBibliography };
35
-
1
+ import { bmpAWebp } from './entry';
2
+ export * from './entry';
36
3
  export const BMP_A_WEBP_TOOL: ToolDefinition = {
37
4
  entry: bmpAWebp,
38
- Component: BmpAWebpCalculator,
39
- SEOComponent: BmpAWebpSEO,
40
- BibliographyComponent: BmpAWebpBibliography,
5
+ Component: () => import('./component.astro'),
6
+ SEOComponent: () => import('./seo.astro'),
7
+ BibliographyComponent: () => import('./bibliography.astro'),
41
8
  };