@jjlmoya/utils-home 1.13.0 → 1.15.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,12 +1,13 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-home",
3
- "version": "1.13.0",
3
+ "version": "1.15.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"
package/src/entries.ts ADDED
@@ -0,0 +1,23 @@
1
+ export { dewPointCalculator } from './tool/dewPointCalculator/entry';
2
+ export type { DewPointCalculatorLocaleContent } from './tool/dewPointCalculator/entry';
3
+ export { heatingComparator } from './tool/heatingComparator/entry';
4
+ export type { HeatingComparatorLocaleContent } from './tool/heatingComparator/entry';
5
+ export { ledSavingCalculator } from './tool/ledSavingCalculator/entry';
6
+ export type { LedSavingCalculatorLocaleContent } from './tool/ledSavingCalculator/entry';
7
+ export { projectorCalculator } from './tool/projectorCalculator/entry';
8
+ export type { ProjectorCalculatorLocaleContent } from './tool/projectorCalculator/entry';
9
+ export { qrGenerator } from './tool/qrGenerator/entry';
10
+ export type { QRGeneratorLocaleContent } from './tool/qrGenerator/entry';
11
+ export { solarCalculator } from './tool/solarCalculator/entry';
12
+ export type { SolarCalculatorLocaleContent } from './tool/solarCalculator/entry';
13
+ export { tariffComparator } from './tool/tariffComparator/entry';
14
+ export type { TariffComparatorLocaleContent } from './tool/tariffComparator/entry';
15
+ export { homeCategory } from './category';
16
+ import { dewPointCalculator } from './tool/dewPointCalculator/entry';
17
+ import { heatingComparator } from './tool/heatingComparator/entry';
18
+ import { ledSavingCalculator } from './tool/ledSavingCalculator/entry';
19
+ import { projectorCalculator } from './tool/projectorCalculator/entry';
20
+ import { qrGenerator } from './tool/qrGenerator/entry';
21
+ import { solarCalculator } from './tool/solarCalculator/entry';
22
+ import { tariffComparator } from './tool/tariffComparator/entry';
23
+ export const ALL_ENTRIES = [dewPointCalculator, heatingComparator, ledSavingCalculator, projectorCalculator, qrGenerator, solarCalculator, tariffComparator];
package/src/index.ts CHANGED
@@ -17,11 +17,11 @@ export type {
17
17
 
18
18
  export { ALL_ENTRIES, ALL_TOOLS } from './tools';
19
19
 
20
- export { QRGeneratorComponent, QRGeneratorSEO, QRGeneratorBibliography, QR_GENERATOR_TOOL } from './tool/qrGenerator';
21
- export { SolarCalculatorComponent, SolarCalculatorSEO, SolarCalculatorBibliography, SOLAR_CALCULATOR_TOOL } from './tool/solarCalculator';
22
- export { ProjectorCalculatorComponent, ProjectorCalculatorSEO, ProjectorCalculatorBibliography, PROJECTOR_CALCULATOR_TOOL } from './tool/projectorCalculator';
23
- export { DewPointCalculatorComponent, DewPointCalculatorSEO, DewPointCalculatorBibliography, DEW_POINT_CALCULATOR_TOOL } from './tool/dewPointCalculator';
24
- export { LedSavingCalculatorComponent, LedSavingCalculatorSEO, LedSavingCalculatorBibliography, LED_SAVING_CALCULATOR_TOOL } from './tool/ledSavingCalculator';
25
- export { TariffComparatorComponent, TariffComparatorSEO, TariffComparatorBibliography, TARIFF_COMPARATOR_TOOL } from './tool/tariffComparator';
26
- export { HeatingComparatorComponent, HeatingComparatorSEO, HeatingComparatorBibliography, HEATING_COMPARATOR_TOOL } from './tool/heatingComparator';
20
+ export { QR_GENERATOR_TOOL } from './tool/qrGenerator';
21
+ export { SOLAR_CALCULATOR_TOOL } from './tool/solarCalculator';
22
+ export { PROJECTOR_CALCULATOR_TOOL } from './tool/projectorCalculator';
23
+ export { DEW_POINT_CALCULATOR_TOOL } from './tool/dewPointCalculator';
24
+ export { LED_SAVING_CALCULATOR_TOOL } from './tool/ledSavingCalculator';
25
+ export { TARIFF_COMPARATOR_TOOL } from './tool/tariffComparator';
26
+ export { HEATING_COMPARATOR_TOOL } from './tool/heatingComparator';
27
27
 
@@ -0,0 +1,32 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { DewPointCalculatorUI } from './ui';
4
+
5
+ export type DewPointCalculatorLocaleContent = ToolLocaleContent<DewPointCalculatorUI>;
6
+
7
+
8
+
9
+ export const dewPointCalculator: HomeToolEntry<DewPointCalculatorUI> = {
10
+ id: 'dew-point-calculator',
11
+ icons: {
12
+ bg: 'mdi:water-thermometer',
13
+ fg: 'mdi:home-thermometer',
14
+ },
15
+ i18n: {
16
+ de: async () => (await import('./i18n/de')).content,
17
+ en: async () => (await import('./i18n/en')).content,
18
+ es: async () => (await import('./i18n/es')).content,
19
+ fr: async () => (await import('./i18n/fr')).content,
20
+ id: async () => (await import('./i18n/id')).content,
21
+ it: async () => (await import('./i18n/it')).content,
22
+ ja: async () => (await import('./i18n/ja')).content,
23
+ ko: async () => (await import('./i18n/ko')).content,
24
+ nl: async () => (await import('./i18n/nl')).content,
25
+ pl: async () => (await import('./i18n/pl')).content,
26
+ pt: async () => (await import('./i18n/pt')).content,
27
+ ru: async () => (await import('./i18n/ru')).content,
28
+ sv: async () => (await import('./i18n/sv')).content,
29
+ tr: async () => (await import('./i18n/tr')).content,
30
+ zh: async () => (await import('./i18n/zh')).content,
31
+ },
32
+ };
@@ -1,37 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { DewPointCalculatorUI } from './ui';
4
-
5
- export type DewPointCalculatorLocaleContent = ToolLocaleContent<DewPointCalculatorUI>;
6
-
7
-
8
-
9
- export const dewPointCalculator: HomeToolEntry<DewPointCalculatorUI> = {
10
- id: 'dew-point-calculator',
11
- icons: {
12
- bg: 'mdi:water-thermometer',
13
- fg: 'mdi:home-thermometer',
14
- },
15
- i18n: {
16
- de: async () => (await import('./i18n/de')).content,
17
- en: async () => (await import('./i18n/en')).content,
18
- es: async () => (await import('./i18n/es')).content,
19
- fr: async () => (await import('./i18n/fr')).content,
20
- id: async () => (await import('./i18n/id')).content,
21
- it: async () => (await import('./i18n/it')).content,
22
- ja: async () => (await import('./i18n/ja')).content,
23
- ko: async () => (await import('./i18n/ko')).content,
24
- nl: async () => (await import('./i18n/nl')).content,
25
- pl: async () => (await import('./i18n/pl')).content,
26
- pt: async () => (await import('./i18n/pt')).content,
27
- ru: async () => (await import('./i18n/ru')).content,
28
- sv: async () => (await import('./i18n/sv')).content,
29
- tr: async () => (await import('./i18n/tr')).content,
30
- zh: async () => (await import('./i18n/zh')).content,
31
- },
32
- };
33
-
34
-
1
+ import { dewPointCalculator } from './entry';
2
+ export * from './entry';
35
3
  export const DEW_POINT_CALCULATOR_TOOL: ToolDefinition = {
36
4
  entry: dewPointCalculator,
37
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,30 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { HeatingComparatorUI } from './ui';
4
+
5
+ export type HeatingComparatorLocaleContent = ToolLocaleContent<HeatingComparatorUI>;
6
+
7
+ export const heatingComparator: HomeToolEntry<HeatingComparatorUI> = {
8
+ id: 'heating-comparator',
9
+ icons: {
10
+ bg: 'mdi:home-thermometer',
11
+ fg: 'mdi:heating-coil',
12
+ },
13
+ i18n: {
14
+ de: async () => (await import('./i18n/de')).content,
15
+ en: async () => (await import('./i18n/en')).content,
16
+ es: async () => (await import('./i18n/es')).content,
17
+ fr: async () => (await import('./i18n/fr')).content,
18
+ id: async () => (await import('./i18n/id')).content,
19
+ it: async () => (await import('./i18n/it')).content,
20
+ ja: async () => (await import('./i18n/ja')).content,
21
+ ko: async () => (await import('./i18n/ko')).content,
22
+ nl: async () => (await import('./i18n/nl')).content,
23
+ pl: async () => (await import('./i18n/pl')).content,
24
+ pt: async () => (await import('./i18n/pt')).content,
25
+ ru: async () => (await import('./i18n/ru')).content,
26
+ sv: async () => (await import('./i18n/sv')).content,
27
+ tr: async () => (await import('./i18n/tr')).content,
28
+ zh: async () => (await import('./i18n/zh')).content,
29
+ },
30
+ };
@@ -1,35 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { HeatingComparatorUI } from './ui';
4
-
5
- export type HeatingComparatorLocaleContent = ToolLocaleContent<HeatingComparatorUI>;
6
-
7
- export const heatingComparator: HomeToolEntry<HeatingComparatorUI> = {
8
- id: 'heating-comparator',
9
- icons: {
10
- bg: 'mdi:home-thermometer',
11
- fg: 'mdi:heating-coil',
12
- },
13
- i18n: {
14
- de: async () => (await import('./i18n/de')).content,
15
- en: async () => (await import('./i18n/en')).content,
16
- es: async () => (await import('./i18n/es')).content,
17
- fr: async () => (await import('./i18n/fr')).content,
18
- id: async () => (await import('./i18n/id')).content,
19
- it: async () => (await import('./i18n/it')).content,
20
- ja: async () => (await import('./i18n/ja')).content,
21
- ko: async () => (await import('./i18n/ko')).content,
22
- nl: async () => (await import('./i18n/nl')).content,
23
- pl: async () => (await import('./i18n/pl')).content,
24
- pt: async () => (await import('./i18n/pt')).content,
25
- ru: async () => (await import('./i18n/ru')).content,
26
- sv: async () => (await import('./i18n/sv')).content,
27
- tr: async () => (await import('./i18n/tr')).content,
28
- zh: async () => (await import('./i18n/zh')).content,
29
- },
30
- };
31
-
32
-
1
+ import { heatingComparator } from './entry';
2
+ export * from './entry';
33
3
  export const HEATING_COMPARATOR_TOOL: ToolDefinition = {
34
4
  entry: heatingComparator,
35
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,31 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { LedSavingCalculatorUI } from './ui';
4
+
5
+ export type LedSavingCalculatorLocaleContent = ToolLocaleContent<LedSavingCalculatorUI>;
6
+
7
+
8
+ export const ledSavingCalculator: HomeToolEntry<LedSavingCalculatorUI> = {
9
+ id: 'led-saving-calculator',
10
+ icons: {
11
+ bg: 'mdi:lightbulb-on',
12
+ fg: 'mdi:piggy-bank',
13
+ },
14
+ i18n: {
15
+ de: async () => (await import('./i18n/de')).content,
16
+ en: async () => (await import('./i18n/en')).content,
17
+ es: async () => (await import('./i18n/es')).content,
18
+ fr: async () => (await import('./i18n/fr')).content,
19
+ id: async () => (await import('./i18n/id')).content,
20
+ it: async () => (await import('./i18n/it')).content,
21
+ ja: async () => (await import('./i18n/ja')).content,
22
+ ko: async () => (await import('./i18n/ko')).content,
23
+ nl: async () => (await import('./i18n/nl')).content,
24
+ pl: async () => (await import('./i18n/pl')).content,
25
+ pt: async () => (await import('./i18n/pt')).content,
26
+ ru: async () => (await import('./i18n/ru')).content,
27
+ sv: async () => (await import('./i18n/sv')).content,
28
+ tr: async () => (await import('./i18n/tr')).content,
29
+ zh: async () => (await import('./i18n/zh')).content,
30
+ },
31
+ };
@@ -1,36 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { LedSavingCalculatorUI } from './ui';
4
-
5
- export type LedSavingCalculatorLocaleContent = ToolLocaleContent<LedSavingCalculatorUI>;
6
-
7
-
8
- export const ledSavingCalculator: HomeToolEntry<LedSavingCalculatorUI> = {
9
- id: 'led-saving-calculator',
10
- icons: {
11
- bg: 'mdi:lightbulb-on',
12
- fg: 'mdi:piggy-bank',
13
- },
14
- i18n: {
15
- de: async () => (await import('./i18n/de')).content,
16
- en: async () => (await import('./i18n/en')).content,
17
- es: async () => (await import('./i18n/es')).content,
18
- fr: async () => (await import('./i18n/fr')).content,
19
- id: async () => (await import('./i18n/id')).content,
20
- it: async () => (await import('./i18n/it')).content,
21
- ja: async () => (await import('./i18n/ja')).content,
22
- ko: async () => (await import('./i18n/ko')).content,
23
- nl: async () => (await import('./i18n/nl')).content,
24
- pl: async () => (await import('./i18n/pl')).content,
25
- pt: async () => (await import('./i18n/pt')).content,
26
- ru: async () => (await import('./i18n/ru')).content,
27
- sv: async () => (await import('./i18n/sv')).content,
28
- tr: async () => (await import('./i18n/tr')).content,
29
- zh: async () => (await import('./i18n/zh')).content,
30
- },
31
- };
32
-
33
-
1
+ import { ledSavingCalculator } from './entry';
2
+ export * from './entry';
34
3
  export const LED_SAVING_CALCULATOR_TOOL: ToolDefinition = {
35
4
  entry: ledSavingCalculator,
36
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,31 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { ProjectorCalculatorUI } from './ui';
4
+
5
+ export type ProjectorCalculatorLocaleContent = ToolLocaleContent<ProjectorCalculatorUI>;
6
+
7
+
8
+ export const projectorCalculator: HomeToolEntry<ProjectorCalculatorUI> = {
9
+ id: 'projector-calculator',
10
+ icons: {
11
+ bg: 'mdi:projector',
12
+ fg: 'mdi:ruler',
13
+ },
14
+ i18n: {
15
+ de: async () => (await import('./i18n/de')).content,
16
+ en: async () => (await import('./i18n/en')).content,
17
+ es: async () => (await import('./i18n/es')).content,
18
+ fr: async () => (await import('./i18n/fr')).content,
19
+ id: async () => (await import('./i18n/id')).content,
20
+ it: async () => (await import('./i18n/it')).content,
21
+ ja: async () => (await import('./i18n/ja')).content,
22
+ ko: async () => (await import('./i18n/ko')).content,
23
+ nl: async () => (await import('./i18n/nl')).content,
24
+ pl: async () => (await import('./i18n/pl')).content,
25
+ pt: async () => (await import('./i18n/pt')).content,
26
+ ru: async () => (await import('./i18n/ru')).content,
27
+ sv: async () => (await import('./i18n/sv')).content,
28
+ tr: async () => (await import('./i18n/tr')).content,
29
+ zh: async () => (await import('./i18n/zh')).content,
30
+ },
31
+ };
@@ -1,36 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { ProjectorCalculatorUI } from './ui';
4
-
5
- export type ProjectorCalculatorLocaleContent = ToolLocaleContent<ProjectorCalculatorUI>;
6
-
7
-
8
- export const projectorCalculator: HomeToolEntry<ProjectorCalculatorUI> = {
9
- id: 'projector-calculator',
10
- icons: {
11
- bg: 'mdi:projector',
12
- fg: 'mdi:ruler',
13
- },
14
- i18n: {
15
- de: async () => (await import('./i18n/de')).content,
16
- en: async () => (await import('./i18n/en')).content,
17
- es: async () => (await import('./i18n/es')).content,
18
- fr: async () => (await import('./i18n/fr')).content,
19
- id: async () => (await import('./i18n/id')).content,
20
- it: async () => (await import('./i18n/it')).content,
21
- ja: async () => (await import('./i18n/ja')).content,
22
- ko: async () => (await import('./i18n/ko')).content,
23
- nl: async () => (await import('./i18n/nl')).content,
24
- pl: async () => (await import('./i18n/pl')).content,
25
- pt: async () => (await import('./i18n/pt')).content,
26
- ru: async () => (await import('./i18n/ru')).content,
27
- sv: async () => (await import('./i18n/sv')).content,
28
- tr: async () => (await import('./i18n/tr')).content,
29
- zh: async () => (await import('./i18n/zh')).content,
30
- },
31
- };
32
-
33
-
1
+ import { projectorCalculator } from './entry';
2
+ export * from './entry';
34
3
  export const PROJECTOR_CALCULATOR_TOOL: ToolDefinition = {
35
4
  entry: projectorCalculator,
36
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,30 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { QRGeneratorUI } from './ui';
4
+
5
+ export type QRGeneratorLocaleContent = ToolLocaleContent<QRGeneratorUI>;
6
+
7
+ export const qrGenerator: HomeToolEntry<QRGeneratorUI> = {
8
+ id: 'qr-generator',
9
+ icons: {
10
+ bg: 'mdi:qrcode-scan',
11
+ fg: 'mdi:shield-check',
12
+ },
13
+ i18n: {
14
+ de: async () => (await import('./i18n/de')).content,
15
+ en: async () => (await import('./i18n/en')).content,
16
+ es: async () => (await import('./i18n/es')).content,
17
+ fr: async () => (await import('./i18n/fr')).content,
18
+ id: async () => (await import('./i18n/id')).content,
19
+ it: async () => (await import('./i18n/it')).content,
20
+ ja: async () => (await import('./i18n/ja')).content,
21
+ ko: async () => (await import('./i18n/ko')).content,
22
+ nl: async () => (await import('./i18n/nl')).content,
23
+ pl: async () => (await import('./i18n/pl')).content,
24
+ pt: async () => (await import('./i18n/pt')).content,
25
+ ru: async () => (await import('./i18n/ru')).content,
26
+ sv: async () => (await import('./i18n/sv')).content,
27
+ tr: async () => (await import('./i18n/tr')).content,
28
+ zh: async () => (await import('./i18n/zh')).content,
29
+ },
30
+ };
@@ -1,35 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { QRGeneratorUI } from './ui';
4
-
5
- export type QRGeneratorLocaleContent = ToolLocaleContent<QRGeneratorUI>;
6
-
7
- export const qrGenerator: HomeToolEntry<QRGeneratorUI> = {
8
- id: 'qr-generator',
9
- icons: {
10
- bg: 'mdi:qrcode-scan',
11
- fg: 'mdi:shield-check',
12
- },
13
- i18n: {
14
- de: async () => (await import('./i18n/de')).content,
15
- en: async () => (await import('./i18n/en')).content,
16
- es: async () => (await import('./i18n/es')).content,
17
- fr: async () => (await import('./i18n/fr')).content,
18
- id: async () => (await import('./i18n/id')).content,
19
- it: async () => (await import('./i18n/it')).content,
20
- ja: async () => (await import('./i18n/ja')).content,
21
- ko: async () => (await import('./i18n/ko')).content,
22
- nl: async () => (await import('./i18n/nl')).content,
23
- pl: async () => (await import('./i18n/pl')).content,
24
- pt: async () => (await import('./i18n/pt')).content,
25
- ru: async () => (await import('./i18n/ru')).content,
26
- sv: async () => (await import('./i18n/sv')).content,
27
- tr: async () => (await import('./i18n/tr')).content,
28
- zh: async () => (await import('./i18n/zh')).content,
29
- },
30
- };
31
-
32
-
1
+ import { qrGenerator } from './entry';
2
+ export * from './entry';
33
3
  export const QR_GENERATOR_TOOL: ToolDefinition = {
34
4
  entry: qrGenerator,
35
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,30 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { SolarCalculatorUI } from './ui';
4
+
5
+ export type SolarCalculatorLocaleContent = ToolLocaleContent<SolarCalculatorUI>;
6
+
7
+ export const solarCalculator: HomeToolEntry<SolarCalculatorUI> = {
8
+ id: 'solar-calculator',
9
+ icons: {
10
+ bg: 'mdi:solar-panel-large',
11
+ fg: 'mdi:angle-acute',
12
+ },
13
+ i18n: {
14
+ de: async () => (await import('./i18n/de')).content,
15
+ en: async () => (await import('./i18n/en')).content,
16
+ es: async () => (await import('./i18n/es')).content,
17
+ fr: async () => (await import('./i18n/fr')).content,
18
+ id: async () => (await import('./i18n/id')).content,
19
+ it: async () => (await import('./i18n/it')).content,
20
+ ja: async () => (await import('./i18n/ja')).content,
21
+ ko: async () => (await import('./i18n/ko')).content,
22
+ nl: async () => (await import('./i18n/nl')).content,
23
+ pl: async () => (await import('./i18n/pl')).content,
24
+ pt: async () => (await import('./i18n/pt')).content,
25
+ ru: async () => (await import('./i18n/ru')).content,
26
+ sv: async () => (await import('./i18n/sv')).content,
27
+ tr: async () => (await import('./i18n/tr')).content,
28
+ zh: async () => (await import('./i18n/zh')).content,
29
+ },
30
+ };
@@ -1,35 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { SolarCalculatorUI } from './ui';
4
-
5
- export type SolarCalculatorLocaleContent = ToolLocaleContent<SolarCalculatorUI>;
6
-
7
- export const solarCalculator: HomeToolEntry<SolarCalculatorUI> = {
8
- id: 'solar-calculator',
9
- icons: {
10
- bg: 'mdi:solar-panel-large',
11
- fg: 'mdi:angle-acute',
12
- },
13
- i18n: {
14
- de: async () => (await import('./i18n/de')).content,
15
- en: async () => (await import('./i18n/en')).content,
16
- es: async () => (await import('./i18n/es')).content,
17
- fr: async () => (await import('./i18n/fr')).content,
18
- id: async () => (await import('./i18n/id')).content,
19
- it: async () => (await import('./i18n/it')).content,
20
- ja: async () => (await import('./i18n/ja')).content,
21
- ko: async () => (await import('./i18n/ko')).content,
22
- nl: async () => (await import('./i18n/nl')).content,
23
- pl: async () => (await import('./i18n/pl')).content,
24
- pt: async () => (await import('./i18n/pt')).content,
25
- ru: async () => (await import('./i18n/ru')).content,
26
- sv: async () => (await import('./i18n/sv')).content,
27
- tr: async () => (await import('./i18n/tr')).content,
28
- zh: async () => (await import('./i18n/zh')).content,
29
- },
30
- };
31
-
32
-
1
+ import { solarCalculator } from './entry';
2
+ export * from './entry';
33
3
  export const SOLAR_CALCULATOR_TOOL: ToolDefinition = {
34
4
  entry: solarCalculator,
35
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,31 @@
1
+ import type { HomeToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { TariffComparatorUI } from './ui';
4
+
5
+ export type TariffComparatorLocaleContent = ToolLocaleContent<TariffComparatorUI>;
6
+
7
+
8
+ export const tariffComparator: HomeToolEntry<TariffComparatorUI> = {
9
+ id: 'tariff-comparator',
10
+ icons: {
11
+ bg: 'mdi:lightning-bolt',
12
+ fg: 'mdi:compare-horizontal',
13
+ },
14
+ i18n: {
15
+ de: async () => (await import('./i18n/de')).content,
16
+ en: async () => (await import('./i18n/en')).content,
17
+ es: async () => (await import('./i18n/es')).content,
18
+ fr: async () => (await import('./i18n/fr')).content,
19
+ id: async () => (await import('./i18n/id')).content,
20
+ it: async () => (await import('./i18n/it')).content,
21
+ ja: async () => (await import('./i18n/ja')).content,
22
+ ko: async () => (await import('./i18n/ko')).content,
23
+ nl: async () => (await import('./i18n/nl')).content,
24
+ pl: async () => (await import('./i18n/pl')).content,
25
+ pt: async () => (await import('./i18n/pt')).content,
26
+ ru: async () => (await import('./i18n/ru')).content,
27
+ sv: async () => (await import('./i18n/sv')).content,
28
+ tr: async () => (await import('./i18n/tr')).content,
29
+ zh: async () => (await import('./i18n/zh')).content,
30
+ },
31
+ };
@@ -1,36 +1,5 @@
1
- import type { HomeToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { TariffComparatorUI } from './ui';
4
-
5
- export type TariffComparatorLocaleContent = ToolLocaleContent<TariffComparatorUI>;
6
-
7
-
8
- export const tariffComparator: HomeToolEntry<TariffComparatorUI> = {
9
- id: 'tariff-comparator',
10
- icons: {
11
- bg: 'mdi:lightning-bolt',
12
- fg: 'mdi:compare-horizontal',
13
- },
14
- i18n: {
15
- de: async () => (await import('./i18n/de')).content,
16
- en: async () => (await import('./i18n/en')).content,
17
- es: async () => (await import('./i18n/es')).content,
18
- fr: async () => (await import('./i18n/fr')).content,
19
- id: async () => (await import('./i18n/id')).content,
20
- it: async () => (await import('./i18n/it')).content,
21
- ja: async () => (await import('./i18n/ja')).content,
22
- ko: async () => (await import('./i18n/ko')).content,
23
- nl: async () => (await import('./i18n/nl')).content,
24
- pl: async () => (await import('./i18n/pl')).content,
25
- pt: async () => (await import('./i18n/pt')).content,
26
- ru: async () => (await import('./i18n/ru')).content,
27
- sv: async () => (await import('./i18n/sv')).content,
28
- tr: async () => (await import('./i18n/tr')).content,
29
- zh: async () => (await import('./i18n/zh')).content,
30
- },
31
- };
32
-
33
-
1
+ import { tariffComparator } from './entry';
2
+ export * from './entry';
34
3
  export const TARIFF_COMPARATOR_TOOL: ToolDefinition = {
35
4
  entry: tariffComparator,
36
5
  Component: () => import('./component.astro'),
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import type { ToolDefinition } from './types';
2
3
  import { QR_GENERATOR_TOOL } from './tool/qrGenerator/index';
3
4
  import { SOLAR_CALCULATOR_TOOL } from './tool/solarCalculator/index';
@@ -17,4 +18,3 @@ export const ALL_TOOLS: ToolDefinition[] = [
17
18
  HEATING_COMPARATOR_TOOL,
18
19
  ];
19
20
 
20
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);