create-evikit 2.3.1 → 2.4.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 +2 -2
- package/po/create-evikit.pot +6 -1
- package/po/uk.po +9 -2
- package/src/routes/page.js +21 -6
- package/static/preact-ssr-framework.png +0 -0
- package/static/preact-ssr-framework.xcf +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-evikit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "bin/create-evikit.js",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@speed-highlight/core": "^1.2.17",
|
|
38
38
|
"accept-language": "^3.0.20",
|
|
39
39
|
"classnames": "^2.5.1",
|
|
40
|
-
"evikit": "^2.
|
|
40
|
+
"evikit": "^2.4.0",
|
|
41
41
|
"express": "^5.2.1",
|
|
42
42
|
"file-type": "^22.0.1",
|
|
43
43
|
"hoofd": "^1.7.3",
|
package/po/create-evikit.pot
CHANGED
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: create-evikit\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2026-07-08
|
|
11
|
+
"POT-Creation-Date: 2026-07-08 14:48+0300\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -53,6 +53,11 @@ msgstr ""
|
|
|
53
53
|
msgid "Quick start"
|
|
54
54
|
msgstr ""
|
|
55
55
|
|
|
56
|
+
msgid ""
|
|
57
|
+
"<a href=\"{translate}\">Translate</a> this page to your language using <a "
|
|
58
|
+
"href=\"{poedit}\">Poedit</a> and send a merge request!"
|
|
59
|
+
msgstr ""
|
|
60
|
+
|
|
56
61
|
msgid ""
|
|
57
62
|
"There’s intentionally <b>not much API</b>. Documentation entirely fits in a "
|
|
58
63
|
"long but straightforward <b>README</b>. Like the Django tutorial, it guides "
|
package/po/uk.po
CHANGED
|
@@ -7,8 +7,8 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: create-evikit\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
|
10
|
-
"POT-Creation-Date: 2026-07-08
|
|
11
|
-
"PO-Revision-Date: 2026-07-08
|
|
10
|
+
"POT-Creation-Date: 2026-07-08 14:48+0300\n"
|
|
11
|
+
"PO-Revision-Date: 2026-07-08 14:49+0300\n"
|
|
12
12
|
"Last-Translator: EMAIL@ADDRESS\n"
|
|
13
13
|
"Language-Team: Ukrainian\n"
|
|
14
14
|
"Language: uk\n"
|
|
@@ -64,6 +64,13 @@ msgstr ""
|
|
|
64
64
|
msgid "Quick start"
|
|
65
65
|
msgstr "Швидкий початок"
|
|
66
66
|
|
|
67
|
+
msgid ""
|
|
68
|
+
"<a href=\"{translate}\">Translate</a> this page to your language using <a "
|
|
69
|
+
"href=\"{poedit}\">Poedit</a> and send a merge request!"
|
|
70
|
+
msgstr ""
|
|
71
|
+
"<a href=\"{translate}\">Перекладіть</a> цю сторінку своєю мовою за допомогою "
|
|
72
|
+
"<a href=\"{poedit}\">Poedit</a> і надішліть запит на злиття!"
|
|
73
|
+
|
|
67
74
|
msgid ""
|
|
68
75
|
"There’s intentionally <b>not much API</b>. Documentation entirely fits in a "
|
|
69
76
|
"long but straightforward <b>README</b>. Like the Django tutorial, it guides "
|
package/src/routes/page.js
CHANGED
|
@@ -182,7 +182,21 @@ npm run dev
|
|
|
182
182
|
|
|
183
183
|
h(
|
|
184
184
|
Code,
|
|
185
|
-
{
|
|
185
|
+
{
|
|
186
|
+
file: data?.File["src/lib/index.js"],
|
|
187
|
+
lang: "js",
|
|
188
|
+
note:
|
|
189
|
+
"🤝 " +
|
|
190
|
+
i18n
|
|
191
|
+
.gettext(
|
|
192
|
+
`<a href="{translate}">Translate</a> this page to your language using <a href="{poedit}">Poedit</a> and send a merge request!`,
|
|
193
|
+
)
|
|
194
|
+
.replace(
|
|
195
|
+
"{translate}",
|
|
196
|
+
"https://codeberg.org/nykula/create-evikit/src/branch/main/po/create-evikit.pot",
|
|
197
|
+
)
|
|
198
|
+
.replace("{poedit}", "https://poedit.com/"),
|
|
199
|
+
},
|
|
186
200
|
span(null, "src/lib/"),
|
|
187
201
|
b(null, "index.js"),
|
|
188
202
|
),
|
|
@@ -285,8 +299,8 @@ npm run dev
|
|
|
285
299
|
);
|
|
286
300
|
}
|
|
287
301
|
|
|
288
|
-
/** @param {{ children?: any, lang: string, file: string | undefined, tag?: string }} props */
|
|
289
|
-
function Code({ children, file, lang, tag }) {
|
|
302
|
+
/** @param {{ children?: any, lang: string, file: string | undefined, note?: string, tag?: string }} props */
|
|
303
|
+
function Code({ children, file, lang, note, tag }) {
|
|
290
304
|
const inner = pre(
|
|
291
305
|
{ class: "mt-4 overflow-auto text-sm" },
|
|
292
306
|
code(
|
|
@@ -304,10 +318,11 @@ function Code({ children, file, lang, tag }) {
|
|
|
304
318
|
),
|
|
305
319
|
),
|
|
306
320
|
);
|
|
321
|
+
const more = note ? p({ class: "mt-5", ...sanitize(note) }) : undefined;
|
|
307
322
|
const style = `${darkBg} mb-4 mx-0 overflow-hidden p-4 rounded-xl`;
|
|
308
323
|
return tag == "details"
|
|
309
|
-
? details({ class: style }, summary(null, children), inner)
|
|
310
|
-
: figure({ class: style }, figcaption(null, children), inner);
|
|
324
|
+
? details({ class: style }, summary(null, children), inner, more)
|
|
325
|
+
: figure({ class: style }, figcaption(null, children), inner, more);
|
|
311
326
|
}
|
|
312
327
|
|
|
313
328
|
/** @param {string} html */
|
|
@@ -316,7 +331,7 @@ function sanitize(html) {
|
|
|
316
331
|
dangerouslySetInnerHTML: {
|
|
317
332
|
__html: html.replace(/<([^>]*)>/g, (match) =>
|
|
318
333
|
/^<\/?[a-z]+>$/.test(match) ||
|
|
319
|
-
/^<a href="[0-9A-Za-z
|
|
334
|
+
/^<a href="[0-9A-Za-z:/.#%-]*"( target="_top")?>$/.test(match)
|
|
320
335
|
? match
|
|
321
336
|
: "",
|
|
322
337
|
),
|
|
Binary file
|
|
Binary file
|