refactor more utils to common

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-08-09 08:43:29 +03:00
1 parent f432ed7241
commit 3ab1837db7
8 files changed
+7 -6

No files matched your search

+1 -1
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";
@@ -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";
+1 -1
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";
File renamed without changes.
File renamed without changes.
+2
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";
File renamed without changes.
+2 -2
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";