Skip to content

Instantly share code, notes, and snippets.

@did
Created January 20, 2017 09:54
Show Gist options
  • Save did/1ff1ddeda58e91b44dd54fb73d9f9517 to your computer and use it in GitHub Desktop.
Save did/1ff1ddeda58e91b44dd54fb73d9f9517 to your computer and use it in GitHub Desktop.
{"main"=>[{"id"=>1, "type"=>"carousel", "content"=>{"slides"=>[{"id"=>"slides-item-1", "link"=>3, "price"=>"$42.00", "title"=>"Juliette", "subTitle"=>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac consequat augue. Duis ac iaculis dolor, id pulvinar diam.", "link_type"=>"taxon", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482144490/development/m2edqtjziainrfkgmcui.jpg", "link_taxon_name"=>"Categories -> Bags", "link_taxon_image"=>"/assets/default_taxon.png", "link_product_name"=>"Ruby on Rails Mug", "link_product_slug"=>"ruby-on-rails-mug", "link_product_image"=>"/spree/products/27/mini/ror_mug.jpeg", "link_taxon_permalink"=>"categories/bags"}, {"id"=>"slides-item-4", "link"=>"http://www.google.fr", "price"=>"$42.00", "title"=>"Sacha", "subTitle"=>"Lorem ipsum", "link_type"=>"external", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482144608/development/m5zy4c0qwrihfjapzes9.jpg"}, {"id"=>"slides-item-2", "link"=>15, "price"=>"$42.00", "title"=>"Alessandra", "subTitle"=>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac consequat augue. Duis ac iaculis dolor, id pulvinar diam....", "link_type"=>"product", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482156308/development/khfkuguc1losem5xdqcn.jpg", "link_product_name"=>"Ruby Baseball Jersey", "link_product_slug"=>"ruby-baseball-jersey-9e396284-11d0-4ca0-924b-5b5747969664", "link_product_image"=>nil}, {"id"=>"slides-item-3", "link"=>"http://www.google.fr", "price"=>"$4200.00", "title"=>"Paul", "subTitle"=>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac consequat augue. Duis ac iaculis dolor, id pulvinar diam. blabla", "link_type"=>"external", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482156197/development/uqqx9rldtz2zd6lmexld.jpg"}]}, "position"=>1}, {"id"=>2, "name"=>"Notre sélection", "type"=>"vignettes", "content"=>{"list"=>[{"id"=>"list-item-2", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/ngbswz9gz2sjeg7gpshc.jpg", "title"=>"Vignette title"}, {"id"=>"list-item-1", "link"=>3, "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/q86wpzsbepeaadlyrn0c.jpg", "title"=>"Rouge", "link_type"=>"product", "link_product_name"=>"Ruby on Rails Baseball Jersey", "link_product_slug"=>"ruby-on-rails-baseball-jersey", "link_product_image"=>"/spree/products/24/mini/ror_baseball.jpeg"}, {"id"=>"list-item-3", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/o0olawy3p1gapohbvkha.jpg", "title"=>"Vignette title"}, {"id"=>"list-item-4", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/jmsvoq3ydjvw26eux7xv.jpg", "title"=>"Vignette title"}, {"id"=>"list-item-5", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/izedzikac2oa5ru6rigz.jpg", "title"=>"Lampe"}], "title"=>"Notre sélection de produits"}, "position"=>4}, {"id"=>3, "type"=>"text_image", "content"=>{"link"=>"http://www.google.fr", "title"=>"Pour accompagner vos soirées d'été", "button"=>"Découvrir les vins", "subTitle"=>"Le vin blanc est synonyme de bonheur.", "link_type"=>"external", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482144234/development/aom9glivohqj9nsngiwm.jpg"}, "position"=>5}, {"id"=>4, "name"=>"Catégories", "type"=>"vignettes", "content"=>{"list"=>[{"id"=>"list-item-1", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/izedzikac2oa5ru6rigz.jpg", "title"=>"Vignette 1"}, {"id"=>"list-item-2", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/e3gsxtvwohl4ml0qprl7.jpg", "title"=>"Vignette 2"}, {"id"=>"list-item-3", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/jmsvoq3ydjvw26eux7xv.jpg", "title"=>"Vignette 3"}, {"id"=>"list-item-4", "link"=>"#", "image"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482192093/development/o0olawy3p1gapohbvkha.jpg", "title"=>"Vignette 4"}], "title"=>"Notre autre sélection"}, "position"=>6}, {"id"=>5, "type"=>"text_image", "content"=>{"link"=>"#", "title"=>"Hello world", "button"=>"Button", "subTitle"=>"That's awesome! Really awesome!!!!", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482144250/development/qe5u3c5szsudyih8tjcc.jpg"}, "position"=>2}, {"id"=>6, "name"=>"Carousel2", "type"=>"carousel", "content"=>{"slides"=>[{"id"=>"slides-item-1", "price"=>"$42.00", "title"=>"My first slide", "subTitle"=>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac consequat augue. Duis ac iaculis dolor, id pulvinar diam.", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482156308/development/khfkuguc1losem5xdqcn.jpg"}, {"id"=>"slides-item-3", "price"=>"$42.00", "title"=>"Canada!!!", "subTitle"=>"Ma cabane au Canada", "background"=>"https://res.cloudinary.com/nocoffee/image/upload/v1482144590/development/q6dgxzxbwtynzmgoqlu0.jpg"}]}, "position"=>7}, {"id"=>7, "type"=>"text", "content"=>{"text"=>"<h2>A big title</h2>\n\n<p>Lorem ipsum!</p>\n\n<h3>Subtitle</h3>\n\n<ul><li>hello world</li><li>second item</li></ul>\n\n<p><strong>Markdown</strong> used on the <em>client</em> side..</p>", "text_source"=>"##A big title\nLorem ipsum!\n\n### Subtitle\n\n- hello world\n- second item\n\n**Markdown** used on the *client* side.."}, "position"=>3}], "sidebar"=>[{"type"=>"ad", "content"=>{"title"=>"First ad", "background"=>"/images/first-ad.png"}, "position"=>1}, {"type"=>"ad", "content"=>{"title"=>"Another ad", "background"=>"/images/another-ad.png"}, "position"=>2}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment