From 64701e4909fe634b25bd21ef77168146072fecfc Mon Sep 17 00:00:00 2001 From: Geomitron <22552797+Geomitron@users.noreply.github.com> Date: Thu, 21 May 2020 14:17:20 -0400 Subject: [PATCH] Rearranged handlers --- src/electron/ipc/{ => browse}/AlbumArtHandler.ipc.ts | 6 +++--- .../ipc/{ => browse}/BatchSongDetailsHandler.ipc.ts | 6 +++--- src/electron/ipc/{ => browse}/SearchHandler.ipc.ts | 6 +++--- src/electron/ipc/{ => browse}/SongDetailsHandler.ipc.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) rename src/electron/ipc/{ => browse}/AlbumArtHandler.ipc.ts (79%) rename src/electron/ipc/{ => browse}/BatchSongDetailsHandler.ipc.ts (80%) rename src/electron/ipc/{ => browse}/SearchHandler.ipc.ts (83%) rename src/electron/ipc/{ => browse}/SongDetailsHandler.ipc.ts (78%) diff --git a/src/electron/ipc/AlbumArtHandler.ipc.ts b/src/electron/ipc/browse/AlbumArtHandler.ipc.ts similarity index 79% rename from src/electron/ipc/AlbumArtHandler.ipc.ts rename to src/electron/ipc/browse/AlbumArtHandler.ipc.ts index 4f998dc..0e781b0 100644 --- a/src/electron/ipc/AlbumArtHandler.ipc.ts +++ b/src/electron/ipc/browse/AlbumArtHandler.ipc.ts @@ -1,7 +1,7 @@ -import { IPCInvokeHandler } from '../shared/IPCHandler' -import { AlbumArtResult } from '../shared/interfaces/songDetails.interface' +import { IPCInvokeHandler } from '../../shared/IPCHandler' +import { AlbumArtResult } from '../../shared/interfaces/songDetails.interface' import * as needle from 'needle' -import { serverURL } from '../shared/Paths' +import { serverURL } from '../../shared/Paths' /** * Handles the 'album-art' event. diff --git a/src/electron/ipc/BatchSongDetailsHandler.ipc.ts b/src/electron/ipc/browse/BatchSongDetailsHandler.ipc.ts similarity index 80% rename from src/electron/ipc/BatchSongDetailsHandler.ipc.ts rename to src/electron/ipc/browse/BatchSongDetailsHandler.ipc.ts index efd2eac..5a64054 100644 --- a/src/electron/ipc/BatchSongDetailsHandler.ipc.ts +++ b/src/electron/ipc/browse/BatchSongDetailsHandler.ipc.ts @@ -1,6 +1,6 @@ -import { IPCInvokeHandler } from '../shared/IPCHandler' -import { VersionResult } from '../shared/interfaces/songDetails.interface' -import { serverURL } from '../shared/Paths' +import { IPCInvokeHandler } from '../../shared/IPCHandler' +import { VersionResult } from '../../shared/interfaces/songDetails.interface' +import { serverURL } from '../../shared/Paths' import * as needle from 'needle' /** diff --git a/src/electron/ipc/SearchHandler.ipc.ts b/src/electron/ipc/browse/SearchHandler.ipc.ts similarity index 83% rename from src/electron/ipc/SearchHandler.ipc.ts rename to src/electron/ipc/browse/SearchHandler.ipc.ts index 3dda395..6d714af 100644 --- a/src/electron/ipc/SearchHandler.ipc.ts +++ b/src/electron/ipc/browse/SearchHandler.ipc.ts @@ -1,7 +1,7 @@ -import { IPCInvokeHandler } from '../shared/IPCHandler' -import { SongSearch, SearchType, SongResult } from '../shared/interfaces/search.interface' +import { IPCInvokeHandler } from '../../shared/IPCHandler' +import { SongSearch, SearchType, SongResult } from '../../shared/interfaces/search.interface' import * as needle from 'needle' -import { serverURL } from '../shared/Paths' +import { serverURL } from '../../shared/Paths' /** * Handles the 'song-search' event. */ diff --git a/src/electron/ipc/SongDetailsHandler.ipc.ts b/src/electron/ipc/browse/SongDetailsHandler.ipc.ts similarity index 78% rename from src/electron/ipc/SongDetailsHandler.ipc.ts rename to src/electron/ipc/browse/SongDetailsHandler.ipc.ts index c11fc95..634c376 100644 --- a/src/electron/ipc/SongDetailsHandler.ipc.ts +++ b/src/electron/ipc/browse/SongDetailsHandler.ipc.ts @@ -1,7 +1,7 @@ -import { IPCInvokeHandler } from '../shared/IPCHandler' -import { VersionResult } from '../shared/interfaces/songDetails.interface' +import { IPCInvokeHandler } from '../../shared/IPCHandler' +import { VersionResult } from '../../shared/interfaces/songDetails.interface' import * as needle from 'needle' -import { serverURL } from '../shared/Paths' +import { serverURL } from '../../shared/Paths' /** * Handles the 'song-details' event.