mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
- done: setup metadata in editor.js for the Generate Movie Button - done: update endpoint, now during stylization, the upload of the original video uses the new_video endpoint, which provides the file with a title field - fixed: rendered movies art style tag now show the art style's label properly - fixed: clicking the media link to the video brings user back to studio.storyteller.ai/[video_url] - fixed: completed card DOM nesting issue potentially fixed but the product does not reflect due to server issues: - AI Stylize videos should also take the title from the original video and show that title Co-authored-by: wil <wil@storyteller.ai>
31 lines
708 B
TypeScript
31 lines
708 B
TypeScript
import { signal } from "@preact/signals-core";
|
|
|
|
export interface SceneSignal {
|
|
isInitializing: boolean;
|
|
title: string | undefined;
|
|
token: string | undefined;
|
|
ownerToken: string | undefined;
|
|
isModified: boolean | undefined;
|
|
}
|
|
export const scene = signal<SceneSignal>({
|
|
isInitializing: true,
|
|
title: undefined,
|
|
token: undefined,
|
|
ownerToken: undefined,
|
|
isModified: undefined,
|
|
});
|
|
|
|
|
|
export const signalScene = (data:SceneSignal)=>{
|
|
scene.value = {
|
|
...data,
|
|
isInitializing: false,
|
|
isModified: true,
|
|
//TODO: MILES: implement flagging of isModified
|
|
// from editor side, and take this out after
|
|
};
|
|
}
|
|
|
|
export const getSceneSignals = ():SceneSignal=>{
|
|
return scene.value;
|
|
} |