Last active
August 29, 2015 14:09
-
-
Save srenault/e86d278d7b491c9e4c5f to your computer and use it in GitHub Desktop.
prismic.io mask
This file contains hidden or 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
{ | |
"tags": ["toto"], | |
"type": "all", | |
"Group": [ | |
{ | |
"color": "#d85cb8" | |
}, | |
{ | |
"color": "#39ede7" | |
} | |
], | |
"SelectField": "option1", | |
"RangeField": "68", | |
"NumberField": "2", | |
"ColorField": "#84e860", | |
"TimestampField": "2014-11-05T00:00:00+00:00", | |
"DateField": "2014-11-04", | |
"TextField": "This is a text.", | |
"GeoPoint": { | |
"position": { | |
"lng": 2.3337937999999876, | |
"lat": 48.876948000000006 | |
} | |
}, | |
"Embed": { | |
"title": "Build software better, together", | |
"embed_url": "https://gist.github.com/srenault/e86d278d7b491c9e4c5f/edit", | |
"gist": "srenault/e86d278d7b491c9e4c5f/edit", | |
"html": "<script src=\"https://gist.github.com/srenault/e86d278d7b491c9e4c5f/edit.js\"></script>", | |
"provider_url": "https://gist.github.com", | |
"provider_name": "GitHub", | |
"type": "rich", | |
"version": "1.0" | |
}, | |
"LinkWeb": { | |
"preview": { | |
"title": "http://google.com" | |
}, | |
"url": "http://google.com" | |
}, | |
"LinkMedia": { | |
"preview": { | |
"image": "https://wroomio.s3.amazonaws.com/blank%2F1371639748860_prism.png", | |
"title": "prism.png" | |
}, | |
"name": "prism.png", | |
"date": "06/19/13 13:01", | |
"size": "59847", | |
"width": "1280", | |
"height": "1024", | |
"id": "UcGPy9_mqc8IAwLZ", | |
"kind": "image", | |
"url": "https://wroomio.s3.amazonaws.com/blank%2F1371639748860_prism.png", | |
"wioUrl": "wio://medias/UcGPy9_mqc8IAwLZ" | |
}, | |
"LinkDocument": { | |
"wioUrl": "wio://documents/UcL0B9_mqWp9oUj7", | |
"preview": { | |
"title": "This is your first structured article!", | |
"image": "https://wroomio.s3.amazonaws.com/blank/medium_1371639748860_prism.png" | |
}, | |
"mask": "article", | |
"id": "UcL0B9_mqWp9oUj7" | |
}, | |
"Image": { | |
"thumbnails": { | |
"thumbnail #1": { | |
"edit": { | |
"background": "transparent", | |
"crop": { | |
"y": 5, | |
"x": 0 | |
}, | |
"zoom": 0.0390625 | |
}, | |
"height": 50, | |
"width": 50, | |
"credits": null, | |
"alt": null, | |
"url": "https://wroomdev.s3.amazonaws.com/srenault/3684734ce7a705eacc69024249fe0fdf064bd784.png", | |
"origin": { | |
"height": 1024, | |
"width": 1280, | |
"url": "https://wroomio.s3.amazonaws.com/blank%2F1371639748860_prism.png", | |
"id": "UcGPy9_mqc8IAwLZ" | |
} | |
} | |
}, | |
"edit": { | |
"background": "transparent", | |
"crop": { | |
"y": 0, | |
"x": 25 | |
}, | |
"zoom": 0.1953125 | |
}, | |
"height": 200, | |
"width": 300, | |
"credits": null, | |
"alt": null, | |
"url": "https://wroomdev.s3.amazonaws.com/srenault/2c988a598514ba4485167cdf23857283eed34c9c.png", | |
"origin": { | |
"height": 1024, | |
"width": 1280, | |
"url": "https://wroomio.s3.amazonaws.com/blank%2F1371639748860_prism.png", | |
"id": "UcGPy9_mqc8IAwLZ" | |
} | |
}, | |
"StructuredText": [ | |
{ | |
"content": { | |
"spans": [ | |
{ | |
"end": 4, | |
"start": 0, | |
"type": "em" | |
}, | |
{ | |
"end": 13, | |
"start": 10, | |
"type": "strong" | |
}, | |
{ | |
"end": 22, | |
"start": 14, | |
"type": "em" | |
}, | |
{ | |
"end": 22, | |
"start": 14, | |
"type": "strong" | |
}, | |
{ | |
"data": { | |
"wioUrl": "wio://documents/UcL0B9_mqWp9oUj7", | |
"preview": { | |
"title": "This is your first structured article!", | |
"image": "https://wroomio.s3.amazonaws.com/blank/medium_1371639748860_prism.png" | |
}, | |
"mask": "article", | |
"id": "UcL0B9_mqWp9oUj7" | |
}, | |
"end": 59, | |
"start": 45, | |
"type": "hyperlink" | |
} | |
], | |
"text": "This is a all document. We are actually in a StructuredText." | |
}, | |
"type": "paragraph" | |
} | |
] | |
} |
This file contains hidden or 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
{ | |
"Main" : { | |
"StructuredText" : { | |
"type" : "StructuredText", | |
"fieldset" : "structuredtext", | |
"config" : { | |
"multi" : "heading1, heading2, heading3, paragraph, strong, em, hyperlink, image, embed, ulist, olist", | |
"placeholder" : "placeholder", | |
"imageConstraint" : { | |
"width" : 300, | |
"height" : 200 | |
}, | |
"labels" : [ "heading4" ] | |
} | |
}, | |
"Image" : { | |
"type" : "Image", | |
"fieldset" : "image", | |
"config" : { | |
"constraint" : { | |
"width" : 300, | |
"height" : 200 | |
}, | |
"thumbnails" : [ { | |
"name" : "thumbnail #1", | |
"width" : 50, | |
"height" : 50 | |
} ] | |
} | |
}, | |
"LinkDocument" : { | |
"type" : "Link", | |
"fieldset" : "link to document", | |
"config" : { | |
"select" : "document", | |
"masks" : [ "article" ], | |
"tags" : [ "featured" ] | |
} | |
}, | |
"LinkMedia" : { | |
"type" : "Link", | |
"fieldset" : "link to media", | |
"config" : { | |
"select" : "media" | |
} | |
}, | |
"LinkWeb" : { | |
"type" : "Link", | |
"fieldset" : "link to web", | |
"config" : { | |
} | |
}, | |
"Embed" : { | |
"type" : "Embed", | |
"fieldset" : "embed", | |
"config" : { | |
"placeholder" : "placeholder" | |
} | |
}, | |
"GeoPoint" : { | |
"type" : "GeoPoint", | |
"fieldset" : "geopoint", | |
"config" : { } | |
}, | |
"TextField" : { | |
"type" : "Text", | |
"fieldset" : "text", | |
"config" : { | |
"label" : "label", | |
"placeholder" : "placeholder" | |
} | |
}, | |
"DateField" : { | |
"type" : "Date", | |
"fieldset" : "date", | |
"config" : { | |
"label" : "label", | |
"placeholder" : "placeholder" | |
} | |
}, | |
"TimestampField" : { | |
"type" : "Timestamp", | |
"fieldset" : "timestamp", | |
"config" : { | |
"label" : "label", | |
"placeholder" : "placeholder" | |
} | |
}, | |
"ColorField" : { | |
"type" : "Color", | |
"fieldset" : "color", | |
"config" : { | |
"label" : "label" | |
} | |
}, | |
"NumberField" : { | |
"type" : "Number", | |
"fieldset" : "number", | |
"config" : { | |
"label" : "label", | |
"min" : 0, | |
"max" : 100, | |
"step" : 2 | |
} | |
}, | |
"RangeField" : { | |
"type" : "Range", | |
"fieldset" : "range", | |
"config" : { | |
"label" : "label", | |
"min" : 0, | |
"max" : 100, | |
"step" : 2 | |
} | |
}, | |
"SelectField" : { | |
"type" : "Select", | |
"fieldset" : "select", | |
"config" : { | |
"label" : "label", | |
"options" : [ "option1", "option2" ] | |
} | |
}, | |
"Group" : { | |
"type" : "Group", | |
"fieldset" : "group", | |
"config" : { | |
"fields" : { | |
"color" : { | |
"type" : "Color", | |
"fieldset" : "fieldset", | |
"config" : { | |
"label" : "label" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment