@jjlmoya/utils-cooking 1.15.0 → 1.18.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 +1 -1
- package/src/index.ts +1 -1
- package/src/pages/[locale]/[slug].astro +3 -4
- package/src/tool/american-kitchen-converter/index.ts +3 -6
- package/src/tool/banana-ripeness/index.ts +3 -6
- package/src/tool/brine/index.ts +6 -7
- package/src/tool/cookware-guide/index.ts +3 -6
- package/src/tool/egg-timer/index.ts +6 -7
- package/src/tool/ingredient-rescaler/index.ts +3 -6
- package/src/tool/kitchen-timer/index.ts +3 -7
- package/src/tool/meringue-peak/index.ts +3 -6
- package/src/tool/mold-scaler/index.ts +3 -7
- package/src/tool/pizza/index.ts +6 -7
- package/src/tool/roux-guide/index.ts +3 -6
- package/src/tool/sourdough-calculator/index.ts +3 -6
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { cookingCategory, cookingCategory as templateCategory } from './category';
|
|
2
|
-
export
|
|
2
|
+
export const CookingCategorySEO = () => import('./category/seo.astro').then((m) => m.default);
|
|
3
3
|
|
|
4
4
|
export { AMERICAN_KITCHEN_CONVERTER_TOOL } from './tool/american-kitchen-converter';
|
|
5
5
|
export { MERENGUE_CALCULATOR_TOOL } from './tool/meringue-peak';
|
|
@@ -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:
|
|
64
|
+
Component: unknown;
|
|
66
65
|
locale: KnownLocale;
|
|
67
66
|
content: ToolLocaleContent;
|
|
68
67
|
localeUrls: Partial<Record<KnownLocale, string>>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import AmericanKitchenConverterComponent from './component.astro';
|
|
3
|
-
import AmericanKitchenConverterSEO from './seo.astro';
|
|
4
|
-
import AmericanKitchenConverterBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const americanKitchenConverter: CookingToolEntry = {
|
|
7
4
|
id: 'american-kitchen-converter',
|
|
@@ -30,7 +27,7 @@ export const americanKitchenConverter: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const AMERICAN_KITCHEN_CONVERTER_TOOL: ToolDefinition = {
|
|
32
29
|
entry: americanKitchenConverter,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import BananaComponent from './component.astro';
|
|
3
|
-
import BananaComponentSEO from './seo.astro';
|
|
4
|
-
import BananaComponentBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const bananaCare: CookingToolEntry = {
|
|
7
4
|
id: 'banana-ripeness',
|
|
@@ -30,7 +27,7 @@ export const bananaCare: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const BANANA_CARE_TOOL: ToolDefinition = {
|
|
32
29
|
entry: bananaCare,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
package/src/tool/brine/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from "../../types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
5
|
|
|
6
6
|
export const brine: CookingToolEntry = {
|
|
7
7
|
id: "brine-calculator",
|
|
@@ -28,11 +28,10 @@ export const brine: CookingToolEntry = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export { BrineComponent, BrineSEO, BrineBibliography };
|
|
32
31
|
|
|
33
32
|
export const BRINE_TOOL: ToolDefinition = {
|
|
34
33
|
entry: brine,
|
|
35
|
-
Component:
|
|
36
|
-
SEOComponent:
|
|
37
|
-
BibliographyComponent:
|
|
34
|
+
Component: () => import('./component.astro'),
|
|
35
|
+
SEOComponent: () => import('./seo.astro'),
|
|
36
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
38
37
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import CookwareGuideComponent from './component.astro';
|
|
3
|
-
import CookwareGuideSEO from './seo.astro';
|
|
4
|
-
import CookwareGuideBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const cookwareGuide: CookingToolEntry = {
|
|
7
4
|
id: 'cookware-guide',
|
|
@@ -30,7 +27,7 @@ export const cookwareGuide: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const COOKWARE_GUIDE_TOOL: ToolDefinition = {
|
|
32
29
|
entry: cookwareGuide,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from "../../types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
5
|
|
|
6
6
|
export const eggTimer: CookingToolEntry = {
|
|
7
7
|
id: "egg-timer",
|
|
@@ -29,11 +29,10 @@ export const eggTimer: CookingToolEntry = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export { EggTimerComponent, EggTimerSEO, EggTimerBibliography };
|
|
33
32
|
|
|
34
33
|
export const EGG_TIMER_TOOL: ToolDefinition = {
|
|
35
34
|
entry: eggTimer,
|
|
36
|
-
Component:
|
|
37
|
-
SEOComponent:
|
|
38
|
-
BibliographyComponent:
|
|
35
|
+
Component: () => import('./component.astro'),
|
|
36
|
+
SEOComponent: () => import('./seo.astro'),
|
|
37
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
39
38
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import IngredientRescalerComponent from './component.astro';
|
|
3
|
-
import IngredientRescalerSEO from './seo.astro';
|
|
4
|
-
import IngredientRescalerBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const ingredientRescaler: CookingToolEntry = {
|
|
7
4
|
id: 'ingredient-rescaler',
|
|
@@ -30,7 +27,7 @@ export const ingredientRescaler: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const INGREDIENT_RESCALER_TOOL: ToolDefinition = {
|
|
32
29
|
entry: ingredientRescaler,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import KitchenTimerComponent from './component.astro';
|
|
3
|
-
import KitchenTimerSEO from './seo.astro';
|
|
4
|
-
import KitchenTimerBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const kitchenTimer: CookingToolEntry = {
|
|
7
4
|
id: 'kitchen-timer',
|
|
@@ -28,11 +25,10 @@ export const kitchenTimer: CookingToolEntry = {
|
|
|
28
25
|
},
|
|
29
26
|
};
|
|
30
27
|
|
|
31
|
-
export { KitchenTimerComponent, KitchenTimerSEO, KitchenTimerBibliography };
|
|
32
28
|
|
|
33
29
|
export const KITCHEN_TIMER_TOOL: ToolDefinition = {
|
|
34
30
|
entry: kitchenTimer,
|
|
35
|
-
Component:
|
|
36
|
-
SEOComponent:
|
|
37
|
-
BibliographyComponent:
|
|
31
|
+
Component: () => import('./component.astro'),
|
|
32
|
+
SEOComponent: () => import('./seo.astro'),
|
|
33
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
38
34
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import MeringueComponent from './component.astro';
|
|
3
|
-
import MeringueComponentSEO from './seo.astro';
|
|
4
|
-
import MeringueComponentBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const meringuePeak: CookingToolEntry = {
|
|
7
4
|
id: 'meringue-peak',
|
|
@@ -30,7 +27,7 @@ export const meringuePeak: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const MERENGUE_CALCULATOR_TOOL: ToolDefinition = {
|
|
32
29
|
entry: meringuePeak,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import MoldScalerComponent from './component.astro';
|
|
3
|
-
import MoldScalerSEO from './seo.astro';
|
|
4
|
-
import MoldScalerBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const moldScaler: CookingToolEntry = {
|
|
7
4
|
id: 'mold-scaler',
|
|
@@ -28,11 +25,10 @@ export const moldScaler: CookingToolEntry = {
|
|
|
28
25
|
},
|
|
29
26
|
};
|
|
30
27
|
|
|
31
|
-
export { MoldScalerComponent, MoldScalerSEO, MoldScalerBibliography };
|
|
32
28
|
|
|
33
29
|
export const MOLD_SCALER_TOOL: ToolDefinition = {
|
|
34
30
|
entry: moldScaler,
|
|
35
|
-
Component:
|
|
36
|
-
SEOComponent:
|
|
37
|
-
BibliographyComponent:
|
|
31
|
+
Component: () => import('./component.astro'),
|
|
32
|
+
SEOComponent: () => import('./seo.astro'),
|
|
33
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
38
34
|
};
|
package/src/tool/pizza/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from "../../types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
5
|
|
|
6
6
|
export const pizza: CookingToolEntry = {
|
|
7
7
|
id: "pizza",
|
|
@@ -29,11 +29,10 @@ export const pizza: CookingToolEntry = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export { PizzaComponent, PizzaSEO, PizzaBibliography };
|
|
33
32
|
|
|
34
33
|
export const PIZZA_TOOL: ToolDefinition = {
|
|
35
34
|
entry: pizza,
|
|
36
|
-
Component:
|
|
37
|
-
SEOComponent:
|
|
38
|
-
BibliographyComponent:
|
|
35
|
+
Component: () => import('./component.astro'),
|
|
36
|
+
SEOComponent: () => import('./seo.astro'),
|
|
37
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
39
38
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import RouxGuideComponent from './component.astro';
|
|
3
|
-
import RouxGuideSEO from './seo.astro';
|
|
4
|
-
import RouxGuideBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const rouxGuide: CookingToolEntry = {
|
|
7
4
|
id: 'roux-guide',
|
|
@@ -30,7 +27,7 @@ export const rouxGuide: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const ROUX_GUIDE_TOOL: ToolDefinition = {
|
|
32
29
|
entry: rouxGuide,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { CookingToolEntry, ToolDefinition } from '../../types';
|
|
2
|
-
import SourdoughCalculatorComponent from './component.astro';
|
|
3
|
-
import SourdoughCalculatorSEO from './seo.astro';
|
|
4
|
-
import SourdoughCalculatorBibliography from './bibliography.astro';
|
|
5
2
|
|
|
6
3
|
export const sourdoughCalculator: CookingToolEntry = {
|
|
7
4
|
id: 'sourdough-calculator',
|
|
@@ -30,7 +27,7 @@ export const sourdoughCalculator: CookingToolEntry = {
|
|
|
30
27
|
|
|
31
28
|
export const SOURDOUGH_CALCULATOR_TOOL: ToolDefinition = {
|
|
32
29
|
entry: sourdoughCalculator,
|
|
33
|
-
Component:
|
|
34
|
-
SEOComponent:
|
|
35
|
-
BibliographyComponent:
|
|
30
|
+
Component: () => import('./component.astro'),
|
|
31
|
+
SEOComponent: () => import('./seo.astro'),
|
|
32
|
+
BibliographyComponent: () => import('./bibliography.astro'),
|
|
36
33
|
};
|