-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Kiali Container that includes MessageCenter (#267)
- Loading branch information
Showing
9 changed files
with
92 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import * as React from 'react'; | ||
import { Provider } from 'react-redux'; | ||
import { store } from 'store/ConfigStore'; | ||
import { KialiController } from '../components/KialiController'; | ||
import { MessageCenter } from 'components/MessageCenter'; | ||
import { globalStyle } from 'styles/GlobalStyle'; | ||
import cssVariables from 'styles/variables.module.scss'; | ||
import { kialiStyle } from 'styles/StyleUtils'; | ||
|
||
import 'tippy.js/dist/tippy.css'; | ||
import 'tippy.js/dist/themes/light-border.css'; | ||
|
||
// Enables ACE editor YAML themes | ||
import 'ace-builds/src-noconflict/ace'; | ||
import 'ace-builds/src-noconflict/mode-yaml'; | ||
import 'ace-builds/src-noconflict/theme-eclipse'; | ||
import 'ace-builds/src-noconflict/theme-twilight'; | ||
|
||
// Enables the search box for the ACE editor | ||
import 'ace-builds/src-noconflict/ext-searchbox'; | ||
|
||
const ossmcStyle = kialiStyle({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
overflowY: 'auto' | ||
}); | ||
|
||
interface Props { | ||
children: React.ReactNode; | ||
} | ||
|
||
export const KialiContainer: React.FC<Props> = ({ children }) => { | ||
return ( | ||
<Provider store={store}> | ||
<MessageCenter drawerTitle="Message Center" /> | ||
<div className={`${globalStyle} ${ossmcStyle} ${cssVariables.style}`}> | ||
<KialiController>{children}</KialiController> | ||
</div> | ||
</Provider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters