Skip to content

Commit

Permalink
fix: refactoring all files dependencies with the angular specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
wil92 committed Feb 22, 2019
1 parent ca2accb commit 7e2f231
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { AppComponent } from './app.component';

describe('AppComponent', () => {
Expand Down
2 changes: 2 additions & 0 deletions src/app/directive-way/directive-way.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { Observable } from 'rxjs';

import { DirectiveWayComponent } from './directive-way.component';

describe('DirectiveWayComponent', () => {
Expand Down
1 change: 1 addition & 0 deletions src/app/directive-way/directive-way.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnDestroy } from '@angular/core';

import { Observable, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

Expand Down
1 change: 0 additions & 1 deletion src/app/service-code-way/service-code-way.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from '../../uploadx';
import {environment} from '../../environments/environment';
import {Ufile} from '../ufile';
import {fromPromise} from 'rxjs/internal-compatibility';

@Component({
selector: 'app-service-way',
Expand Down
2 changes: 2 additions & 0 deletions src/app/service-way/service-way.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { Observable } from 'rxjs';

import { UploadxService } from '../../uploadx';
import { ServiceWayComponent } from './service-way.component';

Expand Down
1 change: 1 addition & 0 deletions src/app/service-way/service-way.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnDestroy, OnInit } from '@angular/core';

import { Observable, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

Expand Down
2 changes: 2 additions & 0 deletions src/uploadx/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export * from './uploadx.module';

export {
UploadxOptions,
UploadxControlEvent,
UploadState,
UploadItem
} from './interfaces';

export { UploadxService } from './uploadx.service';
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { Component, DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser';

import { UploadxService } from './uploadx.service';
import { UploadxDirective } from './uploadx.directive';

Expand Down
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
EventEmitter
} from '@angular/core';
import { Observable } from 'rxjs';

import { UploadxOptions, UploadState, UploadxControlEvent } from './interfaces';
import { UploadxService } from './uploadx.service';

Expand Down
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { UploadxService } from './uploadx.service';

const options = {
concurrency: 3,
allowedTypes: 'image/*,video/*',
Expand Down
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Injectable } from '@angular/core';

import { Subject, Observable } from 'rxjs';

import { UploadxOptions, UploadState, UploadxControlEvent, UploaderOptions } from './interfaces';
Expand Down
2 changes: 2 additions & 0 deletions src/uploadx/src/url.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { resolveUrl } from './resolve_url';

const base = 'http://www.example.com/upload/';
const loc = '/upload?upload_id=12345';

describe('resolveUrl', () => {
it('basic', () => {
const resolved = resolveUrl(loc, base);
Expand Down
2 changes: 1 addition & 1 deletion src/uploadx/src/xhrfactory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { XHRFactory } from './xhrfactory';

let xhr: XMLHttpRequest;

describe('XHRFactory', () => {
Expand Down

0 comments on commit 7e2f231

Please sign in to comment.