Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
86f40f5
1
Parent(s):
4c28b3a
add some more examples
Browse files
README.md
CHANGED
@@ -104,6 +104,6 @@ There are no automated tests yet, @jbilcke-hf will act as the "QA engineer".
|
|
104 |
|
105 |
### Architecture
|
106 |
|
107 |
-
|
108 |
![Arch|800](documentation/diagrams/architecture-draft.png)
|
109 |
|
|
|
|
104 |
|
105 |
### Architecture
|
106 |
|
|
|
107 |
![Arch|800](documentation/diagrams/architecture-draft.png)
|
108 |
|
109 |
+
For convenience, you can access and inspect any of the services at runtime (in the browser's JS console) by typing `useUI.getState(), useIO.getState()` etc
|
public/samples/scripts/Citizen Kane.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
public/samples/scripts/DISCLAIMER.md
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Those screenplays are aggregated from publicly available source sin the internet. I've merely converted the PDFs them a plain text file.
|
2 |
+
|
3 |
+
THOSE SCRIPTS ARE PROVIDED FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY.
|
4 |
+
|
5 |
+
Please be respectul of the copyright holders and do not use those scripts for commercial purposes.
|
public/samples/scripts/The Wizard Of Oz.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/components/toolbars/top-menu/file/index.tsx
CHANGED
@@ -82,7 +82,17 @@ export function TopMenuFile() {
|
|
82 |
<MenubarItem onClick={() => {
|
83 |
openClapUrl('/samples/claps/wasteland.clap')
|
84 |
}}>
|
85 |
-
Wasteland
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
</MenubarItem>
|
87 |
</MenubarSubContent>
|
88 |
</MenubarSub>
|
|
|
82 |
<MenubarItem onClick={() => {
|
83 |
openClapUrl('/samples/claps/wasteland.clap')
|
84 |
}}>
|
85 |
+
Wasteland.clap
|
86 |
+
</MenubarItem>
|
87 |
+
<MenubarItem onClick={() => {
|
88 |
+
openClapUrl('/samples/scripts/Citizen Kane.txt')
|
89 |
+
}}>
|
90 |
+
Citizen Kane.txt
|
91 |
+
</MenubarItem>
|
92 |
+
<MenubarItem onClick={() => {
|
93 |
+
openClapUrl('/samples/scripts/The Wizard Of Oz.txt')
|
94 |
+
}}>
|
95 |
+
The Wizard Of Oz.txt
|
96 |
</MenubarItem>
|
97 |
</MenubarSubContent>
|
98 |
</MenubarSub>
|
src/services/io/useIO.ts
CHANGED
@@ -256,7 +256,7 @@ export const useIO = create<IOStore>((set, get) => ({
|
|
256 |
},
|
257 |
saveClap: async () => {
|
258 |
const { saveAnyFile } = get()
|
259 |
-
const { clap } = useTimeline.getState()
|
260 |
|
261 |
if (!clap) { throw new Error(`cannot save a clap.. if there is no clap`) }
|
262 |
|
@@ -279,6 +279,10 @@ export const useIO = create<IOStore>((set, get) => ({
|
|
279 |
}
|
280 |
}
|
281 |
|
|
|
|
|
|
|
|
|
282 |
// TODO: serializeClap should have a progress callback, so that we can
|
283 |
// track the progression.
|
284 |
//
|
|
|
256 |
},
|
257 |
saveClap: async () => {
|
258 |
const { saveAnyFile } = get()
|
259 |
+
const { clap, entities, entityIndex } = useTimeline.getState()
|
260 |
|
261 |
if (!clap) { throw new Error(`cannot save a clap.. if there is no clap`) }
|
262 |
|
|
|
279 |
}
|
280 |
}
|
281 |
|
282 |
+
// update the clap with the in-memory versions of the entities
|
283 |
+
clap.entities = entities
|
284 |
+
clap.entityIndex = entityIndex
|
285 |
+
|
286 |
// TODO: serializeClap should have a progress callback, so that we can
|
287 |
// track the progression.
|
288 |
//
|