create-mikstack 0.1.27 → 0.1.29
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
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<!-- {{#if:!i18n}} -->
|
|
147
147
|
<h2>New note</h2>
|
|
148
148
|
<!-- {{/if:!i18n}} -->
|
|
149
|
-
<form id={createNoteForm.id} onsubmit={createNoteForm.onsubmit} onkeydown={submitOnModEnter} class="note-form">
|
|
149
|
+
<form id={createNoteForm.id} onsubmit={createNoteForm.onsubmit} onkeydown={submitOnModEnter} class="note-form" role="form">
|
|
150
150
|
<FormField for={createNoteForm.fields.title.as("text").id}>
|
|
151
151
|
{#snippet label(attrs)}
|
|
152
152
|
<!-- {{#if:i18n}} -->
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
{#each notes as note (note.id)}
|
|
239
239
|
<li class="note-card">
|
|
240
240
|
{#if editingId === note.id}
|
|
241
|
-
<form id={editForm.id} onsubmit={editForm.onsubmit} onkeydown={submitOnModEnter} class="note-form">
|
|
241
|
+
<form id={editForm.id} onsubmit={editForm.onsubmit} onkeydown={submitOnModEnter} class="note-form" role="form">
|
|
242
242
|
<FormField for={editForm.fields.title.as("text").id}>
|
|
243
243
|
{#snippet label(attrs)}
|
|
244
244
|
<!-- {{#if:i18n}} -->
|
|
@@ -416,6 +416,7 @@
|
|
|
416
416
|
font-size: var(--text-sm);
|
|
417
417
|
display: -webkit-box;
|
|
418
418
|
-webkit-line-clamp: 3;
|
|
419
|
+
line-clamp: 3;
|
|
419
420
|
-webkit-box-orient: vertical;
|
|
420
421
|
overflow: hidden;
|
|
421
422
|
}
|
|
@@ -11,7 +11,7 @@ const allMessages: Record<string, typeof enMessages> = {
|
|
|
11
11
|
const i18n = setupI18n();
|
|
12
12
|
|
|
13
13
|
export function initI18n(locale = "en"): void {
|
|
14
|
-
i18n.loadAndActivate({ locale, messages: allMessages[locale] });
|
|
14
|
+
i18n.loadAndActivate({ locale, messages: allMessages[locale] ?? allMessages["en"]! });
|
|
15
15
|
setI18n(i18n);
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -36,7 +36,7 @@ export function createServerI18n(locale = "en"): I18n {
|
|
|
36
36
|
const serverI18n = setupI18n();
|
|
37
37
|
serverI18n.loadAndActivate({
|
|
38
38
|
locale,
|
|
39
|
-
messages: allMessages[locale] ?? allMessages["en"]
|
|
39
|
+
messages: allMessages[locale] ?? allMessages["en"]!,
|
|
40
40
|
});
|
|
41
41
|
return serverI18n;
|
|
42
42
|
}
|
|
@@ -4,7 +4,7 @@ import { createServerI18n } from "$lib/i18n";
|
|
|
4
4
|
|
|
5
5
|
export function magicLinkEmail(url: string, locale = "en") {
|
|
6
6
|
const i18n = createServerI18n(locale);
|
|
7
|
-
const _ = (d: { id: string; message: string }) => i18n._(d)
|
|
7
|
+
const _ = (d: { id: string; message: string }) => i18n._(d);
|
|
8
8
|
|
|
9
9
|
const email = html(
|
|
10
10
|
body(
|