mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge pull request #4557 from lensapp/remove-weird-whitespace
Remove all 'NonBreakingSpace' characters from the repo
This commit is contained in:
commit
c0a0127d2d
@ -118,6 +118,7 @@ module.exports = {
|
|||||||
sourceType: "module",
|
sourceType: "module",
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
"no-irregular-whitespace": "error",
|
||||||
"header/header": [2, "./license-header"],
|
"header/header": [2, "./license-header"],
|
||||||
"no-invalid-this": "off",
|
"no-invalid-this": "off",
|
||||||
"@typescript-eslint/no-invalid-this": ["error"],
|
"@typescript-eslint/no-invalid-this": ["error"],
|
||||||
@ -199,6 +200,7 @@ module.exports = {
|
|||||||
jsx: true,
|
jsx: true,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
"no-irregular-whitespace": "error",
|
||||||
"header/header": [2, "./license-header"],
|
"header/header": [2, "./license-header"],
|
||||||
"no-invalid-this": "off",
|
"no-invalid-this": "off",
|
||||||
"@typescript-eslint/no-invalid-this": ["error"],
|
"@typescript-eslint/no-invalid-this": ["error"],
|
||||||
|
|||||||
@ -187,7 +187,7 @@ export class MetricsSettings extends React.Component<Props> {
|
|||||||
this.changed = true;
|
this.changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed get buttonLabel() {
|
@computed get buttonLabel() {
|
||||||
const allDisabled = !this.featureStates.kubeStateMetrics && !this.featureStates.nodeExporter && !this.featureStates.prometheus;
|
const allDisabled = !this.featureStates.kubeStateMetrics && !this.featureStates.nodeExporter && !this.featureStates.prometheus;
|
||||||
|
|
||||||
if (this.inProgress && this.canUpgrade) return "Upgrading ...";
|
if (this.inProgress && this.canUpgrade) return "Upgrading ...";
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
import { ipcMain, ipcRenderer, webContents } from "electron";
|
import { ipcMain, ipcRenderer, webContents } from "electron";
|
||||||
import { toJS } from "../utils/toJS";
|
import { toJS } from "../utils/toJS";
|
||||||
import logger from "../../main/logger";
|
import logger from "../../main/logger";
|
||||||
import { ClusterFrameInfo, clusterFrameMap } from "../cluster-frames";
|
import { ClusterFrameInfo, clusterFrameMap } from "../cluster-frames";
|
||||||
import type { Disposer } from "../utils";
|
import type { Disposer } from "../utils";
|
||||||
import type remote from "@electron/remote";
|
import type remote from "@electron/remote";
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param stream ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
* @param stream ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
||||||
*/
|
*/
|
||||||
constructor(stream: ReadableStream<T>) {
|
constructor(stream: ReadableStream<T>) {
|
||||||
super();
|
super();
|
||||||
@ -85,7 +85,7 @@ export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If there is no unresolved read call to Web-API ReadableStream immediately returns;
|
* If there is no unresolved read call to Web-API ReadableStream immediately returns;
|
||||||
* otherwise will wait until the read is resolved.
|
* otherwise will wait until the read is resolved.
|
||||||
*/
|
*/
|
||||||
public async waitForReadToComplete() {
|
public async waitForReadToComplete() {
|
||||||
|
|||||||
@ -84,7 +84,7 @@ export class LensBinary {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public setLogger(logger: Console | winston.Logger) {
|
public setLogger(logger: Console | winston.Logger) {
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -118,7 +118,7 @@ export class WindowManager extends Singleton {
|
|||||||
appEventBus.emit({ name: "app", action: "dom-ready" });
|
appEventBus.emit({ name: "app", action: "dom-ready" });
|
||||||
})
|
})
|
||||||
.on("did-fail-load", (_event, code, desc) => {
|
.on("did-fail-load", (_event, code, desc) => {
|
||||||
logger.error(`[WINDOW-MANAGER]: Failed to load Main window`, { code, desc });
|
logger.error(`[WINDOW-MANAGER]: Failed to load Main window`, { code, desc });
|
||||||
})
|
})
|
||||||
.on("did-finish-load", () => {
|
.on("did-finish-load", () => {
|
||||||
logger.info("[WINDOW-MANAGER]: Main window loaded");
|
logger.info("[WINDOW-MANAGER]: Main window loaded");
|
||||||
@ -160,7 +160,7 @@ export class WindowManager extends Singleton {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (showSplash) await this.showSplash();
|
if (showSplash) await this.showSplash();
|
||||||
logger.info(`[WINDOW-MANAGER]: Loading Main window from url: ${this.mainUrl} ...`);
|
logger.info(`[WINDOW-MANAGER]: Loading Main window from url: ${this.mainUrl} ...`);
|
||||||
await this.mainWindow.loadURL(this.mainUrl);
|
await this.mainWindow.loadURL(this.mainUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error("Loading main window failed", { error });
|
logger.error("Loading main window failed", { error });
|
||||||
|
|||||||
@ -127,7 +127,7 @@ export default {
|
|||||||
* Finally, make sure that the catalog entity hotbar item is in place.
|
* Finally, make sure that the catalog entity hotbar item is in place.
|
||||||
* Just in case something else removed it.
|
* Just in case something else removed it.
|
||||||
*
|
*
|
||||||
* if every hotbar has elements that all not the `catalog-entity` item
|
* if every hotbar has elements that all not the `catalog-entity` item
|
||||||
*/
|
*/
|
||||||
if (hotbars.every(hotbar => hotbar.items.every(item => item?.entity?.uid !== "catalog-entity"))) {
|
if (hotbars.every(hotbar => hotbar.items.every(item => item?.entity?.uid !== "catalog-entity"))) {
|
||||||
// note, we will add a new whole hotbar here called "default" if that was previously removed
|
// note, we will add a new whole hotbar here called "default" if that was previously removed
|
||||||
|
|||||||
@ -199,7 +199,7 @@ export class CatalogEntityRegistry {
|
|||||||
const runEvent = new CatalogRunEvent({ target: entity });
|
const runEvent = new CatalogRunEvent({ target: entity });
|
||||||
|
|
||||||
for (const onBeforeRun of this.onBeforeRunHooks) {
|
for (const onBeforeRun of this.onBeforeRunHooks) {
|
||||||
try {
|
try {
|
||||||
await onBeforeRun(runEvent);
|
await onBeforeRun(runEvent);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.warn(`[CATALOG-ENTITY-REGISTRY]: entity ${entity.getId()} onBeforeRun threw an error`, error);
|
logger.warn(`[CATALOG-ENTITY-REGISTRY]: entity ${entity.getId()} onBeforeRun threw an error`, error);
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
import "./catalog-add-button.scss";
|
import "./catalog-add-button.scss";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { SpeedDial, SpeedDialAction } from "@material-ui/lab";
|
import { SpeedDial, SpeedDialAction } from "@material-ui/lab";
|
||||||
import { Icon } from "../icon";
|
import { Icon } from "../icon";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { observable, makeObservable, action } from "mobx";
|
import { observable, makeObservable, action } from "mobx";
|
||||||
@ -97,7 +97,7 @@ export class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@boundMethod
|
@boundMethod
|
||||||
onClose() {
|
onClose() {
|
||||||
this.isOpen = false;
|
this.isOpen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ import { cssNames, IClassName, stopPropagation } from "../../utils";
|
|||||||
import { Icon } from "../icon";
|
import { Icon } from "../icon";
|
||||||
import { eventsURL } from "../../../common/routes";
|
import { eventsURL } from "../../../common/routes";
|
||||||
import { getDetailsUrl } from "../kube-detail-params";
|
import { getDetailsUrl } from "../kube-detail-params";
|
||||||
import { apiManager } from "../../../common/k8s-api/api-manager";
|
import { apiManager } from "../../../common/k8s-api/api-manager";
|
||||||
|
|
||||||
enum columnId {
|
enum columnId {
|
||||||
message = "message",
|
message = "message",
|
||||||
|
|||||||
@ -42,7 +42,7 @@ const updateChannelOptions: SelectOption<string>[] = Array.from(
|
|||||||
|
|
||||||
export const Application = observer(() => {
|
export const Application = observer(() => {
|
||||||
const defaultShell = process.env.SHELL
|
const defaultShell = process.env.SHELL
|
||||||
|| process.env.PTYSHELL
|
|| process.env.PTYSHELL
|
||||||
|| (
|
|| (
|
||||||
isWindows
|
isWindows
|
||||||
? "powershell.exe"
|
? "powershell.exe"
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import { boundMethod, disposer } from "../../utils";
|
|||||||
import { isMac } from "../../../common/vars";
|
import { isMac } from "../../../common/vars";
|
||||||
import { camelCase, once } from "lodash";
|
import { camelCase, once } from "lodash";
|
||||||
import { UserStore } from "../../../common/user-store";
|
import { UserStore } from "../../../common/user-store";
|
||||||
import { clipboard } from "electron";
|
import { clipboard } from "electron";
|
||||||
import logger from "../../../common/logger";
|
import logger from "../../../common/logger";
|
||||||
|
|
||||||
export class Terminal {
|
export class Terminal {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user