@jjlmoya/utils-nautical 1.12.0 → 1.13.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-nautical",
3
- "version": "1.12.0",
3
+ "version": "1.13.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,10 +1,10 @@
1
1
  import type { NauticalCategoryEntry, CategoryLocaleContent } from '../types';
2
- import { tideCalculator } from '../tool/tideCalculator';
3
- import { underKeel } from '../tool/underKeel';
4
- import { nauticalConverter } from '../tool/nauticalConverter';
5
- import { sailArea } from '../tool/sailArea';
6
- import { speedConverter } from '../tool/speedConverter';
7
- import { endurance } from '../tool/endurance';
2
+ import { tideCalculator } from '../tool/tideCalculator/entry';
3
+ import { underKeel } from '../tool/underKeel/entry';
4
+ import { nauticalConverter } from '../tool/nauticalConverter/entry';
5
+ import { sailArea } from '../tool/sailArea/entry';
6
+ import { speedConverter } from '../tool/speedConverter/entry';
7
+ import { endurance } from '../tool/endurance/entry';
8
8
 
9
9
  export type { CategoryLocaleContent };
10
10
 
package/src/entries.ts ADDED
@@ -0,0 +1,20 @@
1
+ export { endurance } from './tool/endurance/entry';
2
+ export type { EnduranceUI, EnduranceLocaleContent } from './tool/endurance/entry';
3
+ export { nauticalConverter } from './tool/nauticalConverter/entry';
4
+ export type { NauticalConverterUI, NauticalConverterLocaleContent } from './tool/nauticalConverter/entry';
5
+ export { sailArea } from './tool/sailArea/entry';
6
+ export type { SailAreaUI, SailAreaLocaleContent } from './tool/sailArea/entry';
7
+ export { speedConverter } from './tool/speedConverter/entry';
8
+ export type { SpeedConverterUI, SpeedConverterLocaleContent } from './tool/speedConverter/entry';
9
+ export { tideCalculator } from './tool/tideCalculator/entry';
10
+ export type { TideCalculatorUI, TideCalculatorLocaleContent } from './tool/tideCalculator/entry';
11
+ export { underKeel } from './tool/underKeel/entry';
12
+ export type { UnderKeelUI, UnderKeelLocaleContent } from './tool/underKeel/entry';
13
+ export { nauticalCategory } from './category';
14
+ import { endurance } from './tool/endurance/entry';
15
+ import { nauticalConverter } from './tool/nauticalConverter/entry';
16
+ import { sailArea } from './tool/sailArea/entry';
17
+ import { speedConverter } from './tool/speedConverter/entry';
18
+ import { tideCalculator } from './tool/tideCalculator/entry';
19
+ import { underKeel } from './tool/underKeel/entry';
20
+ export const ALL_ENTRIES = [endurance, nauticalConverter, sailArea, speedConverter, tideCalculator, underKeel];
@@ -0,0 +1,56 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface EnduranceUI {
4
+ [key: string]: string;
5
+ tankCapacityLabel: string;
6
+ mainTankLabel: string;
7
+ auxTankLabel: string;
8
+ currentFuelLabel: string;
9
+ seaConditionsLabel: string;
10
+ consumptionLabel: string;
11
+ cruiseSpeedLabel: string;
12
+ reserveLabel: string;
13
+ fuelPriceLabel: string;
14
+ maxRangeLabel: string;
15
+ realPerformanceLabel: string;
16
+ hoursLabel: string;
17
+ safeMilesLabel: string;
18
+ tankValueLabel: string;
19
+ inverseCalcLabel: string;
20
+ desiredDistLabel: string;
21
+ minFuelLabel: string;
22
+ warningLabel: string;
23
+ seaCalm: string;
24
+ seaLight: string;
25
+ seaModerate: string;
26
+ seaStorm: string;
27
+ faqTitle: string;
28
+ bibliographyTitle: string;
29
+ }
30
+
31
+ export type EnduranceLocaleContent = ToolLocaleContent<EnduranceUI>;
32
+
33
+ export const endurance: NauticalToolEntry<EnduranceUI> = {
34
+ id: 'endurance',
35
+ icons: {
36
+ bg: 'mdi:fuel',
37
+ fg: 'mdi:map-marker-distance',
38
+ },
39
+ i18n: {
40
+ es: () => import('./i18n/es').then((m) => m.content),
41
+ en: () => import('./i18n/en').then((m) => m.content),
42
+ fr: () => import('./i18n/fr').then((m) => m.content),
43
+ de: () => import('./i18n/de').then((m) => m.content),
44
+ id: () => import('./i18n/id').then((m) => m.content),
45
+ it: () => import('./i18n/it').then((m) => m.content),
46
+ ja: () => import('./i18n/ja').then((m) => m.content),
47
+ ko: () => import('./i18n/ko').then((m) => m.content),
48
+ nl: () => import('./i18n/nl').then((m) => m.content),
49
+ pl: () => import('./i18n/pl').then((m) => m.content),
50
+ pt: () => import('./i18n/pt').then((m) => m.content),
51
+ ru: () => import('./i18n/ru').then((m) => m.content),
52
+ sv: () => import('./i18n/sv').then((m) => m.content),
53
+ tr: () => import('./i18n/tr').then((m) => m.content),
54
+ zh: () => import('./i18n/zh').then((m) => m.content),
55
+ },
56
+ };
@@ -1,61 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface EnduranceUI {
4
- [key: string]: string;
5
- tankCapacityLabel: string;
6
- mainTankLabel: string;
7
- auxTankLabel: string;
8
- currentFuelLabel: string;
9
- seaConditionsLabel: string;
10
- consumptionLabel: string;
11
- cruiseSpeedLabel: string;
12
- reserveLabel: string;
13
- fuelPriceLabel: string;
14
- maxRangeLabel: string;
15
- realPerformanceLabel: string;
16
- hoursLabel: string;
17
- safeMilesLabel: string;
18
- tankValueLabel: string;
19
- inverseCalcLabel: string;
20
- desiredDistLabel: string;
21
- minFuelLabel: string;
22
- warningLabel: string;
23
- seaCalm: string;
24
- seaLight: string;
25
- seaModerate: string;
26
- seaStorm: string;
27
- faqTitle: string;
28
- bibliographyTitle: string;
29
- }
30
-
31
- export type EnduranceLocaleContent = ToolLocaleContent<EnduranceUI>;
32
-
33
- export const endurance: NauticalToolEntry<EnduranceUI> = {
34
- id: 'endurance',
35
- icons: {
36
- bg: 'mdi:fuel',
37
- fg: 'mdi:map-marker-distance',
38
- },
39
- i18n: {
40
- es: () => import('./i18n/es').then((m) => m.content),
41
- en: () => import('./i18n/en').then((m) => m.content),
42
- fr: () => import('./i18n/fr').then((m) => m.content),
43
- de: () => import('./i18n/de').then((m) => m.content),
44
- id: () => import('./i18n/id').then((m) => m.content),
45
- it: () => import('./i18n/it').then((m) => m.content),
46
- ja: () => import('./i18n/ja').then((m) => m.content),
47
- ko: () => import('./i18n/ko').then((m) => m.content),
48
- nl: () => import('./i18n/nl').then((m) => m.content),
49
- pl: () => import('./i18n/pl').then((m) => m.content),
50
- pt: () => import('./i18n/pt').then((m) => m.content),
51
- ru: () => import('./i18n/ru').then((m) => m.content),
52
- sv: () => import('./i18n/sv').then((m) => m.content),
53
- tr: () => import('./i18n/tr').then((m) => m.content),
54
- zh: () => import('./i18n/zh').then((m) => m.content),
55
- },
56
- };
57
-
58
-
1
+ import { endurance } from './entry';
2
+ export * from './entry';
59
3
  export const ENDURANCE_TOOL: ToolDefinition = {
60
4
  entry: endurance,
61
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,57 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface NauticalConverterUI {
4
+ [key: string]: string;
5
+ distanceCategoryLabel: string;
6
+ speedCategoryLabel: string;
7
+ depthCategoryLabel: string;
8
+ pressureCategoryLabel: string;
9
+ nmLabel: string;
10
+ kmLabel: string;
11
+ miLabel: string;
12
+ cableLabel: string;
13
+ knLabel: string;
14
+ kmhLabel: string;
15
+ msLabel: string;
16
+ mphLabel: string;
17
+ brozaLabel: string;
18
+ mLabel: string;
19
+ ftLabel: string;
20
+ mbarLabel: string;
21
+ mmhgLabel: string;
22
+ inhgLabel: string;
23
+ atmLabel: string;
24
+ windSeaLabel: string;
25
+ forceLabel: string;
26
+ effectLabel: string;
27
+ copyLabel: string;
28
+ faqTitle: string;
29
+ bibliographyTitle: string;
30
+ }
31
+
32
+ export type NauticalConverterLocaleContent = ToolLocaleContent<NauticalConverterUI>;
33
+
34
+ export const nauticalConverter: NauticalToolEntry<NauticalConverterUI> = {
35
+ id: 'nautical-converter',
36
+ icons: {
37
+ bg: 'mdi:swap-horizontal',
38
+ fg: 'mdi:compass',
39
+ },
40
+ i18n: {
41
+ es: () => import('./i18n/es').then((m) => m.content),
42
+ en: () => import('./i18n/en').then((m) => m.content),
43
+ fr: () => import('./i18n/fr').then((m) => m.content),
44
+ de: () => import('./i18n/de').then((m) => m.content),
45
+ id: () => import('./i18n/id').then((m) => m.content),
46
+ it: () => import('./i18n/it').then((m) => m.content),
47
+ ja: () => import('./i18n/ja').then((m) => m.content),
48
+ ko: () => import('./i18n/ko').then((m) => m.content),
49
+ nl: () => import('./i18n/nl').then((m) => m.content),
50
+ pl: () => import('./i18n/pl').then((m) => m.content),
51
+ pt: () => import('./i18n/pt').then((m) => m.content),
52
+ ru: () => import('./i18n/ru').then((m) => m.content),
53
+ sv: () => import('./i18n/sv').then((m) => m.content),
54
+ tr: () => import('./i18n/tr').then((m) => m.content),
55
+ zh: () => import('./i18n/zh').then((m) => m.content),
56
+ },
57
+ };
@@ -1,62 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface NauticalConverterUI {
4
- [key: string]: string;
5
- distanceCategoryLabel: string;
6
- speedCategoryLabel: string;
7
- depthCategoryLabel: string;
8
- pressureCategoryLabel: string;
9
- nmLabel: string;
10
- kmLabel: string;
11
- miLabel: string;
12
- cableLabel: string;
13
- knLabel: string;
14
- kmhLabel: string;
15
- msLabel: string;
16
- mphLabel: string;
17
- brozaLabel: string;
18
- mLabel: string;
19
- ftLabel: string;
20
- mbarLabel: string;
21
- mmhgLabel: string;
22
- inhgLabel: string;
23
- atmLabel: string;
24
- windSeaLabel: string;
25
- forceLabel: string;
26
- effectLabel: string;
27
- copyLabel: string;
28
- faqTitle: string;
29
- bibliographyTitle: string;
30
- }
31
-
32
- export type NauticalConverterLocaleContent = ToolLocaleContent<NauticalConverterUI>;
33
-
34
- export const nauticalConverter: NauticalToolEntry<NauticalConverterUI> = {
35
- id: 'nautical-converter',
36
- icons: {
37
- bg: 'mdi:swap-horizontal',
38
- fg: 'mdi:compass',
39
- },
40
- i18n: {
41
- es: () => import('./i18n/es').then((m) => m.content),
42
- en: () => import('./i18n/en').then((m) => m.content),
43
- fr: () => import('./i18n/fr').then((m) => m.content),
44
- de: () => import('./i18n/de').then((m) => m.content),
45
- id: () => import('./i18n/id').then((m) => m.content),
46
- it: () => import('./i18n/it').then((m) => m.content),
47
- ja: () => import('./i18n/ja').then((m) => m.content),
48
- ko: () => import('./i18n/ko').then((m) => m.content),
49
- nl: () => import('./i18n/nl').then((m) => m.content),
50
- pl: () => import('./i18n/pl').then((m) => m.content),
51
- pt: () => import('./i18n/pt').then((m) => m.content),
52
- ru: () => import('./i18n/ru').then((m) => m.content),
53
- sv: () => import('./i18n/sv').then((m) => m.content),
54
- tr: () => import('./i18n/tr').then((m) => m.content),
55
- zh: () => import('./i18n/zh').then((m) => m.content),
56
- },
57
- };
58
-
59
-
1
+ import { nauticalConverter } from './entry';
2
+ export * from './entry';
60
3
  export const NAUTICAL_CONVERTER_TOOL: ToolDefinition = {
61
4
  entry: nauticalConverter,
62
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,53 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface SailAreaUI {
4
+ [key: string]: string;
5
+ hullSectionLabel: string;
6
+ totalMassLabel: string;
7
+ rigSystemLabel: string;
8
+ intendedUseLabel: string;
9
+ rigGeometryLabel: string;
10
+ sailConfigLabel: string;
11
+ genoaOverlapLabel: string;
12
+ foqueLabel: string;
13
+ genovaLabel: string;
14
+ sadRatioLabel: string;
15
+ totalAreaLabel: string;
16
+ performanceLabel: string;
17
+ sloopLabel: string;
18
+ cutterLabel: string;
19
+ ketchLabel: string;
20
+ cruiserLabel: string;
21
+ performanceTypeLabel: string;
22
+ racerLabel: string;
23
+ exportPdfLabel: string;
24
+ faqTitle: string;
25
+ bibliographyTitle: string;
26
+ }
27
+
28
+ export type SailAreaLocaleContent = ToolLocaleContent<SailAreaUI>;
29
+
30
+ export const sailArea: NauticalToolEntry<SailAreaUI> = {
31
+ id: 'sail-area',
32
+ icons: {
33
+ bg: 'mdi:sail-boat',
34
+ fg: 'mdi:wind-power',
35
+ },
36
+ i18n: {
37
+ es: () => import('./i18n/es').then((m) => m.content),
38
+ en: () => import('./i18n/en').then((m) => m.content),
39
+ fr: () => import('./i18n/fr').then((m) => m.content),
40
+ de: () => import('./i18n/de').then((m) => m.content),
41
+ id: () => import('./i18n/id').then((m) => m.content),
42
+ it: () => import('./i18n/it').then((m) => m.content),
43
+ ja: () => import('./i18n/ja').then((m) => m.content),
44
+ ko: () => import('./i18n/ko').then((m) => m.content),
45
+ nl: () => import('./i18n/nl').then((m) => m.content),
46
+ pl: () => import('./i18n/pl').then((m) => m.content),
47
+ pt: () => import('./i18n/pt').then((m) => m.content),
48
+ ru: () => import('./i18n/ru').then((m) => m.content),
49
+ sv: () => import('./i18n/sv').then((m) => m.content),
50
+ tr: () => import('./i18n/tr').then((m) => m.content),
51
+ zh: () => import('./i18n/zh').then((m) => m.content),
52
+ },
53
+ };
@@ -1,58 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface SailAreaUI {
4
- [key: string]: string;
5
- hullSectionLabel: string;
6
- totalMassLabel: string;
7
- rigSystemLabel: string;
8
- intendedUseLabel: string;
9
- rigGeometryLabel: string;
10
- sailConfigLabel: string;
11
- genoaOverlapLabel: string;
12
- foqueLabel: string;
13
- genovaLabel: string;
14
- sadRatioLabel: string;
15
- totalAreaLabel: string;
16
- performanceLabel: string;
17
- sloopLabel: string;
18
- cutterLabel: string;
19
- ketchLabel: string;
20
- cruiserLabel: string;
21
- performanceTypeLabel: string;
22
- racerLabel: string;
23
- exportPdfLabel: string;
24
- faqTitle: string;
25
- bibliographyTitle: string;
26
- }
27
-
28
- export type SailAreaLocaleContent = ToolLocaleContent<SailAreaUI>;
29
-
30
- export const sailArea: NauticalToolEntry<SailAreaUI> = {
31
- id: 'sail-area',
32
- icons: {
33
- bg: 'mdi:sail-boat',
34
- fg: 'mdi:wind-power',
35
- },
36
- i18n: {
37
- es: () => import('./i18n/es').then((m) => m.content),
38
- en: () => import('./i18n/en').then((m) => m.content),
39
- fr: () => import('./i18n/fr').then((m) => m.content),
40
- de: () => import('./i18n/de').then((m) => m.content),
41
- id: () => import('./i18n/id').then((m) => m.content),
42
- it: () => import('./i18n/it').then((m) => m.content),
43
- ja: () => import('./i18n/ja').then((m) => m.content),
44
- ko: () => import('./i18n/ko').then((m) => m.content),
45
- nl: () => import('./i18n/nl').then((m) => m.content),
46
- pl: () => import('./i18n/pl').then((m) => m.content),
47
- pt: () => import('./i18n/pt').then((m) => m.content),
48
- ru: () => import('./i18n/ru').then((m) => m.content),
49
- sv: () => import('./i18n/sv').then((m) => m.content),
50
- tr: () => import('./i18n/tr').then((m) => m.content),
51
- zh: () => import('./i18n/zh').then((m) => m.content),
52
- },
53
- };
54
-
55
-
1
+ import { sailArea } from './entry';
2
+ export * from './entry';
56
3
  export const SAIL_AREA_TOOL: ToolDefinition = {
57
4
  entry: sailArea,
58
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,46 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface SpeedConverterUI {
4
+ [key: string]: string;
5
+ knLabel: string;
6
+ kmhLabel: string;
7
+ msLabel: string;
8
+ mphLabel: string;
9
+ beaufortTitle: string;
10
+ forceLabel: string;
11
+ descriptionLabel: string;
12
+ knotsLabel: string;
13
+ effectLabel: string;
14
+ seaStateLabel: string;
15
+ windEffectLabel: string;
16
+ faqTitle: string;
17
+ bibliographyTitle: string;
18
+ beaufortDataJson: string;
19
+ }
20
+
21
+ export type SpeedConverterLocaleContent = ToolLocaleContent<SpeedConverterUI>;
22
+
23
+ export const speedConverter: NauticalToolEntry<SpeedConverterUI> = {
24
+ id: 'speed-converter',
25
+ icons: {
26
+ bg: 'mdi:speedometer',
27
+ fg: 'mdi:weather-windy',
28
+ },
29
+ i18n: {
30
+ es: () => import('./i18n/es').then((m) => m.content),
31
+ en: () => import('./i18n/en').then((m) => m.content),
32
+ fr: () => import('./i18n/fr').then((m) => m.content),
33
+ de: () => import('./i18n/de').then((m) => m.content),
34
+ id: () => import('./i18n/id').then((m) => m.content),
35
+ it: () => import('./i18n/it').then((m) => m.content),
36
+ ja: () => import('./i18n/ja').then((m) => m.content),
37
+ ko: () => import('./i18n/ko').then((m) => m.content),
38
+ nl: () => import('./i18n/nl').then((m) => m.content),
39
+ pl: () => import('./i18n/pl').then((m) => m.content),
40
+ pt: () => import('./i18n/pt').then((m) => m.content),
41
+ ru: () => import('./i18n/ru').then((m) => m.content),
42
+ sv: () => import('./i18n/sv').then((m) => m.content),
43
+ tr: () => import('./i18n/tr').then((m) => m.content),
44
+ zh: () => import('./i18n/zh').then((m) => m.content),
45
+ },
46
+ };
@@ -1,51 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface SpeedConverterUI {
4
- [key: string]: string;
5
- knLabel: string;
6
- kmhLabel: string;
7
- msLabel: string;
8
- mphLabel: string;
9
- beaufortTitle: string;
10
- forceLabel: string;
11
- descriptionLabel: string;
12
- knotsLabel: string;
13
- effectLabel: string;
14
- seaStateLabel: string;
15
- windEffectLabel: string;
16
- faqTitle: string;
17
- bibliographyTitle: string;
18
- beaufortDataJson: string;
19
- }
20
-
21
- export type SpeedConverterLocaleContent = ToolLocaleContent<SpeedConverterUI>;
22
-
23
- export const speedConverter: NauticalToolEntry<SpeedConverterUI> = {
24
- id: 'speed-converter',
25
- icons: {
26
- bg: 'mdi:speedometer',
27
- fg: 'mdi:weather-windy',
28
- },
29
- i18n: {
30
- es: () => import('./i18n/es').then((m) => m.content),
31
- en: () => import('./i18n/en').then((m) => m.content),
32
- fr: () => import('./i18n/fr').then((m) => m.content),
33
- de: () => import('./i18n/de').then((m) => m.content),
34
- id: () => import('./i18n/id').then((m) => m.content),
35
- it: () => import('./i18n/it').then((m) => m.content),
36
- ja: () => import('./i18n/ja').then((m) => m.content),
37
- ko: () => import('./i18n/ko').then((m) => m.content),
38
- nl: () => import('./i18n/nl').then((m) => m.content),
39
- pl: () => import('./i18n/pl').then((m) => m.content),
40
- pt: () => import('./i18n/pt').then((m) => m.content),
41
- ru: () => import('./i18n/ru').then((m) => m.content),
42
- sv: () => import('./i18n/sv').then((m) => m.content),
43
- tr: () => import('./i18n/tr').then((m) => m.content),
44
- zh: () => import('./i18n/zh').then((m) => m.content),
45
- },
46
- };
47
-
48
-
1
+ import { speedConverter } from './entry';
2
+ export * from './entry';
49
3
  export const SPEED_CONVERTER_TOOL: ToolDefinition = {
50
4
  entry: speedConverter,
51
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,50 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface TideCalculatorUI {
4
+ [key: string]: string;
5
+ parametersLabel: string;
6
+ highTideLabel: string;
7
+ lowTideLabel: string;
8
+ targetTimeLabel: string;
9
+ estimatedHeightLabel: string;
10
+ metersLabel: string;
11
+ amplitudeLabel: string;
12
+ durationLabel: string;
13
+ tableBreakdownLabel: string;
14
+ tableHourLabel: string;
15
+ tableStateLabel: string;
16
+ tableStartLabel: string;
17
+ tableEndLabel: string;
18
+ statusUpLabel: string;
19
+ statusDownLabel: string;
20
+ statusOutOfRange: string;
21
+ faqTitle: string;
22
+ bibliographyTitle: string;
23
+ }
24
+
25
+ export type TideCalculatorLocaleContent = ToolLocaleContent<TideCalculatorUI>;
26
+
27
+ export const tideCalculator: NauticalToolEntry<TideCalculatorUI> = {
28
+ id: 'tide-calculator',
29
+ icons: {
30
+ bg: 'mdi:waves',
31
+ fg: 'mdi:sailing',
32
+ },
33
+ i18n: {
34
+ es: () => import('./i18n/es').then((m) => m.content),
35
+ en: () => import('./i18n/en').then((m) => m.content),
36
+ fr: () => import('./i18n/fr').then((m) => m.content),
37
+ de: () => import('./i18n/de').then((m) => m.content),
38
+ id: () => import('./i18n/id').then((m) => m.content),
39
+ it: () => import('./i18n/it').then((m) => m.content),
40
+ ja: () => import('./i18n/ja').then((m) => m.content),
41
+ ko: () => import('./i18n/ko').then((m) => m.content),
42
+ nl: () => import('./i18n/nl').then((m) => m.content),
43
+ pl: () => import('./i18n/pl').then((m) => m.content),
44
+ pt: () => import('./i18n/pt').then((m) => m.content),
45
+ ru: () => import('./i18n/ru').then((m) => m.content),
46
+ sv: () => import('./i18n/sv').then((m) => m.content),
47
+ tr: () => import('./i18n/tr').then((m) => m.content),
48
+ zh: () => import('./i18n/zh').then((m) => m.content),
49
+ },
50
+ };
@@ -1,55 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface TideCalculatorUI {
4
- [key: string]: string;
5
- parametersLabel: string;
6
- highTideLabel: string;
7
- lowTideLabel: string;
8
- targetTimeLabel: string;
9
- estimatedHeightLabel: string;
10
- metersLabel: string;
11
- amplitudeLabel: string;
12
- durationLabel: string;
13
- tableBreakdownLabel: string;
14
- tableHourLabel: string;
15
- tableStateLabel: string;
16
- tableStartLabel: string;
17
- tableEndLabel: string;
18
- statusUpLabel: string;
19
- statusDownLabel: string;
20
- statusOutOfRange: string;
21
- faqTitle: string;
22
- bibliographyTitle: string;
23
- }
24
-
25
- export type TideCalculatorLocaleContent = ToolLocaleContent<TideCalculatorUI>;
26
-
27
- export const tideCalculator: NauticalToolEntry<TideCalculatorUI> = {
28
- id: 'tide-calculator',
29
- icons: {
30
- bg: 'mdi:waves',
31
- fg: 'mdi:sailing',
32
- },
33
- i18n: {
34
- es: () => import('./i18n/es').then((m) => m.content),
35
- en: () => import('./i18n/en').then((m) => m.content),
36
- fr: () => import('./i18n/fr').then((m) => m.content),
37
- de: () => import('./i18n/de').then((m) => m.content),
38
- id: () => import('./i18n/id').then((m) => m.content),
39
- it: () => import('./i18n/it').then((m) => m.content),
40
- ja: () => import('./i18n/ja').then((m) => m.content),
41
- ko: () => import('./i18n/ko').then((m) => m.content),
42
- nl: () => import('./i18n/nl').then((m) => m.content),
43
- pl: () => import('./i18n/pl').then((m) => m.content),
44
- pt: () => import('./i18n/pt').then((m) => m.content),
45
- ru: () => import('./i18n/ru').then((m) => m.content),
46
- sv: () => import('./i18n/sv').then((m) => m.content),
47
- tr: () => import('./i18n/tr').then((m) => m.content),
48
- zh: () => import('./i18n/zh').then((m) => m.content),
49
- },
50
- };
51
-
52
-
1
+ import { tideCalculator } from './entry';
2
+ export * from './entry';
53
3
  export const TIDE_CALCULATOR_TOOL: ToolDefinition = {
54
4
  entry: tideCalculator,
55
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,49 @@
1
+ import type { NauticalToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface UnderKeelUI {
4
+ [key: string]: string;
5
+ parametersLabel: string;
6
+ boatDraftLabel: string;
7
+ chartDepthLabel: string;
8
+ safetyMarginLabel: string;
9
+ highTideLabel: string;
10
+ lowTideLabel: string;
11
+ metersLabel: string;
12
+ passWindowLabel: string;
13
+ neededLabel: string;
14
+ tideRequiredLabel: string;
15
+ statusNeverLabel: string;
16
+ statusAlwaysLabel: string;
17
+ statusFromLabel: string;
18
+ statusUntilLabel: string;
19
+ bottomLabel: string;
20
+ faqTitle: string;
21
+ bibliographyTitle: string;
22
+ }
23
+
24
+ export type UnderKeelLocaleContent = ToolLocaleContent<UnderKeelUI>;
25
+
26
+ export const underKeel: NauticalToolEntry<UnderKeelUI> = {
27
+ id: 'under-keel',
28
+ icons: {
29
+ bg: 'mdi:ferry',
30
+ fg: 'mdi:anchor',
31
+ },
32
+ i18n: {
33
+ es: () => import('./i18n/es').then((m) => m.content),
34
+ en: () => import('./i18n/en').then((m) => m.content),
35
+ fr: () => import('./i18n/fr').then((m) => m.content),
36
+ de: () => import('./i18n/de').then((m) => m.content),
37
+ id: () => import('./i18n/id').then((m) => m.content),
38
+ it: () => import('./i18n/it').then((m) => m.content),
39
+ ja: () => import('./i18n/ja').then((m) => m.content),
40
+ ko: () => import('./i18n/ko').then((m) => m.content),
41
+ nl: () => import('./i18n/nl').then((m) => m.content),
42
+ pl: () => import('./i18n/pl').then((m) => m.content),
43
+ pt: () => import('./i18n/pt').then((m) => m.content),
44
+ ru: () => import('./i18n/ru').then((m) => m.content),
45
+ sv: () => import('./i18n/sv').then((m) => m.content),
46
+ tr: () => import('./i18n/tr').then((m) => m.content),
47
+ zh: () => import('./i18n/zh').then((m) => m.content),
48
+ },
49
+ };
@@ -1,54 +1,5 @@
1
- import type { NauticalToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface UnderKeelUI {
4
- [key: string]: string;
5
- parametersLabel: string;
6
- boatDraftLabel: string;
7
- chartDepthLabel: string;
8
- safetyMarginLabel: string;
9
- highTideLabel: string;
10
- lowTideLabel: string;
11
- metersLabel: string;
12
- passWindowLabel: string;
13
- neededLabel: string;
14
- tideRequiredLabel: string;
15
- statusNeverLabel: string;
16
- statusAlwaysLabel: string;
17
- statusFromLabel: string;
18
- statusUntilLabel: string;
19
- bottomLabel: string;
20
- faqTitle: string;
21
- bibliographyTitle: string;
22
- }
23
-
24
- export type UnderKeelLocaleContent = ToolLocaleContent<UnderKeelUI>;
25
-
26
- export const underKeel: NauticalToolEntry<UnderKeelUI> = {
27
- id: 'under-keel',
28
- icons: {
29
- bg: 'mdi:ferry',
30
- fg: 'mdi:anchor',
31
- },
32
- i18n: {
33
- es: () => import('./i18n/es').then((m) => m.content),
34
- en: () => import('./i18n/en').then((m) => m.content),
35
- fr: () => import('./i18n/fr').then((m) => m.content),
36
- de: () => import('./i18n/de').then((m) => m.content),
37
- id: () => import('./i18n/id').then((m) => m.content),
38
- it: () => import('./i18n/it').then((m) => m.content),
39
- ja: () => import('./i18n/ja').then((m) => m.content),
40
- ko: () => import('./i18n/ko').then((m) => m.content),
41
- nl: () => import('./i18n/nl').then((m) => m.content),
42
- pl: () => import('./i18n/pl').then((m) => m.content),
43
- pt: () => import('./i18n/pt').then((m) => m.content),
44
- ru: () => import('./i18n/ru').then((m) => m.content),
45
- sv: () => import('./i18n/sv').then((m) => m.content),
46
- tr: () => import('./i18n/tr').then((m) => m.content),
47
- zh: () => import('./i18n/zh').then((m) => m.content),
48
- },
49
- };
50
-
51
-
1
+ import { underKeel } from './entry';
2
+ export * from './entry';
52
3
  export const UNDER_KEEL_TOOL: ToolDefinition = {
53
4
  entry: underKeel,
54
5
  Component: () => import('./component.astro'),
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import { TIDE_CALCULATOR_TOOL } from './tool/tideCalculator';
2
3
  import { UNDER_KEEL_TOOL } from './tool/underKeel';
3
4
  import { NAUTICAL_CONVERTER_TOOL } from './tool/nauticalConverter';
@@ -24,4 +25,3 @@ export {
24
25
  ENDURANCE_TOOL,
25
26
  };
26
27
 
27
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);