create-next-imagicma 0.1.13 → 0.1.14
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/template-hono/.env.example +16 -3
- package/template-hono/AGENTS.md +83 -16
- package/template-hono/README.md +89 -3
- package/template-hono/client/src/components/HelloClient.tsx +1 -1
- package/template-hono/client/src/globals.css +1 -417
- package/template-hono/client/src/lib/ai-ui-stream.ts +64 -0
- package/template-hono/client/src/providers.tsx +1 -1
- package/template-hono/client/src/theme/default-theme.css +482 -0
- package/template-hono/drizzle.config.ts +3 -36
- package/template-hono/package.json +5 -1
- package/template-hono/pnpm-lock.yaml +186 -54
- package/template-hono/server/app.ts +2 -0
- package/template-hono/server/controllers/ai-chat-controller.ts +49 -0
- package/template-hono/server/controllers/greeting-controller.ts +25 -0
- package/template-hono/server/db/client.ts +25 -0
- package/template-hono/server/env.ts +89 -0
- package/template-hono/server/index.ts +1 -1
- package/template-hono/server/lib/ai-provider.ts +74 -0
- package/template-hono/server/lib/ai.ts +205 -0
- package/template-hono/server/middlewares/auth.ts +69 -0
- package/template-hono/server/middlewares/index.ts +12 -0
- package/template-hono/server/repositories/message-repository.ts +13 -0
- package/template-hono/server/routes/ai-chat.ts +9 -0
- package/template-hono/server/routes/greeting.ts +2 -18
- package/template-hono/shared/routes.ts +55 -0
- package/template-hono/shared/schema/greeting.ts +17 -0
- package/template-hono/shared/schema.ts +8 -16
- package/template-hono/tailwind.config.mjs +111 -62
- package/template-hono/vite.config.ts +1 -1
- package/template-hono/server/database-path.ts +0 -35
- package/template-hono/server/db.ts +0 -20
- package/template-hono/server/storage.ts +0 -30
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Fonts */
|
|
3
|
+
--font-sans: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
|
4
|
+
"Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
5
|
+
--font-display: "Poppins", "PingFang SC", "Hiragino Sans GB",
|
|
6
|
+
"Microsoft YaHei", sans-serif;
|
|
7
|
+
--font-serif: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
|
8
|
+
"Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
9
|
+
--font-mono: Menlo, ui-monospace, SFMono-Regular, Monaco, Consolas,
|
|
10
|
+
"Liberation Mono", "Courier New", monospace;
|
|
11
|
+
|
|
12
|
+
/* Shape defaults */
|
|
13
|
+
--radius: 1rem;
|
|
14
|
+
--radius-lg-token: 2rem;
|
|
15
|
+
--radius-xl-token: 3rem;
|
|
16
|
+
--radius-full-token: 9999px;
|
|
17
|
+
|
|
18
|
+
/* Design tokens */
|
|
19
|
+
--background-base: 200 69.2% 97.5%;
|
|
20
|
+
--on-background: 193.3 17% 10.4%;
|
|
21
|
+
--surface: 200 69.2% 97.5%;
|
|
22
|
+
--surface-bright: 200 69.2% 97.5%;
|
|
23
|
+
--surface-dim: 193.3 11.7% 84.9%;
|
|
24
|
+
--surface-container-lowest: 0 0% 100%;
|
|
25
|
+
--surface-container-low: 193.3 36% 95.1%;
|
|
26
|
+
--surface-container: 193.3 24.3% 92.7%;
|
|
27
|
+
--surface-container-high: 198 20.8% 90.6%;
|
|
28
|
+
--surface-container-highest: 193.3 15.3% 88.4%;
|
|
29
|
+
--surface-variant: 193.3 15.3% 88.4%;
|
|
30
|
+
--surface-tint: 167.7 100% 21%;
|
|
31
|
+
--on-surface: 193.3 17% 10.4%;
|
|
32
|
+
--on-surface-variant: 154.3 10.4% 26.3%;
|
|
33
|
+
|
|
34
|
+
--primary: 167.7 100% 21%;
|
|
35
|
+
--on-primary: 0 0% 100%;
|
|
36
|
+
--primary-container: 168.3 100% 36.1%;
|
|
37
|
+
--on-primary-container: 166.4 100% 12.9%;
|
|
38
|
+
--primary-fixed: 163 93.4% 70.4%;
|
|
39
|
+
--primary-fixed-dim: 164.4 68.2% 58%;
|
|
40
|
+
--on-primary-fixed: 165 100% 6.3%;
|
|
41
|
+
--on-primary-fixed-variant: 167.4 100% 15.9%;
|
|
42
|
+
--inverse-primary: 164.4 68.2% 58%;
|
|
43
|
+
|
|
44
|
+
--secondary: 358.4 51.4% 43.5%;
|
|
45
|
+
--on-secondary: 0 0% 100%;
|
|
46
|
+
--secondary-container: 0.4 100% 72.9%;
|
|
47
|
+
--on-secondary-container: 353.6 82.4% 24.5%;
|
|
48
|
+
--secondary-fixed: 3.1 100% 92.4%;
|
|
49
|
+
--secondary-fixed-dim: 2.3 100% 84.5%;
|
|
50
|
+
--on-secondary-fixed: 354.5 100% 12.7%;
|
|
51
|
+
--on-secondary-fixed-variant: 356.1 64.8% 32.4%;
|
|
52
|
+
|
|
53
|
+
--tertiary: 244.5 36.8% 50.4%;
|
|
54
|
+
--on-tertiary: 0 0% 100%;
|
|
55
|
+
--tertiary-container: 244.2 90.8% 78.6%;
|
|
56
|
+
--on-tertiary-container: 246.4 53.4% 34.5%;
|
|
57
|
+
--tertiary-fixed: 247.5 100% 93.7%;
|
|
58
|
+
--tertiary-fixed-dim: 244.8 100% 87.6%;
|
|
59
|
+
--on-tertiary-fixed: 251.7 100% 20.2%;
|
|
60
|
+
--on-tertiary-fixed-variant: 245.2 44.9% 40.6%;
|
|
61
|
+
|
|
62
|
+
--error: 0 75.5% 41.6%;
|
|
63
|
+
--on-error: 0 0% 100%;
|
|
64
|
+
--error-container: 5.9 100% 92%;
|
|
65
|
+
--on-error-container: 355.9 100% 28.8%;
|
|
66
|
+
|
|
67
|
+
--outline: 154.3 6.1% 45.1%;
|
|
68
|
+
--outline-variant: 152 12.4% 76.3%;
|
|
69
|
+
--inverse-surface: 193.3 9.5% 18.6%;
|
|
70
|
+
--inverse-on-surface: 193.3 29% 93.9%;
|
|
71
|
+
|
|
72
|
+
/* Semantic aliases consumed by the current app */
|
|
73
|
+
--background: var(--background-base);
|
|
74
|
+
--foreground: var(--on-background);
|
|
75
|
+
|
|
76
|
+
--card: var(--surface-container-lowest);
|
|
77
|
+
--card-foreground: var(--on-surface);
|
|
78
|
+
|
|
79
|
+
--popover: var(--surface-container-low);
|
|
80
|
+
--popover-foreground: var(--on-surface);
|
|
81
|
+
|
|
82
|
+
--primary-foreground: var(--on-primary);
|
|
83
|
+
--secondary-foreground: var(--on-secondary);
|
|
84
|
+
|
|
85
|
+
--muted: var(--surface-container);
|
|
86
|
+
--muted-foreground: var(--on-surface-variant);
|
|
87
|
+
|
|
88
|
+
--accent: var(--secondary-container);
|
|
89
|
+
--accent-foreground: var(--on-secondary-container);
|
|
90
|
+
|
|
91
|
+
--destructive: var(--error);
|
|
92
|
+
--destructive-foreground: var(--on-error);
|
|
93
|
+
|
|
94
|
+
--border: var(--outline-variant);
|
|
95
|
+
--input: var(--surface-variant);
|
|
96
|
+
--ring: var(--primary);
|
|
97
|
+
|
|
98
|
+
/* Visual system tokens for showcase pages */
|
|
99
|
+
--surface-1: var(--surface-container-lowest);
|
|
100
|
+
--surface-2: var(--surface-container-low);
|
|
101
|
+
--brand-accent: var(--tertiary-container);
|
|
102
|
+
--brand-success: var(--primary-container);
|
|
103
|
+
--elevation-soft: 0 14px 34px rgba(15, 23, 42, 0.12);
|
|
104
|
+
--elevation-strong: 0 22px 56px rgba(15, 23, 42, 0.18);
|
|
105
|
+
--space-xs: 0.625rem;
|
|
106
|
+
--space-sm: 0.875rem;
|
|
107
|
+
--space-md: 1.125rem;
|
|
108
|
+
--space-lg: 1.625rem;
|
|
109
|
+
|
|
110
|
+
/* Extra tokens used by the migrated shadcn components */
|
|
111
|
+
--card-border: var(--outline-variant);
|
|
112
|
+
--popover-border: var(--outline-variant);
|
|
113
|
+
--sidebar: var(--surface-container-low);
|
|
114
|
+
--sidebar-foreground: var(--on-surface);
|
|
115
|
+
--sidebar-border: var(--outline-variant);
|
|
116
|
+
--sidebar-ring: var(--primary);
|
|
117
|
+
--sidebar-accent: var(--secondary-container);
|
|
118
|
+
--sidebar-accent-foreground: var(--on-secondary-container);
|
|
119
|
+
|
|
120
|
+
--chart-1: var(--primary);
|
|
121
|
+
--chart-2: var(--secondary);
|
|
122
|
+
--chart-3: var(--tertiary);
|
|
123
|
+
--chart-4: var(--primary-container);
|
|
124
|
+
--chart-5: var(--error);
|
|
125
|
+
|
|
126
|
+
/* Border colors expected by template classnames */
|
|
127
|
+
--primary-border: hsl(var(--primary) / 0.18);
|
|
128
|
+
--secondary-border: hsl(var(--outline-variant));
|
|
129
|
+
--muted-border: hsl(var(--outline-variant));
|
|
130
|
+
--accent-border: hsl(var(--secondary-container) / 0.4);
|
|
131
|
+
--destructive-border: hsl(var(--error) / 0.25);
|
|
132
|
+
|
|
133
|
+
--button-outline: hsl(var(--outline-variant));
|
|
134
|
+
--badge-outline: hsl(var(--outline-variant));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.dark {
|
|
138
|
+
/* Design tokens */
|
|
139
|
+
--background-base: 193.3 9.5% 18.6%;
|
|
140
|
+
--on-background: 193.3 29% 93.9%;
|
|
141
|
+
--surface: 193.3 9.5% 18.6%;
|
|
142
|
+
--surface-bright: 193.3 8.5% 24%;
|
|
143
|
+
--surface-dim: 193.3 10% 12%;
|
|
144
|
+
--surface-container-lowest: 193.3 11% 8%;
|
|
145
|
+
--surface-container-low: 193.3 10% 12%;
|
|
146
|
+
--surface-container: 193.3 10% 16%;
|
|
147
|
+
--surface-container-high: 193.3 10% 20%;
|
|
148
|
+
--surface-container-highest: 193.3 10.4% 26.3%;
|
|
149
|
+
--surface-variant: 154.3 10.4% 26.3%;
|
|
150
|
+
--surface-tint: 164.4 68.2% 58%;
|
|
151
|
+
--on-surface: 193.3 29% 93.9%;
|
|
152
|
+
--on-surface-variant: 152 12.4% 76.3%;
|
|
153
|
+
|
|
154
|
+
--primary: 164.4 68.2% 58%;
|
|
155
|
+
--on-primary: 165 100% 6.3%;
|
|
156
|
+
--primary-container: 167.4 100% 15.9%;
|
|
157
|
+
--on-primary-container: 163 93.4% 70.4%;
|
|
158
|
+
--primary-fixed: 163 93.4% 70.4%;
|
|
159
|
+
--primary-fixed-dim: 164.4 68.2% 58%;
|
|
160
|
+
--on-primary-fixed: 165 100% 6.3%;
|
|
161
|
+
--on-primary-fixed-variant: 167.4 100% 15.9%;
|
|
162
|
+
--inverse-primary: 167.7 100% 21%;
|
|
163
|
+
|
|
164
|
+
--secondary: 2.3 100% 84.5%;
|
|
165
|
+
--on-secondary: 354.5 100% 12.7%;
|
|
166
|
+
--secondary-container: 356.1 64.8% 32.4%;
|
|
167
|
+
--on-secondary-container: 3.1 100% 92.4%;
|
|
168
|
+
--secondary-fixed: 3.1 100% 92.4%;
|
|
169
|
+
--secondary-fixed-dim: 2.3 100% 84.5%;
|
|
170
|
+
--on-secondary-fixed: 354.5 100% 12.7%;
|
|
171
|
+
--on-secondary-fixed-variant: 356.1 64.8% 32.4%;
|
|
172
|
+
|
|
173
|
+
--tertiary: 244.8 100% 87.6%;
|
|
174
|
+
--on-tertiary: 251.7 100% 20.2%;
|
|
175
|
+
--tertiary-container: 245.2 44.9% 40.6%;
|
|
176
|
+
--on-tertiary-container: 247.5 100% 93.7%;
|
|
177
|
+
--tertiary-fixed: 247.5 100% 93.7%;
|
|
178
|
+
--tertiary-fixed-dim: 244.8 100% 87.6%;
|
|
179
|
+
--on-tertiary-fixed: 251.7 100% 20.2%;
|
|
180
|
+
--on-tertiary-fixed-variant: 245.2 44.9% 40.6%;
|
|
181
|
+
|
|
182
|
+
--error: 0 62.8% 30.6%;
|
|
183
|
+
--on-error: 0 0% 98%;
|
|
184
|
+
--error-container: 355.9 100% 28.8%;
|
|
185
|
+
--on-error-container: 5.9 100% 92%;
|
|
186
|
+
|
|
187
|
+
--outline: 152 12.4% 60%;
|
|
188
|
+
--outline-variant: 154.3 10.4% 26.3%;
|
|
189
|
+
--inverse-surface: 200 69.2% 97.5%;
|
|
190
|
+
--inverse-on-surface: 193.3 17% 10.4%;
|
|
191
|
+
|
|
192
|
+
/* Semantic aliases consumed by the current app */
|
|
193
|
+
--background: var(--background-base);
|
|
194
|
+
--foreground: var(--on-background);
|
|
195
|
+
|
|
196
|
+
--card: var(--surface-container-low);
|
|
197
|
+
--card-foreground: var(--on-surface);
|
|
198
|
+
|
|
199
|
+
--popover: var(--surface-container);
|
|
200
|
+
--popover-foreground: var(--on-surface);
|
|
201
|
+
|
|
202
|
+
--primary-foreground: var(--on-primary);
|
|
203
|
+
--secondary-foreground: var(--on-secondary);
|
|
204
|
+
|
|
205
|
+
--muted: var(--surface-container-high);
|
|
206
|
+
--muted-foreground: var(--on-surface-variant);
|
|
207
|
+
|
|
208
|
+
--accent: var(--secondary-container);
|
|
209
|
+
--accent-foreground: var(--on-secondary-container);
|
|
210
|
+
|
|
211
|
+
--destructive: var(--error);
|
|
212
|
+
--destructive-foreground: var(--on-error);
|
|
213
|
+
|
|
214
|
+
--border: var(--outline-variant);
|
|
215
|
+
--input: var(--surface-container-high);
|
|
216
|
+
--ring: var(--primary);
|
|
217
|
+
|
|
218
|
+
/* Visual system tokens for showcase pages */
|
|
219
|
+
--surface-1: var(--surface-container-low);
|
|
220
|
+
--surface-2: var(--surface-container);
|
|
221
|
+
--brand-accent: var(--tertiary-fixed-dim);
|
|
222
|
+
--brand-success: var(--primary-fixed-dim);
|
|
223
|
+
|
|
224
|
+
/* Extra tokens used by the migrated shadcn components */
|
|
225
|
+
--card-border: var(--outline-variant);
|
|
226
|
+
--popover-border: var(--outline-variant);
|
|
227
|
+
--sidebar: var(--surface-container-low);
|
|
228
|
+
--sidebar-foreground: var(--on-surface);
|
|
229
|
+
--sidebar-border: var(--outline-variant);
|
|
230
|
+
--sidebar-ring: var(--primary);
|
|
231
|
+
--sidebar-accent: var(--secondary-container);
|
|
232
|
+
--sidebar-accent-foreground: var(--on-secondary-container);
|
|
233
|
+
|
|
234
|
+
--chart-1: var(--primary-fixed-dim);
|
|
235
|
+
--chart-2: var(--secondary-fixed-dim);
|
|
236
|
+
--chart-3: var(--tertiary-fixed-dim);
|
|
237
|
+
--chart-4: var(--primary-fixed);
|
|
238
|
+
--chart-5: var(--error-container);
|
|
239
|
+
|
|
240
|
+
/* Border colors expected by template classnames */
|
|
241
|
+
--primary-border: hsl(var(--primary) / 0.15);
|
|
242
|
+
--secondary-border: hsl(var(--outline-variant));
|
|
243
|
+
--muted-border: hsl(var(--outline-variant));
|
|
244
|
+
--accent-border: hsl(var(--secondary-fixed-dim) / 0.35);
|
|
245
|
+
--destructive-border: hsl(var(--error-container) / 0.35);
|
|
246
|
+
|
|
247
|
+
--button-outline: hsl(var(--outline-variant));
|
|
248
|
+
--badge-outline: hsl(var(--outline-variant));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Theme style presets (used by html[data-theme-style="<preset>"]) */
|
|
252
|
+
:root[data-theme-style="quadratic"] {
|
|
253
|
+
--background: 246 33% 96%;
|
|
254
|
+
--foreground: 233 24% 17%;
|
|
255
|
+
|
|
256
|
+
--card: 0 0% 100%;
|
|
257
|
+
--card-foreground: 233 24% 17%;
|
|
258
|
+
--popover: 0 0% 100%;
|
|
259
|
+
--popover-foreground: 233 24% 17%;
|
|
260
|
+
|
|
261
|
+
--primary: 258 84% 63%;
|
|
262
|
+
--primary-foreground: 0 0% 100%;
|
|
263
|
+
--secondary: 250 44% 92%;
|
|
264
|
+
--secondary-foreground: 233 24% 20%;
|
|
265
|
+
--muted: 246 36% 93%;
|
|
266
|
+
--muted-foreground: 230 12% 42%;
|
|
267
|
+
--accent: 257 62% 88%;
|
|
268
|
+
--accent-foreground: 234 24% 24%;
|
|
269
|
+
|
|
270
|
+
--border: 246 24% 86%;
|
|
271
|
+
--input: 246 24% 84%;
|
|
272
|
+
--ring: 258 84% 63%;
|
|
273
|
+
|
|
274
|
+
--chart-1: 258 78% 56%;
|
|
275
|
+
--chart-2: 201 84% 56%;
|
|
276
|
+
--chart-3: 172 65% 45%;
|
|
277
|
+
--chart-4: 338 74% 58%;
|
|
278
|
+
--chart-5: 39 84% 58%;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.dark[data-theme-style="quadratic"] {
|
|
282
|
+
--background: 233 22% 11%;
|
|
283
|
+
--foreground: 246 33% 96%;
|
|
284
|
+
|
|
285
|
+
--card: 232 20% 14%;
|
|
286
|
+
--card-foreground: 246 33% 96%;
|
|
287
|
+
--popover: 232 20% 14%;
|
|
288
|
+
--popover-foreground: 246 33% 96%;
|
|
289
|
+
|
|
290
|
+
--primary: 258 90% 70%;
|
|
291
|
+
--primary-foreground: 233 22% 11%;
|
|
292
|
+
--secondary: 235 16% 20%;
|
|
293
|
+
--secondary-foreground: 246 30% 94%;
|
|
294
|
+
--muted: 234 14% 18%;
|
|
295
|
+
--muted-foreground: 240 15% 76%;
|
|
296
|
+
--accent: 235 16% 20%;
|
|
297
|
+
--accent-foreground: 246 30% 94%;
|
|
298
|
+
|
|
299
|
+
--border: 234 14% 26%;
|
|
300
|
+
--input: 234 14% 26%;
|
|
301
|
+
--ring: 258 90% 70%;
|
|
302
|
+
|
|
303
|
+
--chart-1: 258 90% 70%;
|
|
304
|
+
--chart-2: 201 78% 68%;
|
|
305
|
+
--chart-3: 172 58% 62%;
|
|
306
|
+
--chart-4: 338 76% 72%;
|
|
307
|
+
--chart-5: 39 78% 70%;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
:root[data-theme-style="honey"] {
|
|
311
|
+
--background: 49 38.1% 91.8%;
|
|
312
|
+
--foreground: 40 52.9% 27.5%;
|
|
313
|
+
|
|
314
|
+
--card: 49 42% 95%;
|
|
315
|
+
--card-foreground: 40 52.9% 27.5%;
|
|
316
|
+
--popover: 49 42% 95%;
|
|
317
|
+
--popover-foreground: 40 52.9% 27.5%;
|
|
318
|
+
|
|
319
|
+
--primary: 40 72.8% 68.2%;
|
|
320
|
+
--primary-foreground: 40 52.9% 18%;
|
|
321
|
+
--secondary: 63 20.8% 79.2%;
|
|
322
|
+
--secondary-foreground: 40 52.9% 27.5%;
|
|
323
|
+
--muted: 49 30% 88%;
|
|
324
|
+
--muted-foreground: 40 24% 38%;
|
|
325
|
+
--accent: 63 20.8% 79.2%;
|
|
326
|
+
--accent-foreground: 40 52.9% 27.5%;
|
|
327
|
+
|
|
328
|
+
--border: 52 22% 74%;
|
|
329
|
+
--input: 52 22% 74%;
|
|
330
|
+
--ring: 40 72.8% 68.2%;
|
|
331
|
+
|
|
332
|
+
--chart-1: 40 72.8% 55%;
|
|
333
|
+
--chart-2: 63 30% 45%;
|
|
334
|
+
--chart-3: 173 25% 42%;
|
|
335
|
+
--chart-4: 18 56% 50%;
|
|
336
|
+
--chart-5: 240 16% 52%;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.dark[data-theme-style="honey"] {
|
|
340
|
+
--background: 36 38% 10%;
|
|
341
|
+
--foreground: 49 30% 88%;
|
|
342
|
+
|
|
343
|
+
--card: 34 30% 14%;
|
|
344
|
+
--card-foreground: 49 30% 88%;
|
|
345
|
+
--popover: 34 30% 14%;
|
|
346
|
+
--popover-foreground: 49 30% 88%;
|
|
347
|
+
|
|
348
|
+
--primary: 40 72.8% 68.2%;
|
|
349
|
+
--primary-foreground: 36 38% 10%;
|
|
350
|
+
--secondary: 38 20% 20%;
|
|
351
|
+
--secondary-foreground: 49 30% 88%;
|
|
352
|
+
--muted: 38 18% 18%;
|
|
353
|
+
--muted-foreground: 49 18% 70%;
|
|
354
|
+
--accent: 38 18% 18%;
|
|
355
|
+
--accent-foreground: 49 30% 88%;
|
|
356
|
+
|
|
357
|
+
--border: 38 18% 26%;
|
|
358
|
+
--input: 38 18% 26%;
|
|
359
|
+
--ring: 40 72.8% 68.2%;
|
|
360
|
+
|
|
361
|
+
--chart-1: 40 72.8% 68.2%;
|
|
362
|
+
--chart-2: 63 35% 58%;
|
|
363
|
+
--chart-3: 173 30% 56%;
|
|
364
|
+
--chart-4: 20 56% 64%;
|
|
365
|
+
--chart-5: 240 22% 70%;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
:root[data-theme-style="zen-garden"] {
|
|
369
|
+
--background: 84 9.8% 90%;
|
|
370
|
+
--foreground: 225 18.2% 8.6%;
|
|
371
|
+
|
|
372
|
+
--card: 84 12% 94%;
|
|
373
|
+
--card-foreground: 225 18.2% 8.6%;
|
|
374
|
+
--popover: 84 12% 94%;
|
|
375
|
+
--popover-foreground: 225 18.2% 8.6%;
|
|
376
|
+
|
|
377
|
+
--primary: 173 24.7% 62%;
|
|
378
|
+
--primary-foreground: 225 18.2% 8.6%;
|
|
379
|
+
--secondary: 289 32.9% 72%;
|
|
380
|
+
--secondary-foreground: 225 18.2% 8.6%;
|
|
381
|
+
--muted: 84 10% 86%;
|
|
382
|
+
--muted-foreground: 225 10% 36%;
|
|
383
|
+
--accent: 289 32.9% 72%;
|
|
384
|
+
--accent-foreground: 225 18.2% 8.6%;
|
|
385
|
+
|
|
386
|
+
--border: 84 8% 78%;
|
|
387
|
+
--input: 84 8% 78%;
|
|
388
|
+
--ring: 173 24.7% 62%;
|
|
389
|
+
|
|
390
|
+
--chart-1: 173 24.7% 48%;
|
|
391
|
+
--chart-2: 289 32.9% 58%;
|
|
392
|
+
--chart-3: 40 68% 56%;
|
|
393
|
+
--chart-4: 220 26% 50%;
|
|
394
|
+
--chart-5: 0 55% 58%;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.dark[data-theme-style="zen-garden"] {
|
|
398
|
+
--background: 225 18.2% 8.6%;
|
|
399
|
+
--foreground: 84 9.8% 90%;
|
|
400
|
+
|
|
401
|
+
--card: 225 16% 12%;
|
|
402
|
+
--card-foreground: 84 9.8% 90%;
|
|
403
|
+
--popover: 225 16% 12%;
|
|
404
|
+
--popover-foreground: 84 9.8% 90%;
|
|
405
|
+
|
|
406
|
+
--primary: 173 30% 66%;
|
|
407
|
+
--primary-foreground: 225 18.2% 8.6%;
|
|
408
|
+
--secondary: 225 12% 18%;
|
|
409
|
+
--secondary-foreground: 84 9.8% 90%;
|
|
410
|
+
--muted: 225 10% 15%;
|
|
411
|
+
--muted-foreground: 84 8% 72%;
|
|
412
|
+
--accent: 225 10% 15%;
|
|
413
|
+
--accent-foreground: 84 9.8% 90%;
|
|
414
|
+
|
|
415
|
+
--border: 225 10% 24%;
|
|
416
|
+
--input: 225 10% 24%;
|
|
417
|
+
--ring: 173 30% 66%;
|
|
418
|
+
|
|
419
|
+
--chart-1: 173 30% 66%;
|
|
420
|
+
--chart-2: 289 36% 70%;
|
|
421
|
+
--chart-3: 40 68% 64%;
|
|
422
|
+
--chart-4: 220 30% 70%;
|
|
423
|
+
--chart-5: 355 65% 68%;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
:root[data-theme-style="highlighter"] {
|
|
427
|
+
--background: 228 23.8% 95.9%;
|
|
428
|
+
--foreground: 223 18.9% 7.3%;
|
|
429
|
+
|
|
430
|
+
--card: 228 24% 98%;
|
|
431
|
+
--card-foreground: 223 18.9% 7.3%;
|
|
432
|
+
--popover: 228 24% 98%;
|
|
433
|
+
--popover-foreground: 223 18.9% 7.3%;
|
|
434
|
+
|
|
435
|
+
--primary: 97 70.5% 64.1%;
|
|
436
|
+
--primary-foreground: 223 18.9% 7.3%;
|
|
437
|
+
--secondary: 249 35.6% 88.4%;
|
|
438
|
+
--secondary-foreground: 223 18.9% 7.3%;
|
|
439
|
+
--muted: 228 20% 92%;
|
|
440
|
+
--muted-foreground: 223 10% 35%;
|
|
441
|
+
--accent: 249 35.6% 88.4%;
|
|
442
|
+
--accent-foreground: 223 18.9% 7.3%;
|
|
443
|
+
|
|
444
|
+
--border: 238 20% 84%;
|
|
445
|
+
--input: 238 20% 84%;
|
|
446
|
+
--ring: 97 70.5% 64.1%;
|
|
447
|
+
|
|
448
|
+
--chart-1: 97 70.5% 48%;
|
|
449
|
+
--chart-2: 249 45% 56%;
|
|
450
|
+
--chart-3: 202 72% 54%;
|
|
451
|
+
--chart-4: 339 78% 58%;
|
|
452
|
+
--chart-5: 40 78% 58%;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.dark[data-theme-style="highlighter"] {
|
|
456
|
+
--background: 223 18.9% 7.3%;
|
|
457
|
+
--foreground: 228 23.8% 95.9%;
|
|
458
|
+
|
|
459
|
+
--card: 223 16% 11%;
|
|
460
|
+
--card-foreground: 228 23.8% 95.9%;
|
|
461
|
+
--popover: 223 16% 11%;
|
|
462
|
+
--popover-foreground: 228 23.8% 95.9%;
|
|
463
|
+
|
|
464
|
+
--primary: 97 74% 66%;
|
|
465
|
+
--primary-foreground: 223 18.9% 7.3%;
|
|
466
|
+
--secondary: 223 12% 18%;
|
|
467
|
+
--secondary-foreground: 228 23.8% 95.9%;
|
|
468
|
+
--muted: 223 10% 15%;
|
|
469
|
+
--muted-foreground: 228 14% 72%;
|
|
470
|
+
--accent: 223 10% 15%;
|
|
471
|
+
--accent-foreground: 228 23.8% 95.9%;
|
|
472
|
+
|
|
473
|
+
--border: 223 10% 24%;
|
|
474
|
+
--input: 223 10% 24%;
|
|
475
|
+
--ring: 97 74% 66%;
|
|
476
|
+
|
|
477
|
+
--chart-1: 97 74% 66%;
|
|
478
|
+
--chart-2: 249 50% 72%;
|
|
479
|
+
--chart-3: 202 78% 70%;
|
|
480
|
+
--chart-4: 339 80% 70%;
|
|
481
|
+
--chart-5: 40 78% 68%;
|
|
482
|
+
}
|
|
@@ -1,45 +1,12 @@
|
|
|
1
1
|
import { defineConfig } from "drizzle-kit";
|
|
2
|
-
import
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { ensureDatabaseUrl } from "./server/database-path";
|
|
2
|
+
import { requireDatabaseUrl } from "./server/env";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
const filepath = path.resolve(process.cwd(), file);
|
|
8
|
-
if (!fs.existsSync(filepath)) return;
|
|
9
|
-
|
|
10
|
-
const content = fs.readFileSync(filepath, "utf8");
|
|
11
|
-
|
|
12
|
-
for (const rawLine of content.split(/\r?\n/u)) {
|
|
13
|
-
const line = rawLine.trim();
|
|
14
|
-
if (!line || line.startsWith("#")) continue;
|
|
15
|
-
|
|
16
|
-
const match = /^([A-Za-z_][A-Za-z0-9_]*)=(.*)$/u.exec(line);
|
|
17
|
-
if (!match) continue;
|
|
18
|
-
|
|
19
|
-
const key = match[1];
|
|
20
|
-
let value = match[2] ?? "";
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
(value.startsWith('"') && value.endsWith('"')) ||
|
|
24
|
-
(value.startsWith("'") && value.endsWith("'"))
|
|
25
|
-
) {
|
|
26
|
-
value = value.slice(1, -1);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (process.env[key] === undefined) {
|
|
30
|
-
process.env[key] = value;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
tryLoadEnvFile(".env.local");
|
|
36
|
-
tryLoadEnvFile(".env");
|
|
37
|
-
const databaseUrl = ensureDatabaseUrl();
|
|
4
|
+
const databaseUrl = requireDatabaseUrl();
|
|
38
5
|
|
|
39
6
|
export default defineConfig({
|
|
40
7
|
out: "./migrations",
|
|
41
8
|
schema: "./shared/schema.ts",
|
|
42
|
-
dialect: "
|
|
9
|
+
dialect: "postgresql",
|
|
43
10
|
dbCredentials: {
|
|
44
11
|
url: databaseUrl,
|
|
45
12
|
},
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
"lint": "eslint ."
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"@ai-sdk/openai": "^2.0.102",
|
|
17
|
+
"@ai-sdk/openai-compatible": "^1.0.13",
|
|
16
18
|
"@hono/node-server": "^1.19.9",
|
|
17
19
|
"@hono/zod-validator": "^0.7.6",
|
|
18
|
-
"@libsql/client": "^0.17.0",
|
|
19
20
|
"@radix-ui/react-accordion": "^1.2.4",
|
|
20
21
|
"@radix-ui/react-alert-dialog": "^1.1.7",
|
|
21
22
|
"@radix-ui/react-aspect-ratio": "^1.1.3",
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"@radix-ui/react-toggle-group": "^1.1.3",
|
|
45
46
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
46
47
|
"@tanstack/react-query": "^5.60.5",
|
|
48
|
+
"ai": "^5.0.172",
|
|
47
49
|
"class-variance-authority": "^0.7.1",
|
|
48
50
|
"clsx": "^2.1.1",
|
|
49
51
|
"cmdk": "^1.1.1",
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
"input-otp": "^1.4.2",
|
|
56
58
|
"lucide-react": "^0.453.0",
|
|
57
59
|
"next-themes": "^0.4.6",
|
|
60
|
+
"pg": "^8.20.0",
|
|
58
61
|
"react": "19.2.3",
|
|
59
62
|
"react-day-picker": "^9.13.0",
|
|
60
63
|
"react-dom": "19.2.3",
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
"@hono/vite-dev-server": "^0.25.0",
|
|
71
74
|
"@tailwindcss/postcss": "^4",
|
|
72
75
|
"@types/node": "^20",
|
|
76
|
+
"@types/pg": "^8.20.0",
|
|
73
77
|
"@types/react": "^19",
|
|
74
78
|
"@types/react-dom": "^19",
|
|
75
79
|
"@vitejs/plugin-react": "^5.1.0",
|