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
@@ -1,2 +1,2 @@
|
||||
export * from "./network.route"
|
||||
export * from "./network"
|
||||
export * from "./network.route";
|
||||
export * from "./network";
|
||||
@@ -1,12 +1,12 @@
|
||||
import { RouteProps } from "react-router"
|
||||
import { RouteProps } from "react-router";
|
||||
import { Network } from "./network";
|
||||
import { servicesURL } from "../+network-services";
|
||||
import { IURLParams } from "../../../common/utils/buildUrl";
|
||||
|
||||
export const networkRoute: RouteProps = {
|
||||
get path() {
|
||||
return Network.tabRoutes.map(({ routePath }) => routePath).flat()
|
||||
return Network.tabRoutes.map(({ routePath }) => routePath).flat();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const networkURL = (params?: IURLParams) => servicesURL(params);
|
||||
@@ -1,4 +1,4 @@
|
||||
import "./network.scss"
|
||||
import "./network.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
@@ -14,7 +14,7 @@ import { isAllowedResource } from "../../../common/rbac";
|
||||
@observer
|
||||
export class Network extends React.Component {
|
||||
static get tabRoutes(): TabLayoutRoute[] {
|
||||
const query = namespaceStore.getContextParams()
|
||||
const query = namespaceStore.getContextParams();
|
||||
const routes: TabLayoutRoute[] = [];
|
||||
if (isAllowedResource("services")) {
|
||||
routes.push({
|
||||
@@ -22,7 +22,7 @@ export class Network extends React.Component {
|
||||
component: Services,
|
||||
url: servicesURL({ query }),
|
||||
routePath: servicesRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("endpoints")) {
|
||||
routes.push({
|
||||
@@ -30,7 +30,7 @@ export class Network extends React.Component {
|
||||
component: Endpoints,
|
||||
url: endpointURL({ query }),
|
||||
routePath: endpointRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("ingresses")) {
|
||||
routes.push({
|
||||
@@ -38,7 +38,7 @@ export class Network extends React.Component {
|
||||
component: Ingresses,
|
||||
url: ingressURL({ query }),
|
||||
routePath: ingressRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
if (isAllowedResource("networkpolicies")) {
|
||||
routes.push({
|
||||
@@ -46,14 +46,14 @@ export class Network extends React.Component {
|
||||
component: NetworkPolicies,
|
||||
url: networkPoliciesURL({ query }),
|
||||
routePath: networkPoliciesRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
return routes
|
||||
return routes;
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<TabLayout className="Network" tabs={Network.tabRoutes}/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user