refactor: export ipc-commands from angular app

This commit is contained in:
4gray committed 2021-02-09 23:05:48 +01:00
1 parent 5d559f7fef
commit 5ccd670b5a
9 files changed
+10 -9

No files matched your search

+1
View File
@@ -8,6 +8,7 @@
/release
api.js
epg-worker.js
ipc-commands.js
main.js
menu.js
src/**/*.js
+1 -1
View File
@@ -11,7 +11,7 @@ import {
EPG_FETCH_DONE,
EPG_GET_PROGRAM,
EPG_GET_PROGRAM_DONE,
} from './src/app/shared/ipc-commands';
} from './ipc-commands';
const fs = require('fs');
const userData = app.getPath('userData');
+1 -1
View File
@@ -11,7 +11,7 @@ import {
EPG_FETCH_DONE,
EPG_GET_PROGRAM,
EPG_GET_PROGRAM_DONE,
} from './src/app/shared/ipc-commands';
} from './ipc-commands';
// EPG data store
let EPG_DATA: { channels: EpgChannel[]; programs: EpgProgram[] };
File renamed without changes.
+1 -1
View File
@@ -74,7 +74,7 @@ function createEpgWorkerWindow() {
window.loadFile('epg-worker.html');
window.webContents.openDevTools();
} else {
window.loadFile('dist/epg-worker.html');
window.loadFile('epg-worker.html');
}
window.once('ready-to-show', () => {
+1 -1
View File
@@ -7,7 +7,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
import { ChannelStore } from './state';
import { StorageMap } from '@ngx-pwa/local-storage';
import { Settings } from './settings/settings.interface';
import { EPG_ERROR, EPG_FETCH, EPG_FETCH_DONE } from './shared/ipc-commands';
import { EPG_ERROR, EPG_FETCH, EPG_FETCH_DONE } from '../../ipc-commands';
// create custom title bar
new Titlebar({
@@ -3,7 +3,7 @@ import { EpgChannel } from '../../models/epg-channel.model';
import { EpgProgram } from '../../models/epg-program.model';
import * as moment from 'moment';
import { ElectronService } from '../../../services/electron.service';
import { EPG_GET_PROGRAM_DONE } from '../../../shared/ipc-commands';
import { EPG_GET_PROGRAM_DONE } from '../../../../../ipc-commands';
import { ChannelQuery, ChannelStore } from '../../../state';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
+3 -3
View File
@@ -7,9 +7,9 @@ import { Observable, Subscription } from 'rxjs';
import { Settings } from './settings.interface';
import { HttpClient } from '@angular/common/http';
import * as semver from 'semver';
import { ElectronService } from 'app/services/electron.service';
import { ChannelQuery } from 'app/state';
import { EPG_FETCH } from 'app/shared/ipc-commands';
import { ElectronService } from '../services/electron.service';
import { ChannelQuery } from '../state';
import { EPG_FETCH } from '../../../ipc-commands';
@Component({
selector: 'app-settings',
+1 -1
View File
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { EntityState, EntityStore, StoreConfig } from '@datorama/akita';
import { EPG_GET_PROGRAM } from '../shared/ipc-commands';
import { EPG_GET_PROGRAM } from '../../../ipc-commands';
import { ElectronService } from '../services/electron.service';
import { Channel } from './channel.model';
import * as moment from 'moment';