Skip to content

Commit

Permalink
fix: fixed typos and removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedOuladi committed Feb 9, 2021
1 parent dee25b1 commit 46e2d10
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion deploy/docker/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.3
3.2.0
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wipp-frontend",
"version": "3.1.3",
"version": "3.2.0",
"scripts": {
"ng": "ng",
"start": "ng serve wipp-frontend-app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const entryComponentsMap = {
'csvCollection': CsvCollectionTemplateComponent,
'pyramid': PyramidTemplateComponent,
'pyramidAnnotation': PyramidAnnotationTemplateComponent,
'notabook': NotebookTemplateComponent,
'notebook': NotebookTemplateComponent,
'tensorflowModel': TensorflowModelTemplateComponent,
'tensorboardLogs': TensorboardLogsTemplateComponent,
'genericData': GenericDataTemplateComponent
Expand Down Expand Up @@ -64,7 +64,7 @@ export class DynamicContentComponent implements OnInit, OnDestroy {
constructor(private componentFactoryResolver: ComponentFactoryResolver) {}

ngOnInit() {
var factoryClass;
let factoryClass;
for (const [key, value] of Object.entries(entryComponentsMap)) {
if(this.type === key){
factoryClass = value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import { AfterViewInit, Component, ElementRef, NgModule, OnInit, ViewChild } from '@angular/core';
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import {Job} from '../../job/job';
import {ActivatedRoute, Router} from '@angular/router';
import {NgbModal, NgbModule} from '@ng-bootstrap/ng-bootstrap';
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
import {JobDetailComponent} from '../../job/job-detail/job-detail.component';
import {GenericData} from '../generic-data';
import {GenericFile} from '../generic-file';
import {GenericDataService} from '../generic-data.service';
import {BehaviorSubject, Observable, of as observableOf, Subject} from 'rxjs';
import * as Flow from '@flowjs/flow.js';
import {auditTime, catchError, map, switchMap} from 'rxjs/operators';
import {BytesPipe, NgMathPipesModule} from 'angular-pipes';
import {BytesPipe} from 'angular-pipes';
import {MatPaginator} from '@angular/material/paginator';

@Component({
selector: 'app-generic-data-detail',
templateUrl: './generic-data-detail.component.html',
styleUrls: ['./generic-data-detail.component.css']
})

// @NgModule({
// imports: [NgbModule, NgMathPipesModule, BytesPipe]
// })
export class GenericDataDetailComponent implements OnInit, AfterViewInit {

genericData: GenericData = new GenericData();
Expand Down Expand Up @@ -136,11 +132,9 @@ export class GenericDataDetailComponent implements OnInit, AfterViewInit {

const self = this;
this.flowHolder.on('fileAdded', function (file, event) {
console.log(file, event);
if (file.name === '.DS_Store' || file.name === 'thumbs.db') {
return false;
}

});
this.flowHolder.on('fileSuccess', function (file, message) {
this.removeFile(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export class GenericDataNewComponent implements OnInit {
}

createCollection() {
console.log('createCollection');
this.genericDataService.createGenericData(this.genericData).subscribe(
genericData => {
this.displayAlertMessage('success', 'Success! Redirecting...');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ export class StitchingVectorDetailComponent implements OnInit {
this.stitchingVector = stitchingVector;
this.getJob();
});

console.log('hello');
console.log(this.timeSlicesPaginator);
this.getTimeSlices();
}

Expand Down

0 comments on commit 46e2d10

Please sign in to comment.