mirror of
https://github.com/sasjs/server.git
synced 2026-01-15 01:40:05 +00:00
style: lint
This commit is contained in:
@@ -106,7 +106,11 @@ const Studio = () => {
|
|||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box onKeyUp={handleKeyUp} onKeyDown={handleKeyDown} sx={{ width: '100%', typography: 'body1', marginTop: '50px' }}>
|
<Box
|
||||||
|
onKeyUp={handleKeyUp}
|
||||||
|
onKeyDown={handleKeyDown}
|
||||||
|
sx={{ width: '100%', typography: 'body1', marginTop: '50px' }}
|
||||||
|
>
|
||||||
<TabContext value={tab}>
|
<TabContext value={tab}>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@@ -127,8 +131,15 @@ const Studio = () => {
|
|||||||
<TabPanel value="1">
|
<TabPanel value="1">
|
||||||
<div className={classes.subMenu}>
|
<div className={classes.subMenu}>
|
||||||
<Tooltip title="CTRL+ENTER will also run SAS code">
|
<Tooltip title="CTRL+ENTER will also run SAS code">
|
||||||
<Button onClick={handleRunBtnClick} style={{ padding: 0, width: '35px', minWidth: 'unset' }}>
|
<Button
|
||||||
<img draggable="false" style={{ width: '100%' }} src="/running-sas.png"></img>
|
onClick={handleRunBtnClick}
|
||||||
|
style={{ padding: 0, width: '35px', minWidth: 'unset' }}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
draggable="false"
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
src="/running-sas.png"
|
||||||
|
></img>
|
||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
@@ -146,12 +157,23 @@ const Studio = () => {
|
|||||||
height="98%"
|
height="98%"
|
||||||
value={fileContent}
|
value={fileContent}
|
||||||
onMount={handleEditorDidMount}
|
onMount={handleEditorDidMount}
|
||||||
options={{readOnly: ctrlPressed}}
|
options={{ readOnly: ctrlPressed }}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
if (val) setFileContent(val)
|
if (val) setFileContent(val)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<p style={{ position: 'absolute', left: 0, right: 0, bottom: -10, textAlign: 'center', fontSize: '13px' }}>Press CTRL + ENTER to run SAS code</p>
|
<p
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: -10,
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: '13px'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Press CTRL + ENTER to run SAS code
|
||||||
|
</p>
|
||||||
</Paper>
|
</Paper>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel value="2">
|
<TabPanel value="2">
|
||||||
|
|||||||
Reference in New Issue
Block a user