Spaces:
Paused
Paused
Commit
β’
3689a9d
1
Parent(s):
aa230e4
add auto refresh
Browse files- src/app/types.ts +2 -0
- src/components/business/refresh.tsx +0 -3
src/app/types.ts
CHANGED
@@ -122,6 +122,7 @@ export interface VideoShotMeta {
|
|
122 |
|
123 |
seed: number
|
124 |
noise: boolean // add movie noise
|
|
|
125 |
|
126 |
durationMs: number // in milliseconds
|
127 |
steps: number
|
@@ -187,6 +188,7 @@ export interface VideoSequenceMeta {
|
|
187 |
seed: number
|
188 |
|
189 |
noise: boolean // add movie noise
|
|
|
190 |
|
191 |
steps: number // between 10 and 50
|
192 |
|
|
|
122 |
|
123 |
seed: number
|
124 |
noise: boolean // add movie noise
|
125 |
+
noiseAmount: number // noise strength (default is 2, and 10 is very visible)
|
126 |
|
127 |
durationMs: number // in milliseconds
|
128 |
steps: number
|
|
|
188 |
seed: number
|
189 |
|
190 |
noise: boolean // add movie noise
|
191 |
+
noiseAmount: number // noise strength (default is 2, and 10 is very visible)
|
192 |
|
193 |
steps: number // between 10 and 50
|
194 |
|
src/components/business/refresh.tsx
CHANGED
@@ -9,11 +9,9 @@ export function RefreshStudio() {
|
|
9 |
const pathname = usePathname()
|
10 |
const [isPending, startTransition] = useTransition()
|
11 |
|
12 |
-
/*
|
13 |
useEffect(() => {
|
14 |
const slug = `${pathname.split("/").pop()}`
|
15 |
setInterval(() => {
|
16 |
-
console.log("refresh things!", slug)
|
17 |
startTransition(() => {
|
18 |
try {
|
19 |
refreshStudio(slug)
|
@@ -23,7 +21,6 @@ export function RefreshStudio() {
|
|
23 |
})
|
24 |
}, 2000)
|
25 |
}, [])
|
26 |
-
*/
|
27 |
|
28 |
// TODO we could display a spinner here
|
29 |
return <></>
|
|
|
9 |
const pathname = usePathname()
|
10 |
const [isPending, startTransition] = useTransition()
|
11 |
|
|
|
12 |
useEffect(() => {
|
13 |
const slug = `${pathname.split("/").pop()}`
|
14 |
setInterval(() => {
|
|
|
15 |
startTransition(() => {
|
16 |
try {
|
17 |
refreshStudio(slug)
|
|
|
21 |
})
|
22 |
}, 2000)
|
23 |
}, [])
|
|
|
24 |
|
25 |
// TODO we could display a spinner here
|
26 |
return <></>
|