mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
39 lines
997 B
TypeScript
39 lines
997 B
TypeScript
import "./cluster-manager.scss"
|
|
import React from "react";
|
|
import { App } from "../app";
|
|
import { ClustersMenu } from "./clusters-menu";
|
|
import { BottomBar } from "./bottom-bar";
|
|
import { cssNames, IClassName } from "../../utils";
|
|
import { Terminal } from "../dock/terminal";
|
|
import { i18nStore } from "../../i18n";
|
|
import { themeStore } from "../../theme.store";
|
|
|
|
interface Props {
|
|
className?: IClassName;
|
|
contentClass?: IClassName;
|
|
}
|
|
|
|
export class ClusterManager extends React.Component<Props> {
|
|
static async init() {
|
|
await Promise.all([
|
|
i18nStore.init(),
|
|
themeStore.init(),
|
|
Terminal.preloadFonts(),
|
|
])
|
|
}
|
|
|
|
render() {
|
|
const { className, contentClass } = this.props;
|
|
return (
|
|
<div className={cssNames("ClusterManager", className)}>
|
|
<div id="draggable-top"/>
|
|
<div id="lens-view" className={cssNames("flex column", contentClass)}>
|
|
<App/>
|
|
</div>
|
|
<ClustersMenu/>
|
|
<BottomBar/>
|
|
</div>
|
|
)
|
|
}
|
|
}
|