Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 1233bc0

Browse files
committed
Repositioning the 'Identifier Names Generator' option.
1 parent 37a3fd7 commit 1233bc0

2 files changed

Lines changed: 20 additions & 23 deletions

File tree

App/containers/OptionsContainer.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ const Options = ({dispatch, options}) =>
5656
checked={options.compact}
5757
onChange={() => dispatch(actions.toggleOption(types.TOGGLE_COMPACT_CODE)) } />
5858

59+
<Form.Select
60+
label='Identifier Names Generator'
61+
value={options.identifierNamesGenerator}
62+
onChange={(event, {value}) => dispatch(actions.setIdentifierNamesGenerator(value)) }
63+
options={IDENTIFIER_NAMES_GENERATOR_OPTIONS} />
64+
5965
<Form.Checkbox
6066
label='Rename Globals'
6167
checked={options.renameGlobals}
@@ -144,14 +150,6 @@ const Options = ({dispatch, options}) =>
144150
checked={options.unicodeEscapeSequence}
145151
onChange={() => dispatch(actions.toggleOption(types.TOGGLE_UNICODE_ESCAPE_SEQUENCE)) } />
146152

147-
<Divider />
148-
149-
<Form.Select
150-
label='Identifier Names Generator'
151-
value={options.identifierNamesGenerator}
152-
onChange={(event, {value}) => dispatch(actions.setIdentifierNamesGenerator(value)) }
153-
options={IDENTIFIER_NAMES_GENERATOR_OPTIONS} />
154-
155153
</Segment>
156154
</Grid.Column>
157155

templates/index.html

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ <h3>Sounds great!</h3>
8080
</td>
8181
</tr>
8282

83+
<tr>
84+
<td class="collapsing">Identifier Names Generator</td>
85+
<td>
86+
<p>Use this option to control how identifiers (variable names, functions names, etc) will be obfuscated.</p>
87+
88+
<strong>hexadecimal</strong>
89+
<p>Generates random identifier names using a hexadecimal pattern (e.g: <code>0xabc123</code>)</p>
90+
91+
<strong>mangled</strong>
92+
<p>Uses short identifier names (e.g: <code>a</code>, <code>b</code>, <code>c</code>, etc.)</p>
93+
94+
</td>
95+
</tr>
96+
8397
<tr>
8498
<td class="collapsing">Rename Globals</td>
8599
<td>
@@ -210,21 +224,6 @@ <h3>Sounds great!</h3>
210224
</td>
211225
</tr>
212226

213-
<tr>
214-
<td class="collapsing">Identifier Names Generator</td>
215-
<td>
216-
<p>Use this option to control how identifiers (variable names, functions names, etc) will be obfuscated.</p>
217-
218-
<strong>hexadecimal</strong>
219-
<p>Generates random identifier names using a hexadecimal pattern (e.g: <code>0xabc123</code>)</p>
220-
221-
<strong>mangled</strong>
222-
<p>Uses short identifier names (e.g: <code>a</code>, <code>b</code>, <code>c</code>, etc.)</p>
223-
224-
</td>
225-
</tr>
226-
227-
228227
<tr>
229228
<td class="collapsing">Disable Console Output</td>
230229
<td>

0 commit comments

Comments
 (0)