Commit
•
70e2a28
1
Parent(s):
58132fb
prepare support for actual videos
Browse files- package-lock.json +4 -4
- package.json +1 -1
- src/app/server/aitube/editClapVideos.ts +19 -0
package-lock.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
"version": "0.0.0",
|
10 |
"dependencies": {
|
11 |
"@aitube/clap": "0.0.7",
|
12 |
-
"@aitube/client": "0.0.
|
13 |
"@radix-ui/react-accordion": "^1.1.2",
|
14 |
"@radix-ui/react-avatar": "^1.0.4",
|
15 |
"@radix-ui/react-checkbox": "^1.0.4",
|
@@ -74,9 +74,9 @@
|
|
74 |
}
|
75 |
},
|
76 |
"node_modules/@aitube/client": {
|
77 |
-
"version": "0.0.
|
78 |
-
"resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.
|
79 |
-
"integrity": "sha512-
|
80 |
"dependencies": {
|
81 |
"uuid": "^9.0.1",
|
82 |
"yaml": "^2.4.1"
|
|
|
9 |
"version": "0.0.0",
|
10 |
"dependencies": {
|
11 |
"@aitube/clap": "0.0.7",
|
12 |
+
"@aitube/client": "0.0.8",
|
13 |
"@radix-ui/react-accordion": "^1.1.2",
|
14 |
"@radix-ui/react-avatar": "^1.0.4",
|
15 |
"@radix-ui/react-checkbox": "^1.0.4",
|
|
|
74 |
}
|
75 |
},
|
76 |
"node_modules/@aitube/client": {
|
77 |
+
"version": "0.0.8",
|
78 |
+
"resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.8.tgz",
|
79 |
+
"integrity": "sha512-GZiu5+8d6eENfrvRetJpIsRkU8W3AiC6sNh05H/9eahMWxaMrcn2wD6j8N9+c1gVy/nnLGrFmCyhfch1hnMVHg==",
|
80 |
"dependencies": {
|
81 |
"uuid": "^9.0.1",
|
82 |
"yaml": "^2.4.1"
|
package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
},
|
11 |
"dependencies": {
|
12 |
"@aitube/clap": "0.0.7",
|
13 |
-
"@aitube/client": "0.0.
|
14 |
"@radix-ui/react-accordion": "^1.1.2",
|
15 |
"@radix-ui/react-avatar": "^1.0.4",
|
16 |
"@radix-ui/react-checkbox": "^1.0.4",
|
|
|
10 |
},
|
11 |
"dependencies": {
|
12 |
"@aitube/clap": "0.0.7",
|
13 |
+
"@aitube/client": "0.0.8",
|
14 |
"@radix-ui/react-accordion": "^1.1.2",
|
15 |
"@radix-ui/react-avatar": "^1.0.4",
|
16 |
"@radix-ui/react-checkbox": "^1.0.4",
|
src/app/server/aitube/editClapVideos.ts
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use server"
|
2 |
+
|
3 |
+
import { ClapProject } from "@aitube/clap"
|
4 |
+
import { editClapVideos as apiEditClapvideos } from "@aitube/client"
|
5 |
+
|
6 |
+
import { getToken } from "./getToken"
|
7 |
+
|
8 |
+
export async function editClapVideos({
|
9 |
+
clap,
|
10 |
+
}: {
|
11 |
+
clap: ClapProject
|
12 |
+
}): Promise<ClapProject> {
|
13 |
+
const newClap: ClapProject = await apiEditClapVideos({
|
14 |
+
clap,
|
15 |
+
token: await getToken()
|
16 |
+
})
|
17 |
+
|
18 |
+
return newClap
|
19 |
+
}
|