Skip to content

Commit

Permalink
chore: update main hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Dec 13, 2022
1 parent 1d36e35 commit 2951775
Show file tree
Hide file tree
Showing 45 changed files with 16 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions src/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { app, BrowserWindow } from 'electron';

import {
registerDialogSubscribers,
registerElectronStoreSubscribers,
registerGrpcClientSubscribers,
registerGrpcWebClientSubscribers,
registerOSSubscribers,
registerProtobufSubscribers,
unregisterDialogSubscribers,
unregisterGrpcClientSubscribers,
unregisterGrpcWebClientSubscribers,
} from './ipc';
} from './clients';
import { registerDialogSubscribers, unregisterDialogSubscribers } from './dialog';
import { registerElectronStoreSubscribers } from './electron-store';
import { registerOSSubscribers } from './os';
import { registerProtobufSubscribers } from './protobuf';

// This allows TypeScript to pick up the magic constant that's auto-generated by Forge's Webpack
// plugin that tells the Electron app where to look for the Webpack-bundled app code (depending on
Expand Down
5 changes: 0 additions & 5 deletions src/main/ipc/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion src/main/preload.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { contextBridge } from 'electron';

import { ElectronDialog, ElectronStore, GrpcClient, GrpcWebClient, OS, Protobuf } from './ipc';
import { GrpcClient, GrpcWebClient } from './clients';
import { ElectronDialog } from './dialog';
import { ElectronStore } from './electron-store';
import { OS } from './os';
import { Protobuf } from './protobuf';

contextBridge.exposeInMainWorld('electronDialog', ElectronDialog);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { GrpcClient } from '../main/ipc/clients/grpc-client/preload';
import { GrpcWebClient } from '../main/ipc/clients/grpc-web-client/preload';
import { ElectronDialog } from '../main/ipc/dialog/preload';
import { ElectronStore } from '../main/ipc/electron-store/preload';
import { OS } from '../main/ipc/os/preload';
import { Protobuf } from '../main/ipc/protobuf/preload';
import { GrpcClient } from '../main/clients/grpc-client/preload';
import { GrpcWebClient } from '../main/clients/grpc-web-client/preload';
import { ElectronDialog } from '../main/dialog/preload';
import { ElectronStore } from '../main/electron-store/preload';
import { OS } from '../main/os/preload';
import { Protobuf } from '../main/protobuf/preload';

declare global {
interface Window {
Expand Down

0 comments on commit 2951775

Please sign in to comment.