create-evikit 2.6.0 → 2.8.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/package.json +19 -19
- package/src/api.js +2 -1
- package/src/routes/page.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-evikit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "bin/create-evikit.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,37 +14,37 @@
|
|
|
14
14
|
"author": "Denys Nykula <nykula@ukr.net>",
|
|
15
15
|
"license": "0BSD",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint/compat": "^2.1.
|
|
17
|
+
"@eslint/compat": "^2.1.1",
|
|
18
18
|
"@eslint/js": "^10.0.1",
|
|
19
|
-
"@preact/preset-vite": "^2.10.
|
|
20
|
-
"@tailwindcss/vite": "^4.3.
|
|
19
|
+
"@preact/preset-vite": "^2.10.6",
|
|
20
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
21
21
|
"@types/express": "^5.0.6",
|
|
22
|
-
"@types/node": "^26.
|
|
22
|
+
"@types/node": "^26.6.2",
|
|
23
23
|
"@types/swagger-ui-express": "^4.1.8",
|
|
24
|
-
"daisyui": "^5.
|
|
25
|
-
"eslint": "^10.
|
|
24
|
+
"daisyui": "^5.7.46",
|
|
25
|
+
"eslint": "^10.11.0",
|
|
26
26
|
"eslint-config-prettier": "^10.1.8",
|
|
27
|
-
"eslint-plugin-perfectionist": "^5.
|
|
28
|
-
"globals": "^17.
|
|
29
|
-
"prettier": "^3.9.
|
|
27
|
+
"eslint-plugin-perfectionist": "^5.12.1",
|
|
28
|
+
"globals": "^17.12.0",
|
|
29
|
+
"prettier": "^3.9.9",
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
|
-
"typescript-eslint": "^8.
|
|
32
|
-
"vite": "^8.1
|
|
33
|
-
"vite-bundle-analyzer": "^1.3.
|
|
31
|
+
"typescript-eslint": "^8.70.1",
|
|
32
|
+
"vite": "^8.3.1",
|
|
33
|
+
"vite-bundle-analyzer": "^1.3.9"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@speed-highlight/core": "^1.
|
|
36
|
+
"@speed-highlight/core": "^2.1.0",
|
|
37
37
|
"accept-language": "^3.0.20",
|
|
38
38
|
"classnames": "^2.5.1",
|
|
39
39
|
"cross-env": "^10.1.0",
|
|
40
|
-
"evikit": "^2.
|
|
40
|
+
"evikit": "^2.8.0",
|
|
41
41
|
"express": "^5.2.1",
|
|
42
|
-
"file-type": "^22.
|
|
42
|
+
"file-type": "^22.1.1",
|
|
43
43
|
"hoofd": "^1.7.3",
|
|
44
|
-
"preact": "^10.29.
|
|
45
|
-
"preact-iso": "^2.12.
|
|
44
|
+
"preact": "^10.29.8",
|
|
45
|
+
"preact-iso": "^2.12.2",
|
|
46
46
|
"swagger-ui-express": "^5.0.1",
|
|
47
|
-
"valibot": "^1.
|
|
47
|
+
"valibot": "^1.5.0"
|
|
48
48
|
},
|
|
49
49
|
"allowScripts": {
|
|
50
50
|
"@scarf/scarf": false
|
package/src/api.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { route, router } from "evikit/server";
|
|
2
2
|
|
|
3
3
|
import pkg from "../package.json" with { type: "json" };
|
|
4
|
+
import { db } from "./lib/db/index.js";
|
|
4
5
|
import { acceptLanguages } from "./lib/index.js";
|
|
5
6
|
import { HomeServer } from "./routes/api/server.js";
|
|
6
7
|
import { TodoServer } from "./routes/api/todo/server.js";
|
|
@@ -9,7 +10,7 @@ acceptLanguages();
|
|
|
9
10
|
|
|
10
11
|
export function api() {
|
|
11
12
|
return router(
|
|
12
|
-
{ pkg },
|
|
13
|
+
{ db, pkg },
|
|
13
14
|
route("/api", HomeServer),
|
|
14
15
|
route("/api/todo", TodoServer),
|
|
15
16
|
);
|
package/src/routes/page.js
CHANGED
|
@@ -133,7 +133,7 @@ export function HomePage() {
|
|
|
133
133
|
pre(
|
|
134
134
|
null,
|
|
135
135
|
code(
|
|
136
|
-
{ class: "!bg-transparent shj-lang-bash" },
|
|
136
|
+
{ class: "!bg-transparent !border-0 shj-lang-bash" },
|
|
137
137
|
`
|
|
138
138
|
npm init evikit my-app
|
|
139
139
|
cd my-app
|
|
@@ -308,7 +308,7 @@ function Code({ children, class: className, file, lang, note, tag }) {
|
|
|
308
308
|
const inner = pre(
|
|
309
309
|
{ class: "mt-4 overflow-auto text-sm" },
|
|
310
310
|
code(
|
|
311
|
-
{ class:
|
|
311
|
+
{ class: `!border-0 shj-lang-${lang} w-full` },
|
|
312
312
|
file
|
|
313
313
|
?.replace(/.*EviKit.*\r?\n/g, "")
|
|
314
314
|
.replace(/\{[0-9a-z,\s]*?\} from/gi, (match) =>
|