From aff038cd784ab09a9f62b2e81816110e100ba7b8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 May 2016 12:15:03 +0200 Subject: Lint the client --- client/angular/app/app.component.ts | 2 -- client/angular/app/search.component.ts | 20 +++++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'client/angular/app') diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index bfd5adaee..3a6df844a 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts @@ -2,8 +2,6 @@ import { Component } from '@angular/core'; import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router } from '@angular/router-deprecated'; import { HTTP_PROVIDERS } from '@angular/http'; -import { DROPDOWN_DIRECTIVES} from 'ng2-bootstrap/components/dropdown'; - import { VideosAddComponent } from '../videos/components/add/videos-add.component'; import { VideosListComponent } from '../videos/components/list/videos-list.component'; import { VideosWatchComponent } from '../videos/components/watch/videos-watch.component'; diff --git a/client/angular/app/search.component.ts b/client/angular/app/search.component.ts index 3e8db70c0..e21b91fce 100644 --- a/client/angular/app/search.component.ts +++ b/client/angular/app/search.component.ts @@ -1,6 +1,4 @@ import { Component, EventEmitter, Output } from '@angular/core'; -import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router } from '@angular/router-deprecated'; -import { HTTP_PROVIDERS } from '@angular/http'; import { DROPDOWN_DIRECTIVES} from 'ng2-bootstrap/components/dropdown'; @@ -16,15 +14,15 @@ export class SearchComponent { @Output() search: EventEmitter = new EventEmitter(); searchCriterias: Search = { - field: "name", - value: "" - } + field: 'name', + value: '' + }; fieldChoices = { - name: "Name", - author: "Author", - podUrl: "Pod Url", - magnetUri: "Magnet Uri" - } + name: 'Name', + author: 'Author', + podUrl: 'Pod Url', + magnetUri: 'Magnet Uri' + }; get choiceKeys() { return Object.keys(this.fieldChoices); @@ -34,7 +32,7 @@ export class SearchComponent { return this.fieldChoices[choiceKey]; } - choose($event:MouseEvent, choice: SearchField){ + choose($event:MouseEvent, choice: SearchField) { $event.preventDefault(); $event.stopPropagation(); -- cgit v1.2.3