@jjlmoya/utils-converters 1.13.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 (44) 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/tool/avifAJpg/entry.ts +29 -0
  5. package/src/tool/avifAJpg/index.ts +2 -31
  6. package/src/tool/avifAPng/entry.ts +29 -0
  7. package/src/tool/avifAPng/index.ts +2 -31
  8. package/src/tool/avifAWebp/entry.ts +29 -0
  9. package/src/tool/avifAWebp/index.ts +2 -31
  10. package/src/tool/bmpAJpg/entry.ts +29 -0
  11. package/src/tool/bmpAJpg/index.ts +2 -31
  12. package/src/tool/bmpAPng/entry.ts +29 -0
  13. package/src/tool/bmpAPng/index.ts +2 -31
  14. package/src/tool/bmpAWebp/entry.ts +29 -0
  15. package/src/tool/bmpAWebp/index.ts +2 -31
  16. package/src/tool/gifAJpg/entry.ts +29 -0
  17. package/src/tool/gifAJpg/index.ts +2 -31
  18. package/src/tool/gifAPng/entry.ts +29 -0
  19. package/src/tool/gifAPng/index.ts +2 -31
  20. package/src/tool/gifAWebp/entry.ts +29 -0
  21. package/src/tool/gifAWebp/index.ts +2 -31
  22. package/src/tool/jpgAIco/entry.ts +29 -0
  23. package/src/tool/jpgAIco/index.ts +2 -31
  24. package/src/tool/jpgAPng/entry.ts +29 -0
  25. package/src/tool/jpgAPng/index.ts +2 -31
  26. package/src/tool/jpgAWebp/entry.ts +29 -0
  27. package/src/tool/jpgAWebp/index.ts +2 -31
  28. package/src/tool/pngAIco/entry.ts +29 -0
  29. package/src/tool/pngAIco/index.ts +2 -31
  30. package/src/tool/pngAJpg/entry.ts +29 -0
  31. package/src/tool/pngAJpg/index.ts +2 -31
  32. package/src/tool/pngAWebp/entry.ts +29 -0
  33. package/src/tool/pngAWebp/index.ts +2 -31
  34. package/src/tool/svgAJpg/entry.ts +29 -0
  35. package/src/tool/svgAJpg/index.ts +2 -31
  36. package/src/tool/svgAPng/entry.ts +29 -0
  37. package/src/tool/svgAPng/index.ts +2 -31
  38. package/src/tool/webpAIco/entry.ts +29 -0
  39. package/src/tool/webpAIco/index.ts +2 -31
  40. package/src/tool/webpAJpg/entry.ts +29 -0
  41. package/src/tool/webpAJpg/index.ts +2 -31
  42. package/src/tool/webpAPng/entry.ts +29 -0
  43. package/src/tool/webpAPng/index.ts +2 -31
  44. package/src/tools.ts +1 -1
@@ -1,34 +1,5 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } 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
- };
30
-
31
-
1
+ import { svgAPng } from './entry';
2
+ export * from './entry';
32
3
  export const SVG_A_PNG_TOOL: ToolDefinition = {
33
4
  entry: svgAPng,
34
5
  Component: () => import('./component.astro'),
@@ -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,34 +1,5 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } 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
- };
30
-
31
-
1
+ import { webpAIco } from './entry';
2
+ export * from './entry';
32
3
  export const WEBP_A_ICO_TOOL: ToolDefinition = {
33
4
  entry: webpAIco,
34
5
  Component: () => import('./component.astro'),
@@ -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,34 +1,5 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } 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
- };
30
-
31
-
1
+ import { webpAJpg } from './entry';
2
+ export * from './entry';
32
3
  export const WEBP_A_JPG_TOOL: ToolDefinition = {
33
4
  entry: webpAJpg,
34
5
  Component: () => import('./component.astro'),
@@ -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,34 +1,5 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } 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
- };
30
-
31
-
1
+ import { webpAPng } from './entry';
2
+ export * from './entry';
32
3
  export const WEBP_A_PNG_TOOL: ToolDefinition = {
33
4
  entry: webpAPng,
34
5
  Component: () => import('./component.astro'),
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);