@korajs/cli 0.4.0 → 0.6.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/dist/bin.cjs +1636 -601
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1086 -139
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-MVP5PDT4.js → chunk-EEZNRI5W.js} +51 -6
- package/dist/chunk-EEZNRI5W.js.map +1 -0
- package/dist/{chunk-YGVO4POI.js → chunk-Q2FBCOQD.js} +27 -15
- package/dist/chunk-Q2FBCOQD.js.map +1 -0
- package/dist/{chunk-CMSX76KM.js → chunk-VLTPEATY.js} +172 -99
- package/dist/chunk-VLTPEATY.js.map +1 -0
- package/dist/create.cjs +130 -54
- package/dist/create.cjs.map +1 -1
- package/dist/create.js +2 -2
- package/dist/index.cjs +143 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +2 -2
- package/package.json +9 -3
- package/templates/react-basic/README.md.hbs +10 -1
- package/templates/react-basic/src/App.tsx +112 -126
- package/templates/react-basic/src/index.css +165 -159
- package/templates/react-basic/src/kora-worker.ts +0 -1
- package/templates/react-basic/src/main.tsx +12 -12
- package/templates/react-basic/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/react-basic/src/modules/todos/todo.queries.ts +5 -0
- package/templates/react-basic/src/modules/todos/todo.schema.ts +10 -0
- package/templates/react-basic/src/modules/todos/useTodos.ts +31 -0
- package/templates/react-basic/src/schema.ts +6 -12
- package/templates/react-basic/src/vite-env.d.ts +17 -0
- package/templates/react-basic/{tsconfig.json → tsconfig.json.hbs} +1 -2
- package/templates/react-basic/vite.config.ts +57 -50
- package/templates/react-sync/.env.example +19 -0
- package/templates/react-sync/README.md.hbs +43 -1
- package/templates/react-sync/package.json.hbs +3 -0
- package/templates/react-sync/server.ts +90 -26
- package/templates/react-sync/src/App.tsx +132 -130
- package/templates/react-sync/src/auth.ts +25 -0
- package/templates/react-sync/src/index.css +212 -165
- package/templates/react-sync/src/kora-worker.ts +0 -1
- package/templates/react-sync/src/main.tsx +34 -18
- package/templates/react-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/react-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/react-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/react-sync/src/modules/todos/useTodos.ts +31 -0
- package/templates/react-sync/src/schema.ts +6 -12
- package/templates/react-sync/src/vite-env.d.ts +17 -0
- package/templates/react-sync/{tsconfig.json → tsconfig.json.hbs} +1 -2
- package/templates/react-sync/vite.config.ts +67 -60
- package/templates/react-tailwind/README.md.hbs +10 -1
- package/templates/react-tailwind/src/App.tsx +186 -197
- package/templates/react-tailwind/src/index.css +3 -3
- package/templates/react-tailwind/src/kora-worker.ts +0 -1
- package/templates/react-tailwind/src/main.tsx +19 -12
- package/templates/react-tailwind/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/react-tailwind/src/modules/todos/todo.queries.ts +5 -0
- package/templates/react-tailwind/src/modules/todos/todo.schema.ts +10 -0
- package/templates/react-tailwind/src/modules/todos/useTodos.ts +31 -0
- package/templates/react-tailwind/src/schema.ts +6 -12
- package/templates/react-tailwind/src/vite-env.d.ts +17 -0
- package/templates/react-tailwind/{tsconfig.json → tsconfig.json.hbs} +1 -2
- package/templates/react-tailwind/vite.config.ts +57 -50
- package/templates/react-tailwind-sync/.env.example +19 -0
- package/templates/react-tailwind-sync/README.md.hbs +43 -1
- package/templates/react-tailwind-sync/package.json.hbs +3 -0
- package/templates/react-tailwind-sync/server.ts +90 -26
- package/templates/react-tailwind-sync/src/App.tsx +246 -222
- package/templates/react-tailwind-sync/src/auth.ts +25 -0
- package/templates/react-tailwind-sync/src/index.css +3 -3
- package/templates/react-tailwind-sync/src/kora-worker.ts +0 -1
- package/templates/react-tailwind-sync/src/main.tsx +48 -18
- package/templates/react-tailwind-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/react-tailwind-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/react-tailwind-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/react-tailwind-sync/src/modules/todos/useTodos.ts +31 -0
- package/templates/react-tailwind-sync/src/schema.ts +6 -12
- package/templates/react-tailwind-sync/src/vite-env.d.ts +17 -0
- package/templates/react-tailwind-sync/{tsconfig.json → tsconfig.json.hbs} +1 -2
- package/templates/react-tailwind-sync/vite.config.ts +67 -60
- package/templates/svelte-basic/.env.example +3 -0
- package/templates/svelte-basic/README.md.hbs +62 -0
- package/templates/svelte-basic/index.html.hbs +12 -0
- package/templates/svelte-basic/kora.config.ts +12 -0
- package/templates/svelte-basic/package.json.hbs +27 -0
- package/templates/svelte-basic/src/App.svelte +131 -0
- package/templates/svelte-basic/src/Root.svelte +14 -0
- package/templates/svelte-basic/src/index.css +287 -0
- package/templates/svelte-basic/src/kora-worker.ts +9 -0
- package/templates/svelte-basic/src/main.ts +16 -0
- package/templates/svelte-basic/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/svelte-basic/src/modules/todos/todo.queries.ts +5 -0
- package/templates/svelte-basic/src/modules/todos/todo.schema.ts +10 -0
- package/templates/svelte-basic/src/modules/todos/useTodos.ts +25 -0
- package/templates/svelte-basic/src/schema.ts +9 -0
- package/templates/svelte-basic/src/vite-env.d.ts +12 -0
- package/templates/svelte-basic/svelte.config.js +5 -0
- package/templates/svelte-basic/tsconfig.json.hbs +14 -0
- package/templates/svelte-basic/vite.config.ts +52 -0
- package/templates/svelte-sync/.env.example +25 -0
- package/templates/svelte-sync/README.md.hbs +105 -0
- package/templates/svelte-sync/index.html.hbs +12 -0
- package/templates/svelte-sync/kora.config.ts +17 -0
- package/templates/svelte-sync/package.json.hbs +43 -0
- package/templates/svelte-sync/server.ts +90 -0
- package/templates/svelte-sync/src/App.svelte +154 -0
- package/templates/svelte-sync/src/Root.svelte +22 -0
- package/templates/svelte-sync/src/auth.ts +25 -0
- package/templates/svelte-sync/src/index.css +339 -0
- package/templates/svelte-sync/src/kora-worker.ts +9 -0
- package/templates/svelte-sync/src/main.ts +32 -0
- package/templates/svelte-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/svelte-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/svelte-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/svelte-sync/src/modules/todos/useTodos.ts +25 -0
- package/templates/svelte-sync/src/schema.ts +9 -0
- package/templates/svelte-sync/src/vite-env.d.ts +21 -0
- package/templates/svelte-sync/svelte.config.js +5 -0
- package/templates/svelte-sync/tsconfig.json.hbs +14 -0
- package/templates/svelte-sync/vite.config.ts +79 -0
- package/templates/svelte-tailwind/README.md.hbs +62 -0
- package/templates/svelte-tailwind/index.html.hbs +12 -0
- package/templates/svelte-tailwind/kora.config.ts +12 -0
- package/templates/svelte-tailwind/package.json.hbs +30 -0
- package/templates/svelte-tailwind/src/App.svelte +79 -0
- package/templates/svelte-tailwind/src/Root.svelte +14 -0
- package/templates/svelte-tailwind/src/index.css +7 -0
- package/templates/svelte-tailwind/src/kora-worker.ts +9 -0
- package/templates/svelte-tailwind/src/main.ts +16 -0
- package/templates/svelte-tailwind/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/svelte-tailwind/src/modules/todos/todo.queries.ts +5 -0
- package/templates/svelte-tailwind/src/modules/todos/todo.schema.ts +10 -0
- package/templates/svelte-tailwind/src/modules/todos/useTodos.ts +25 -0
- package/templates/svelte-tailwind/src/schema.ts +9 -0
- package/templates/svelte-tailwind/src/vite-env.d.ts +12 -0
- package/templates/svelte-tailwind/svelte.config.js +5 -0
- package/templates/svelte-tailwind/tsconfig.json.hbs +14 -0
- package/templates/svelte-tailwind/vite.config.ts +53 -0
- package/templates/svelte-tailwind-sync/.env.example +25 -0
- package/templates/svelte-tailwind-sync/README.md.hbs +105 -0
- package/templates/svelte-tailwind-sync/index.html.hbs +12 -0
- package/templates/svelte-tailwind-sync/kora.config.ts +17 -0
- package/templates/svelte-tailwind-sync/package.json.hbs +46 -0
- package/templates/svelte-tailwind-sync/server.ts +90 -0
- package/templates/svelte-tailwind-sync/src/App.svelte +196 -0
- package/templates/svelte-tailwind-sync/src/Root.svelte +26 -0
- package/templates/svelte-tailwind-sync/src/auth.ts +25 -0
- package/templates/svelte-tailwind-sync/src/index.css +7 -0
- package/templates/svelte-tailwind-sync/src/kora-worker.ts +9 -0
- package/templates/svelte-tailwind-sync/src/main.ts +32 -0
- package/templates/svelte-tailwind-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/svelte-tailwind-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/svelte-tailwind-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/svelte-tailwind-sync/src/modules/todos/useTodos.ts +25 -0
- package/templates/svelte-tailwind-sync/src/schema.ts +9 -0
- package/templates/svelte-tailwind-sync/src/vite-env.d.ts +21 -0
- package/templates/svelte-tailwind-sync/svelte.config.js +5 -0
- package/templates/svelte-tailwind-sync/tsconfig.json.hbs +14 -0
- package/templates/svelte-tailwind-sync/vite.config.ts +80 -0
- package/templates/tauri-react/.env.example +20 -0
- package/templates/tauri-react/README.md.hbs +36 -1
- package/templates/tauri-react/dev.ts +11 -11
- package/templates/tauri-react/package.json.hbs +2 -0
- package/templates/tauri-react/server.ts +86 -12
- package/templates/tauri-react/src/App.tsx +769 -544
- package/templates/tauri-react/src/AppShell.tsx +125 -83
- package/templates/tauri-react/src/SetupScreen.tsx +257 -208
- package/templates/tauri-react/src/auth.ts +45 -0
- package/templates/tauri-react/src/main.tsx +3 -3
- package/templates/tauri-react/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/tauri-react/src/modules/todos/todo.queries.ts +5 -0
- package/templates/tauri-react/src/modules/todos/todo.schema.ts +10 -0
- package/templates/tauri-react/src/modules/todos/useTodos.ts +31 -0
- package/templates/tauri-react/src/schema.ts +6 -12
- package/templates/tauri-react/src/sync-config.ts +47 -47
- package/templates/tauri-react/src/updater.ts +15 -15
- package/templates/tauri-react/src/vite-env.d.ts +17 -0
- package/templates/tauri-react/src-tauri/tauri.conf.json +1 -1
- package/templates/tauri-react/tsconfig.json.hbs +14 -0
- package/templates/tauri-react/vite.config.ts +9 -9
- package/templates/vue-basic/README.md.hbs +62 -0
- package/templates/vue-basic/index.html.hbs +12 -0
- package/templates/vue-basic/kora.config.ts +12 -0
- package/templates/vue-basic/package.json.hbs +26 -0
- package/templates/vue-basic/src/App.vue +117 -0
- package/templates/vue-basic/src/index.css +287 -0
- package/templates/vue-basic/src/kora-worker.ts +9 -0
- package/templates/vue-basic/src/main.ts +20 -0
- package/templates/vue-basic/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/vue-basic/src/modules/todos/todo.queries.ts +5 -0
- package/templates/vue-basic/src/modules/todos/todo.schema.ts +10 -0
- package/templates/vue-basic/src/modules/todos/useTodos.ts +32 -0
- package/templates/vue-basic/src/schema.ts +9 -0
- package/templates/vue-basic/src/vite-env.d.ts +17 -0
- package/templates/vue-basic/tsconfig.json.hbs +15 -0
- package/templates/vue-basic/vite.config.ts +69 -0
- package/templates/vue-sync/.env.example +25 -0
- package/templates/vue-sync/README.md.hbs +105 -0
- package/templates/vue-sync/index.html.hbs +12 -0
- package/templates/vue-sync/kora.config.ts +17 -0
- package/templates/vue-sync/package.json.hbs +42 -0
- package/templates/vue-sync/server.ts +90 -0
- package/templates/vue-sync/src/App.vue +135 -0
- package/templates/vue-sync/src/auth.ts +25 -0
- package/templates/vue-sync/src/index.css +339 -0
- package/templates/vue-sync/src/kora-worker.ts +9 -0
- package/templates/vue-sync/src/main.ts +43 -0
- package/templates/vue-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/vue-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/vue-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/vue-sync/src/modules/todos/useTodos.ts +32 -0
- package/templates/vue-sync/src/schema.ts +9 -0
- package/templates/vue-sync/src/vite-env.d.ts +26 -0
- package/templates/vue-sync/tsconfig.json.hbs +15 -0
- package/templates/vue-sync/vite.config.ts +79 -0
- package/templates/vue-tailwind/README.md.hbs +62 -0
- package/templates/vue-tailwind/index.html.hbs +12 -0
- package/templates/vue-tailwind/kora.config.ts +12 -0
- package/templates/vue-tailwind/package.json.hbs +29 -0
- package/templates/vue-tailwind/src/App.vue +142 -0
- package/templates/vue-tailwind/src/index.css +7 -0
- package/templates/vue-tailwind/src/kora-worker.ts +9 -0
- package/templates/vue-tailwind/src/main.ts +31 -0
- package/templates/vue-tailwind/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/vue-tailwind/src/modules/todos/todo.queries.ts +5 -0
- package/templates/vue-tailwind/src/modules/todos/todo.schema.ts +10 -0
- package/templates/vue-tailwind/src/modules/todos/useTodos.ts +32 -0
- package/templates/vue-tailwind/src/schema.ts +9 -0
- package/templates/vue-tailwind/src/vite-env.d.ts +17 -0
- package/templates/vue-tailwind/tsconfig.json.hbs +15 -0
- package/templates/vue-tailwind/vite.config.ts +70 -0
- package/templates/vue-tailwind-sync/.env.example +25 -0
- package/templates/vue-tailwind-sync/README.md.hbs +105 -0
- package/templates/vue-tailwind-sync/index.html.hbs +12 -0
- package/templates/vue-tailwind-sync/kora.config.ts +17 -0
- package/templates/vue-tailwind-sync/package.json.hbs +45 -0
- package/templates/vue-tailwind-sync/server.ts +90 -0
- package/templates/vue-tailwind-sync/src/App.vue +245 -0
- package/templates/vue-tailwind-sync/src/auth.ts +25 -0
- package/templates/vue-tailwind-sync/src/index.css +7 -0
- package/templates/vue-tailwind-sync/src/kora-worker.ts +9 -0
- package/templates/vue-tailwind-sync/src/main.ts +56 -0
- package/templates/vue-tailwind-sync/src/modules/todos/todo.mutations.ts +25 -0
- package/templates/vue-tailwind-sync/src/modules/todos/todo.queries.ts +5 -0
- package/templates/vue-tailwind-sync/src/modules/todos/todo.schema.ts +10 -0
- package/templates/vue-tailwind-sync/src/modules/todos/useTodos.ts +32 -0
- package/templates/vue-tailwind-sync/src/schema.ts +9 -0
- package/templates/vue-tailwind-sync/src/vite-env.d.ts +26 -0
- package/templates/vue-tailwind-sync/tsconfig.json.hbs +15 -0
- package/templates/vue-tailwind-sync/vite.config.ts +80 -0
- package/dist/chunk-CMSX76KM.js.map +0 -1
- package/dist/chunk-MVP5PDT4.js.map +0 -1
- package/dist/chunk-YGVO4POI.js.map +0 -1
- package/templates/tauri-react/tsconfig.json +0 -15
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--color-bg: #0a0a0f;
|
|
11
|
+
--color-surface: #111118;
|
|
12
|
+
--color-border: #1e1e2a;
|
|
13
|
+
--color-border-hover: #2a2a3a;
|
|
14
|
+
--color-text: #e4e4e7;
|
|
15
|
+
--color-text-muted: #71717a;
|
|
16
|
+
--color-text-dim: #3f3f46;
|
|
17
|
+
--color-primary: #6366f1;
|
|
18
|
+
--color-primary-hover: #818cf8;
|
|
19
|
+
--color-success: #34d399;
|
|
20
|
+
--color-warning: #fbbf24;
|
|
21
|
+
--color-danger: #f87171;
|
|
22
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
23
|
+
--radius: 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body {
|
|
27
|
+
font-family: var(--font-sans);
|
|
28
|
+
background: var(--color-bg);
|
|
29
|
+
color: var(--color-text);
|
|
30
|
+
line-height: 1.6;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.app {
|
|
35
|
+
max-width: 640px;
|
|
36
|
+
margin: 0 auto;
|
|
37
|
+
padding: 48px 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.header {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
margin-bottom: 32px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.header h1 {
|
|
48
|
+
font-size: 1.5rem;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.local-badge {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: 6px;
|
|
56
|
+
padding: 4px 12px;
|
|
57
|
+
border-radius: 999px;
|
|
58
|
+
background: var(--color-surface);
|
|
59
|
+
font-size: 0.8rem;
|
|
60
|
+
color: var(--color-text-muted);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.stats {
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: repeat(3, 1fr);
|
|
66
|
+
gap: 12px;
|
|
67
|
+
margin-bottom: 32px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.stat-card {
|
|
71
|
+
background: var(--color-surface);
|
|
72
|
+
border: 1px solid var(--color-border);
|
|
73
|
+
border-radius: var(--radius);
|
|
74
|
+
padding: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.stat-card .label {
|
|
78
|
+
font-size: 0.8rem;
|
|
79
|
+
color: var(--color-text-muted);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.stat-card .value {
|
|
83
|
+
font-size: 1.5rem;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stat-card .value.muted {
|
|
88
|
+
color: var(--color-text-muted);
|
|
89
|
+
}
|
|
90
|
+
.stat-card .value.warning {
|
|
91
|
+
color: var(--color-warning);
|
|
92
|
+
}
|
|
93
|
+
.stat-card .value.success {
|
|
94
|
+
color: var(--color-success);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.add-form {
|
|
98
|
+
display: flex;
|
|
99
|
+
gap: 12px;
|
|
100
|
+
margin-bottom: 32px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.add-form input {
|
|
104
|
+
flex: 1;
|
|
105
|
+
padding: 10px 16px;
|
|
106
|
+
border: 1px solid var(--color-border);
|
|
107
|
+
border-radius: var(--radius);
|
|
108
|
+
background: var(--color-surface);
|
|
109
|
+
color: var(--color-text);
|
|
110
|
+
font-size: 0.95rem;
|
|
111
|
+
outline: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.add-form input:focus {
|
|
115
|
+
border-color: var(--color-primary);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.add-form input::placeholder {
|
|
119
|
+
color: var(--color-text-muted);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.add-form button {
|
|
123
|
+
padding: 10px 20px;
|
|
124
|
+
border: none;
|
|
125
|
+
border-radius: var(--radius);
|
|
126
|
+
background: var(--color-primary);
|
|
127
|
+
color: white;
|
|
128
|
+
font-size: 0.95rem;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.add-form button:hover {
|
|
134
|
+
background: var(--color-primary-hover);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.add-form button:disabled {
|
|
138
|
+
opacity: 0.5;
|
|
139
|
+
cursor: not-allowed;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.filters {
|
|
143
|
+
display: flex;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
margin-bottom: 24px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.filter-btn {
|
|
149
|
+
padding: 6px 16px;
|
|
150
|
+
border: none;
|
|
151
|
+
border-radius: var(--radius);
|
|
152
|
+
background: var(--color-surface);
|
|
153
|
+
color: var(--color-text-muted);
|
|
154
|
+
font-size: 0.85rem;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.filter-btn:hover {
|
|
160
|
+
background: var(--color-border-hover);
|
|
161
|
+
color: var(--color-text);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.filter-btn.active {
|
|
165
|
+
background: var(--color-primary);
|
|
166
|
+
color: white;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.filter-btn .badge {
|
|
170
|
+
display: inline-block;
|
|
171
|
+
margin-left: 6px;
|
|
172
|
+
padding: 1px 6px;
|
|
173
|
+
border-radius: 999px;
|
|
174
|
+
font-size: 0.75rem;
|
|
175
|
+
background: rgba(255, 255, 255, 0.15);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.filter-btn:not(.active) .badge {
|
|
179
|
+
background: var(--color-border);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.todo-list {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 8px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.todo-item {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
gap: 12px;
|
|
192
|
+
padding: 12px 16px;
|
|
193
|
+
border: 1px solid var(--color-border);
|
|
194
|
+
border-radius: var(--radius);
|
|
195
|
+
background: var(--color-surface);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.todo-item:hover {
|
|
199
|
+
border-color: var(--color-border-hover);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.todo-item .toggle {
|
|
203
|
+
background: none;
|
|
204
|
+
border: 2px solid var(--color-text-muted);
|
|
205
|
+
width: 20px;
|
|
206
|
+
height: 20px;
|
|
207
|
+
border-radius: 50%;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
color: transparent;
|
|
213
|
+
font-size: 0.7rem;
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.todo-item .toggle.checked {
|
|
218
|
+
border-color: var(--color-success);
|
|
219
|
+
background: var(--color-success);
|
|
220
|
+
color: white;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.todo-item .title {
|
|
224
|
+
flex: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.todo-item .title.done {
|
|
228
|
+
text-decoration: line-through;
|
|
229
|
+
color: var(--color-text-muted);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.todo-item .time {
|
|
233
|
+
font-size: 0.75rem;
|
|
234
|
+
color: var(--color-text-dim);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.todo-item .delete-btn {
|
|
238
|
+
background: none;
|
|
239
|
+
border: none;
|
|
240
|
+
color: var(--color-text-dim);
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
padding: 4px;
|
|
243
|
+
opacity: 0;
|
|
244
|
+
transition: opacity 0.15s;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.todo-item:hover .delete-btn {
|
|
248
|
+
opacity: 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.todo-item .delete-btn:hover {
|
|
252
|
+
color: var(--color-danger);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.empty-state {
|
|
256
|
+
padding: 48px 0;
|
|
257
|
+
text-align: center;
|
|
258
|
+
color: var(--color-text-dim);
|
|
259
|
+
border: 1px dashed var(--color-border);
|
|
260
|
+
border-radius: var(--radius);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.footer {
|
|
264
|
+
display: flex;
|
|
265
|
+
justify-content: space-between;
|
|
266
|
+
margin-top: 24px;
|
|
267
|
+
font-size: 0.85rem;
|
|
268
|
+
color: var(--color-text-muted);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.footer button {
|
|
272
|
+
background: none;
|
|
273
|
+
border: none;
|
|
274
|
+
color: var(--color-text-muted);
|
|
275
|
+
cursor: pointer;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.footer button:hover {
|
|
279
|
+
color: var(--color-text);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.branding {
|
|
283
|
+
margin-top: 48px;
|
|
284
|
+
text-align: center;
|
|
285
|
+
font-size: 0.75rem;
|
|
286
|
+
color: var(--color-text-dim);
|
|
287
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Web Worker entry point for SQLite WASM.
|
|
2
|
+
// Loaded automatically by the Kora store to run SQLite in a background thread.
|
|
3
|
+
|
|
4
|
+
// Import the WASM binary URL so Vite resolves it with the correct content hash.
|
|
5
|
+
// Without this, production builds fail because sqlite3 looks for the unhashed filename.
|
|
6
|
+
import sqliteWasmUrl from '@sqlite.org/sqlite-wasm/sqlite3.wasm?url'
|
|
7
|
+
;(globalThis as Record<string, unknown>).__KORA_SQLITE_WASM_URL = sqliteWasmUrl
|
|
8
|
+
|
|
9
|
+
import '@korajs/store/sqlite-wasm/worker'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createApp as createKoraApp } from 'korajs'
|
|
2
|
+
import { mount } from 'svelte'
|
|
3
|
+
import Root from './Root.svelte'
|
|
4
|
+
import schema from './schema'
|
|
5
|
+
import './index.css'
|
|
6
|
+
import koraWorkerUrl from './kora-worker.ts?worker&url'
|
|
7
|
+
|
|
8
|
+
const kora = createKoraApp({
|
|
9
|
+
schema,
|
|
10
|
+
store: {
|
|
11
|
+
workerUrl: koraWorkerUrl,
|
|
12
|
+
},
|
|
13
|
+
devtools: true,
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
mount(Root, { target: document.getElementById('app')!, props: { kora } })
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CollectionAccessor } from 'korajs'
|
|
2
|
+
|
|
3
|
+
export interface CreateTodoInput {
|
|
4
|
+
title: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface UpdateTodoStatusInput {
|
|
8
|
+
completed: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function createTodo(todos: CollectionAccessor, data: CreateTodoInput) {
|
|
12
|
+
return todos.insert({ title: data.title })
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function updateTodoStatus(
|
|
16
|
+
todos: CollectionAccessor,
|
|
17
|
+
id: string,
|
|
18
|
+
data: UpdateTodoStatusInput,
|
|
19
|
+
) {
|
|
20
|
+
return todos.update(id, { completed: data.completed })
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function deleteTodo(todos: CollectionAccessor, id: string) {
|
|
24
|
+
return todos.delete(id)
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getCollection, createMutation, createQueryStore } from '@korajs/svelte'
|
|
2
|
+
import { derived } from 'svelte/store'
|
|
3
|
+
import {
|
|
4
|
+
type CreateTodoInput,
|
|
5
|
+
type UpdateTodoStatusInput,
|
|
6
|
+
createTodo,
|
|
7
|
+
deleteTodo,
|
|
8
|
+
updateTodoStatus,
|
|
9
|
+
} from './todo.mutations'
|
|
10
|
+
import { orderedTodos } from './todo.queries'
|
|
11
|
+
|
|
12
|
+
export function createTodosStores() {
|
|
13
|
+
const todos = getCollection('todos')
|
|
14
|
+
const allTodos = createQueryStore(orderedTodos(todos))
|
|
15
|
+
const addTodo = createMutation((data: CreateTodoInput) => createTodo(todos, data))
|
|
16
|
+
const toggleTodo = createMutation((id: string, data: UpdateTodoStatusInput) =>
|
|
17
|
+
updateTodoStatus(todos, id, data),
|
|
18
|
+
)
|
|
19
|
+
const removeTodo = createMutation((id: string) => deleteTodo(todos, id))
|
|
20
|
+
|
|
21
|
+
const activeTodos = derived(allTodos, ($all) => $all.filter((todo) => !todo.completed))
|
|
22
|
+
const completedTodos = derived(allTodos, ($all) => $all.filter((todo) => !!todo.completed))
|
|
23
|
+
|
|
24
|
+
return { allTodos, activeTodos, completedTodos, addTodo, toggleTodo, deleteTodo: removeTodo }
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"noUncheckedIndexedAccess": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"types": ["vite/client"]
|
|
11
|
+
},
|
|
12
|
+
"include": ["src/**/*.ts", "src/**/*.svelte"],
|
|
13
|
+
"exclude": ["node_modules"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
2
|
+
import { copyFileSync, existsSync, readdirSync } from 'node:fs'
|
|
3
|
+
import { join, resolve } from 'node:path'
|
|
4
|
+
import type { Plugin } from 'vite'
|
|
5
|
+
import { defineConfig } from 'vite'
|
|
6
|
+
|
|
7
|
+
function crossOriginIsolation(): Plugin {
|
|
8
|
+
return {
|
|
9
|
+
name: 'cross-origin-isolation',
|
|
10
|
+
configureServer(server) {
|
|
11
|
+
server.middlewares.use((_req, res, next) => {
|
|
12
|
+
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin')
|
|
13
|
+
res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp')
|
|
14
|
+
next()
|
|
15
|
+
})
|
|
16
|
+
},
|
|
17
|
+
configurePreviewServer(server) {
|
|
18
|
+
server.middlewares.use((_req, res, next) => {
|
|
19
|
+
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin')
|
|
20
|
+
res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp')
|
|
21
|
+
next()
|
|
22
|
+
})
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function sqliteWasmHotfix(): Plugin {
|
|
28
|
+
return {
|
|
29
|
+
name: 'sqlite-wasm-hotfix',
|
|
30
|
+
apply: 'build',
|
|
31
|
+
closeBundle() {
|
|
32
|
+
const assetsDir = resolve('dist', 'assets')
|
|
33
|
+
if (!existsSync(assetsDir)) return
|
|
34
|
+
for (const file of readdirSync(assetsDir)) {
|
|
35
|
+
if (/^sqlite3-.+\.wasm$/.test(file)) {
|
|
36
|
+
copyFileSync(join(assetsDir, file), join(assetsDir, 'sqlite3.wasm'))
|
|
37
|
+
break
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default defineConfig({
|
|
45
|
+
plugins: [svelte(), crossOriginIsolation(), sqliteWasmHotfix()],
|
|
46
|
+
worker: { format: 'es' },
|
|
47
|
+
optimizeDeps: {
|
|
48
|
+
exclude: ['@sqlite.org/sqlite-wasm', '@korajs/store'],
|
|
49
|
+
include: ['yjs'],
|
|
50
|
+
},
|
|
51
|
+
resolve: { dedupe: ['yjs'] },
|
|
52
|
+
})
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Kora Sync Server
|
|
2
|
+
# WebSocket URL for the sync server (used by the client)
|
|
3
|
+
VITE_SYNC_URL=ws://localhost:3001
|
|
4
|
+
|
|
5
|
+
# Sync server port
|
|
6
|
+
PORT=3001
|
|
7
|
+
|
|
8
|
+
# Server database
|
|
9
|
+
# Leave DATABASE_URL empty to use SQLite at KORA_SERVER_DB.
|
|
10
|
+
KORA_SERVER_DB=./kora-server.db
|
|
11
|
+
DATABASE_URL=
|
|
12
|
+
|
|
13
|
+
# Operational endpoints (/__kora, /__kora/status, /__kora/events, /__kora/metrics, backups)
|
|
14
|
+
# Set these in production. Use Authorization: Bearer <token> when calling protected endpoints.
|
|
15
|
+
KORA_ADMIN_TOKEN=
|
|
16
|
+
KORA_METRICS_TOKEN=
|
|
17
|
+
KORA_BACKUP_TOKEN=
|
|
18
|
+
|
|
19
|
+
# Optional sync path
|
|
20
|
+
KORA_SYNC_PATH=/kora-sync
|
|
21
|
+
|
|
22
|
+
# Auth
|
|
23
|
+
# Set this to enable built-in /auth/* routes and authenticated sync.
|
|
24
|
+
# Generate with: node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"
|
|
25
|
+
KORA_AUTH_SECRET=
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# {{projectName}}
|
|
2
|
+
|
|
3
|
+
An offline-first application built with [Kora.js](https://ehoneahobed.github.io/kora/).
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm run dev
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This starts both the Vite dev server and the Kora sync server.
|
|
12
|
+
|
|
13
|
+
- **App**: http://localhost:5173
|
|
14
|
+
- **Sync server**: ws://localhost:3001
|
|
15
|
+
|
|
16
|
+
## Project Structure
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
src/
|
|
20
|
+
schema.ts # Schema entry point
|
|
21
|
+
auth.ts # Auth client and OAuth callback handling
|
|
22
|
+
main.tsx # App initialization and Kora setup
|
|
23
|
+
App.tsx # Main application component
|
|
24
|
+
modules/
|
|
25
|
+
todos/
|
|
26
|
+
todo.schema.ts # Todo collection definition
|
|
27
|
+
todo.queries.ts # Reusable todo query builders
|
|
28
|
+
todo.mutations.ts # Todo mutation helpers
|
|
29
|
+
useTodos.ts # React hook connecting todos to the UI
|
|
30
|
+
kora-worker.ts # SQLite WASM web worker
|
|
31
|
+
index.css # Styles
|
|
32
|
+
server.ts # Kora sync server
|
|
33
|
+
kora.config.ts # Kora configuration
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
In a feature module, `schema` defines data shape, `queries` contain reads only, `mutations` contain
|
|
37
|
+
writes, and `useTodos.ts` is the React binding that exposes todo data and actions to components.
|
|
38
|
+
|
|
39
|
+
## Environment Variables
|
|
40
|
+
|
|
41
|
+
| Variable | Default | Description |
|
|
42
|
+
|----------|---------|-------------|
|
|
43
|
+
| `VITE_SYNC_URL` | `ws://localhost:3001` | WebSocket URL for the sync server |
|
|
44
|
+
| `VITE_AUTH_URL` | current origin | HTTP URL for `/auth/*` routes |
|
|
45
|
+
| `PORT` | `3001` | Sync server port |
|
|
46
|
+
| `KORA_SERVER_DB` | `./kora-server.db` | SQLite file used by the sync server when `DATABASE_URL` is empty |
|
|
47
|
+
| `KORA_AUTH_DB` | `./kora-auth.db` | SQLite file used by OAuth state and linked identities when `DATABASE_URL` is empty |
|
|
48
|
+
| `DATABASE_URL` | (none) | PostgreSQL connection string for production sync server deployments |
|
|
49
|
+
| `KORA_SYNC_PATH` | `/kora-sync` | WebSocket path exposed by the sync server |
|
|
50
|
+
| `KORA_AUTH_SECRET` | (none) | Enables built-in `/auth/*` routes and authenticated sync when set |
|
|
51
|
+
| `KORA_GOOGLE_CLIENT_ID` | (none) | Enables Google OAuth when set with `KORA_GOOGLE_REDIRECT_URI` |
|
|
52
|
+
| `KORA_GOOGLE_CLIENT_SECRET` | (none) | Google OAuth client secret for confidential web clients |
|
|
53
|
+
| `KORA_GOOGLE_REDIRECT_URI` | (none) | OAuth callback URL, usually your app URL that handles `code` and `state` |
|
|
54
|
+
| `KORA_OAUTH_PKCE` | `true` when no client secret | Enables PKCE for public desktop/mobile OAuth clients |
|
|
55
|
+
| `KORA_ADMIN_TOKEN` | (none) | Protects `/__kora`, `/__kora/status`, and `/__kora/events` |
|
|
56
|
+
| `KORA_METRICS_TOKEN` | (none) | Protects `/__kora/metrics` |
|
|
57
|
+
| `KORA_BACKUP_TOKEN` | (none) | Protects server backup and restore endpoints |
|
|
58
|
+
|
|
59
|
+
## Authentication
|
|
60
|
+
|
|
61
|
+
Set `KORA_AUTH_SECRET` to enable built-in auth on the sync server. Generate a secret with:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The template already creates `src/auth.ts`, wraps the app in `AuthProvider`, and wires sync with `createKoraAuthSync({ authClient, schema })`. To enable Google OAuth, set:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
KORA_AUTH_SECRET=...
|
|
71
|
+
KORA_GOOGLE_CLIENT_ID=...
|
|
72
|
+
KORA_GOOGLE_CLIENT_SECRET=...
|
|
73
|
+
KORA_GOOGLE_REDIRECT_URI=http://localhost:5173
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Use `authClient.signInWithOAuth('google')` for web redirect sign-in, or `authClient.getOAuthAuthorizationUrl('google')` plus `authClient.completeOAuthSignIn('google', { code, state })` for custom handoff flows. See the [Authentication Guide](https://ehoneahobed.github.io/kora/guide/authentication).
|
|
77
|
+
|
|
78
|
+
## Scripts
|
|
79
|
+
|
|
80
|
+
| Script | Description |
|
|
81
|
+
|--------|-------------|
|
|
82
|
+
| `npm run dev` | Start dev server + sync server |
|
|
83
|
+
| `npm run dev:server` | Start sync server only |
|
|
84
|
+
| `npm run build` | Build for production |
|
|
85
|
+
| `npm run preview` | Preview production build |
|
|
86
|
+
|
|
87
|
+
## Deployment
|
|
88
|
+
|
|
89
|
+
The client and sync server must be deployed separately:
|
|
90
|
+
|
|
91
|
+
- **Client**: Any static host (Vercel, Netlify, Cloudflare Pages)
|
|
92
|
+
- **Sync server**: Any Node.js host with WebSocket support (Railway, Render, Fly.io)
|
|
93
|
+
|
|
94
|
+
Set `VITE_SYNC_URL` to your deployed sync server URL when building:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
VITE_SYNC_URL=wss://your-server.example.com npm run build
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Learn More
|
|
101
|
+
|
|
102
|
+
- [Documentation](https://ehoneahobed.github.io/kora/)
|
|
103
|
+
- [Storage Configuration](https://ehoneahobed.github.io/kora/guide/storage-configuration)
|
|
104
|
+
- [Sync Configuration](https://ehoneahobed.github.io/kora/guide/sync-configuration)
|
|
105
|
+
- [Deployment Guide](https://ehoneahobed.github.io/kora/guide/deployment)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>{{projectName}}</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="app"></div>
|
|
10
|
+
<script type="module" src="/src/main.ts"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig } from 'korajs/config'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
schema: './src/schema.ts',
|
|
5
|
+
dev: {
|
|
6
|
+
port: 5173,
|
|
7
|
+
sync: {
|
|
8
|
+
enabled: true,
|
|
9
|
+
port: 3001,
|
|
10
|
+
store: 'sqlite',
|
|
11
|
+
},
|
|
12
|
+
watch: {
|
|
13
|
+
enabled: true,
|
|
14
|
+
debounceMs: 300,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{projectName}}",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "kora dev",
|
|
8
|
+
"dev:server": "tsx server.ts",
|
|
9
|
+
"build": "vite build",
|
|
10
|
+
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
11
|
+
"start": "node --import tsx server.ts",
|
|
12
|
+
"preview": "vite preview"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"korajs": "{{koraVersion}}",
|
|
16
|
+
"@korajs/auth": "{{koraVersion}}",
|
|
17
|
+
"@korajs/svelte": "{{koraVersion}}",
|
|
18
|
+
"@korajs/store": "{{koraVersion}}",
|
|
19
|
+
"@sqlite.org/sqlite-wasm": ">=3.51.0-build1",
|
|
20
|
+
"svelte": "^5.0.0",
|
|
21
|
+
"ws": "^8.18.0",
|
|
22
|
+
"yjs": "^13.6.30"
|
|
23
|
+
},
|
|
24
|
+
"pnpm": {
|
|
25
|
+
"onlyBuiltDependencies": [
|
|
26
|
+
"better-sqlite3",
|
|
27
|
+
"esbuild",
|
|
28
|
+
"protobufjs"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@korajs/cli": "{{koraVersion}}",
|
|
33
|
+
"@korajs/server": "{{koraVersion}}",
|
|
34
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
35
|
+
"@types/ws": "^8.5.0",
|
|
36
|
+
"better-sqlite3": "^12.9.0",
|
|
37
|
+
"postgres": "^3.4.0",
|
|
38
|
+
"svelte-check": "^4.1.0",
|
|
39
|
+
"tsx": "^4.19.0",
|
|
40
|
+
"typescript": "^5.7.0",
|
|
41
|
+
"vite": "^6.0.0"
|
|
42
|
+
}
|
|
43
|
+
}
|