File tree 2 files changed +15
-12
lines changed
2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 2
2
display : flex ;
3
3
justify-content : center ;
4
4
5
- width : 18 px ;
5
+ width : 23 px ;
6
6
height : 18px ;
7
7
8
8
font-size : 10px ;
Original file line number Diff line number Diff line change 1
1
import DataTable from '@gravity-ui/react-data-table' ;
2
2
3
+ import { EType } from '../types/api/tablet' ;
4
+
3
5
const SECOND = 1000 ;
4
6
5
7
export const AUTO_RELOAD_INTERVAL = 10 * SECOND ;
@@ -40,17 +42,18 @@ export const TABLET_COLORS = {
40
42
} ;
41
43
42
44
export const TABLET_SYMBOLS = {
43
- OldTxProxy : 'P' ,
44
- TxProxy : 'P' ,
45
- BSController : 'BS' ,
46
- Dummy : 'DY' ,
47
- RTMRPartition : 'RP' ,
48
- PersQueueReadBalancer : 'PB' ,
49
- Cms : 'CM' ,
50
- BlockStorePartition : 'BP' ,
51
- BlockStoreVolume : 'BV' ,
52
- Console : 'CN' ,
53
- TenantSlotBroker : 'TB' ,
45
+ [ EType . OldTxProxy ] : 'P' ,
46
+ [ EType . TxProxy ] : 'P' ,
47
+ [ EType . BSController ] : 'BS' ,
48
+ [ EType . Dummy ] : 'DY' ,
49
+ [ EType . RTMRPartition ] : 'RP' ,
50
+ [ EType . PersQueueReadBalancer ] : 'PB' ,
51
+ [ EType . Cms ] : 'CM' ,
52
+ [ EType . BlockStorePartition ] : 'BP' ,
53
+ [ EType . BlockStoreVolume ] : 'BV' ,
54
+ [ EType . Console ] : 'CN' ,
55
+ [ EType . TenantSlotBroker ] : 'TB' ,
56
+ [ EType . BlockStoreDiskRegistry ] : 'BDR' ,
54
57
} ;
55
58
56
59
const isTabletType = ( type : string ) : type is keyof typeof TABLET_SYMBOLS => type in TABLET_SYMBOLS ;
You can’t perform that action at this time.
0 commit comments