@dimah-s3/cli 1.1.1 → 1.2.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/dist/templates/hono/package.json +3 -3
- package/dist/templates/hono/src/App.tsx +4 -1
- package/dist/templates/nextjs/package.json +3 -3
- package/dist/templates/nextjs/src/app/page.tsx +4 -1
- package/dist/templates/vite/package.json +3 -3
- package/dist/templates/vite/src/App.tsx +4 -1
- package/package.json +1 -1
|
@@ -14,9 +14,9 @@
|
|
|
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.2.1",
|
|
18
|
+
"@dimah-s3/server": "^1.2.1",
|
|
19
|
+
"@dimah-s3/ui": "^1.2.1",
|
|
20
20
|
"@fuma-translate/react": "^1.0.2",
|
|
21
21
|
"@hono/node-server": "^2.1.1",
|
|
22
22
|
"class-variance-authority": "^0.7.1",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { useUpload } from "@dimah-s3/react";
|
|
1
2
|
import { UploadButton } from "@dimah-s3/ui";
|
|
2
3
|
|
|
3
4
|
export function App() {
|
|
5
|
+
const upload = useUpload({ route: "uploads" });
|
|
6
|
+
|
|
4
7
|
return (
|
|
5
8
|
<main className="flex min-h-full flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
6
9
|
<div className="text-center">
|
|
@@ -10,7 +13,7 @@ export function App() {
|
|
|
10
13
|
</p>
|
|
11
14
|
</div>
|
|
12
15
|
|
|
13
|
-
<UploadButton
|
|
16
|
+
<UploadButton upload={upload} label="Upload file" />
|
|
14
17
|
|
|
15
18
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
16
19
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|
|
@@ -13,9 +13,9 @@
|
|
|
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.2.1",
|
|
17
|
+
"@dimah-s3/server": "^1.2.1",
|
|
18
|
+
"@dimah-s3/ui": "^1.2.1",
|
|
19
19
|
"@fuma-translate/react": "^1.0.2",
|
|
20
20
|
"class-variance-authority": "^0.7.1",
|
|
21
21
|
"cnfast": "^0.1.0",
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { useUpload } from "@dimah-s3/react";
|
|
3
4
|
import { UploadButton } from "@dimah-s3/ui";
|
|
4
5
|
|
|
5
6
|
export default function Home() {
|
|
7
|
+
const upload = useUpload({ route: "uploads" });
|
|
8
|
+
|
|
6
9
|
return (
|
|
7
10
|
<main className="flex flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
8
11
|
<div className="text-center">
|
|
@@ -12,7 +15,7 @@ export default function Home() {
|
|
|
12
15
|
</p>
|
|
13
16
|
</div>
|
|
14
17
|
|
|
15
|
-
<UploadButton
|
|
18
|
+
<UploadButton upload={upload} label="Upload file" />
|
|
16
19
|
|
|
17
20
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
18
21
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|
|
@@ -15,9 +15,9 @@
|
|
|
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.2.1",
|
|
19
|
+
"@dimah-s3/server": "^1.2.1",
|
|
20
|
+
"@dimah-s3/ui": "^1.2.1",
|
|
21
21
|
"@fuma-translate/react": "^1.0.2",
|
|
22
22
|
"@hono/node-server": "^2.1.1",
|
|
23
23
|
"class-variance-authority": "^0.7.1",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { useUpload } from "@dimah-s3/react";
|
|
1
2
|
import { UploadButton } from "@dimah-s3/ui";
|
|
2
3
|
|
|
3
4
|
export function App() {
|
|
5
|
+
const upload = useUpload({ route: "uploads" });
|
|
6
|
+
|
|
4
7
|
return (
|
|
5
8
|
<main className="flex min-h-full flex-1 flex-col items-center justify-center gap-8 p-8">
|
|
6
9
|
<div className="text-center">
|
|
@@ -10,7 +13,7 @@ export function App() {
|
|
|
10
13
|
</p>
|
|
11
14
|
</div>
|
|
12
15
|
|
|
13
|
-
<UploadButton
|
|
16
|
+
<UploadButton upload={upload} label="Upload file" />
|
|
14
17
|
|
|
15
18
|
<p className="max-w-sm text-center text-xs text-muted-foreground">
|
|
16
19
|
Fill the <code className="rounded bg-muted px-1 py-0.5">S3_*</code>{" "}
|