From 8479490ac86d201c46bf97010b29a1e1f9e6d1c6 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Sun, 1 Dec 2019 23:47:14 -0800 Subject: [PATCH 1/2] Added comments/TODO for download method. --- src/App/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App/App.js b/src/App/App.js index b9853ae..6a9ea24 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -152,6 +152,9 @@ class App extends Component { }) } + /** + * Downloads the currently displayed source code to the user's desktop. + */ downloadCode = () => { // TODO: Code to download source code. } From 4b2605efbdc182efc8a3784d212b182866c39bf0 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Mon, 2 Dec 2019 23:59:10 -0800 Subject: [PATCH 2/2] Removed limit on amount of logs displayed to user. --- src/App/App.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/App/App.js b/src/App/App.js index 6a9ea24..2104c05 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -167,14 +167,9 @@ class App extends Component { // Before processing the new result, we must pop the message 'Running your code...' off and re-enable the button. this.setFinishedStatus() - // Will only keep the latest 10 results in the logs. + // TODO: Keep only a specific amount of logs. let currentResults = this.state.results - // Most recent results are at the top, remove the element at the end if we exceed 10 logs. - if (currentResults.length >= 10) { - currentResults.pop() - } - if (result['build'] === true) { currentResults.unshift('[' + languages[this.state.language] + '] Build successfully completed!\nStandard output:\n' + result['message']) } else {