Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function Plugin(context) {
const json = test;// HACK load test page while testing - requestJson();
const document = context.document;
const page = document.currentPage();
removeExistingLayers(page);
const newPage = json.pages[0];
const result = newPage.items.map(layer => renderLayer(layer));
render(
{result},
page
);
}
export default (context) => render( , context.document.currentPage())
export default (context) => {
render(
,
context.document.currentPage()
)
}
export default () => {
render(, context.document.currentPage());
};
export default (context) => {
render(, context.document.currentPage());
};
url: 'cargocollective.com/jackiesaik',
profile_image_url:
'https://pbs.twimg.com/profile_images/895665264464764930/7Mb3QtEB_400x400.jpg',
},
{
screen_name: 'jongold',
name: 'kerning man',
description:
'an equal command of technology and form • functional programming (oc)cultist • design tools @airbnbdesign',
location: 'California',
url: 'weirdwideweb.jon.gold',
profile_image_url: 'https://pbs.twimg.com/profile_images/833785170285178881/loBb32g3.jpg',
},
];
render(, context.document.currentPage());
};
export default () => {
render(
,
context.document.currentPage(),
);
};
export default () => {
render(, context.document.currentPage());
};
const onRun = (context) => {
render(, context.document.currentPage());
};
export default () => {
const colorList = {
Classic: '#96324E',
Neue: '#21304E',
};
render(, context.document.currentPage());
};