mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* remove lingui Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * babelless Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak ts-loader options Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak renderer webpack config Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
35 lines
952 B
TypeScript
35 lines
952 B
TypeScript
import React from "react";
|
|
import { observer } from "mobx-react";
|
|
import { TabLayout, TabLayoutRoute } from "../layout/tab-layout";
|
|
import { HelmCharts, helmChartsRoute, helmChartsURL } from "../+apps-helm-charts";
|
|
import { HelmReleases, releaseRoute, releaseURL } from "../+apps-releases";
|
|
import { namespaceUrlParam } from "../+namespaces/namespace.store";
|
|
|
|
@observer
|
|
export class Apps extends React.Component {
|
|
static get tabRoutes(): TabLayoutRoute[] {
|
|
const query = namespaceUrlParam.toObjectParam();
|
|
|
|
return [
|
|
{
|
|
title: "Charts",
|
|
component: HelmCharts,
|
|
url: helmChartsURL(),
|
|
routePath: helmChartsRoute.path.toString(),
|
|
},
|
|
{
|
|
title: "Releases",
|
|
component: HelmReleases,
|
|
url: releaseURL({ query }),
|
|
routePath: releaseRoute.path.toString(),
|
|
},
|
|
];
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<TabLayout className="Apps" tabs={Apps.tabRoutes}/>
|
|
);
|
|
}
|
|
}
|