@dimah-s3/cli 1.3.0 → 1.4.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/templates/hono/package.json +5 -5
- package/dist/templates/hono/src/App.tsx +3 -3
- package/dist/templates/hono/src/lib/s3.ts +3 -3
- package/dist/templates/nextjs/package.json +5 -5
- package/dist/templates/nextjs/src/app/page.tsx +3 -3
- package/dist/templates/nextjs/src/lib/s3.ts +3 -3
- package/dist/templates/vite/package.json +5 -5
- package/dist/templates/vite/server/s3.ts +3 -3
- package/dist/templates/vite/src/App.tsx +3 -3
- package/package.json +1 -1
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@aws-sdk/client-s3": "^3.1121.0",
|
|
16
16
|
"@base-ui/react": "^1.7.0",
|
|
17
|
-
"@dimah-s3/react": "^1.
|
|
18
|
-
"@dimah-s3/server": "^1.
|
|
19
|
-
"@dimah-s3/ui": "^1.
|
|
17
|
+
"@dimah-s3/react": "^1.4.0",
|
|
18
|
+
"@dimah-s3/server": "^1.4.0",
|
|
19
|
+
"@dimah-s3/ui": "^1.4.0",
|
|
20
20
|
"@fuma-translate/react": "^1.0.2",
|
|
21
21
|
"@hono/node-server": "^2.1.1",
|
|
22
22
|
"class-variance-authority": "^0.7.1",
|
|
23
23
|
"cnfast": "^0.1.0",
|
|
24
24
|
"hono": "^4.13.5",
|
|
25
|
-
"lucide-react": "^1.
|
|
25
|
+
"lucide-react": "^1.38.0",
|
|
26
26
|
"next-themes": "^0.4.6",
|
|
27
27
|
"react": "^19.2.8",
|
|
28
28
|
"react-dom": "^19.2.8",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/react-dom": "^19.2.5",
|
|
36
36
|
"@vitejs/plugin-react": "^6.1.1",
|
|
37
37
|
"concurrently": "^10.0.5",
|
|
38
|
-
"shadcn": "^4.19.
|
|
38
|
+
"shadcn": "^4.19.1",
|
|
39
39
|
"tailwindcss": "^4.3.3",
|
|
40
40
|
"tsx": "^4.23.13",
|
|
41
41
|
"typescript": "^7.0.2",
|
|
@@ -2,18 +2,18 @@ import { useUpload } from "@dimah-s3/react";
|
|
|
2
2
|
import { UploadButton } from "@dimah-s3/ui";
|
|
3
3
|
|
|
4
4
|
export function App() {
|
|
5
|
-
const upload = useUpload({ route: "
|
|
5
|
+
const upload = useUpload({ route: "avatar" });
|
|
6
6
|
|
|
7
7
|
return (
|
|
8
8
|
<main className="flex min-h-full flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
9
9
|
<div className="text-center">
|
|
10
10
|
<h1 className="text-3xl font-bold tracking-tight">dimah-s3</h1>
|
|
11
11
|
<p className="mt-2 text-muted-foreground">
|
|
12
|
-
Hono starter — pick
|
|
12
|
+
Hono starter — pick an avatar to upload to your bucket
|
|
13
13
|
</p>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<UploadButton upload={upload} label="Upload
|
|
16
|
+
<UploadButton upload={upload} label="Upload avatar" />
|
|
17
17
|
|
|
18
18
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
19
19
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|
|
@@ -14,10 +14,10 @@ export const s3 = dimahS3({
|
|
|
14
14
|
client: awsS3,
|
|
15
15
|
bucket: process.env.S3_BUCKET!,
|
|
16
16
|
routes: {
|
|
17
|
-
|
|
17
|
+
avatar: route({
|
|
18
18
|
upload: {
|
|
19
|
-
fileTypes: ["image/*"
|
|
20
|
-
maxFileSize:
|
|
19
|
+
fileTypes: ["image/*"],
|
|
20
|
+
maxFileSize: 2 * 1024 * 1024,
|
|
21
21
|
},
|
|
22
22
|
}),
|
|
23
23
|
},
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@aws-sdk/client-s3": "^3.1121.0",
|
|
15
15
|
"@base-ui/react": "^1.7.0",
|
|
16
|
-
"@dimah-s3/react": "^1.
|
|
17
|
-
"@dimah-s3/server": "^1.
|
|
18
|
-
"@dimah-s3/ui": "^1.
|
|
16
|
+
"@dimah-s3/react": "^1.4.0",
|
|
17
|
+
"@dimah-s3/server": "^1.4.0",
|
|
18
|
+
"@dimah-s3/ui": "^1.4.0",
|
|
19
19
|
"@fuma-translate/react": "^1.0.2",
|
|
20
20
|
"class-variance-authority": "^0.7.1",
|
|
21
21
|
"cnfast": "^0.1.0",
|
|
22
|
-
"lucide-react": "^1.
|
|
22
|
+
"lucide-react": "^1.38.0",
|
|
23
23
|
"next": "^16.3.3",
|
|
24
24
|
"next-themes": "^0.4.6",
|
|
25
25
|
"react": "^19.2.8",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/react-dom": "^19.2.5",
|
|
34
34
|
"eslint": "^10.9.1",
|
|
35
35
|
"eslint-config-next": "^16.3.3",
|
|
36
|
-
"shadcn": "^4.19.
|
|
36
|
+
"shadcn": "^4.19.1",
|
|
37
37
|
"tailwindcss": "^4.3.3",
|
|
38
38
|
"typescript": "^7.0.2"
|
|
39
39
|
}
|
|
@@ -4,18 +4,18 @@ import { useUpload } from "@dimah-s3/react";
|
|
|
4
4
|
import { UploadButton } from "@dimah-s3/ui";
|
|
5
5
|
|
|
6
6
|
export default function Home() {
|
|
7
|
-
const upload = useUpload({ route: "
|
|
7
|
+
const upload = useUpload({ route: "avatar" });
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
10
|
<main className="flex flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
11
11
|
<div className="text-center">
|
|
12
12
|
<h1 className="text-3xl font-bold tracking-tight">dimah-s3</h1>
|
|
13
13
|
<p className="mt-2 text-muted-foreground">
|
|
14
|
-
Next.js starter — pick
|
|
14
|
+
Next.js starter — pick an avatar to upload to your bucket
|
|
15
15
|
</p>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<UploadButton upload={upload} label="Upload
|
|
18
|
+
<UploadButton upload={upload} label="Upload avatar" />
|
|
19
19
|
|
|
20
20
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
21
21
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|
|
@@ -14,10 +14,10 @@ export const s3 = dimahS3({
|
|
|
14
14
|
client: awsS3,
|
|
15
15
|
bucket: process.env.S3_BUCKET!,
|
|
16
16
|
routes: {
|
|
17
|
-
|
|
17
|
+
avatar: route({
|
|
18
18
|
upload: {
|
|
19
|
-
fileTypes: ["image/*"
|
|
20
|
-
maxFileSize:
|
|
19
|
+
fileTypes: ["image/*"],
|
|
20
|
+
maxFileSize: 2 * 1024 * 1024,
|
|
21
21
|
},
|
|
22
22
|
}),
|
|
23
23
|
},
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@aws-sdk/client-s3": "^3.1121.0",
|
|
17
17
|
"@base-ui/react": "^1.7.0",
|
|
18
|
-
"@dimah-s3/react": "^1.
|
|
19
|
-
"@dimah-s3/server": "^1.
|
|
20
|
-
"@dimah-s3/ui": "^1.
|
|
18
|
+
"@dimah-s3/react": "^1.4.0",
|
|
19
|
+
"@dimah-s3/server": "^1.4.0",
|
|
20
|
+
"@dimah-s3/ui": "^1.4.0",
|
|
21
21
|
"@fuma-translate/react": "^1.0.2",
|
|
22
22
|
"@hono/node-server": "^2.1.1",
|
|
23
23
|
"class-variance-authority": "^0.7.1",
|
|
24
24
|
"cnfast": "^0.1.0",
|
|
25
25
|
"hono": "^4.13.5",
|
|
26
|
-
"lucide-react": "^1.
|
|
26
|
+
"lucide-react": "^1.38.0",
|
|
27
27
|
"next-themes": "^0.4.6",
|
|
28
28
|
"react": "^19.2.8",
|
|
29
29
|
"react-dom": "^19.2.8",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/react-dom": "^19.2.5",
|
|
37
37
|
"@vitejs/plugin-react": "^6.1.1",
|
|
38
38
|
"concurrently": "^10.0.5",
|
|
39
|
-
"shadcn": "^4.19.
|
|
39
|
+
"shadcn": "^4.19.1",
|
|
40
40
|
"tailwindcss": "^4.3.3",
|
|
41
41
|
"tsx": "^4.23.13",
|
|
42
42
|
"typescript": "^7.0.2",
|
|
@@ -14,10 +14,10 @@ export const s3 = dimahS3({
|
|
|
14
14
|
client: awsS3,
|
|
15
15
|
bucket: process.env.S3_BUCKET!,
|
|
16
16
|
routes: {
|
|
17
|
-
|
|
17
|
+
avatar: route({
|
|
18
18
|
upload: {
|
|
19
|
-
fileTypes: ["image/*"
|
|
20
|
-
maxFileSize:
|
|
19
|
+
fileTypes: ["image/*"],
|
|
20
|
+
maxFileSize: 2 * 1024 * 1024,
|
|
21
21
|
},
|
|
22
22
|
}),
|
|
23
23
|
},
|
|
@@ -2,18 +2,18 @@ import { useUpload } from "@dimah-s3/react";
|
|
|
2
2
|
import { UploadButton } from "@dimah-s3/ui";
|
|
3
3
|
|
|
4
4
|
export function App() {
|
|
5
|
-
const upload = useUpload({ route: "
|
|
5
|
+
const upload = useUpload({ route: "avatar" });
|
|
6
6
|
|
|
7
7
|
return (
|
|
8
8
|
<main className="flex min-h-full flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
9
9
|
<div className="text-center">
|
|
10
10
|
<h1 className="text-3xl font-bold tracking-tight">dimah-s3</h1>
|
|
11
11
|
<p className="mt-2 text-muted-foreground">
|
|
12
|
-
Vite starter — pick
|
|
12
|
+
Vite starter — pick an avatar to upload to your bucket
|
|
13
13
|
</p>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<UploadButton upload={upload} label="Upload
|
|
16
|
+
<UploadButton upload={upload} label="Upload avatar" />
|
|
17
17
|
|
|
18
18
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
19
19
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|