Permalink
Browse files

cleanup TS

  • Loading branch information...
shprink committed Dec 13, 2017
1 parent ffc2176 commit 84f47d487508a5ffb08be3e766e524ff65f51fa4
@@ -1,4 +1,3 @@
import { NavController } from 'ionic-angular';
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
// import { MenuMapping } from './../../../config/pages/';
@@ -20,9 +19,7 @@ export class AuthorComponent {
@Input() link: Boolean;
@Input() date: String;
constructor(
private navCtrl: NavController
) {
constructor() {
}
goToAuthorPage(e) {
@@ -4,7 +4,6 @@ import { NavController } from 'ionic-angular';
import { AppearIn } from './../../utils/animations';
import { IListComponent } from './../interfaces';
import { ListParentComponent } from './../ListParent';
import { ListPage } from './../../pages/list/list';
import { ListCategoryPage } from './../../pages/list/list-category';
/*
@@ -15,6 +15,6 @@ export class MenuComponent {
constructor(
private menu: Menu
) {
this.list = menu.getRaw();
this.list = this.menu.getRaw();
}
}
@@ -43,7 +43,7 @@ export class ToolbarComponent {
this.isBookmarked$ = this.store.select((state: AppState) => {
return Object.keys(state.bookmarks).indexOf(this.bookmarkId) > -1;
});
this.isMobile = platform.is('mobile') || (!this.shareMessage && !this.shareSubject);
this.isMobile = this.platform.is('mobile') || (!this.shareMessage && !this.shareSubject);
}
private openTaxonomy(title: string, term: string, list: Array<Object>, postType: string) {
@@ -6,8 +6,6 @@ import { Injector } from '@angular/core';
import debug from 'debug';
import { Toast, Config } from './../../providers';
import { DeepLinkerLnks } from '../../../config/pages/';
import { getNavParamsFromItem } from '../../utils/item';
const log = debug('ItemPage');
@@ -8,9 +8,6 @@ import debug from 'debug';
import { removeBookmark, removeBookmarks } from '../../actions';
import { AppState } from '../../reducers';
import { ItemPage } from './../item/item';
import { ItemPostsPage } from './../item/item-post';
import { ItemPagesPage } from './../item/item-page';
import { getNavParamsFromItem } from '../../utils/item';
import { MenuMapping } from '../../../config/pages/';
View
@@ -1,6 +1,5 @@
import { Component, Injector } from '@angular/core';
import { NavController } from 'ionic-angular';
import { WpApiPages, WpApiPosts, WpApiCustom } from 'wp-api-angular';
import { WpApiCustom } from 'wp-api-angular';
import { Store } from '@ngrx/store';
import _get from 'lodash/get';
@@ -1,6 +1,5 @@
import { Component } from '@angular/core';
import { ListPage } from './list';
import { ItemPostsPage } from '../item/item-post';
@Component({
selector: 'page-category-list',
@@ -1,6 +1,5 @@
import { Component } from '@angular/core';
import { ListPage } from './list';
import { ItemPagesPage } from '../item/item-page';
@Component({
selector: 'page-pages-list',
@@ -1,6 +1,5 @@
import { Component } from '@angular/core';
import { ListPage } from './list';
import { ItemPostsPage } from '../item/item-post';
@Component({
selector: 'page-posts-list',
@@ -1,6 +1,5 @@
import { Component } from '@angular/core';
import { ListPage } from './list';
import { ItemPostsPage } from '../item/item-post';
@Component({
selector: 'page-tag-list',
@@ -19,7 +19,7 @@ export class PushNotifications {
public config: Config,
public injector: Injector
) {
const plugin = this.config.getPushNotifications('plugin', 'push-notifications-for-wordpress');
// const plugin = this.config.getPushNotifications('plugin', 'push-notifications-for-wordpress');
// if (plugin === 'push-notifications-for-wordpress') {
// this.instance = this.injector.get(PushNotificationsForWordPress, PushNotificationsForWordPress);
View
@@ -1,12 +1,12 @@
import { Injectable } from '@angular/core';
import { Storage as IonicStorage } from '@ionic/storage';
import { Store } from '@ngrx/store';
import debug from 'debug';
// import debug from 'debug';
import { AppState } from './../reducers';
import { INIT } from './../actions';
const log = debug('Storage');
// const log = debug('Storage');
@Injectable()
export class Storage {
View
@@ -13,8 +13,7 @@
"moduleResolution": "node",
"sourceMap": true,
"target": "es5",
"noUnusedLocals": true,
"noUnusedParameters": true
"noUnusedLocals": true
},
"include": [
"src/**/*.ts"

0 comments on commit 84f47d4

Please sign in to comment.