Skip to content

Commit

Permalink
fix: fix initParamsValidationRules
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisavetAmpatzidou committed Jun 27, 2022
1 parent f764781 commit 4c5421c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 43 deletions.
3 changes: 2 additions & 1 deletion clip/clip.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

.texture{
background: url(https://donkeyclip.github.io/history-clip/server/assets/paper-texture.jpg);
background-repeat: no-repeat;background-size: cover;
background-repeat: no-repeat;
background-size: cover;
width: 150%;
height: 150%;
position: absolute;
Expand Down
104 changes: 62 additions & 42 deletions clip/initParamsValidationRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,97 +9,117 @@ export default {
type: "object",
optional: false,
props:{
title:"array",
subtitle:"array",
backgroundImage:"string"
title: {
type:"array",
items:{
type:"string"
}
},
subtitle: {
type:"array",
items:{
type:"string"
}
},
backgroundImage: { type:"string"}
}
},
slide1: {
label: "Slide 1",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage: { type:"string"},
centerImage: { type:"string"},
year: { type:"string"},
backgroundText1: { type:"string"},
backgroundText2: { type: "string"},
textEffect: { type:"string"}
}
},
slide2: {
label: "Slide 2",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage:{ type:"string"},
centerImage:{ type:"string"},
year:{ type:"string"},
backgroundText1:{ type:"string"},
backgroundText2: { type:"string"},
textEffect:{ type:"string"}
}
},
slide3: {
label: "Slide 3",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage:{ type:"string"},
centerImage:{ type:"string"},
year:{ type:"string"},
backgroundText1:{ type:"string"},
backgroundText2: { type:"string"},
textEffect:{ type:"string"}
}
},
slide4: {
label: "Slide 4",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage:{ type:"string"},
centerImage:{ type:"string"},
year:{ type:"string"},
backgroundText1:{ type:"string"},
backgroundText2: { type:"string"},
textEffect:{ type:"string"}
}
},
slide5: {
label: "Slide 5",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage:{ type:"string"},
centerImage:{ type:"string"},
year:{ type:"string"},
backgroundText1:{ type:"string"},
backgroundText2: { type:"string"},
textEffect:{ type:"string"}
}
},
slide6: {
label: "Slide 6",
type: "object",
optional: false,
props:{
backgroundImage:"string",
centerImage:"string",
year:"string",
backgroundText1:"string",
backgroundText2: "string",
textEffect:"string"
backgroundImage:{ type:"string"},
centerImage:{ type:"string"},
year:{ type:"string"},
backgroundText1:{ type:"string"},
backgroundText2: { type:"string"},
textEffect:{ type:"string"}
}
},
outro: {
label: "Outro Slide",
type: "object",
optional: false,
props:{
title:"array",
subtitle:"array",
backgroundImage:"string"
title:{
type:"array",
items:{
type:"string"
}
},
subtitle:{
type:"array",
items:{
type:"string"
}
},
backgroundImage:{ type:"string"}
}
},
};

0 comments on commit 4c5421c

Please sign in to comment.