Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(astronaut): The astronaut has fixed the spacebus, he can go home
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir authored and joshuawilson committed Mar 3, 2017
1 parent c38df6d commit 45124cc
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 64 deletions.
3 changes: 0 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './shared/astronaut.service';
import './rxjs-extensions';

import { ModuleWithProviders, NgModule } from '@angular/core';
Expand Down Expand Up @@ -60,7 +59,6 @@ if (process.env.ENV == 'inmemory') {
serviceImports = [
Logger,
AuthenticationService,
AstronautService,
Broadcaster,
LoginService,
UserService,
Expand All @@ -82,7 +80,6 @@ if (process.env.ENV == 'inmemory') {
serviceImports = [
Logger,
AuthenticationService,
AstronautService,
Broadcaster,
LoginService,
UserService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../../shared/astronaut.service';
import { Component, ViewChild, OnInit, Output, EventEmitter, Input, OnChanges, OnDestroy } from '@angular/core';

import { Observable } from 'rxjs/Observable';
Expand Down Expand Up @@ -58,8 +57,7 @@ export class FabPlannerIterationModalComponent implements OnInit, OnDestroy, OnC

constructor(
private iterationService: IterationService,
private broadcaster: Broadcaster,
private astronaut: AstronautService) {}
private broadcaster: Broadcaster) {}


ngOnInit() {
Expand Down
2 changes: 0 additions & 2 deletions src/app/iteration/iteration.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';

Expand Down Expand Up @@ -43,7 +42,6 @@ export class IterationComponent implements OnInit, OnDestroy {
private auth: AuthenticationService,
private broadcaster: Broadcaster,
private iterationService: IterationService,
private astronaut: AstronautService,
private route: ActivatedRoute
) {}

Expand Down
3 changes: 1 addition & 2 deletions src/app/iteration/iteration.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
Expand Down Expand Up @@ -28,6 +27,6 @@ import { TooltipModule } from 'ng2-bootstrap/components/tooltip';
IterationComponent
],
exports: [IterationComponent],
providers: [AstronautService, IterationService]
providers: [IterationService]
})
export class IterationModule { }
2 changes: 0 additions & 2 deletions src/app/iteration/iteration.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { GlobalSettings } from '../shared/globals';

import { Injectable } from '@angular/core';
Expand Down Expand Up @@ -27,7 +26,6 @@ export class IterationService {
private logger: Logger,
private http: Http,
private auth: AuthenticationService,
private astronaut: AstronautService,
private globalSettings: GlobalSettings,
private broadcaster: Broadcaster
) {
Expand Down
3 changes: 1 addition & 2 deletions src/app/iteration/iterations.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import {
BaseRequestOptions,
Http,
Expand Down Expand Up @@ -79,7 +78,7 @@ describe ('Iteration service - ', () => {
useValue: fakeAuthService
},
{
provide: AstronautService,
provide: SpaceService,
useValue: fakeSpaceService
},
IterationService,
Expand Down
32 changes: 0 additions & 32 deletions src/app/shared/astronaut.service.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/type/type.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Params, ActivatedRoute } from '@angular/router';

Expand All @@ -24,7 +23,6 @@ export class TypeComponent implements OnInit, OnDestroy {

constructor(
private broadcaster: Broadcaster,
private astronaut: AstronautService,
private route: ActivatedRoute
) {}

Expand Down
3 changes: 1 addition & 2 deletions src/app/type/type.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
Expand All @@ -23,6 +22,6 @@ import { TypeComponent } from './type.component';
TypeComponent
],
exports: [TypeComponent],
providers: [AstronautService]
providers: []
})
export class TypeModule { }
4 changes: 1 addition & 3 deletions src/app/work-item/work-item-list/work-item-list.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../../shared/astronaut.service';
import { Subscription } from 'rxjs/Subscription';
import {
AfterViewInit,
Expand Down Expand Up @@ -91,8 +90,7 @@ export class WorkItemListComponent implements OnInit, AfterViewInit, DoCheck {
private workItemService: WorkItemService,
private logger: Logger,
private userService: UserService,
private route: ActivatedRoute,
private astronaut: AstronautService) {}
private route: ActivatedRoute) {}

ngOnInit(): void {
this.listenToEvents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Logger, Broadcaster } from 'ngx-login-client';

import { WorkItem, WorkItemAttributes, WorkItemRelations } from '../../models/work-item';
import { WorkItemService } from '../work-item.service';
import { AstronautService } from './../../shared/astronaut.service';

@Component({
selector: 'alm-work-item-quick-add',
Expand All @@ -45,7 +44,6 @@ export class WorkItemQuickAddComponent implements OnInit, OnDestroy, AfterViewIn

constructor(
private workItemService: WorkItemService,
private astronaut: AstronautService,
private broadcaster: Broadcaster,
private logger: Logger,
private renderer: Renderer) {}
Expand Down
4 changes: 1 addition & 3 deletions src/app/work-item/work-item.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { Subscription } from 'rxjs/Subscription';
import {
AfterViewInit,
Expand Down Expand Up @@ -52,8 +51,7 @@ export class WorkItemComponent implements OnInit, AfterViewInit {
private route: ActivatedRoute,
private broadcaster: Broadcaster,
private workItemService: WorkItemService,
private router: Router,
private astronaut: AstronautService
private router: Router
) {
}

Expand Down
2 changes: 0 additions & 2 deletions src/app/work-item/work-item.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

Expand Down Expand Up @@ -62,7 +61,6 @@ import { WorkItemService } from './work-item.service';
WorkItemListEntryComponent
],
providers: [
AstronautService,
AuthUserResolve,
UserService,
UsersResolve,
Expand Down
3 changes: 1 addition & 2 deletions src/app/work-item/work-item.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import {
async,
inject,
Expand Down Expand Up @@ -141,7 +140,7 @@ describe('Work Item Service - ', () => {
// MockDataService should be removed at some point
MockDataService,
{
provide: AstronautService,
provide: SpaceService,
useValue: fakeSpcaeService
},
WorkItemService,
Expand Down
2 changes: 0 additions & 2 deletions src/app/work-item/work-item.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AstronautService } from './../shared/astronaut.service';
import { Injectable, Component, Inject } from '@angular/core';
import { Headers, Http } from '@angular/http';

Expand Down Expand Up @@ -66,7 +65,6 @@ export class WorkItemService {
constructor(private http: Http,
private broadcaster: Broadcaster,
private logger: Logger,
private astronaut: AstronautService,
private auth: AuthenticationService,
private iterationService: IterationService,
private userService: UserService,
Expand Down

0 comments on commit 45124cc

Please sign in to comment.