File tree Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 2323 window . systemSettings = { } ;
2424 window . userSettings = { } ;
2525 window . web_version = ! '%REACT_APP_BACKEND%' ;
26- window . custom_backend = 'http://localhost:8765 ' ;
26+ window . custom_backend = '%NODE_ENV%' === 'development' && '%REACT_APP_BACKEND% ';
2727 window . meta_backend = '%REACT_APP_META_BACKEND%'
2828 </ script >
2929 </ head >
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ type RouteSlot = {
4646 wrapper ?: React . ComponentType < any > ;
4747 exact ?: boolean ;
4848} ;
49-
5049const routesSlots : RouteSlot [ ] = [
5150 {
5251 path : routes . cluster ,
Original file line number Diff line number Diff line change @@ -11,49 +11,42 @@ import type {Tenant} from '../Tenant/Tenant';
1111import type { VDiskPage } from '../VDiskPage/VDiskPage' ;
1212
1313export const ClustersSlot = createSlot < {
14- children ? :
14+ children :
1515 | React . ReactNode
1616 | ( ( props : { component : typeof Clusters } & RouteComponentProps ) => React . ReactNode ) ;
1717} > ( 'clusters' ) ;
18-
1918export const ClusterSlot = createSlot < {
20- children ? :
19+ children :
2120 | React . ReactNode
2221 | ( ( props : { component : typeof Cluster } & RouteComponentProps ) => React . ReactNode ) ;
2322} > ( 'cluster' ) ;
24-
2523export const TenantSlot = createSlot < {
26- children ? :
24+ children :
2725 | React . ReactNode
2826 | ( ( props : { component : typeof Tenant } & RouteComponentProps ) => React . ReactNode ) ;
2927} > ( 'tenant' ) ;
30-
3128export const NodeSlot = createSlot < {
32- children ? :
29+ children :
3330 | React . ReactNode
3431 | ( ( props : { component : typeof Node } & RouteComponentProps ) => React . ReactNode ) ;
3532} > ( 'node' ) ;
36-
3733export const PDiskPageSlot = createSlot < {
38- children ? :
34+ children :
3935 | React . ReactNode
4036 | ( ( props : { component : typeof PDiskPage } & RouteComponentProps ) => React . ReactNode ) ;
4137} > ( 'pDisk' ) ;
42-
4338export const VDiskPageSlot = createSlot < {
44- children ? :
39+ children :
4540 | React . ReactNode
4641 | ( ( props : { component : typeof VDiskPage } & RouteComponentProps ) => React . ReactNode ) ;
4742} > ( 'vDisk' ) ;
48-
4943export const StorageGroupSlot = createSlot < {
50- children ? :
44+ children :
5145 | React . ReactNode
5246 | ( ( props : { component : typeof StorageGroupPage } & RouteComponentProps ) => React . ReactNode ) ;
5347} > ( 'storageGroup' ) ;
54-
5548export const TabletSlot = createSlot < {
56- children ? :
49+ children :
5750 | React . ReactNode
5851 | ( ( props : { component : typeof Tablet } & RouteComponentProps ) => React . ReactNode ) ;
5952} > ( 'tablet' ) ;
You can’t perform that action at this time.
0 commit comments