shaw commited on
Commit
a950971
1 Parent(s): 7ab5b42

New file, empty project

Browse files
public/samples/claps/empty_project.clap ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42bb7d554f5209f9c0e801c3d71b3b11730f80a2c7a39cf4ac7baf94743d7be1
3
+ size 375
public/samples/claps/empty_project.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ - format: clap-0
2
+ numberOfEntities: 0
3
+ numberOfScenes: 0
4
+ numberOfSegments: 27
5
+ - id: 5ffcfd0b-cb91-465e-87b6-bde41037373e
6
+ title: ""
7
+ description: An exciting new project
8
+ synopsis: ""
9
+ licence: ""
10
+ orientation: landscape
11
+ durationInMs: 18000
12
+ width: 1024
13
+ height: 575
14
+ defaultVideoModel: AnimateDiff-Lightning
15
+ extraPositivePrompt: []
16
+ screenplay: ""
17
+ isLoop: false
18
+ isInteractive: false
19
+ - id: e16478cf-3535-48e9-98e8-f702ec9ca348
20
+ track: 0
21
+ startTimeInMs: 0
22
+ endTimeInMs: 0
23
+ category: video
24
+ outputType: video
src/components/toolbars/top-menu/file/index.tsx CHANGED
@@ -31,6 +31,8 @@ export function TopMenuFile() {
31
  const saveZipFile = useIO(s => s.saveZipFile)
32
  const saveKdenline = useIO(s => s.saveKdenline)
33
 
 
 
34
  useEffect(() => {
35
  (async () => {
36
  if (!clapUrl) {
@@ -55,6 +57,13 @@ export function TopMenuFile() {
55
  <MenubarMenu>
56
  <MenubarTrigger>File</MenubarTrigger>
57
  <MenubarContent>
 
 
 
 
 
 
 
58
  <MenubarItem onClick={() => {
59
  openFilePicker()
60
  }}>
 
31
  const saveZipFile = useIO(s => s.saveZipFile)
32
  const saveKdenline = useIO(s => s.saveKdenline)
33
 
34
+ const hasBetaAccess = useUI(s => s.hasBetaAccess)
35
+
36
  useEffect(() => {
37
  (async () => {
38
  if (!clapUrl) {
 
57
  <MenubarMenu>
58
  <MenubarTrigger>File</MenubarTrigger>
59
  <MenubarContent>
60
+ {hasBetaAccess &&
61
+ <MenubarItem onClick={() => {
62
+ openClapUrl('/samples/claps/empty_project.clap')
63
+ }}>
64
+ New Project<MenubarShortcut>⌘N</MenubarShortcut>
65
+ </MenubarItem>
66
+ }
67
  <MenubarItem onClick={() => {
68
  openFilePicker()
69
  }}>