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" : { | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1", | |
"label" : "Title", | |
"placeholder" : "Title" | |
} | |
}, |
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
const csv = require('csv-parser') | |
const fs = require('fs') | |
const results = []; | |
const catalog = { | |
"results_size": 50, | |
"results": [] | |
}; | |
fs.createReadStream('source-if.csv') | |
.pipe(csv()) | |
.on('data', (data) => results.push(data)) |
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" : { | |
"product_name" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Product name", | |
"placeholder" : "Product name" | |
} | |
}, | |
"uid" : { |
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
const csv = require('csv-parser') | |
const fs = require('fs') | |
const results = []; | |
fs.createReadStream('source.csv') | |
.pipe(csv()) | |
.on('data', (data) => results.push(data)) | |
.on('end', () => { | |
results.forEach(function (result, i) { | |
console.log(result); |
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": { | |
"text": { | |
"type": "StructuredText", | |
"config": { | |
"labels" : ["EventListener"], | |
"multi": "paragraph, hyperlink", | |
"label": "Text", | |
"placeholder": "Text" | |
} |
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
{ | |
allSuccessStorys { | |
edges { | |
node { | |
body { | |
... on SuccessStoryBodyCta_block { | |
primary { | |
cta { | |
... on Inline_cta { | |
title |
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
{ | |
"results_size": 2, | |
"results": [ | |
{ | |
"id": "1", | |
"title": "ROBE ROUMY LUREX", | |
"description": "Robe bleu marine femme Zadig&Voltaire, en soie imprimée, mi longue, détails lurex.", | |
"image_url": "https://cdn.zadig-et-voltaire.com/media/catalog/product/cache/0/small_image/1000x1500/c96a280f94e22e3ee3823dd0a1a87606/W/G/WGCS0412F_MARINE_3_1.JPG", | |
"last_update": 1509364426938, |
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" : { | |
"uid" : { | |
"type" : "UID", | |
"config" : { | |
"placeholder" : "meaningful-unique-identifier...", | |
"label" : "Unique ID" | |
} | |
}, | |
"body" : { |
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" : { | |
"uid" : { | |
"type" : "UID", | |
"config" : { | |
"placeholder" : "meaningful-unique-identifier...", | |
"label" : "Unique ID" | |
} | |
}, | |
"title" : { |
NewerOlder