From 194877a3ad74423408495289ee72990440807739 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Sat, 14 Mar 2020 16:53:23 -0700 Subject: [PATCH 1/4] Added more default imports for Python. --- src/resources/code.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/code.js b/src/resources/code.js index 5ef48e0..5958b07 100644 --- a/src/resources/code.js +++ b/src/resources/code.js @@ -10,6 +10,8 @@ public class Solution { 'python': `import math +from collections import defaultdict, deque +import heapq def main(): # Write your code here. From 001d2659d423ad9cff0d1e685fd52d34c9331dd4 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Sat, 14 Mar 2020 17:02:01 -0700 Subject: [PATCH 2/4] Deprecate autocomplete feature. --- src/components/CoderpadWrapper.js | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/components/CoderpadWrapper.js b/src/components/CoderpadWrapper.js index eba0bf3..ac16bae 100644 --- a/src/components/CoderpadWrapper.js +++ b/src/components/CoderpadWrapper.js @@ -26,7 +26,6 @@ const LOAD_CODE_GET_URL = LOAD_CODE_PROD_GET_URL // Default settings on page loadup. const SUPPORTED_LANGUAGES = ['java', 'python', 'c_cpp'] const DEFAULT_LANGUAGE = 'python' -const DEFAULT_AUTOCOMPLETE = false const DEFAULT_PRACTICE = false const DEFAULT_SETTINGS = { language: DEFAULT_LANGUAGE, @@ -35,7 +34,6 @@ const DEFAULT_SETTINGS = { disabled: false, uploading: false, practice: DEFAULT_PRACTICE, - autocomplete: DEFAULT_AUTOCOMPLETE }; // Notification messages. @@ -117,16 +115,6 @@ class CoderpadWrapper extends Component { }); } - /** - * Enables/disables autocomplete. - */ - onChangeAutocomplete = () => { - this.setState({ - ...this.state, - autocomplete: !this.state.autocomplete - }); - } - /** * Adds code executing message and disables run button. */ @@ -292,7 +280,7 @@ class CoderpadWrapper extends Component { @@ -317,18 +305,6 @@ class CoderpadWrapper extends Component { {languages['c_cpp']} - - } - label='Code Autocomplete' - style={{ marginRight: '2.5%' }} - /> Date: Sat, 14 Mar 2020 17:02:01 -0700 Subject: [PATCH 3/4] Deprecate autocomplete feature. --- src/components/CoderpadWrapper.js | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/components/CoderpadWrapper.js b/src/components/CoderpadWrapper.js index eba0bf3..ac16bae 100644 --- a/src/components/CoderpadWrapper.js +++ b/src/components/CoderpadWrapper.js @@ -26,7 +26,6 @@ const LOAD_CODE_GET_URL = LOAD_CODE_PROD_GET_URL // Default settings on page loadup. const SUPPORTED_LANGUAGES = ['java', 'python', 'c_cpp'] const DEFAULT_LANGUAGE = 'python' -const DEFAULT_AUTOCOMPLETE = false const DEFAULT_PRACTICE = false const DEFAULT_SETTINGS = { language: DEFAULT_LANGUAGE, @@ -35,7 +34,6 @@ const DEFAULT_SETTINGS = { disabled: false, uploading: false, practice: DEFAULT_PRACTICE, - autocomplete: DEFAULT_AUTOCOMPLETE }; // Notification messages. @@ -117,16 +115,6 @@ class CoderpadWrapper extends Component { }); } - /** - * Enables/disables autocomplete. - */ - onChangeAutocomplete = () => { - this.setState({ - ...this.state, - autocomplete: !this.state.autocomplete - }); - } - /** * Adds code executing message and disables run button. */ @@ -292,7 +280,7 @@ class CoderpadWrapper extends Component { @@ -317,18 +305,6 @@ class CoderpadWrapper extends Component { {languages['c_cpp']} - - } - label='Code Autocomplete' - style={{ marginRight: '2.5%' }} - /> Date: Mon, 16 Mar 2020 09:55:21 -0700 Subject: [PATCH 4/4] Added dialog to redirect to core. --- src/components/CoderpadWrapper.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/CoderpadWrapper.js b/src/components/CoderpadWrapper.js index ac16bae..b8acba9 100644 --- a/src/components/CoderpadWrapper.js +++ b/src/components/CoderpadWrapper.js @@ -6,7 +6,7 @@ import code from '../resources/code'; import languages from '../resources/languages'; import copy from 'copy-to-clipboard'; import { store as Notification } from 'react-notifications-component'; -import { Grid, Button, FormControl, FormControlLabel, Checkbox, Select, MenuItem, CircularProgress } from '@material-ui/core'; +import { Grid, Button, FormControl, FormControlLabel, Checkbox, Select, MenuItem, Dialog, DialogTitle, DialogContent, DialogContentText } from '@material-ui/core'; // Backend servers to execute code. const EXECUTE_CODE_DEV_POST_URL = 'http://localhost:5000/coderpad/execute' @@ -277,6 +277,19 @@ class CoderpadWrapper extends Component { render() { return (
+ + Services are being migrated to core. + + + All services are currently in the process of migrating to core. All applications can be found + at https://core.dannyhp.com. + + +