File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ export const DropdownIocSettingsMenu: FC = () => {
11
11
iocTypesFields,
12
12
exceptionsField,
13
13
iocsPerQueryField,
14
+ hashTypesFields,
14
15
onChangeIocTypes,
15
16
onChangeExceptions,
16
17
onChangeIocsPerQuery,
18
+ onChangeHashTypes,
17
19
iocTypeErrorMessage,
18
20
} = useIocSettingsMenu ( ) ;
19
21
@@ -35,6 +37,18 @@ export const DropdownIocSettingsMenu: FC = () => {
35
37
)
36
38
}
37
39
</ div >
40
+ < div className = "ioc-settings-menu__label m-b-10" >
41
+ < Label label = "Hash Type" />
42
+ </ div >
43
+ < div className = "ioc-settings-menu-list m-b-14" onChange = { onChangeHashTypes } >
44
+ {
45
+ hashTypesFields . map ( ( field ) => (
46
+ < div className = "ioc-settings-menu-list__item m-r-16 m-b-6" key = { field . name } >
47
+ < Checkbox label = { field . label } checked = { field . checked } name = { field . name } />
48
+ </ div >
49
+ ) )
50
+ }
51
+ </ div >
38
52
< div className = "ioc-settings-menu__label m-b-10" >
39
53
< Label label = "IOCs per query" />
40
54
</ div >
Original file line number Diff line number Diff line change 40
40
.ace_editor
41
41
& .ace_autocomplete
42
42
width : 500px
43
-
43
+ .ace_scroller
44
+ padding : 0
45
+ .ace_text-layer
46
+ width : calc(100% - 14px )
47
+ .ace_scrollbar
48
+ & .ace_scrollbar-v ,
49
+ & .ace_scrollbar-h
50
+ + scrollbars
Original file line number Diff line number Diff line change 1
1
import type { CaseReducer , PayloadAction } from '@reduxjs/toolkit' ;
2
2
import { createSelector , createSlice } from '@reduxjs/toolkit' ;
3
3
import { IocSettingsStateType , RootState } from '../RootStore' ;
4
- import { BasicIocType , IocParsingRulesType } from '../../types/iocsTypes' ;
4
+ import { BasicIocType , HashIocType , IocParsingRulesType } from '../../types/iocsTypes' ;
5
5
6
6
type IocSettingsReducers = {
7
7
setIocPerQuery : CaseReducer < IocSettingsStateType , PayloadAction < number > > ;
@@ -22,7 +22,12 @@ const initialState: IocSettingsStateType = {
22
22
BasicIocType . Url ,
23
23
BasicIocType . Hash ,
24
24
] ,
25
- includeHashTypes : [ ] ,
25
+ includeHashTypes : [
26
+ HashIocType . Md5 ,
27
+ HashIocType . Sha1 ,
28
+ HashIocType . Sha256 ,
29
+ HashIocType . Sha512 ,
30
+ ] ,
26
31
exceptions : '' ,
27
32
iocParsingRules : [
28
33
IocParsingRulesType . RemovePrivateAndReservedIps ,
You can’t perform that action at this time.
0 commit comments