@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
44import { connect } from 'react-redux' ;
55const ReactMarkdown = require ( 'react-markdown' )
66
7- import { Container , Form , Grid , Header , Segment , Divider , Button } from 'semantic-ui-react' ;
7+ import { Form , Grid , Header , Segment , Divider , Button } from 'semantic-ui-react' ;
88
99import EntryInputContainer from '../containers/EntryInputContainer' ;
1010import { getOptionsMarkdown } from '../util/get-options-markdown' ;
@@ -34,6 +34,14 @@ const SOURCEMAP_OPTIONS = [
3434 { text : 'Separate' , value : SOURCEMAP_SEPARATE } ,
3535] ;
3636
37+ export const STRING_ARRAY_INDEXES_TYPE_HEXADECIMAL_NUMBER = 'hexadecimal-number' ;
38+ export const STRING_ARRAY_INDEXES_TYPE_HEXADECIMAL_NUMERIC_STRING = 'hexadecimal-numeric-string' ;
39+
40+ const STRING_ARRAY_INDEXES_TYPE_OPTIONS = [
41+ { text : 'Hexadecimal Number' , value : STRING_ARRAY_INDEXES_TYPE_HEXADECIMAL_NUMBER } ,
42+ { text : 'Hexadecimal Numeric String' , value : STRING_ARRAY_INDEXES_TYPE_HEXADECIMAL_NUMERIC_STRING }
43+ ] ;
44+
3745export const STRING_ARRAY_ENCODING_NONE = 'none' ;
3846export const STRING_ARRAY_ENCODING_BASE64 = 'base64' ;
3947export const STRING_ARRAY_ENCODING_RC4 = 'rc4' ;
@@ -228,6 +236,22 @@ const Options = ({dispatch, options}) => {
228236 step = "0.05"
229237 onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayThreshold ( parseFloat ( value ) ) ) }
230238 disabled = { ! options . stringArrayThresholdEnabled } />
239+ `
240+ < Form . Checkbox
241+ label = 'String Array Index Shift'
242+ checked = { options . stringArrayIndexShift }
243+ disabled = { ! options . stringArray }
244+ onChange = { ( ) => dispatch ( actions . toggleOption ( types . TOGGLE_STRING_ARRAY_INDEX_SHIFT ) ) } />
245+
246+ < Form . Select
247+ disabled = { ! options . stringArrayIndexesType }
248+ label = 'String Array Indexes Type'
249+ fluid
250+ multiple
251+ placeholder = "Select indexes type type"
252+ value = { options . stringArrayIndexesType }
253+ onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayIndexesType ( value ) ) }
254+ options = { STRING_ARRAY_INDEXES_TYPE_OPTIONS } />
231255
232256 < Form . Input
233257 type = 'number'
@@ -248,6 +272,15 @@ const Options = ({dispatch, options}) => {
248272 disabled = { ! options . stringArray || ! options . stringArrayWrappersCount }
249273 />
250274
275+ < Form . Input
276+ type = 'number'
277+ label = 'String Array Wrappers Parameters Maximum Count'
278+ value = { options . stringArrayWrappersParametersMaxCount }
279+ min = "2"
280+ step = "1"
281+ onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayWrappersParametersMaxCount ( parseInt ( value ) ) ) }
282+ disabled = { options . stringArrayWrappersType !== STRING_ARRAY_WRAPPERS_TYPE_FUNCTION } />
283+
251284 < Form . Checkbox
252285 label = 'String Array Wrappers Chained Calls'
253286 checked = { options . stringArrayWrappersChainedCalls }
0 commit comments