mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
move to utils/
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f134a70125
commit
1f0d2d355a
@ -1,6 +1,6 @@
|
||||
import { LensApiRequest } from "../router";
|
||||
import { helmService } from "../helm/helm-service";
|
||||
import { respondJson, respondText } from "../lens-api";
|
||||
import { respondJson, respondText } from "../utils/http-responses";
|
||||
import logger from "../logger";
|
||||
|
||||
export class HelmApiRoute {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { LensApiRequest } from "../router";
|
||||
import { respondJson } from "../lens-api";
|
||||
import { respondJson } from "../utils/http-responses";
|
||||
import { Cluster } from "../cluster";
|
||||
import { CoreV1Api, V1Secret } from "@kubernetes/client-node";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import _ from "lodash";
|
||||
import { LensApiRequest } from "../router";
|
||||
import { respondJson } from "../lens-api";
|
||||
import { respondJson } from "../utils/http-responses";
|
||||
import { Cluster, ClusterMetadataKey } from "../cluster";
|
||||
import { ClusterPrometheusMetadata } from "../../common/cluster-store";
|
||||
import logger from "../logger";
|
||||
|
||||
@ -5,7 +5,7 @@ import { shell } from "electron";
|
||||
import * as tcpPortUsed from "tcp-port-used";
|
||||
import logger from "../logger";
|
||||
import { getPortFrom } from "../utils/get-port";
|
||||
import { respondJson } from "../lens-api";
|
||||
import { respondJson } from "../utils/http-responses";
|
||||
|
||||
interface PortForwardArgs {
|
||||
clusterId: string;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { LensApiRequest } from "../router";
|
||||
import { respondJson, respondText } from "../lens-api";
|
||||
import { respondJson, respondText } from "../utils/http-responses";
|
||||
import { ResourceApplier } from "../resource-applier";
|
||||
|
||||
export class ResourceApplierApiRoute {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { LensApiRequest } from "../router";
|
||||
import { respondJson } from "../lens-api";
|
||||
import { respondJson } from "../utils/http-responses";
|
||||
import { getAppVersion } from "../../common/utils";
|
||||
|
||||
export class VersionRoute {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user