mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Move channel abstraction to more global directory
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
64194c2bb3
commit
aadd25c9ba
@ -4,12 +4,12 @@
|
|||||||
*/
|
*/
|
||||||
import type { DiContainer } from "@ogre-tools/injectable";
|
import type { DiContainer } from "@ogre-tools/injectable";
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import type { LensWindow } from "../../../main/start-main-application/lens-window/application-window/lens-window-injection-token";
|
import type { LensWindow } from "../../main/start-main-application/lens-window/application-window/lens-window-injection-token";
|
||||||
import { lensWindowInjectionToken } from "../../../main/start-main-application/lens-window/application-window/lens-window-injection-token";
|
import { lensWindowInjectionToken } from "../../main/start-main-application/lens-window/application-window/lens-window-injection-token";
|
||||||
import { sendToAgnosticChannelInjectionToken } from "./send-to-agnostic-channel-injection-token";
|
import { sendToAgnosticChannelInjectionToken } from "./send-to-agnostic-channel-injection-token";
|
||||||
import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
|
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
|
||||||
import { channelListenerInjectionToken } from "./channel-listener-injection-token";
|
import { channelListenerInjectionToken } from "./channel-listener-injection-token";
|
||||||
import createLensWindowInjectable from "../../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
|
import createLensWindowInjectable from "../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
|
||||||
import type { Channel } from "./channel-injection-token";
|
import type { Channel } from "./channel-injection-token";
|
||||||
import { channelInjectionToken } from "./channel-injection-token";
|
import { channelInjectionToken } from "./channel-injection-token";
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { getStartableStoppable } from "../../utils/get-startable-stoppable";
|
import { getStartableStoppable } from "../utils/get-startable-stoppable";
|
||||||
import { channelListenerInjectionToken } from "./channel-listener-injection-token";
|
import { channelListenerInjectionToken } from "./channel-listener-injection-token";
|
||||||
import { enlistChannelListenerInjectionToken } from "./enlist-channel-listener-injection-token";
|
import { enlistChannelListenerInjectionToken } from "./enlist-channel-listener-injection-token";
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
|||||||
import type { IComputedValue } from "mobx";
|
import type { IComputedValue } from "mobx";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
import syncBoxChannelInjectable from "./sync-box-channel.injectable";
|
import syncBoxChannelInjectable from "./sync-box-channel.injectable";
|
||||||
import { sendToAgnosticChannelInjectionToken } from "./channel/send-to-agnostic-channel-injection-token";
|
import { sendToAgnosticChannelInjectionToken } from "../channel/send-to-agnostic-channel-injection-token";
|
||||||
import syncBoxStateInjectable from "./sync-box-state.injectable";
|
import syncBoxStateInjectable from "./sync-box-state.injectable";
|
||||||
|
|
||||||
const createSyncBoxInjectable = getInjectable({
|
const createSyncBoxInjectable = getInjectable({
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import syncBoxChannelInjectable from "./sync-box-channel.injectable";
|
import syncBoxChannelInjectable from "./sync-box-channel.injectable";
|
||||||
import { channelListenerInjectionToken } from "./channel/channel-listener-injection-token";
|
import { channelListenerInjectionToken } from "../channel/channel-listener-injection-token";
|
||||||
import syncBoxStateInjectable from "./sync-box-state.injectable";
|
import syncBoxStateInjectable from "./sync-box-state.injectable";
|
||||||
|
|
||||||
const syncBoxChannelListenerInjectable = getInjectable({
|
const syncBoxChannelListenerInjectable = getInjectable({
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { channelInjectionToken } from "./channel/channel-injection-token";
|
import { channelInjectionToken } from "../channel/channel-injection-token";
|
||||||
|
|
||||||
const syncBoxChannelInjectable = getInjectable({
|
const syncBoxChannelInjectable = getInjectable({
|
||||||
id: "sync-box-channel",
|
id: "sync-box-channel",
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import type { IpcMainEvent } from "electron";
|
import type { IpcMainEvent } from "electron";
|
||||||
import ipcMainInjectable from "../../app-paths/register-channel/ipc-main/ipc-main.injectable";
|
import ipcMainInjectable from "../../app-paths/register-channel/ipc-main/ipc-main.injectable";
|
||||||
import { enlistChannelListenerInjectionToken } from "../../../common/sync-box/channel/enlist-channel-listener-injection-token";
|
import { enlistChannelListenerInjectionToken } from "../../../common/channel/enlist-channel-listener-injection-token";
|
||||||
|
|
||||||
const enlistChannelListenerInjectable = getInjectable({
|
const enlistChannelListenerInjectable = getInjectable({
|
||||||
id: "enlist-channel-listener-for-main",
|
id: "enlist-channel-listener-for-main",
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { onLoadOfApplicationInjectionToken } from "../../start-main-application/runnable-tokens/on-load-of-application-injection-token";
|
import { onLoadOfApplicationInjectionToken } from "../../start-main-application/runnable-tokens/on-load-of-application-injection-token";
|
||||||
import listeningOfChannelsInjectable from "../../../common/sync-box/channel/listening-of-channels.injectable";
|
import listeningOfChannelsInjectable from "../../../common/channel/listening-of-channels.injectable";
|
||||||
|
|
||||||
const startListeningOfChannelsInjectable = getInjectable({
|
const startListeningOfChannelsInjectable = getInjectable({
|
||||||
id: "start-listening-of-channels-main",
|
id: "start-listening-of-channels-main",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { lensWindowInjectionToken } from "../start-main-application/lens-window/
|
|||||||
import { pipeline } from "@ogre-tools/fp";
|
import { pipeline } from "@ogre-tools/fp";
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { filter } from "lodash/fp";
|
import { filter } from "lodash/fp";
|
||||||
import { sendToAgnosticChannelInjectionToken } from "../../common/sync-box/channel/send-to-agnostic-channel-injection-token";
|
import { sendToAgnosticChannelInjectionToken } from "../../common/channel/send-to-agnostic-channel-injection-token";
|
||||||
|
|
||||||
const sendToAgnosticChannelInjectable = getInjectable({
|
const sendToAgnosticChannelInjectable = getInjectable({
|
||||||
id: "send-to-agnostic-channel-main",
|
id: "send-to-agnostic-channel-main",
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import ipcRendererInjectable from "../../app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
|
import ipcRendererInjectable from "../../app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import type { IpcRendererEvent } from "electron";
|
import type { IpcRendererEvent } from "electron";
|
||||||
import { enlistChannelListenerInjectionToken } from "../../../common/sync-box/channel/enlist-channel-listener-injection-token";
|
import { enlistChannelListenerInjectionToken } from "../../../common/channel/enlist-channel-listener-injection-token";
|
||||||
|
|
||||||
const enlistChannelListenerInjectable = getInjectable({
|
const enlistChannelListenerInjectable = getInjectable({
|
||||||
id: "enlist-channel-listener-for-renderer",
|
id: "enlist-channel-listener-for-renderer",
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { beforeFrameStartsInjectionToken } from "../../before-frame-starts/before-frame-starts-injection-token";
|
import { beforeFrameStartsInjectionToken } from "../../before-frame-starts/before-frame-starts-injection-token";
|
||||||
import listeningOfChannelsInjectable from "../../../common/sync-box/channel/listening-of-channels.injectable";
|
import listeningOfChannelsInjectable from "../../../common/channel/listening-of-channels.injectable";
|
||||||
|
|
||||||
const startListeningOfChannelsInjectable = getInjectable({
|
const startListeningOfChannelsInjectable = getInjectable({
|
||||||
id: "start-listening-of-channels-renderer",
|
id: "start-listening-of-channels-renderer",
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { sendToAgnosticChannelInjectionToken } from "../../common/sync-box/channel/send-to-agnostic-channel-injection-token";
|
import { sendToAgnosticChannelInjectionToken } from "../../common/channel/send-to-agnostic-channel-injection-token";
|
||||||
import sendToMainInjectable from "./send-to-main.injectable";
|
import sendToMainInjectable from "./send-to-main.injectable";
|
||||||
|
|
||||||
const sendToAgnosticChannelInjectable = getInjectable({
|
const sendToAgnosticChannelInjectable = getInjectable({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user