From 0cc0e4d9eef55065c500531e31ef4722a592fd4b Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 27 May 2018 01:19:00 +0530 Subject: [PATCH] Helpmodal + add library + toggle layouts --- webmaker/src/components/ContentWrap.jsx | 18 ++++---- webmaker/src/components/Footer.jsx | 35 ++++++++++++---- webmaker/src/components/MainHeader.jsx | 4 +- webmaker/src/components/Modal.jsx | 15 +++++-- webmaker/src/components/app.jsx | 55 ++++++++++++++++++++----- 5 files changed, 99 insertions(+), 28 deletions(-) diff --git a/webmaker/src/components/ContentWrap.jsx b/webmaker/src/components/ContentWrap.jsx index 239db01..dfb6368 100644 --- a/webmaker/src/components/ContentWrap.jsx +++ b/webmaker/src/components/ContentWrap.jsx @@ -73,24 +73,27 @@ export default class ContentWrap extends Component { /* eslint max-params: ["error", 4] */ getCompleteHtml(html, css, js, isForExport) { - /* var externalJs = externalJsTextarea.value + if (!this.props.currentItem) { + return ''; + } + var externalJs = this.props.currentItem.externalLibs.js .split('\n') .reduce(function(scripts, url) { return scripts + (url ? '\n' : ''); }, ''); - var externalCss = externalCssTextarea.value + var externalCss = this.props.currentItem.externalLibs.css .split('\n') .reduce(function(links, url) { return ( links + (url ? '\n' : '') ); - }, ''); */ + }, ''); var contents = '\n' + '\n\n' + '\n' + - // externalCss + + externalCss + '\n' + '