@cavuno/board 3.0.0 → 3.2.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/CHANGELOG.md +21 -0
- package/README.md +11 -0
- package/dist/blog-DGBHmExV.d.mts +29 -0
- package/dist/blog-iV9XEIGf.d.ts +29 -0
- package/dist/{salaries-ChSqDBAM.d.mts → board-BJbXd_9_.d.mts} +14 -27
- package/dist/{salaries-BahBpxWT.d.ts → board-JhdUWIoq.d.ts} +14 -27
- package/dist/breadcrumbs-1hMjcsqA.d.mts +171 -0
- package/dist/breadcrumbs-DexU07TT.d.ts +171 -0
- package/dist/chunk-2ETP5UH4.mjs +271 -0
- package/dist/chunk-DLSO6XXY.mjs +33 -0
- package/dist/chunk-IJCJ26SQ.mjs +596 -0
- package/dist/chunk-L7ZOYWHW.mjs +98 -0
- package/dist/chunk-LUGJWOT7.mjs +96 -0
- package/dist/chunk-NXY3OWGF.mjs +1060 -0
- package/dist/chunk-STE77MAT.mjs +844 -0
- package/dist/filters.mjs +7 -668
- package/dist/format.d.mts +2 -1
- package/dist/format.d.ts +2 -1
- package/dist/format.js +592 -523
- package/dist/format.mjs +19 -680
- package/dist/go.mjs +4 -29
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +22 -278
- package/dist/paths.mjs +20 -77
- package/dist/route-contract.mjs +30 -1079
- package/dist/seo.d.mts +14 -171
- package/dist/seo.d.ts +14 -171
- package/dist/seo.js +1 -1
- package/dist/seo.mjs +24 -1399
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.mjs +5 -31
- package/dist/sitemap.d.mts +2 -2
- package/dist/sitemap.d.ts +2 -2
- package/dist/sitemap.mjs +20 -96
- package/dist/well-known.mjs +4 -421
- package/package.json +6 -3
- package/skills/cavuno-board-account/SKILL.md +4 -0
- package/skills/cavuno-board-api-client/SKILL.md +4 -0
- package/skills/cavuno-board-applications/SKILL.md +4 -0
- package/skills/cavuno-board-auth/SKILL.md +4 -0
- package/skills/cavuno-board-blog/SKILL.md +4 -0
- package/skills/cavuno-board-companies/SKILL.md +4 -0
- package/skills/cavuno-board-errors/SKILL.md +4 -0
- package/skills/cavuno-board-filters/SKILL.md +4 -0
- package/skills/cavuno-board-format/SKILL.md +4 -0
- package/skills/cavuno-board-i18n/SKILL.md +4 -0
- package/skills/cavuno-board-job-alerts/SKILL.md +4 -0
- package/skills/cavuno-board-jobs/SKILL.md +4 -0
- package/skills/cavuno-board-messaging/SKILL.md +4 -0
- package/skills/cavuno-board-paywall/SKILL.md +4 -0
- package/skills/cavuno-board-post-a-job/SKILL.md +4 -0
- package/skills/cavuno-board-salaries/SKILL.md +4 -0
- package/skills/cavuno-board-search-suggestions/SKILL.md +4 -0
- package/skills/cavuno-board-seo/SKILL.md +4 -0
- package/skills/cavuno-board-server-sessions/SKILL.md +4 -0
- package/skills/cavuno-board-setup/SKILL.md +4 -0
- package/skills/cavuno-board-sitemap/SKILL.md +4 -0
- package/skills/cavuno-board-smoke-test/SKILL.md +4 -0
- package/skills/manifest.json +1 -1
- package/dist/board-NE98PlwN.d.ts +0 -16
- package/dist/board-muu8BI8P.d.mts +0 -16
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSalaryLexicon
|
|
3
|
+
} from "./chunk-IJCJ26SQ.mjs";
|
|
4
|
+
|
|
5
|
+
// src/format/labels.ts
|
|
6
|
+
var EN_LABELS = {
|
|
7
|
+
// remoteOption
|
|
8
|
+
on_site: "On-site",
|
|
9
|
+
hybrid: "Hybrid",
|
|
10
|
+
remote: "Remote",
|
|
11
|
+
// employmentType
|
|
12
|
+
full_time: "Full-time",
|
|
13
|
+
part_time: "Part-time",
|
|
14
|
+
contract: "Contract",
|
|
15
|
+
internship: "Internship",
|
|
16
|
+
temporary: "Temporary",
|
|
17
|
+
volunteer: "Volunteer",
|
|
18
|
+
other: "Other"
|
|
19
|
+
};
|
|
20
|
+
var DE_LABELS = {
|
|
21
|
+
on_site: "Vor Ort",
|
|
22
|
+
hybrid: "Hybrid",
|
|
23
|
+
remote: "Remote",
|
|
24
|
+
full_time: "Vollzeit",
|
|
25
|
+
part_time: "Teilzeit",
|
|
26
|
+
contract: "Freiberuflich",
|
|
27
|
+
internship: "Praktikum",
|
|
28
|
+
temporary: "Befristet",
|
|
29
|
+
volunteer: "Ehrenamtlich",
|
|
30
|
+
other: "Sonstiges"
|
|
31
|
+
};
|
|
32
|
+
var FR_LABELS = {
|
|
33
|
+
on_site: "Sur site",
|
|
34
|
+
hybrid: "Hybride",
|
|
35
|
+
remote: "T\xE9l\xE9travail",
|
|
36
|
+
full_time: "Temps plein",
|
|
37
|
+
part_time: "Temps partiel",
|
|
38
|
+
contract: "Contrat",
|
|
39
|
+
internship: "Stage",
|
|
40
|
+
temporary: "Temporaire",
|
|
41
|
+
volunteer: "B\xE9n\xE9volat",
|
|
42
|
+
other: "Autre"
|
|
43
|
+
};
|
|
44
|
+
var VOCABULARIES = {
|
|
45
|
+
en: EN_LABELS,
|
|
46
|
+
de: DE_LABELS,
|
|
47
|
+
fr: FR_LABELS
|
|
48
|
+
};
|
|
49
|
+
var OVERRIDE_KEYS = {
|
|
50
|
+
on_site: "onSiteLabel",
|
|
51
|
+
hybrid: "hybridLabel",
|
|
52
|
+
remote: "remoteLabel",
|
|
53
|
+
full_time: "fullTimeLabel",
|
|
54
|
+
part_time: "partTimeLabel",
|
|
55
|
+
contract: "contractLabel",
|
|
56
|
+
internship: "internshipLabel",
|
|
57
|
+
temporary: "temporaryLabel",
|
|
58
|
+
volunteer: "volunteerLabel",
|
|
59
|
+
entry_level: "seniorityEntryLevel",
|
|
60
|
+
associate: "seniorityAssociate",
|
|
61
|
+
mid_level: "seniorityMidLevel",
|
|
62
|
+
senior: "senioritySenior",
|
|
63
|
+
lead: "seniorityLead",
|
|
64
|
+
principal: "seniorityPrincipal",
|
|
65
|
+
director: "seniorityDirector",
|
|
66
|
+
executive: "seniorityExecutive"
|
|
67
|
+
};
|
|
68
|
+
var SENIORITY_KEYS = /* @__PURE__ */ new Set([
|
|
69
|
+
"entry_level",
|
|
70
|
+
"associate",
|
|
71
|
+
"mid_level",
|
|
72
|
+
"senior",
|
|
73
|
+
"lead",
|
|
74
|
+
"principal",
|
|
75
|
+
"director",
|
|
76
|
+
"executive"
|
|
77
|
+
]);
|
|
78
|
+
function storedOverride(value, labels) {
|
|
79
|
+
const key = OVERRIDE_KEYS[value];
|
|
80
|
+
const override = key ? labels?.jobCardLabels?.[key] : void 0;
|
|
81
|
+
return typeof override === "string" && override.trim() !== "" ? override : null;
|
|
82
|
+
}
|
|
83
|
+
function fieldLabel(locale, value, labels) {
|
|
84
|
+
if (!value) return null;
|
|
85
|
+
const override = storedOverride(value, labels);
|
|
86
|
+
if (override) return override;
|
|
87
|
+
if (SENIORITY_KEYS.has(value)) {
|
|
88
|
+
return getSalaryLexicon(locale).seniority[value];
|
|
89
|
+
}
|
|
90
|
+
const vocabulary = VOCABULARIES[locale] ?? EN_LABELS;
|
|
91
|
+
return vocabulary[value] ?? EN_LABELS[value] ?? value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
fieldLabel
|
|
96
|
+
};
|