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 = () => {
1111 iocTypesFields,
1212 exceptionsField,
1313 iocsPerQueryField,
14+ hashTypesFields,
1415 onChangeIocTypes,
1516 onChangeExceptions,
1617 onChangeIocsPerQuery,
18+ onChangeHashTypes,
1719 iocTypeErrorMessage,
1820 } = useIocSettingsMenu ( ) ;
1921
@@ -35,6 +37,18 @@ export const DropdownIocSettingsMenu: FC = () => {
3537 )
3638 }
3739 </ 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 >
3852 < div className = "ioc-settings-menu__label m-b-10" >
3953 < Label label = "IOCs per query" />
4054 </ div >
Original file line number Diff line number Diff line change 4040.ace_editor
4141 & .ace_autocomplete
4242 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 11import type { CaseReducer , PayloadAction } from '@reduxjs/toolkit' ;
22import { createSelector , createSlice } from '@reduxjs/toolkit' ;
33import { IocSettingsStateType , RootState } from '../RootStore' ;
4- import { BasicIocType , IocParsingRulesType } from '../../types/iocsTypes' ;
4+ import { BasicIocType , HashIocType , IocParsingRulesType } from '../../types/iocsTypes' ;
55
66type IocSettingsReducers = {
77 setIocPerQuery : CaseReducer < IocSettingsStateType , PayloadAction < number > > ;
@@ -22,7 +22,12 @@ const initialState: IocSettingsStateType = {
2222 BasicIocType . Url ,
2323 BasicIocType . Hash ,
2424 ] ,
25- includeHashTypes : [ ] ,
25+ includeHashTypes : [
26+ HashIocType . Md5 ,
27+ HashIocType . Sha1 ,
28+ HashIocType . Sha256 ,
29+ HashIocType . Sha512 ,
30+ ] ,
2631 exceptions : '' ,
2732 iocParsingRules : [
2833 IocParsingRulesType . RemovePrivateAndReservedIps ,
You can’t perform that action at this time.
0 commit comments