mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
refactor: remove redundant interface
This commit is contained in:
4 files changed
+3
-34
No files matched your search
@@ -4,7 +4,7 @@ import { UploadFile } from 'ngx-uploader';
|
||||
import { ChannelStore, createChannel } from '../state';
|
||||
import { Router } from '@angular/router';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import { Playlist } from './playlist.interface';
|
||||
import { Playlist } from '../../../playlist.interface';
|
||||
import { ElectronService } from '../services/electron.service';
|
||||
import {
|
||||
ERROR,
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
import { ID } from '@datorama/akita';
|
||||
|
||||
/**
|
||||
* An interface that describe the possible states of the playlist update/refresh process
|
||||
*/
|
||||
export enum PlaylistUpdateState {
|
||||
UPDATED,
|
||||
IN_PROGRESS,
|
||||
NOT_UPDATED,
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes playlist interface
|
||||
*/
|
||||
export interface Playlist {
|
||||
id: ID;
|
||||
_id: string;
|
||||
title: string;
|
||||
filename: string;
|
||||
playlist: any;
|
||||
importDate: string;
|
||||
lastUsage: string;
|
||||
favorites: string[];
|
||||
count: number;
|
||||
url?: string;
|
||||
userAgent?: string;
|
||||
filePath?: string;
|
||||
autoRefresh: boolean;
|
||||
updateDate?: number;
|
||||
updateState?: PlaylistUpdateState;
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { PlaylistInfoComponent } from './playlist-info.component';
|
||||
import { FormsModule, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
||||
import { Playlist } from '../../playlist.interface';
|
||||
import { Playlist } from './../../../../../playlist.interface';
|
||||
|
||||
describe('PlaylistInfoComponent', () => {
|
||||
let component: PlaylistInfoComponent;
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { PLAYLIST_SAVE_DETAILS } from '../../../../../ipc-commands';
|
||||
import { ElectronService } from '../../../services/electron.service';
|
||||
import { Playlist } from '../../playlist.interface';
|
||||
import { Playlist } from '../../../../../playlist.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'app-playlist-info',
|
||||
|
||||
Reference in new issue
Block a user