@jjlmoya/utils-nature 1.10.0 → 1.11.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-nature",
3
- "version": "1.10.0",
3
+ "version": "1.11.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,14 @@
1
+ export { cricketThermometer } from './tool/cricketThermometer/entry';
2
+ export type { CricketThermometerLocaleContent } from './tool/cricketThermometer/entry';
3
+ export { digitalCarbon } from './tool/digitalCarbon/entry';
4
+ export type { DigitalCarbonLocaleContent } from './tool/digitalCarbon/entry';
5
+ export { rainHarvester } from './tool/rainHarvester/entry';
6
+ export type { RainHarvesterLocaleContent } from './tool/rainHarvester/entry';
7
+ export { seedCalculator } from './tool/seedCalculator/entry';
8
+ export type { SeedCalculatorLocaleContent } from './tool/seedCalculator/entry';
9
+ export { natureCategory } from './category';
10
+ import { cricketThermometer } from './tool/cricketThermometer/entry';
11
+ import { digitalCarbon } from './tool/digitalCarbon/entry';
12
+ import { rainHarvester } from './tool/rainHarvester/entry';
13
+ import { seedCalculator } from './tool/seedCalculator/entry';
14
+ export const ALL_ENTRIES = [cricketThermometer, digitalCarbon, rainHarvester, seedCalculator];
@@ -0,0 +1,30 @@
1
+ import type { NatureToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { CricketThermometerUI } from './ui';
4
+
5
+ export type CricketThermometerLocaleContent = ToolLocaleContent<CricketThermometerUI>;
6
+
7
+ export const cricketThermometer: NatureToolEntry<CricketThermometerUI> = {
8
+ id: 'cricket-thermometer',
9
+ icons: {
10
+ bg: 'mdi:thermometer',
11
+ fg: 'mdi:grass',
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 { NatureToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { CricketThermometerUI } from './ui';
4
-
5
- export type CricketThermometerLocaleContent = ToolLocaleContent<CricketThermometerUI>;
6
-
7
- export const cricketThermometer: NatureToolEntry<CricketThermometerUI> = {
8
- id: 'cricket-thermometer',
9
- icons: {
10
- bg: 'mdi:thermometer',
11
- fg: 'mdi:grass',
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 { cricketThermometer } from './entry';
2
+ export * from './entry';
33
3
  export const CRICKET_THERMOMETER_TOOL: ToolDefinition = {
34
4
  entry: cricketThermometer,
35
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,29 @@
1
+ import type { NatureToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { DigitalCarbonUI } from './ui';
3
+
4
+ export type DigitalCarbonLocaleContent = ToolLocaleContent<DigitalCarbonUI>;
5
+
6
+ export const digitalCarbon: NatureToolEntry<DigitalCarbonUI> = {
7
+ id: 'digital-carbon',
8
+ icons: {
9
+ bg: 'mdi:leaf',
10
+ fg: 'mdi:monitor',
11
+ },
12
+ i18n: {
13
+ de: async () => (await import('./i18n/de')).content,
14
+ en: async () => (await import('./i18n/en')).content,
15
+ es: async () => (await import('./i18n/es')).content,
16
+ fr: async () => (await import('./i18n/fr')).content,
17
+ id: async () => (await import('./i18n/id')).content,
18
+ it: async () => (await import('./i18n/it')).content,
19
+ ja: async () => (await import('./i18n/ja')).content,
20
+ ko: async () => (await import('./i18n/ko')).content,
21
+ nl: async () => (await import('./i18n/nl')).content,
22
+ pl: async () => (await import('./i18n/pl')).content,
23
+ pt: async () => (await import('./i18n/pt')).content,
24
+ ru: async () => (await import('./i18n/ru')).content,
25
+ sv: async () => (await import('./i18n/sv')).content,
26
+ tr: async () => (await import('./i18n/tr')).content,
27
+ zh: async () => (await import('./i18n/zh')).content,
28
+ },
29
+ };
@@ -1,34 +1,5 @@
1
- import type { NatureToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { DigitalCarbonUI } from './ui';
3
-
4
- export type DigitalCarbonLocaleContent = ToolLocaleContent<DigitalCarbonUI>;
5
-
6
- export const digitalCarbon: NatureToolEntry<DigitalCarbonUI> = {
7
- id: 'digital-carbon',
8
- icons: {
9
- bg: 'mdi:leaf',
10
- fg: 'mdi:monitor',
11
- },
12
- i18n: {
13
- de: async () => (await import('./i18n/de')).content,
14
- en: async () => (await import('./i18n/en')).content,
15
- es: async () => (await import('./i18n/es')).content,
16
- fr: async () => (await import('./i18n/fr')).content,
17
- id: async () => (await import('./i18n/id')).content,
18
- it: async () => (await import('./i18n/it')).content,
19
- ja: async () => (await import('./i18n/ja')).content,
20
- ko: async () => (await import('./i18n/ko')).content,
21
- nl: async () => (await import('./i18n/nl')).content,
22
- pl: async () => (await import('./i18n/pl')).content,
23
- pt: async () => (await import('./i18n/pt')).content,
24
- ru: async () => (await import('./i18n/ru')).content,
25
- sv: async () => (await import('./i18n/sv')).content,
26
- tr: async () => (await import('./i18n/tr')).content,
27
- zh: async () => (await import('./i18n/zh')).content,
28
- },
29
- };
30
-
31
-
1
+ import { digitalCarbon } from './entry';
2
+ export * from './entry';
32
3
  export const DIGITAL_CARBON_TOOL: ToolDefinition = {
33
4
  entry: digitalCarbon,
34
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,29 @@
1
+ import type { NatureToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { RainHarvesterUI } from './ui';
3
+
4
+ export type RainHarvesterLocaleContent = ToolLocaleContent<RainHarvesterUI>;
5
+
6
+ export const rainHarvester: NatureToolEntry<RainHarvesterUI> = {
7
+ id: 'rain-harvester',
8
+ icons: {
9
+ bg: 'mdi:weather-pouring',
10
+ fg: 'mdi:water',
11
+ },
12
+ i18n: {
13
+ de: async () => (await import('./i18n/de')).content,
14
+ en: async () => (await import('./i18n/en')).content,
15
+ es: async () => (await import('./i18n/es')).content,
16
+ fr: async () => (await import('./i18n/fr')).content,
17
+ id: async () => (await import('./i18n/id')).content,
18
+ it: async () => (await import('./i18n/it')).content,
19
+ ja: async () => (await import('./i18n/ja')).content,
20
+ ko: async () => (await import('./i18n/ko')).content,
21
+ nl: async () => (await import('./i18n/nl')).content,
22
+ pl: async () => (await import('./i18n/pl')).content,
23
+ pt: async () => (await import('./i18n/pt')).content,
24
+ ru: async () => (await import('./i18n/ru')).content,
25
+ sv: async () => (await import('./i18n/sv')).content,
26
+ tr: async () => (await import('./i18n/tr')).content,
27
+ zh: async () => (await import('./i18n/zh')).content,
28
+ },
29
+ };
@@ -1,34 +1,5 @@
1
- import type { NatureToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { RainHarvesterUI } from './ui';
3
-
4
- export type RainHarvesterLocaleContent = ToolLocaleContent<RainHarvesterUI>;
5
-
6
- export const rainHarvester: NatureToolEntry<RainHarvesterUI> = {
7
- id: 'rain-harvester',
8
- icons: {
9
- bg: 'mdi:weather-pouring',
10
- fg: 'mdi:water',
11
- },
12
- i18n: {
13
- de: async () => (await import('./i18n/de')).content,
14
- en: async () => (await import('./i18n/en')).content,
15
- es: async () => (await import('./i18n/es')).content,
16
- fr: async () => (await import('./i18n/fr')).content,
17
- id: async () => (await import('./i18n/id')).content,
18
- it: async () => (await import('./i18n/it')).content,
19
- ja: async () => (await import('./i18n/ja')).content,
20
- ko: async () => (await import('./i18n/ko')).content,
21
- nl: async () => (await import('./i18n/nl')).content,
22
- pl: async () => (await import('./i18n/pl')).content,
23
- pt: async () => (await import('./i18n/pt')).content,
24
- ru: async () => (await import('./i18n/ru')).content,
25
- sv: async () => (await import('./i18n/sv')).content,
26
- tr: async () => (await import('./i18n/tr')).content,
27
- zh: async () => (await import('./i18n/zh')).content,
28
- },
29
- };
30
-
31
-
1
+ import { rainHarvester } from './entry';
2
+ export * from './entry';
32
3
  export const RAIN_HARVESTER_TOOL: ToolDefinition = {
33
4
  entry: rainHarvester,
34
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,30 @@
1
+ import type { NatureToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ import type { SeedCalculatorUI } from './ui';
4
+
5
+ export type SeedCalculatorLocaleContent = ToolLocaleContent<SeedCalculatorUI>;
6
+
7
+ export const seedCalculator: NatureToolEntry<SeedCalculatorUI> = {
8
+ id: 'seed-calculator',
9
+ icons: {
10
+ bg: 'mdi:tractor',
11
+ fg: 'mdi:sprout',
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 { NatureToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- import type { SeedCalculatorUI } from './ui';
4
-
5
- export type SeedCalculatorLocaleContent = ToolLocaleContent<SeedCalculatorUI>;
6
-
7
- export const seedCalculator: NatureToolEntry<SeedCalculatorUI> = {
8
- id: 'seed-calculator',
9
- icons: {
10
- bg: 'mdi:tractor',
11
- fg: 'mdi:sprout',
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 { seedCalculator } from './entry';
2
+ export * from './entry';
33
3
  export const SEED_CALCULATOR_TOOL: ToolDefinition = {
34
4
  entry: seedCalculator,
35
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 { CRICKET_THERMOMETER_TOOL } from './tool/cricketThermometer/index';
3
4
  import { SEED_CALCULATOR_TOOL } from './tool/seedCalculator/index';
@@ -11,4 +12,3 @@ export const ALL_TOOLS: ToolDefinition[] = [
11
12
  DIGITAL_CARBON_TOOL
12
13
  ];
13
14
 
14
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);