Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarlex committed Jul 26, 2018
1 parent 4dd551a commit 3f4e142
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import {ITrack} from '../../tracks/track.interface';
import {PlaylistItemAuxappModel} from './playlist-item-auxapp.model';
import {IPlaylistItems} from './playlist-items.interface';
import {IPlaylistItem} from './playlist-item.interface';
import {PlaylistItemsSoundcloudCollection} from './playlist-items-soundcloud.collection';
import {PlaylistItemsYoutubeCollection} from './playlist-items-youtube.collection';
import {debounce} from 'underscore';
import {SortPlaylistItemsComparator} from './sort-playlist-items-comparator';
import {AuxappModel} from '../../auxapp/auxapp.model';
import {AuxappCollection} from '../../auxapp/auxapp.collection';

export class PlaylistItemsAuxappCollection<TModel extends PlaylistItemAuxappModel>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {PlaylistItemAuxappModel} from '../../playlists/playlist-item/playlist-item-auxapp.model';
import {IPlaylistItems} from '../../playlists/playlist-item/playlist-items.interface';
import {IPlaylistItem} from '../../playlists/playlist-item/playlist-item.interface';
import {PlaylistItemsAuxappCollection} from '../../playlists/playlist-item/playlist-items-auxapp.collection';
import {PlayqueueItemAuxappModel} from './playqueue-item-auxapp.model';
import {isArray, shuffle, sortBy} from 'underscore';
import {PlayQueueItemStatus} from '../../../player/src/playqueue-item-status.enum';
import {PlayQueue} from '../../../player/collections/play-queue';

export class PlayqueueItemsAuxappCollection<TModel extends PlayqueueItemAuxappModel>
extends PlaylistItemsAuxappCollection<TModel> {
Expand Down
1 change: 0 additions & 1 deletion src/app/modules/api/tracks/track-auxapp.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {ITrack} from './track.interface';
import {AuxappModel} from '../auxapp/auxapp.model';
import {ArtistAuxappModel} from '../artist/artist-auxapp.model';
import {ImageAuxappModel} from '../image/image-auxapp.model';
import {TrackYoutubeModel} from './track-youtube.model';

export class TrackAuxappModel extends AuxappModel implements ITrack {
type: 'Track';
Expand Down
1 change: 0 additions & 1 deletion src/app/modules/api/tracks/track-mixcloud.model.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {TrackAuxappModel} from './track-auxapp.model';
import {attributesKey} from '../../backbone/decorators/attributes-key.decorator';
import {defaultValue} from '../../backbone/decorators/default-value.decorator';
import {TrackYoutubeModel} from './track-youtube.model';

export class TrackMixcloudModel extends TrackAuxappModel {
endpoint = '/track/mixcloud';
Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/api/tracks/track-soundcloud.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import {nested} from '../../backbone/decorators/nested.decorator';
import {Comment} from '../../comments/models/comment.model';
import {Globals} from '../../../../globals';
import {defaultValue} from '../../backbone/decorators/default-value.decorator';
import {SoundcloudProxyModel} from '../soundcloud/soundcloud-proxy.model';
import {ITrack} from './track.interface';
import {ImageSoundcloudModel} from '../image/image-soundcloud.model';
import {ArtistSoundcloudModel} from '../artist/artist-soundcloud.model';
import {TrackAuxappModel} from './track-auxapp.model';

export class TrackSoundcloudModel extends TrackAuxappModel implements ITrack{
Expand Down
12 changes: 0 additions & 12 deletions src/app/modules/api/tracks/track-youtube.model.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import {attributesKey} from '../../backbone/decorators/attributes-key.decorator';
import {nested} from '../../backbone/decorators/nested.decorator';
import {defaultValue} from '../../backbone/decorators/default-value.decorator';
import {BaseCollection} from '../../backbone/collections/base.collection';
import {BaseModel} from '../../backbone/models/base.model';
import {TracksYoutubeTopicModel} from './tracks-youtube-topic.model';
import {YoutubeProxyModel} from '../youtube/youtube-proxy.model';
import {TracksYoutubeTopicsCollection} from './tracks-youtube-topics.collection';
import {ITrack} from './track.interface';
import {ImageYoutubeModel} from '../image/image-youtube.model';
import {ArtistYoutubeModel} from '../artist/artist-youtube.model';
import {queryParam} from '../../backbone/decorators/query-param.decorator';
import {isObject} from 'underscore';
import {TrackAuxappModel} from './track-auxapp.model';
import {TrackSoundcloudModel} from './track-soundcloud.model';

export class TrackYoutubeModel extends TrackAuxappModel {
endpoint = '/track/youtube';
Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/api/tracks/tracks-mixcloud.collection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {ITracks} from './tracks.interface';
import {ITrackModelConstructor} from './track.interface';
import {TrackAuxappModel} from './track-auxapp.model';
import {AuxappCollection} from '../auxapp/auxapp.collection';
import {TracksAuxappCollection} from './tracks-auxapp.collection';
import {TrackMixcloudModel} from './track-mixcloud.model';

Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/api/tracks/tracks-soundcloud.collection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {SoundcloudProxyCollection} from '../soundcloud/soundcloud-proxy.collection';
import {TrackSoundcloudModel} from './track-soundcloud.model';
import {ITracks} from './tracks.interface';
import {ITrackModelConstructor} from './track.interface';
import {TracksAuxappCollection} from './tracks-auxapp.collection';
import {AuxappCollection} from '../auxapp/auxapp.collection';

Expand Down
5 changes: 0 additions & 5 deletions src/app/modules/api/tracks/tracks-youtube.collection.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {TrackYoutubeModel} from './track-youtube.model';
import {YoutubeProxyCollection} from '../youtube/youtube-proxy.collection';
import {ITrackModelConstructor} from './track.interface';
import {ITracks} from './tracks.interface';
import {debounce} from 'underscore';
import {TrackMixcloudModel} from './track-mixcloud.model';
import {TracksAuxappCollection} from './tracks-auxapp.collection';
import {AuxappCollection} from '../auxapp/auxapp.collection';

Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/shared/services/socket-message.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {EventEmitter, Injectable} from '@angular/core';
import {isObject, isString} from 'underscore';
import {IMessage, MessageMethodTypes, MessageSubscription, MessageTypes, MessageService} from './message';
import {IMessage, MessageMethodTypes, MessageService, MessageSubscription, MessageTypes} from './message';
import {filter} from 'rxjs/operators';

export enum SocketStatusTypes {
Expand Down

0 comments on commit 3f4e142

Please sign in to comment.