mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix code style
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
34 files changed
+47
-43
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ import { casChannel } from "../common/channel";
|
||||
import certificateAuthoritiesChannelListenerInjectable from "./channel-handler.injectable";
|
||||
|
||||
export default getGlobalOverride(certificateAuthoritiesChannelListenerInjectable, () => ({
|
||||
id: 'certificate-authorities-channel-listener',
|
||||
id: "certificate-authorities-channel-listener",
|
||||
channel: casChannel,
|
||||
handler: () => [],
|
||||
}));
|
||||
+1
-1
@@ -8,7 +8,7 @@ import { globalAgent } from "https";
|
||||
import { isString } from "@k8slens/utilities";
|
||||
|
||||
const certificateAuthoritiesChannelListenerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'certificate-authorities-channel-listener',
|
||||
id: "certificate-authorities-channel-listener",
|
||||
channel: casChannel,
|
||||
getHandler: () => () => {
|
||||
if (Array.isArray(globalAgent.options.ca)) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { activateClusterChannel } from "../common/channels";
|
||||
import requestClusterActivationInjectable from "./request-activation.injectable";
|
||||
|
||||
const activateClusterRequestChannelListenerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'activate-cluster-request-channel-listener',
|
||||
id: "activate-cluster-request-channel-listener",
|
||||
channel: activateClusterChannel,
|
||||
getHandler: (di) => di.inject(requestClusterActivationInjectable),
|
||||
});
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import { deactivateClusterChannel } from "../common/channels";
|
||||
import requestClusterDeactivationInjectable from "./request-deactivation.injectable";
|
||||
|
||||
const clusterDeactivationRequestChannelListenerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'cluster-deactivation-request-channel-listener',
|
||||
id: "cluster-deactivation-request-channel-listener",
|
||||
channel: deactivateClusterChannel,
|
||||
getHandler: (di) => di.inject(requestClusterDeactivationInjectable),
|
||||
});
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ import type { ClusterId } from "../../../../common/cluster-types";
|
||||
import { getRequestChannel } from "@k8slens/messaging";
|
||||
|
||||
export const clearClusterAsDeletingChannel = getRequestChannel<ClusterId, void>(
|
||||
"clear-cluster-as-deleting"
|
||||
"clear-cluster-as-deleting",
|
||||
);
|
||||
@@ -3,10 +3,11 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { ClusterId } from "../../../../common/cluster-types";
|
||||
import { getRequestChannel, RequestChannel } from "@k8slens/messaging";
|
||||
import type { RequestChannel } from "@k8slens/messaging";
|
||||
import { getRequestChannel } from "@k8slens/messaging";
|
||||
|
||||
export type DeleteClusterChannel = RequestChannel<ClusterId, void>;
|
||||
|
||||
export const deleteClusterChannel = getRequestChannel<ClusterId, void>(
|
||||
"delete-cluster"
|
||||
"delete-cluster",
|
||||
);
|
||||
@@ -6,5 +6,5 @@ import type { ClusterId } from "../../../../common/cluster-types";
|
||||
import { getRequestChannel } from "@k8slens/messaging";
|
||||
|
||||
export const setClusterAsDeletingChannel = getRequestChannel<ClusterId, void>(
|
||||
"set-cluster-as-deleting"
|
||||
"set-cluster-as-deleting",
|
||||
);
|
||||
+1
-1
@@ -7,7 +7,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { clearClusterAsDeletingChannel } from "../common/clear-as-deleting-channel";
|
||||
|
||||
const clearClusterAsDeletingChannelListenerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'clear-cluster-as-deleting-channel-listener',
|
||||
id: "clear-cluster-as-deleting-channel-listener",
|
||||
channel: clearClusterAsDeletingChannel,
|
||||
getHandler: (di) => {
|
||||
const clustersThatAreBeingDeleted = di.inject(clustersThatAreBeingDeletedInjectable);
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { deleteClusterChannel } from "../common/delete-channel";
|
||||
|
||||
const deleteClusterChannelListenerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'delete-cluster-channel-listener',
|
||||
id: "delete-cluster-channel-listener",
|
||||
channel: deleteClusterChannel,
|
||||
getHandler: (di) => {
|
||||
const emitAppEvent = di.inject(emitAppEventInjectable);
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { setClusterAsDeletingChannel } from "../common/set-as-deleting-channel";
|
||||
|
||||
const setClusterAsDeletingChannelHandlerInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'set-cluster-as-deleting-channel-handler',
|
||||
id: "set-cluster-as-deleting-channel-handler",
|
||||
channel: setClusterAsDeletingChannel,
|
||||
getHandler: (di) => {
|
||||
const clustersThatAreBeingDeleted = di.inject(clustersThatAreBeingDeletedInjectable);
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { ClusterId, ClusterState } from "../../../../common/cluster-types";
|
||||
import type { MessageChannel } from "@k8slens/messaging";
|
||||
import type { RequestChannel } from "@k8slens/messaging";
|
||||
import type { MessageChannel, RequestChannel } from "@k8slens/messaging";
|
||||
|
||||
export interface ClusterStateSync {
|
||||
clusterId: ClusterId;
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { sendMessageToChannelInjectionToken } from "@k8slens/messaging";
|
||||
import { ClusterStateSync, clusterStateSyncChannel } from "../common/channels";
|
||||
import type { ClusterStateSync } from "../common/channels";
|
||||
import { clusterStateSyncChannel } from "../common/channels";
|
||||
|
||||
const emitClusterStateUpdateInjectable = getInjectable({
|
||||
id: "emit-cluster-state-update",
|
||||
|
||||
@@ -7,7 +7,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { initialClusterStatesChannel } from "../common/channels";
|
||||
|
||||
const handleInitialClusterStateSyncInjectable = getRequestChannelListenerInjectable({
|
||||
id: 'handle-initial-cluster-state-sync',
|
||||
id: "handle-initial-cluster-state-sync",
|
||||
channel: initialClusterStatesChannel,
|
||||
getHandler: (di) => {
|
||||
const clusterStore = di.inject(clusterStoreInjectable);
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import { reloadPageChannel } from "../common/channel";
|
||||
import reloadPageChannelListenerInjectable from "./register-listener.injectable";
|
||||
|
||||
export default getGlobalOverride(reloadPageChannelListenerInjectable, () => ({
|
||||
id: 'reload-page-channel-listener',
|
||||
id: "reload-page-channel-listener",
|
||||
channel: reloadPageChannel,
|
||||
handler: () => {},
|
||||
}));
|
||||
@@ -8,7 +8,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { openPathPickingDialogChannel } from "../common/channel";
|
||||
|
||||
const openPathPickingDialogListener = getRequestChannelListenerInjectable({
|
||||
id: 'open-path-picking-dialog',
|
||||
id: "open-path-picking-dialog",
|
||||
channel: openPathPickingDialogChannel,
|
||||
getHandler: (di) => di.inject(askUserForFilePathsInjectable),
|
||||
});
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import type { MessageChannel } from "@k8slens/messaging";
|
||||
import type { RequestChannel } from "@k8slens/messaging";
|
||||
import type { MessageChannel, RequestChannel } from "@k8slens/messaging";
|
||||
|
||||
export type SystemThemeType = "dark" | "light";
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { sendMessageToChannelInjectionToken } from "@k8slens/messaging";
|
||||
import { SystemThemeType, systemThemeTypeUpdateChannel } from "../common/channels";
|
||||
import type { SystemThemeType } from "../common/channels";
|
||||
import { systemThemeTypeUpdateChannel } from "../common/channels";
|
||||
|
||||
const emitSystemThemeTypeUpdateInjectable = getInjectable({
|
||||
id: "emit-system-theme-type-update",
|
||||
|
||||
@@ -8,7 +8,7 @@ import { getRequestChannelListenerInjectable } from "@k8slens/messaging";
|
||||
import { initialSystemThemeTypeChannel } from "../common/channels";
|
||||
|
||||
const initialSystemThemeTypeHandler = getRequestChannelListenerInjectable({
|
||||
id: 'initial-system-theme-type-listener',
|
||||
id: "initial-system-theme-type-listener",
|
||||
channel: initialSystemThemeTypeChannel,
|
||||
getHandler: (di) => {
|
||||
const operatingSystemTheme = di.inject(operatingSystemThemeInjectable);
|
||||
|
||||
Reference in new issue
Block a user