File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ const configuration: webpack.Configuration = {
176
176
host : HOST ,
177
177
allowedHosts : 'all' ,
178
178
port : 8080 ,
179
- hot : true , // enable HMR on the server
180
179
historyApiFallback : true ,
181
180
} ,
182
181
Original file line number Diff line number Diff line change @@ -45,11 +45,9 @@ export const initialState: StateAppContext = {
45
45
opened : false ,
46
46
} ,
47
47
keyDetailsSizes : {
48
- // TODO: rollback to enum [KeyTypes.Hash]: ....
49
- // TODO: import this enum not work well for packaged electron
50
- hash : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. hash ?? null ,
51
- list : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. list ?? null ,
52
- zset : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. zset ?? null ,
48
+ [ KeyTypes . Hash ] : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. hash ?? null ,
49
+ [ KeyTypes . List ] : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. list ?? null ,
50
+ [ KeyTypes . ZSet ] : localStorageService ?. get ( BrowserStorageItem . keyDetailSizes ) ?. zset ?? null ,
53
51
}
54
52
} ,
55
53
workbench : {
Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ const defaultConfig: { [key: string]: number } = {
17
17
}
18
18
19
19
const bigKeysConfig : { [ key : string ] : DefaultConfig } = {
20
- // TODO: rollback to enum [KeyTypes.Hash]: ....
21
- // TODO: import this enum not work well for packaged electron
22
- list : defaultConfig ,
23
- zset : defaultConfig ,
24
- set : defaultConfig ,
25
- hash : defaultConfig ,
20
+ [ KeyTypes . List ] : defaultConfig ,
21
+ [ KeyTypes . ZSet ] : defaultConfig ,
22
+ [ KeyTypes . Set ] : defaultConfig ,
23
+ [ KeyTypes . Hash ] : defaultConfig ,
26
24
}
27
25
28
26
const isBigKey = ( keyType : string , type : HighlightType , count : number ) : boolean => {
You can’t perform that action at this time.
0 commit comments