mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -5,8 +5,8 @@ import { configMapsURL } from "../+config-maps/config-maps.route";
|
||||
|
||||
export const configRoute: RouteProps = {
|
||||
get path() {
|
||||
return Config.tabRoutes.map(({ routePath }) => routePath).flat()
|
||||
return Config.tabRoutes.map(({ routePath }) => routePath).flat();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const configURL = (params?: IURLParams) => configMapsURL(params);
|
||||
@@ -8,20 +8,20 @@ import { namespaceStore } from "../+namespaces/namespace.store";
|
||||
import { resourceQuotaRoute, ResourceQuotas, resourceQuotaURL } from "../+config-resource-quotas";
|
||||
import { pdbRoute, pdbURL, PodDisruptionBudgets } from "../+config-pod-disruption-budgets";
|
||||
import { HorizontalPodAutoscalers, hpaRoute, hpaURL } from "../+config-autoscalers";
|
||||
import { isAllowedResource } from "../../../common/rbac"
|
||||
import { isAllowedResource } from "../../../common/rbac";
|
||||
|
||||
@observer
|
||||
export class Config extends React.Component {
|
||||
static get tabRoutes(): TabLayoutRoute[] {
|
||||
const query = namespaceStore.getContextParams()
|
||||
const routes: TabLayoutRoute[] = []
|
||||
const query = namespaceStore.getContextParams();
|
||||
const routes: TabLayoutRoute[] = [];
|
||||
if (isAllowedResource("configmaps")) {
|
||||
routes.push({
|
||||
title: <Trans>ConfigMaps</Trans>,
|
||||
component: ConfigMaps,
|
||||
url: configMapsURL({ query }),
|
||||
routePath: configMapsRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("secrets")) {
|
||||
routes.push({
|
||||
@@ -29,7 +29,7 @@ export class Config extends React.Component {
|
||||
component: Secrets,
|
||||
url: secretsURL({ query }),
|
||||
routePath: secretsRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("resourcequotas")) {
|
||||
routes.push({
|
||||
@@ -37,7 +37,7 @@ export class Config extends React.Component {
|
||||
component: ResourceQuotas,
|
||||
url: resourceQuotaURL({ query }),
|
||||
routePath: resourceQuotaRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("horizontalpodautoscalers")) {
|
||||
routes.push({
|
||||
@@ -45,7 +45,7 @@ export class Config extends React.Component {
|
||||
component: HorizontalPodAutoscalers,
|
||||
url: hpaURL({ query }),
|
||||
routePath: hpaRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("poddisruptionbudgets")) {
|
||||
routes.push({
|
||||
@@ -53,7 +53,7 @@ export class Config extends React.Component {
|
||||
component: PodDisruptionBudgets,
|
||||
url: pdbURL({ query }),
|
||||
routePath: pdbRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
return routes;
|
||||
}
|
||||
@@ -61,6 +61,6 @@ export class Config extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<TabLayout className="Config" tabs={Config.tabRoutes}/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from "./config.route"
|
||||
export * from "./config"
|
||||
export * from "./config.route";
|
||||
export * from "./config";
|
||||
Reference in new issue
Block a user