Last active
February 12, 2019 23:44
-
-
Save Gyanreyer/b8a9af8cbfda6fe5e7b8887df4129636 to your computer and use it in GitHub Desktop.
A sample editor form description JSON file for a fake video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editingFormFields": [ | |
{ | |
"type": "text", | |
"label": "Text Field 1", | |
"editingFieldKey": "578524e5-9d6f-488c-8b11-665030e6b214", | |
"displayTime": 1, | |
"characterLimit": 20, | |
"paths": ["textSection.text1.content"] | |
}, | |
{ | |
"type": "text", | |
"label": "Text Field 2", | |
"editingFieldKey": "053292a2-b673-4a2f-bd8d-77b69e2223ac", | |
"displayTime": 2, | |
"characterLimit": 10, | |
"splitDirection": "left", | |
"paths": ["textSection.text2.content"] | |
}, | |
{ | |
"type": "text", | |
"label": "Text Field 3", | |
"editingFieldKey": "49b2718c-2d74-4638-97fa-5c95c3bac1d8", | |
"displayTime": 2, | |
"characterLimit": 10, | |
"splitDirection": "right", | |
"paths": ["textSection.text3.content"] | |
}, | |
{ | |
"type": "text", | |
"label": "Text Selection", | |
"editingFieldKey": "ed1ca06f-fa4d-4cb4-b4f2-4db6e9963815", | |
"displayTime": 3, | |
"selectOptions": [ | |
{ | |
"displayText": "Option 1", | |
"configurationValue": "option_1" | |
}, | |
{ | |
"displayText": "Option 2", | |
"configurationValue": "option_2" | |
} | |
] | |
}, | |
{ | |
"type": "logo", | |
"label": "Logo", | |
"editingFieldKey": "61f54526-f540-4f4c-91f2-0130fc370ced", | |
"displayTime": 4, | |
"characterLimit": 10, | |
"logoTextPaths": ["logo.text.content"], | |
"logoImagePaths": ["logo.imageURL"], | |
"shouldUseLogoImagePaths": ["logo.shouldUseLogoImage"] | |
}, | |
{ | |
"type": "image", | |
"label": "Image 1", | |
"editingFieldKey": "7de28023-39a8-46e7-8714-86cb54094282", | |
"displayTime": 1, | |
"paths": ["images.image1"] | |
}, | |
{ | |
"type": "image", | |
"label": "Image 2", | |
"editingFieldKey": "4f6e3fae-c671-4899-9095-738b838c3a4b", | |
"displayTime": 2, | |
"aspectRatio": 1, | |
"paths": ["images.image2"] | |
}, | |
{ | |
"type": "color", | |
"label": "Primary Color", | |
"editingFieldKey": "5c56907c-cd20-4a5f-a8ed-c19c6e5ffe15", | |
"displayTime": 1, | |
"paths": ["shape1.fill"] | |
}, | |
{ | |
"type": "color", | |
"label": "Secondary Color", | |
"editingFieldKey": "3cbf849b-2234-43fa-b245-d7ec6ce49b3c", | |
"displayTime": 2, | |
"paths": ["shape2.fill", "textSection.text2.fill", "textSection.text3.fill"] | |
}, | |
{ | |
"type": "audio", | |
"label": "Background Music", | |
"editingFieldKey": "3ec1d41e-3389-4489-b4ef-a0843acebf96", | |
"paths": ["background_audio"], | |
"selectOptions": [ | |
{ | |
"name": "That monkey song", | |
"configurationValue": "monkey_song" | |
}, | |
{ | |
"name": "Another song", | |
"configurationValue": "other_song" | |
} | |
] | |
}, | |
{ | |
"type": "theme", | |
"label": "Video Theme", | |
"editingFieldKey": "38f55d3d-a093-4ddb-bf80-189f887068ff", | |
"themes": [ | |
{ | |
"label": "Red", | |
"updateFields": [ | |
{ | |
"paths": ["theme"], | |
"configurationValue": "red" | |
}, | |
{ | |
"paths": ["background_video"], | |
"configurationValue": "redVideo" | |
}, | |
{ | |
"paths": ["textSection.text1.fill", "shape3.fill"], | |
"configurationValue": "#ff0000" | |
} | |
] | |
}, | |
{ | |
"label": "Green", | |
"updateFields": [ | |
{ | |
"paths": ["theme"], | |
"configurationValue": "green" | |
}, | |
{ | |
"paths": ["background_video"], | |
"configurationValue": "greenVideo" | |
}, | |
{ | |
"paths": ["textSection.text1.fill", "shape3.fill"], | |
"configurationValue": "#00ff00" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "layout_selector", | |
"label": "Layout", | |
"editingFieldKey": "6e39c406-4c00-44b6-9884-3de9ade26dbc", | |
"displayTime": 5, | |
"paths": ["layout"], | |
"selectFieldOptions": [ | |
{ | |
"configurationValue": "layout_1", | |
"label": "Layout 1", | |
"contentFields": [ | |
{ | |
"type": "text", | |
"label": "Layout 1 Text 1", | |
"editingFieldKey": "41014d1e-ca23-43b8-ab06-a93c69ded330", | |
"characterLimit": 10, | |
"splitDirection": "left", | |
"paths": ["layoutSection.layout_1.text1.content"] | |
}, | |
{ | |
"type": "text", | |
"label": "Layout 1 Text 2", | |
"editingFieldKey": "8a7d01fc-d570-466f-b675-573f5a83a129", | |
"characterLimit": 10, | |
"splitDirection": "right", | |
"paths": ["layoutTextSection.layout_1.text2.content"] | |
} | |
] | |
}, | |
{ | |
"configurationValue": "layout_2", | |
"label": "Layout 2", | |
"contentFields": [ | |
{ | |
"type": "text", | |
"label": "Layout 2 Text", | |
"editingFieldKey": "91c7998d-0638-4fe3-adb4-fa8c9a8d9500", | |
"characterLimit": 48, | |
"paths": ["layoutTextSection.layout_2.text.content"] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment