create-mikstack 0.1.32 → 0.1.34
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 +1 -1
- package/templates/base/src/routes/(app)/+page.svelte +4 -2
- package/templates/testing/src/lib/server/db/schema.test.ts +2 -2
- package/templates/ui/.vscode/settings.json +3 -0
- package/templates/ui/package.json.partial +1 -0
- package/templates/ui/src/app.css +18 -18
- package/templates/ui/stylelint.config.js +1 -1
- package/templates/ui-vendor/src/lib/components/ui/Alert/Alert.svelte +4 -4
- package/templates/ui-vendor/src/lib/components/ui/Badge/Badge.svelte +1 -1
package/package.json
CHANGED
|
@@ -146,7 +146,8 @@
|
|
|
146
146
|
<!-- {{#if:!i18n}} -->
|
|
147
147
|
<h2>New note</h2>
|
|
148
148
|
<!-- {{/if:!i18n}} -->
|
|
149
|
-
|
|
149
|
+
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
150
|
+
<form id={createNoteForm.id} onsubmit={createNoteForm.onsubmit} onkeydown={submitOnModEnter} class="note-form">
|
|
150
151
|
<FormField for={createNoteForm.fields.title.as("text").id}>
|
|
151
152
|
{#snippet label(attrs)}
|
|
152
153
|
<!-- {{#if:i18n}} -->
|
|
@@ -238,7 +239,8 @@
|
|
|
238
239
|
{#each notes as note (note.id)}
|
|
239
240
|
<li class="note-card">
|
|
240
241
|
{#if editingId === note.id}
|
|
241
|
-
|
|
242
|
+
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
243
|
+
<form id={editForm.id} onsubmit={editForm.onsubmit} onkeydown={submitOnModEnter} class="note-form">
|
|
242
244
|
<FormField for={editForm.fields.title.as("text").id}>
|
|
243
245
|
{#snippet label(attrs)}
|
|
244
246
|
<!-- {{#if:i18n}} -->
|
|
@@ -15,7 +15,7 @@ describe("database schema", () => {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("pushes schema without data loss", async () => {
|
|
18
|
-
const result = await pushSchema(schema, testDb.db);
|
|
18
|
+
const result = await pushSchema(schema, testDb.db as Parameters<typeof pushSchema>[1]);
|
|
19
19
|
expect(result.warnings).toEqual([]);
|
|
20
20
|
expect(result.hasDataLoss).toBe(false);
|
|
21
21
|
await result.apply();
|
|
@@ -25,7 +25,7 @@ describe("database schema", () => {
|
|
|
25
25
|
WHERE table_schema = 'public'
|
|
26
26
|
ORDER BY table_name
|
|
27
27
|
`;
|
|
28
|
-
const tableNames = tables.map((row) => row.table_name);
|
|
28
|
+
const tableNames = tables.map((row) => row.table_name as string);
|
|
29
29
|
|
|
30
30
|
expect(tableNames).toContain("user");
|
|
31
31
|
expect(tableNames).toContain("session");
|
package/templates/ui/src/app.css
CHANGED
|
@@ -65,15 +65,15 @@ select {
|
|
|
65
65
|
--radius-lg: 0.75rem;
|
|
66
66
|
|
|
67
67
|
/* Light Mode Colors (oklch) */
|
|
68
|
-
--surface-1: oklch(100% 0
|
|
69
|
-
--surface-2: oklch(97% 0
|
|
70
|
-
--surface-3: oklch(93% 0
|
|
71
|
-
--text-1: oklch(20% 0
|
|
72
|
-
--text-2: oklch(40% 0
|
|
73
|
-
--accent: oklch(55% 0.2
|
|
74
|
-
--danger: oklch(55% 0.2
|
|
75
|
-
--border: oklch(85% 0
|
|
76
|
-
--focus: oklch(55% 0.2
|
|
68
|
+
--surface-1: oklch(100% 0 0deg);
|
|
69
|
+
--surface-2: oklch(97% 0 0deg);
|
|
70
|
+
--surface-3: oklch(93% 0 0deg);
|
|
71
|
+
--text-1: oklch(20% 0 0deg);
|
|
72
|
+
--text-2: oklch(40% 0 0deg);
|
|
73
|
+
--accent: oklch(55% 0.2 260deg);
|
|
74
|
+
--danger: oklch(55% 0.2 25deg);
|
|
75
|
+
--border: oklch(85% 0 0deg);
|
|
76
|
+
--focus: oklch(55% 0.2 260deg / 50%);
|
|
77
77
|
|
|
78
78
|
color: var(--text-1);
|
|
79
79
|
background-color: var(--surface-1);
|
|
@@ -81,14 +81,14 @@ select {
|
|
|
81
81
|
|
|
82
82
|
@media (prefers-color-scheme: dark) {
|
|
83
83
|
:root {
|
|
84
|
-
--surface-1: oklch(15% 0
|
|
85
|
-
--surface-2: oklch(20% 0
|
|
86
|
-
--surface-3: oklch(25% 0
|
|
87
|
-
--text-1: oklch(93% 0
|
|
88
|
-
--text-2: oklch(70% 0
|
|
89
|
-
--accent: oklch(70% 0.18
|
|
90
|
-
--danger: oklch(70% 0.18
|
|
91
|
-
--border: oklch(30% 0
|
|
92
|
-
--focus: oklch(70% 0.18
|
|
84
|
+
--surface-1: oklch(15% 0 0deg);
|
|
85
|
+
--surface-2: oklch(20% 0 0deg);
|
|
86
|
+
--surface-3: oklch(25% 0 0deg);
|
|
87
|
+
--text-1: oklch(93% 0 0deg);
|
|
88
|
+
--text-2: oklch(70% 0 0deg);
|
|
89
|
+
--accent: oklch(70% 0.18 260deg);
|
|
90
|
+
--danger: oklch(70% 0.18 25deg);
|
|
91
|
+
--border: oklch(30% 0 0deg);
|
|
92
|
+
--focus: oklch(70% 0.18 260deg / 50%);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @type {import('stylelint').Config} */
|
|
2
2
|
export default {
|
|
3
|
-
extends: ["stylelint-config-standard"],
|
|
3
|
+
extends: ["stylelint-config-standard", "stylelint-config-html/svelte"],
|
|
4
4
|
rules: {
|
|
5
5
|
"selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global"] }],
|
|
6
6
|
},
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&[data-variant='success'] {
|
|
39
|
-
background-color: oklch(55% 0.15
|
|
40
|
-
border-color: oklch(55% 0.15
|
|
39
|
+
background-color: oklch(55% 0.15 145deg / 10%);
|
|
40
|
+
border-color: oklch(55% 0.15 145deg / 30%);
|
|
41
41
|
color: var(--text-1);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&[data-variant='warning'] {
|
|
45
|
-
background-color: oklch(75% 0.15
|
|
46
|
-
border-color: oklch(75% 0.15
|
|
45
|
+
background-color: oklch(75% 0.15 85deg / 10%);
|
|
46
|
+
border-color: oklch(75% 0.15 85deg / 30%);
|
|
47
47
|
color: var(--text-1);
|
|
48
48
|
}
|
|
49
49
|
|