@horizonwing/engine 0.0.0-stage → 0.1.1
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/README.md +32 -2
- package/drizzle/pg/schema.ts +100 -0
- package/drizzle/postgres/0000_smooth_princess_powerful.sql +34 -0
- package/drizzle/postgres/0001_colossal_morbius.sql +50 -0
- package/drizzle/postgres/README.md +23 -0
- package/drizzle/postgres/meta/0000_snapshot.json +244 -0
- package/drizzle/postgres/meta/0001_snapshot.json +545 -0
- package/drizzle/postgres/meta/_journal.json +20 -0
- package/drizzle/schema.ts +128 -0
- package/drizzle/sqlite/0000_cooing_jackpot.sql +34 -0
- package/drizzle/sqlite/0001_living_ben_urich.sql +49 -0
- package/drizzle/sqlite/meta/0000_snapshot.json +231 -0
- package/drizzle/sqlite/meta/0001_snapshot.json +554 -0
- package/drizzle/sqlite/meta/_journal.json +20 -0
- package/package.json +80 -4
- package/src/account-pages.tsx +152 -0
- package/src/auth.tsx +265 -0
- package/src/cache.ts +199 -0
- package/src/content.ts +448 -0
- package/src/db.ts +107 -0
- package/src/feeds.ts +376 -0
- package/src/guard.ts +126 -0
- package/src/html.ts +20 -0
- package/src/i18n.ts +304 -0
- package/src/index.ts +27 -0
- package/src/md.ts +278 -0
- package/src/media.ts +70 -0
- package/src/password.ts +59 -0
- package/src/platform.node.ts +98 -0
- package/src/platform.postgres.ts +61 -0
- package/src/platform.shared.ts +114 -0
- package/src/platform.ts +24 -0
- package/src/platform.workers.ts +94 -0
- package/src/ratelimit.ts +144 -0
- package/src/section.ts +123 -0
- package/src/sections/blog/index.tsx +93 -0
- package/src/sections/blog/schema.ts +12 -0
- package/src/sections/blog/views/pages.tsx +167 -0
- package/src/sections/docs/index.tsx +67 -0
- package/src/sections/docs/schema.ts +16 -0
- package/src/sections/docs/views/pages.tsx +181 -0
- package/src/sections/landing/index.tsx +42 -0
- package/src/sections/landing/views/pages.tsx +218 -0
- package/src/seo.ts +193 -0
- package/src/server.ts +122 -0
- package/src/services/content.ts +342 -0
- package/src/turnstile.ts +62 -0
- package/src/types.ts +192 -0
- package/src/views/error.tsx +36 -0
- package/src/views/index.tsx +13 -0
- package/src/views/layout.tsx +89 -0
- package/themes/warm/tokens.css +119 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "0076958d-2fa2-43c8-a412-2cb8c74d87c1",
|
|
5
|
+
"prevId": "6f09613a-7b4f-492e-9767-0c056fa0a2ef",
|
|
6
|
+
"tables": {
|
|
7
|
+
"account": {
|
|
8
|
+
"name": "account",
|
|
9
|
+
"columns": {
|
|
10
|
+
"id": {
|
|
11
|
+
"name": "id",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"account_id": {
|
|
18
|
+
"name": "account_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"provider_id": {
|
|
25
|
+
"name": "provider_id",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"user_id": {
|
|
32
|
+
"name": "user_id",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"access_token": {
|
|
39
|
+
"name": "access_token",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"refresh_token": {
|
|
46
|
+
"name": "refresh_token",
|
|
47
|
+
"type": "text",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"id_token": {
|
|
53
|
+
"name": "id_token",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": false,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
},
|
|
59
|
+
"access_token_expires_at": {
|
|
60
|
+
"name": "access_token_expires_at",
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"primaryKey": false,
|
|
63
|
+
"notNull": false,
|
|
64
|
+
"autoincrement": false
|
|
65
|
+
},
|
|
66
|
+
"refresh_token_expires_at": {
|
|
67
|
+
"name": "refresh_token_expires_at",
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"primaryKey": false,
|
|
70
|
+
"notNull": false,
|
|
71
|
+
"autoincrement": false
|
|
72
|
+
},
|
|
73
|
+
"scope": {
|
|
74
|
+
"name": "scope",
|
|
75
|
+
"type": "text",
|
|
76
|
+
"primaryKey": false,
|
|
77
|
+
"notNull": false,
|
|
78
|
+
"autoincrement": false
|
|
79
|
+
},
|
|
80
|
+
"password": {
|
|
81
|
+
"name": "password",
|
|
82
|
+
"type": "text",
|
|
83
|
+
"primaryKey": false,
|
|
84
|
+
"notNull": false,
|
|
85
|
+
"autoincrement": false
|
|
86
|
+
},
|
|
87
|
+
"created_at": {
|
|
88
|
+
"name": "created_at",
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"primaryKey": false,
|
|
91
|
+
"notNull": true,
|
|
92
|
+
"autoincrement": false
|
|
93
|
+
},
|
|
94
|
+
"updated_at": {
|
|
95
|
+
"name": "updated_at",
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"primaryKey": false,
|
|
98
|
+
"notNull": true,
|
|
99
|
+
"autoincrement": false
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"indexes": {},
|
|
103
|
+
"foreignKeys": {
|
|
104
|
+
"account_user_id_user_id_fk": {
|
|
105
|
+
"name": "account_user_id_user_id_fk",
|
|
106
|
+
"tableFrom": "account",
|
|
107
|
+
"tableTo": "user",
|
|
108
|
+
"columnsFrom": [
|
|
109
|
+
"user_id"
|
|
110
|
+
],
|
|
111
|
+
"columnsTo": [
|
|
112
|
+
"id"
|
|
113
|
+
],
|
|
114
|
+
"onDelete": "cascade",
|
|
115
|
+
"onUpdate": "no action"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"compositePrimaryKeys": {},
|
|
119
|
+
"uniqueConstraints": {},
|
|
120
|
+
"checkConstraints": {}
|
|
121
|
+
},
|
|
122
|
+
"content": {
|
|
123
|
+
"name": "content",
|
|
124
|
+
"columns": {
|
|
125
|
+
"id": {
|
|
126
|
+
"name": "id",
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"primaryKey": true,
|
|
129
|
+
"notNull": true,
|
|
130
|
+
"autoincrement": true
|
|
131
|
+
},
|
|
132
|
+
"section": {
|
|
133
|
+
"name": "section",
|
|
134
|
+
"type": "text",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": true,
|
|
137
|
+
"autoincrement": false
|
|
138
|
+
},
|
|
139
|
+
"slug": {
|
|
140
|
+
"name": "slug",
|
|
141
|
+
"type": "text",
|
|
142
|
+
"primaryKey": false,
|
|
143
|
+
"notNull": true,
|
|
144
|
+
"autoincrement": false
|
|
145
|
+
},
|
|
146
|
+
"locale": {
|
|
147
|
+
"name": "locale",
|
|
148
|
+
"type": "text",
|
|
149
|
+
"primaryKey": false,
|
|
150
|
+
"notNull": true,
|
|
151
|
+
"autoincrement": false,
|
|
152
|
+
"default": "'zh-CN'"
|
|
153
|
+
},
|
|
154
|
+
"title": {
|
|
155
|
+
"name": "title",
|
|
156
|
+
"type": "text",
|
|
157
|
+
"primaryKey": false,
|
|
158
|
+
"notNull": true,
|
|
159
|
+
"autoincrement": false
|
|
160
|
+
},
|
|
161
|
+
"description": {
|
|
162
|
+
"name": "description",
|
|
163
|
+
"type": "text",
|
|
164
|
+
"primaryKey": false,
|
|
165
|
+
"notNull": true,
|
|
166
|
+
"autoincrement": false
|
|
167
|
+
},
|
|
168
|
+
"published_at": {
|
|
169
|
+
"name": "published_at",
|
|
170
|
+
"type": "integer",
|
|
171
|
+
"primaryKey": false,
|
|
172
|
+
"notNull": true,
|
|
173
|
+
"autoincrement": false
|
|
174
|
+
},
|
|
175
|
+
"updated_at": {
|
|
176
|
+
"name": "updated_at",
|
|
177
|
+
"type": "integer",
|
|
178
|
+
"primaryKey": false,
|
|
179
|
+
"notNull": true,
|
|
180
|
+
"autoincrement": false
|
|
181
|
+
},
|
|
182
|
+
"tags": {
|
|
183
|
+
"name": "tags",
|
|
184
|
+
"type": "text",
|
|
185
|
+
"primaryKey": false,
|
|
186
|
+
"notNull": true,
|
|
187
|
+
"autoincrement": false,
|
|
188
|
+
"default": "'[]'"
|
|
189
|
+
},
|
|
190
|
+
"meta": {
|
|
191
|
+
"name": "meta",
|
|
192
|
+
"type": "text",
|
|
193
|
+
"primaryKey": false,
|
|
194
|
+
"notNull": true,
|
|
195
|
+
"autoincrement": false,
|
|
196
|
+
"default": "'{}'"
|
|
197
|
+
},
|
|
198
|
+
"body_md": {
|
|
199
|
+
"name": "body_md",
|
|
200
|
+
"type": "text",
|
|
201
|
+
"primaryKey": false,
|
|
202
|
+
"notNull": true,
|
|
203
|
+
"autoincrement": false
|
|
204
|
+
},
|
|
205
|
+
"body_html": {
|
|
206
|
+
"name": "body_html",
|
|
207
|
+
"type": "text",
|
|
208
|
+
"primaryKey": false,
|
|
209
|
+
"notNull": true,
|
|
210
|
+
"autoincrement": false
|
|
211
|
+
},
|
|
212
|
+
"renderer_version": {
|
|
213
|
+
"name": "renderer_version",
|
|
214
|
+
"type": "text",
|
|
215
|
+
"primaryKey": false,
|
|
216
|
+
"notNull": true,
|
|
217
|
+
"autoincrement": false
|
|
218
|
+
},
|
|
219
|
+
"checksum": {
|
|
220
|
+
"name": "checksum",
|
|
221
|
+
"type": "text",
|
|
222
|
+
"primaryKey": false,
|
|
223
|
+
"notNull": true,
|
|
224
|
+
"autoincrement": false
|
|
225
|
+
},
|
|
226
|
+
"draft": {
|
|
227
|
+
"name": "draft",
|
|
228
|
+
"type": "integer",
|
|
229
|
+
"primaryKey": false,
|
|
230
|
+
"notNull": true,
|
|
231
|
+
"autoincrement": false,
|
|
232
|
+
"default": false
|
|
233
|
+
},
|
|
234
|
+
"author": {
|
|
235
|
+
"name": "author",
|
|
236
|
+
"type": "text",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": false,
|
|
239
|
+
"autoincrement": false
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"indexes": {
|
|
243
|
+
"content_section_locale_slug_uq": {
|
|
244
|
+
"name": "content_section_locale_slug_uq",
|
|
245
|
+
"columns": [
|
|
246
|
+
"section",
|
|
247
|
+
"locale",
|
|
248
|
+
"slug"
|
|
249
|
+
],
|
|
250
|
+
"isUnique": true
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"foreignKeys": {},
|
|
254
|
+
"compositePrimaryKeys": {},
|
|
255
|
+
"uniqueConstraints": {},
|
|
256
|
+
"checkConstraints": {}
|
|
257
|
+
},
|
|
258
|
+
"kv": {
|
|
259
|
+
"name": "kv",
|
|
260
|
+
"columns": {
|
|
261
|
+
"key": {
|
|
262
|
+
"name": "key",
|
|
263
|
+
"type": "text",
|
|
264
|
+
"primaryKey": true,
|
|
265
|
+
"notNull": true,
|
|
266
|
+
"autoincrement": false
|
|
267
|
+
},
|
|
268
|
+
"value": {
|
|
269
|
+
"name": "value",
|
|
270
|
+
"type": "text",
|
|
271
|
+
"primaryKey": false,
|
|
272
|
+
"notNull": true,
|
|
273
|
+
"autoincrement": false
|
|
274
|
+
},
|
|
275
|
+
"expires_at": {
|
|
276
|
+
"name": "expires_at",
|
|
277
|
+
"type": "integer",
|
|
278
|
+
"primaryKey": false,
|
|
279
|
+
"notNull": false,
|
|
280
|
+
"autoincrement": false
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"indexes": {},
|
|
284
|
+
"foreignKeys": {},
|
|
285
|
+
"compositePrimaryKeys": {},
|
|
286
|
+
"uniqueConstraints": {},
|
|
287
|
+
"checkConstraints": {}
|
|
288
|
+
},
|
|
289
|
+
"redirects": {
|
|
290
|
+
"name": "redirects",
|
|
291
|
+
"columns": {
|
|
292
|
+
"id": {
|
|
293
|
+
"name": "id",
|
|
294
|
+
"type": "integer",
|
|
295
|
+
"primaryKey": true,
|
|
296
|
+
"notNull": true,
|
|
297
|
+
"autoincrement": true
|
|
298
|
+
},
|
|
299
|
+
"from_path": {
|
|
300
|
+
"name": "from_path",
|
|
301
|
+
"type": "text",
|
|
302
|
+
"primaryKey": false,
|
|
303
|
+
"notNull": true,
|
|
304
|
+
"autoincrement": false
|
|
305
|
+
},
|
|
306
|
+
"to_path": {
|
|
307
|
+
"name": "to_path",
|
|
308
|
+
"type": "text",
|
|
309
|
+
"primaryKey": false,
|
|
310
|
+
"notNull": true,
|
|
311
|
+
"autoincrement": false
|
|
312
|
+
},
|
|
313
|
+
"created_at": {
|
|
314
|
+
"name": "created_at",
|
|
315
|
+
"type": "integer",
|
|
316
|
+
"primaryKey": false,
|
|
317
|
+
"notNull": true,
|
|
318
|
+
"autoincrement": false
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"indexes": {
|
|
322
|
+
"redirects_from_path_uq": {
|
|
323
|
+
"name": "redirects_from_path_uq",
|
|
324
|
+
"columns": [
|
|
325
|
+
"from_path"
|
|
326
|
+
],
|
|
327
|
+
"isUnique": true
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"foreignKeys": {},
|
|
331
|
+
"compositePrimaryKeys": {},
|
|
332
|
+
"uniqueConstraints": {},
|
|
333
|
+
"checkConstraints": {}
|
|
334
|
+
},
|
|
335
|
+
"session": {
|
|
336
|
+
"name": "session",
|
|
337
|
+
"columns": {
|
|
338
|
+
"id": {
|
|
339
|
+
"name": "id",
|
|
340
|
+
"type": "text",
|
|
341
|
+
"primaryKey": true,
|
|
342
|
+
"notNull": true,
|
|
343
|
+
"autoincrement": false
|
|
344
|
+
},
|
|
345
|
+
"expires_at": {
|
|
346
|
+
"name": "expires_at",
|
|
347
|
+
"type": "integer",
|
|
348
|
+
"primaryKey": false,
|
|
349
|
+
"notNull": true,
|
|
350
|
+
"autoincrement": false
|
|
351
|
+
},
|
|
352
|
+
"token": {
|
|
353
|
+
"name": "token",
|
|
354
|
+
"type": "text",
|
|
355
|
+
"primaryKey": false,
|
|
356
|
+
"notNull": true,
|
|
357
|
+
"autoincrement": false
|
|
358
|
+
},
|
|
359
|
+
"created_at": {
|
|
360
|
+
"name": "created_at",
|
|
361
|
+
"type": "integer",
|
|
362
|
+
"primaryKey": false,
|
|
363
|
+
"notNull": true,
|
|
364
|
+
"autoincrement": false
|
|
365
|
+
},
|
|
366
|
+
"updated_at": {
|
|
367
|
+
"name": "updated_at",
|
|
368
|
+
"type": "integer",
|
|
369
|
+
"primaryKey": false,
|
|
370
|
+
"notNull": true,
|
|
371
|
+
"autoincrement": false
|
|
372
|
+
},
|
|
373
|
+
"ip_address": {
|
|
374
|
+
"name": "ip_address",
|
|
375
|
+
"type": "text",
|
|
376
|
+
"primaryKey": false,
|
|
377
|
+
"notNull": false,
|
|
378
|
+
"autoincrement": false
|
|
379
|
+
},
|
|
380
|
+
"user_agent": {
|
|
381
|
+
"name": "user_agent",
|
|
382
|
+
"type": "text",
|
|
383
|
+
"primaryKey": false,
|
|
384
|
+
"notNull": false,
|
|
385
|
+
"autoincrement": false
|
|
386
|
+
},
|
|
387
|
+
"user_id": {
|
|
388
|
+
"name": "user_id",
|
|
389
|
+
"type": "text",
|
|
390
|
+
"primaryKey": false,
|
|
391
|
+
"notNull": true,
|
|
392
|
+
"autoincrement": false
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"indexes": {
|
|
396
|
+
"session_token_unique": {
|
|
397
|
+
"name": "session_token_unique",
|
|
398
|
+
"columns": [
|
|
399
|
+
"token"
|
|
400
|
+
],
|
|
401
|
+
"isUnique": true
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"foreignKeys": {
|
|
405
|
+
"session_user_id_user_id_fk": {
|
|
406
|
+
"name": "session_user_id_user_id_fk",
|
|
407
|
+
"tableFrom": "session",
|
|
408
|
+
"tableTo": "user",
|
|
409
|
+
"columnsFrom": [
|
|
410
|
+
"user_id"
|
|
411
|
+
],
|
|
412
|
+
"columnsTo": [
|
|
413
|
+
"id"
|
|
414
|
+
],
|
|
415
|
+
"onDelete": "cascade",
|
|
416
|
+
"onUpdate": "no action"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"compositePrimaryKeys": {},
|
|
420
|
+
"uniqueConstraints": {},
|
|
421
|
+
"checkConstraints": {}
|
|
422
|
+
},
|
|
423
|
+
"user": {
|
|
424
|
+
"name": "user",
|
|
425
|
+
"columns": {
|
|
426
|
+
"id": {
|
|
427
|
+
"name": "id",
|
|
428
|
+
"type": "text",
|
|
429
|
+
"primaryKey": true,
|
|
430
|
+
"notNull": true,
|
|
431
|
+
"autoincrement": false
|
|
432
|
+
},
|
|
433
|
+
"name": {
|
|
434
|
+
"name": "name",
|
|
435
|
+
"type": "text",
|
|
436
|
+
"primaryKey": false,
|
|
437
|
+
"notNull": true,
|
|
438
|
+
"autoincrement": false
|
|
439
|
+
},
|
|
440
|
+
"email": {
|
|
441
|
+
"name": "email",
|
|
442
|
+
"type": "text",
|
|
443
|
+
"primaryKey": false,
|
|
444
|
+
"notNull": true,
|
|
445
|
+
"autoincrement": false
|
|
446
|
+
},
|
|
447
|
+
"email_verified": {
|
|
448
|
+
"name": "email_verified",
|
|
449
|
+
"type": "integer",
|
|
450
|
+
"primaryKey": false,
|
|
451
|
+
"notNull": true,
|
|
452
|
+
"autoincrement": false,
|
|
453
|
+
"default": false
|
|
454
|
+
},
|
|
455
|
+
"image": {
|
|
456
|
+
"name": "image",
|
|
457
|
+
"type": "text",
|
|
458
|
+
"primaryKey": false,
|
|
459
|
+
"notNull": false,
|
|
460
|
+
"autoincrement": false
|
|
461
|
+
},
|
|
462
|
+
"created_at": {
|
|
463
|
+
"name": "created_at",
|
|
464
|
+
"type": "integer",
|
|
465
|
+
"primaryKey": false,
|
|
466
|
+
"notNull": true,
|
|
467
|
+
"autoincrement": false
|
|
468
|
+
},
|
|
469
|
+
"updated_at": {
|
|
470
|
+
"name": "updated_at",
|
|
471
|
+
"type": "integer",
|
|
472
|
+
"primaryKey": false,
|
|
473
|
+
"notNull": true,
|
|
474
|
+
"autoincrement": false
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"indexes": {
|
|
478
|
+
"user_email_unique": {
|
|
479
|
+
"name": "user_email_unique",
|
|
480
|
+
"columns": [
|
|
481
|
+
"email"
|
|
482
|
+
],
|
|
483
|
+
"isUnique": true
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"foreignKeys": {},
|
|
487
|
+
"compositePrimaryKeys": {},
|
|
488
|
+
"uniqueConstraints": {},
|
|
489
|
+
"checkConstraints": {}
|
|
490
|
+
},
|
|
491
|
+
"verification": {
|
|
492
|
+
"name": "verification",
|
|
493
|
+
"columns": {
|
|
494
|
+
"id": {
|
|
495
|
+
"name": "id",
|
|
496
|
+
"type": "text",
|
|
497
|
+
"primaryKey": true,
|
|
498
|
+
"notNull": true,
|
|
499
|
+
"autoincrement": false
|
|
500
|
+
},
|
|
501
|
+
"identifier": {
|
|
502
|
+
"name": "identifier",
|
|
503
|
+
"type": "text",
|
|
504
|
+
"primaryKey": false,
|
|
505
|
+
"notNull": true,
|
|
506
|
+
"autoincrement": false
|
|
507
|
+
},
|
|
508
|
+
"value": {
|
|
509
|
+
"name": "value",
|
|
510
|
+
"type": "text",
|
|
511
|
+
"primaryKey": false,
|
|
512
|
+
"notNull": true,
|
|
513
|
+
"autoincrement": false
|
|
514
|
+
},
|
|
515
|
+
"expires_at": {
|
|
516
|
+
"name": "expires_at",
|
|
517
|
+
"type": "integer",
|
|
518
|
+
"primaryKey": false,
|
|
519
|
+
"notNull": true,
|
|
520
|
+
"autoincrement": false
|
|
521
|
+
},
|
|
522
|
+
"created_at": {
|
|
523
|
+
"name": "created_at",
|
|
524
|
+
"type": "integer",
|
|
525
|
+
"primaryKey": false,
|
|
526
|
+
"notNull": false,
|
|
527
|
+
"autoincrement": false
|
|
528
|
+
},
|
|
529
|
+
"updated_at": {
|
|
530
|
+
"name": "updated_at",
|
|
531
|
+
"type": "integer",
|
|
532
|
+
"primaryKey": false,
|
|
533
|
+
"notNull": false,
|
|
534
|
+
"autoincrement": false
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"indexes": {},
|
|
538
|
+
"foreignKeys": {},
|
|
539
|
+
"compositePrimaryKeys": {},
|
|
540
|
+
"uniqueConstraints": {},
|
|
541
|
+
"checkConstraints": {}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"views": {},
|
|
545
|
+
"enums": {},
|
|
546
|
+
"_meta": {
|
|
547
|
+
"schemas": {},
|
|
548
|
+
"tables": {},
|
|
549
|
+
"columns": {}
|
|
550
|
+
},
|
|
551
|
+
"internal": {
|
|
552
|
+
"indexes": {}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"entries": [
|
|
5
|
+
{
|
|
6
|
+
"idx": 0,
|
|
7
|
+
"version": "6",
|
|
8
|
+
"when": 1796527087181,
|
|
9
|
+
"tag": "0000_cooing_jackpot",
|
|
10
|
+
"breakpoints": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idx": 1,
|
|
14
|
+
"version": "6",
|
|
15
|
+
"when": 1796530979478,
|
|
16
|
+
"tag": "0001_living_ben_urich",
|
|
17
|
+
"breakpoints": true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@horizonwing/engine",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "kit 建站引擎核心:Hono 双入口组装、SWR 渲染缓存、内容引擎、Section 协议、SEO/feeds、auth",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./src/index.ts",
|
|
13
|
+
"./account-pages": "./src/account-pages.tsx",
|
|
14
|
+
"./auth": "./src/auth.tsx",
|
|
15
|
+
"./cache": "./src/cache.ts",
|
|
16
|
+
"./content": "./src/content.ts",
|
|
17
|
+
"./db": "./src/db.ts",
|
|
18
|
+
"./feeds": "./src/feeds.ts",
|
|
19
|
+
"./guard": "./src/guard.ts",
|
|
20
|
+
"./html": "./src/html.ts",
|
|
21
|
+
"./i18n": "./src/i18n.ts",
|
|
22
|
+
"./md": "./src/md.ts",
|
|
23
|
+
"./media": "./src/media.ts",
|
|
24
|
+
"./password": "./src/password.ts",
|
|
25
|
+
"./platform": "./src/platform.ts",
|
|
26
|
+
"./platform/node": "./src/platform.node.ts",
|
|
27
|
+
"./platform/postgres": "./src/platform.postgres.ts",
|
|
28
|
+
"./platform/workers": "./src/platform.workers.ts",
|
|
29
|
+
"./ratelimit": "./src/ratelimit.ts",
|
|
30
|
+
"./section": "./src/section.ts",
|
|
31
|
+
"./seo": "./src/seo.ts",
|
|
32
|
+
"./server": "./src/server.ts",
|
|
33
|
+
"./services/content": "./src/services/content.ts",
|
|
34
|
+
"./turnstile": "./src/turnstile.ts",
|
|
35
|
+
"./types": "./src/types.ts",
|
|
36
|
+
"./views": "./src/views/index.tsx",
|
|
37
|
+
"./views/error": "./src/views/error.tsx",
|
|
38
|
+
"./views/layout": "./src/views/layout.tsx",
|
|
39
|
+
"./sections/blog": "./src/sections/blog/index.tsx",
|
|
40
|
+
"./sections/blog/schema": "./src/sections/blog/schema.ts",
|
|
41
|
+
"./sections/docs": "./src/sections/docs/index.tsx",
|
|
42
|
+
"./sections/docs/schema": "./src/sections/docs/schema.ts",
|
|
43
|
+
"./sections/landing": "./src/sections/landing/index.tsx",
|
|
44
|
+
"./drizzle/schema": "./drizzle/schema.ts"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"src",
|
|
48
|
+
"drizzle",
|
|
49
|
+
"themes",
|
|
50
|
+
"tsconfig.json",
|
|
51
|
+
"README.md"
|
|
52
|
+
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc --noEmit",
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"test": "vitest run"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"better-auth": "^1.7.29",
|
|
60
|
+
"drizzle-orm": "^0.45.4",
|
|
61
|
+
"marked": "^18.4.0",
|
|
62
|
+
"sanitize-html": "^2.18.2",
|
|
63
|
+
"yaml": "^2.9.1",
|
|
64
|
+
"zod": "^4.6.7"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"hono": "^4.13.23"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"better-sqlite3": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/node": "^26.6.11",
|
|
76
|
+
"@types/sanitize-html": "^2.16.2",
|
|
77
|
+
"better-sqlite3": "^13.2.0",
|
|
78
|
+
"hono": "^4.13.23",
|
|
79
|
+
"typescript": "^7.0.2",
|
|
80
|
+
"vitest": "^5.1.2"
|
|
81
|
+
}
|
|
82
|
+
}
|