1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

refactor more utils to common

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-08-02 14:51:15 +03:00
parent f432ed7241
commit 3ab1837db7
8 changed files with 7 additions and 6 deletions

View File

@ -23,7 +23,7 @@ import moment from "moment";
import { KubeObject } from "../kube-object";
import type { IPodContainer } from "./pods.api";
import { formatDuration } from "../../utils/formatDuration";
import { autoBind } from "../../../renderer/utils";
import { autoBind } from "../../utils";
import { KubeApi } from "../kube-api";
import type { KubeJsonApiData } from "../kube-json-api";

View File

@ -20,8 +20,7 @@
*/
import { KubeObject } from "../kube-object";
import { unitsToBytes } from "../../../renderer/utils/convertMemory";
import { autoBind } from "../../utils";
import { autoBind, unitsToBytes } from "../../utils";
import { KubeApi } from "../kube-api";
import type { KubeJsonApiData } from "../kube-json-api";

View File

@ -31,7 +31,7 @@ import { createKubeApiURL, parseKubeApi } from "./kube-api-parse";
import { KubeObjectConstructor, KubeObject, KubeStatus } from "./kube-object";
import byline from "byline";
import type { IKubeWatchEvent } from "./kube-watch-api";
import { ReadableWebToNodeStream } from "../../renderer/utils/readableStream";
import { ReadableWebToNodeStream } from "../utils/readableStream";
import { KubeJsonApi, KubeJsonApiData } from "./kube-json-api";
import { noop } from "../utils";

View File

@ -55,6 +55,8 @@ export * from "./toggle-set";
export * from "./toJS";
export * from "./type-narrowing";
export * from "./types";
export * from "./convertMemory";
export * from "./convertCpu";
import * as iter from "./iter";

View File

@ -33,8 +33,8 @@ export * from "./createStorage";
export * from "./interval";
export * from "./copyToClipboard";
export * from "./isReactNode";
export * from "./convertMemory";
export * from "./convertCpu";
export * from "../../common/utils/convertMemory";
export * from "../../common/utils/convertCpu";
export * from "./metricUnitsToNumber";
export * from "./display-booleans";
export * from "./isMiddleClick";