@enure/jacklin 2.1.0 → 3.0.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/index.js +0 -10
- package/index.ts +0 -16
- package/package.json +1 -1
- package/template.handlebars +5 -4
package/index.js
CHANGED
|
@@ -5536,13 +5536,6 @@ var import_handlebars = __toESM(require_lib(), 1);
|
|
|
5536
5536
|
import { fileURLToPath } from "url";
|
|
5537
5537
|
import { dirname, resolve } from "path";
|
|
5538
5538
|
import { readFileSync } from "fs";
|
|
5539
|
-
import_handlebars.default.registerHelper("summaryToList", (string) => {
|
|
5540
|
-
if (string.includes("|")) {
|
|
5541
|
-
return `<ul class="SummaryList">${string.split("|").map((listItem) => `<li class="SummaryList-item">${listItem}</li>`).join("")}</ul>`;
|
|
5542
|
-
} else {
|
|
5543
|
-
return string;
|
|
5544
|
-
}
|
|
5545
|
-
});
|
|
5546
5539
|
import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
|
|
5547
5540
|
if (typeof dateStr === "string") {
|
|
5548
5541
|
const date = new Date(dateStr);
|
|
@@ -5554,9 +5547,6 @@ import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
|
|
|
5554
5547
|
return dateStr;
|
|
5555
5548
|
}
|
|
5556
5549
|
});
|
|
5557
|
-
import_handlebars.default.registerHelper("getTelLink", (string) => {
|
|
5558
|
-
return "tel:+1" + string.replace("(", "").replace(")", "").replace("-", "").replace(" ", "");
|
|
5559
|
-
});
|
|
5560
5550
|
var render = (resume) => {
|
|
5561
5551
|
const modulePath = dirname(fileURLToPath(import.meta.url));
|
|
5562
5552
|
const template = readFileSync(resolve(modulePath, "./template.handlebars"), "utf8");
|
package/index.ts
CHANGED
|
@@ -3,17 +3,6 @@ import { dirname, resolve } from "path";
|
|
|
3
3
|
import { readFileSync } from "fs";
|
|
4
4
|
import Handlebars from "handlebars";
|
|
5
5
|
|
|
6
|
-
Handlebars.registerHelper("summaryToList", (string) => {
|
|
7
|
-
if (string.includes("|")) {
|
|
8
|
-
return `<ul class="SummaryList">${string
|
|
9
|
-
.split("|")
|
|
10
|
-
.map((listItem: string) => `<li class="SummaryList-item">${listItem}</li>`)
|
|
11
|
-
.join("")}</ul>`;
|
|
12
|
-
} else {
|
|
13
|
-
return string;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
6
|
Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
18
7
|
if (typeof dateStr === 'string') {
|
|
19
8
|
const date = new Date(dateStr);
|
|
@@ -26,11 +15,6 @@ Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
|
26
15
|
}
|
|
27
16
|
});
|
|
28
17
|
|
|
29
|
-
Handlebars.registerHelper("getTelLink", (string) => {
|
|
30
|
-
return 'tel:+1' + string.replace('(', '').replace(')', '').replace('-', '').replace(' ', '')
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
|
|
34
18
|
export const render = (resume) => {
|
|
35
19
|
const modulePath = dirname(fileURLToPath(import.meta.url));
|
|
36
20
|
const template = readFileSync(
|
package/package.json
CHANGED
package/template.handlebars
CHANGED
|
@@ -112,9 +112,7 @@
|
|
|
112
112
|
</h1>
|
|
113
113
|
<ul class="BasicsList">
|
|
114
114
|
<li>
|
|
115
|
-
|
|
116
|
-
{{ basics.phone }}
|
|
117
|
-
</a>
|
|
115
|
+
{{ basics.phone }}
|
|
118
116
|
</li>
|
|
119
117
|
<li>
|
|
120
118
|
<a href="mailto:{{ basics.email }}">
|
|
@@ -158,7 +156,10 @@
|
|
|
158
156
|
{{getShortDate this.startDate}} to {{#if this.endDate }}{{getShortDate this.endDate}}{{/if}}{{#unless this.endDate }}current{{/unless}}
|
|
159
157
|
</div>
|
|
160
158
|
<div class="WorkList-summary">
|
|
161
|
-
|
|
159
|
+
<ul class="SummaryList">
|
|
160
|
+
{{#each this.summaryItems}}
|
|
161
|
+
<li class="SummaryList-item">{{this}}</li>
|
|
162
|
+
{{/each}}
|
|
162
163
|
</div>
|
|
163
164
|
{{#if this.highlights}}
|
|
164
165
|
<ul class="WorkList-highlights">
|