remove comments and console.logs

This commit is contained in:
Cassie Tarakajian 2016-10-17 23:23:19 -04:00
parent c6e1d1c906
commit 3e7d88698b
5 changed files with 0 additions and 25 deletions

View file

@ -154,11 +154,8 @@ function buildZip(state) {
}
});
} else {
console.log('adding', `${path}${file.name}`);
zip.file(`${path}${file.name}`, file.content);
numCompletedFiles += 1;
console.log('numFiles', numFiles);
console.log('numCompletedFiles', numCompletedFiles);
if (numCompletedFiles === numFiles) {
zip.generateAsync({ type: 'blob' }).then((content) => {
saveAs(content, `${projectName}.zip`);
@ -174,23 +171,6 @@ export function exportProjectAsZip() {
return (dispatch, getState) => {
const state = getState();
buildZip(state);
// async.each(state.files, (file, cb) => {
// if (file.url) {
// JSZipUtils.getBinaryContent(file.url, (err, data) => {
// zip.file(file.name, data, { binary: true });
// cb();
// });
// } else {
// zip.file(file.name, file.content);
// cb();
// }
// }, err => {
// if (err) console.log(err);
// zip.generateAsync({ type: 'blob' }).then((content) => {
// saveAs(content, `${state.project.name}.zip`);
// });
// });
// };
};
}

View file

@ -27,7 +27,6 @@ class Console extends React.Component {
if (nextProps.isPlaying && !this.props.isPlaying) {
this.children = [];
} else if (nextProps.consoleEvent !== this.props.consoleEvent && this.props.isPlaying) {
console.log(nextProps.consoleEvent);
nextProps.consoleEvent.forEach(consoleEvent => {
if (consoleEvent.source === 'sketch') {
const args = consoleEvent.arguments;

View file

@ -187,7 +187,6 @@ class PreviewFrame extends React.Component {
}
});
newJSFile.content = loopProtect(newJSFile.content);
console.log(newJSFile.content);
jsFiles.push(newJSFile);
});

View file

@ -74,7 +74,6 @@ class SidebarItem extends React.Component {
<li>
<a
onClick={() => {
console.log('before show edit file name');
this.originalFileName = this.props.file.name;
this.props.showEditFileName(this.props.file.id);
setTimeout(() => this.refs.fileNameInput.focus(), 0);

View file

@ -127,7 +127,6 @@ class IDEView extends React.Component {
}
_handleSidebarPaneOnDragFinished() {
console.log('setting sidebar size');
this.sidebarSize = this.refs.sidebarPane.state.draggedSize;
this.refs.sidebarPane.setState({
resized: false,
@ -137,7 +136,6 @@ class IDEView extends React.Component {
handleGlobalKeydown(e) {
if (e.key === 's' && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac))) {
console.log('about to save project');
e.preventDefault();
e.stopPropagation();
this.props.saveProject();