@jjlmoya/utils-pets 1.9.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 +7 -4
- package/scripts/postinstall.mjs +27 -0
- package/src/category/index.ts +2 -2
- package/src/entries.ts +8 -0
- package/src/tool/petAge/component.astro +0 -652
- package/src/tool/petAge/entry.ts +64 -0
- package/src/tool/petAge/index.ts +2 -66
- package/src/tool/petAge/pet-age-calculator.css +650 -0
- package/src/tool/petRation/component.astro +0 -429
- package/src/tool/petRation/entry.ts +63 -0
- package/src/tool/petRation/index.ts +2 -65
- package/src/tool/petRation/pet-daily-ration-calculator.css +427 -0
- package/src/tools.ts +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { PetToolEntry, ToolLocaleContent } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface PetAgeUI {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
toolTitle: string;
|
|
6
|
+
toolSubtitle: string;
|
|
7
|
+
petNameLabel: string;
|
|
8
|
+
petNamePlaceholder: string;
|
|
9
|
+
petTypeDog: string;
|
|
10
|
+
petTypeCat: string;
|
|
11
|
+
sizeSmall: string;
|
|
12
|
+
sizeMedium: string;
|
|
13
|
+
sizeLarge: string;
|
|
14
|
+
sizeGiant: string;
|
|
15
|
+
birthYearLabel: string;
|
|
16
|
+
humanAgeLabel: string;
|
|
17
|
+
humanAgeUnit: string;
|
|
18
|
+
lifeStageLabel: string;
|
|
19
|
+
milestoneLabel: string;
|
|
20
|
+
shareBtn: string;
|
|
21
|
+
shareSuccess: string;
|
|
22
|
+
humanAgeTitle: string;
|
|
23
|
+
humanAgeYears: string;
|
|
24
|
+
recalculateBtn: string;
|
|
25
|
+
realAgeLabel: string;
|
|
26
|
+
defaultPetName: string;
|
|
27
|
+
stageDogPuppy: string;
|
|
28
|
+
stageDogTeen: string;
|
|
29
|
+
stageDogAdult: string;
|
|
30
|
+
stageDogMature: string;
|
|
31
|
+
stageDogSenior: string;
|
|
32
|
+
stageCatKitten: string;
|
|
33
|
+
stageCatYouth: string;
|
|
34
|
+
stageCatReign: string;
|
|
35
|
+
stageCatVeteran: string;
|
|
36
|
+
stageCatVenerable: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type PetAgeLocaleContent = ToolLocaleContent<PetAgeUI>;
|
|
40
|
+
|
|
41
|
+
export const petAge: PetToolEntry<PetAgeUI> = {
|
|
42
|
+
id: 'pet-age',
|
|
43
|
+
icons: {
|
|
44
|
+
bg: 'mdi:paw',
|
|
45
|
+
fg: 'mdi:cake-variant',
|
|
46
|
+
},
|
|
47
|
+
i18n: {
|
|
48
|
+
de: () => import('./i18n/de').then((m) => m.content),
|
|
49
|
+
en: () => import('./i18n/en').then((m) => m.content),
|
|
50
|
+
es: () => import('./i18n/es').then((m) => m.content),
|
|
51
|
+
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
52
|
+
id: () => import('./i18n/id').then((m) => m.content),
|
|
53
|
+
it: () => import('./i18n/it').then((m) => m.content),
|
|
54
|
+
ja: () => import('./i18n/ja').then((m) => m.content),
|
|
55
|
+
ko: () => import('./i18n/ko').then((m) => m.content),
|
|
56
|
+
nl: () => import('./i18n/nl').then((m) => m.content),
|
|
57
|
+
pl: () => import('./i18n/pl').then((m) => m.content),
|
|
58
|
+
pt: () => import('./i18n/pt').then((m) => m.content),
|
|
59
|
+
ru: () => import('./i18n/ru').then((m) => m.content),
|
|
60
|
+
sv: () => import('./i18n/sv').then((m) => m.content),
|
|
61
|
+
tr: () => import('./i18n/tr').then((m) => m.content),
|
|
62
|
+
zh: () => import('./i18n/zh').then((m) => m.content),
|
|
63
|
+
},
|
|
64
|
+
};
|
package/src/tool/petAge/index.ts
CHANGED
|
@@ -1,69 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface PetAgeUI {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
toolTitle: string;
|
|
6
|
-
toolSubtitle: string;
|
|
7
|
-
petNameLabel: string;
|
|
8
|
-
petNamePlaceholder: string;
|
|
9
|
-
petTypeDog: string;
|
|
10
|
-
petTypeCat: string;
|
|
11
|
-
sizeSmall: string;
|
|
12
|
-
sizeMedium: string;
|
|
13
|
-
sizeLarge: string;
|
|
14
|
-
sizeGiant: string;
|
|
15
|
-
birthYearLabel: string;
|
|
16
|
-
humanAgeLabel: string;
|
|
17
|
-
humanAgeUnit: string;
|
|
18
|
-
lifeStageLabel: string;
|
|
19
|
-
milestoneLabel: string;
|
|
20
|
-
shareBtn: string;
|
|
21
|
-
shareSuccess: string;
|
|
22
|
-
humanAgeTitle: string;
|
|
23
|
-
humanAgeYears: string;
|
|
24
|
-
recalculateBtn: string;
|
|
25
|
-
realAgeLabel: string;
|
|
26
|
-
defaultPetName: string;
|
|
27
|
-
stageDogPuppy: string;
|
|
28
|
-
stageDogTeen: string;
|
|
29
|
-
stageDogAdult: string;
|
|
30
|
-
stageDogMature: string;
|
|
31
|
-
stageDogSenior: string;
|
|
32
|
-
stageCatKitten: string;
|
|
33
|
-
stageCatYouth: string;
|
|
34
|
-
stageCatReign: string;
|
|
35
|
-
stageCatVeteran: string;
|
|
36
|
-
stageCatVenerable: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type PetAgeLocaleContent = ToolLocaleContent<PetAgeUI>;
|
|
40
|
-
|
|
41
|
-
export const petAge: PetToolEntry<PetAgeUI> = {
|
|
42
|
-
id: 'pet-age',
|
|
43
|
-
icons: {
|
|
44
|
-
bg: 'mdi:paw',
|
|
45
|
-
fg: 'mdi:cake-variant',
|
|
46
|
-
},
|
|
47
|
-
i18n: {
|
|
48
|
-
de: () => import('./i18n/de').then((m) => m.content),
|
|
49
|
-
en: () => import('./i18n/en').then((m) => m.content),
|
|
50
|
-
es: () => import('./i18n/es').then((m) => m.content),
|
|
51
|
-
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
52
|
-
id: () => import('./i18n/id').then((m) => m.content),
|
|
53
|
-
it: () => import('./i18n/it').then((m) => m.content),
|
|
54
|
-
ja: () => import('./i18n/ja').then((m) => m.content),
|
|
55
|
-
ko: () => import('./i18n/ko').then((m) => m.content),
|
|
56
|
-
nl: () => import('./i18n/nl').then((m) => m.content),
|
|
57
|
-
pl: () => import('./i18n/pl').then((m) => m.content),
|
|
58
|
-
pt: () => import('./i18n/pt').then((m) => m.content),
|
|
59
|
-
ru: () => import('./i18n/ru').then((m) => m.content),
|
|
60
|
-
sv: () => import('./i18n/sv').then((m) => m.content),
|
|
61
|
-
tr: () => import('./i18n/tr').then((m) => m.content),
|
|
62
|
-
zh: () => import('./i18n/zh').then((m) => m.content),
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
import { petAge } from './entry';
|
|
2
|
+
export * from './entry';
|
|
67
3
|
export const PET_AGE_TOOL: ToolDefinition = {
|
|
68
4
|
entry: petAge,
|
|
69
5
|
Component: () => import('./component.astro'),
|