mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: export ipc-commands from angular app
This commit is contained in:
9 files changed
+10
-9
No files matched your search
@@ -8,6 +8,7 @@
|
||||
/release
|
||||
api.js
|
||||
epg-worker.js
|
||||
ipc-commands.js
|
||||
main.js
|
||||
menu.js
|
||||
src/**/*.js
|
||||
|
||||
@@ -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
@@ -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.
@@ -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', () => {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
Reference in new issue
Block a user