@@ -9,6 +9,7 @@ import { Divider } from 'antd';
9
9
import RealtimeConfigure from '../../components/configure/RealtimeConfigure' ;
10
10
import FunctionConfigure from '../../components/configure/FunctionConfigure' ;
11
11
import FileStorage from '../../components/configure/FileStorageConfigure' ;
12
+ import StaticConfigure from '../../components/configure/StaticConfigure' ;
12
13
import { get , set } from 'automate-redux' ;
13
14
import store from ".././../store" ;
14
15
@@ -27,6 +28,8 @@ function Rules(props) {
27
28
< FunctionConfigure formState = { props . functions } handleChange = { props . handleFunctionChange } />
28
29
< Divider />
29
30
< FileStorage formState = { props . fileStorage } handleChange = { props . handleFileStorageChange } />
31
+ < Divider />
32
+ < StaticConfigure formState = { props . static } handleChange = { props . handleStaticChange } />
30
33
</ div >
31
34
</ div >
32
35
</ div >
@@ -38,7 +41,8 @@ const mapStateToProps = (state, ownProps) => {
38
41
secret : get ( state , "config.secret" ) ,
39
42
realtime : get ( state , "config.modules.realtime" , { } ) ,
40
43
functions : get ( state , "config.modules.functions" , { } ) ,
41
- fileStorage : get ( state , "config.modules.fileStore" , { } )
44
+ fileStorage : get ( state , "config.modules.fileStore" , { } ) ,
45
+ static : get ( state , "config.modules.static" , { } )
42
46
} ;
43
47
} ;
44
48
@@ -58,6 +62,10 @@ const mapDispatchToProps = (dispatch) => {
58
62
handleFileStorageChange : ( value ) => {
59
63
const config = get ( store . getState ( ) , "config.modules.fileStore" , { } )
60
64
dispatch ( set ( "config.modules.fileStore" , Object . assign ( { } , config , value ) ) )
65
+ } ,
66
+ handleStaticChange : ( value ) => {
67
+ const config = get ( store . getState ( ) , "config.modules.static" , { } )
68
+ dispatch ( set ( "config.modules.static" , Object . assign ( { } , config , value ) ) )
61
69
}
62
70
} ;
63
71
} ;
0 commit comments