Skip to content

Commit 67c2f72

Browse files
authored
Added dialog to redirect users to core. (#26)
* Added more default imports for Python. * Deprecate autocomplete feature. * Deprecate autocomplete feature. * Added dialog to redirect to core.
1 parent cff178f commit 67c2f72

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/components/CoderpadWrapper.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import code from '../resources/code';
66
import languages from '../resources/languages';
77
import copy from 'copy-to-clipboard';
88
import { store as Notification } from 'react-notifications-component';
9-
import { Grid, Button, FormControl, FormControlLabel, Checkbox, Select, MenuItem, CircularProgress } from '@material-ui/core';
9+
import { Grid, Button, FormControl, FormControlLabel, Checkbox, Select, MenuItem, Dialog, DialogTitle, DialogContent, DialogContentText } from '@material-ui/core';
1010

1111
// Backend servers to execute code.
1212
const EXECUTE_CODE_DEV_POST_URL = 'http://localhost:5000/coderpad/execute'
@@ -277,6 +277,19 @@ class CoderpadWrapper extends Component {
277277
render() {
278278
return (
279279
<div className="App">
280+
<Dialog
281+
open={true}
282+
aria-labelledby="alert-dialog-title"
283+
aria-describedby="alert-dialog-description"
284+
>
285+
<DialogTitle id="alert-dialog-title">Services are being migrated to core.</DialogTitle>
286+
<DialogContent>
287+
<DialogContentText id="alert-dialog-description">
288+
All services are currently in the process of migrating to core. All applications can be found
289+
at <a href='https://core.dannyhp.com'>https://core.dannyhp.com</a>.
290+
</DialogContentText>
291+
</DialogContent>
292+
</Dialog>
280293
<Grid container style={{ marginBottom: '1.5%' }}>
281294
<Grid item xs={6}>
282295
<CodeEditor
@@ -332,7 +345,7 @@ class CoderpadWrapper extends Component {
332345
</Button>
333346
<Button variant='contained' color='primary'
334347
onClick={this.executeCode}
335-
disabled={this.state.disabled}
348+
disabled={true}
336349
style={{ background: '#0269a4', marginRight: '1.5%', maxHeight: '40px' }}>
337350
{this.state.disabled ? 'Running your code...' : 'Run Code'}
338351
</Button>

0 commit comments

Comments
 (0)