Skip to content

Commit ce451cb

Browse files
author
sanex3339
committed
Fixed markdown of code container
1 parent 0f1ecca commit ce451cb

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

App/containers/CodeContainer.js

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import Dropzone from 'react-dropzone';
1010
import EditorContainer from '../containers/EditorContainer';
1111

1212
const TAB_CODE = 0;
13-
const TAB_UPLOAD = 1;
1413
const TAB_RESULTS = 2;
1514

1615
class CodeContainer extends Component {
@@ -188,49 +187,50 @@ class CodeContainer extends Component {
188187
menuItem: 'Output',
189188
render: () => (
190189
<Pane>
191-
<Form>
192-
<Form.TextArea
193-
value={obfuscatedCode}
194-
onFocus={(event) => event.target.select()}
195-
/>
196-
</Form>
197-
198190
<Grid stackable columns={2} relaxed>
191+
<Grid.Column width={16}>
192+
<Form>
193+
<Form.TextArea
194+
value={obfuscatedCode}
195+
rows={8}
196+
onFocus={(event) => event.target.select()}
197+
/>
198+
</Form>
199+
</Grid.Column>
200+
199201
<Grid.Column width={13}>
200-
<Segment basic>
202+
<Button
203+
disabled={!hasObfuscatedCode}
204+
onClick={onDownloadCodeClick}
205+
>
206+
<Icon name='download'/> Download obfuscated code
207+
</Button>
208+
209+
{hasSourceMap &&
201210
<Button
202-
disabled={!hasObfuscatedCode}
203-
onClick={onDownloadCodeClick}
211+
onClick={onDownloadSourceMapClick}
204212
>
205-
<Icon name='download'/> Download obfuscated code
213+
<Icon name='download'/> Download source map file
206214
</Button>
207-
{hasSourceMap &&
208-
<Button
209-
onClick={onDownloadSourceMapClick}
210-
>
211-
<Icon name='download'/> Download source map file
212-
</Button>
213-
}
214-
</Segment>
215+
}
215216
</Grid.Column>
216217

217-
<Grid.Column width={3}>
218-
<Segment basic>
219-
<Form.Checkbox
220-
label='Evaluate'
221-
checked={this.state.evaluate}
222-
onChange={this.toggleEvaluate}/>
223-
</Segment>
218+
<Grid.Column width={3} verticalAlign="middle">
219+
<Form.Checkbox
220+
label='Evaluate'
221+
checked={this.state.evaluate}
222+
onChange={this.toggleEvaluate}
223+
/>
224224
</Grid.Column>
225-
</Grid>
226225

227-
{this.state.evaluate &&
228-
<Segment basic>
229-
<div className="evaluatedCode">
230-
{this.state.evaluatedResult}
231-
</div>
232-
</Segment>
233-
}
226+
{this.state.evaluate &&
227+
<Grid.Column width={16}>
228+
<div className="evaluatedCode">
229+
{this.state.evaluatedResult}
230+
</div>
231+
</Grid.Column>
232+
}
233+
</Grid>
234234
</Pane>
235235
)
236236
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "javascript-obfuscator-web",
3-
"version": "2.3.5",
3+
"version": "2.4.0",
44
"description": "",
55
"engines": {
66
"node": ">=12.13.1"

0 commit comments

Comments
 (0)