Skip to content

Commit 1d28493

Browse files
committed
#RI-4265 - Enchance opening window Electron
1 parent db05227 commit 1d28493

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

configs/webpack.config.web.dev.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ const configuration: webpack.Configuration = {
176176
host: HOST,
177177
allowedHosts: 'all',
178178
port: 8080,
179-
hot: true, // enable HMR on the server
180179
historyApiFallback: true,
181180
},
182181

redisinsight/ui/src/slices/app/context.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ export const initialState: StateAppContext = {
4545
opened: false,
4646
},
4747
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,
5351
}
5452
},
5553
workbench: {

redisinsight/ui/src/utils/comparisons/bigKeys.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ const defaultConfig: { [key: string]: number } = {
1717
}
1818

1919
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,
2624
}
2725

2826
const isBigKey = (keyType: string, type: HighlightType, count: number): boolean => {

0 commit comments

Comments
 (0)