@enure/jacklin 2.0.7 → 2.1.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 +5 -2
- package/index.ts +5 -0
- package/package.json +1 -1
- package/template.handlebars +32 -19
package/index.js
CHANGED
|
@@ -5547,13 +5547,16 @@ import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
|
|
|
5547
5547
|
if (typeof dateStr === "string") {
|
|
5548
5548
|
const date = new Date(dateStr);
|
|
5549
5549
|
const year = date.getFullYear();
|
|
5550
|
-
const month = date.getMonth();
|
|
5550
|
+
const month = date.getMonth() + 1;
|
|
5551
5551
|
const fullMonth = month.toString().length === 1 ? `0${month}` : month;
|
|
5552
|
-
return `${
|
|
5552
|
+
return `${fullMonth}/${year}`;
|
|
5553
5553
|
} else {
|
|
5554
5554
|
return dateStr;
|
|
5555
5555
|
}
|
|
5556
5556
|
});
|
|
5557
|
+
import_handlebars.default.registerHelper("getTelLink", (string) => {
|
|
5558
|
+
return "tel:+1" + string.replace("(", "").replace(")", "").replace("-", "").replace(" ", "");
|
|
5559
|
+
});
|
|
5557
5560
|
var render = (resume) => {
|
|
5558
5561
|
const modulePath = dirname(fileURLToPath(import.meta.url));
|
|
5559
5562
|
const template = readFileSync(resolve(modulePath, "./template.handlebars"), "utf8");
|
package/index.ts
CHANGED
|
@@ -26,6 +26,11 @@ Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
+
Handlebars.registerHelper("getTelLink", (string) => {
|
|
30
|
+
return 'tel:+1' + string.replace('(', '').replace(')', '').replace('-', '').replace(' ', '')
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
|
|
29
34
|
export const render = (resume) => {
|
|
30
35
|
const modulePath = dirname(fileURLToPath(import.meta.url));
|
|
31
36
|
const template = readFileSync(
|
package/package.json
CHANGED
package/template.handlebars
CHANGED
|
@@ -28,10 +28,7 @@
|
|
|
28
28
|
main {
|
|
29
29
|
max-width: 800px;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
margin-top: 48px;
|
|
33
|
-
}
|
|
34
|
-
main > section {
|
|
31
|
+
section {
|
|
35
32
|
margin-top: 36px;
|
|
36
33
|
}
|
|
37
34
|
h1, h2 {
|
|
@@ -101,25 +98,41 @@
|
|
|
101
98
|
.u-nobr {
|
|
102
99
|
break-inside: avoid;
|
|
103
100
|
}
|
|
101
|
+
a {
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
color: inherit;
|
|
104
|
+
}
|
|
104
105
|
</style>
|
|
105
106
|
</head>
|
|
106
107
|
<body>
|
|
107
108
|
<header>
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
109
|
+
<section>
|
|
110
|
+
<h1>
|
|
111
|
+
{{ basics.name }}
|
|
112
|
+
</h1>
|
|
113
|
+
<ul class="BasicsList">
|
|
114
|
+
<li>
|
|
115
|
+
<a href="{{ getTelLink basics.phone }}">
|
|
116
|
+
{{ basics.phone }}
|
|
117
|
+
</a>
|
|
118
|
+
</li>
|
|
119
|
+
<li>
|
|
120
|
+
<a href="mailto:{{ basics.email }}">
|
|
121
|
+
{{ basics.email }}
|
|
122
|
+
</a>
|
|
123
|
+
</li>
|
|
124
|
+
{{!-- <li>{{ basics.location.address }}</li> --}}
|
|
125
|
+
<li>{{ basics.location.city }}, {{ basics.location.region }} {{!-- basics.location.postalCode --}}</li>
|
|
126
|
+
</ul>
|
|
127
|
+
</section>
|
|
128
|
+
<section>
|
|
129
|
+
<h2>
|
|
130
|
+
{{ basics.label }}
|
|
131
|
+
</h2>
|
|
132
|
+
<p>
|
|
133
|
+
{{ basics.summary }}
|
|
134
|
+
</p>
|
|
135
|
+
</section>
|
|
123
136
|
</header>
|
|
124
137
|
<main>
|
|
125
138
|
<section>
|