Skip to content

Commit c969031

Browse files
committed
release v0.2.0
2 parents 7c96e03 + 15e1f0d commit c969031

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3075
-20955
lines changed

package-lock.json

Lines changed: 1212 additions & 20260 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifemonitor",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"scripts": {
55
"start": "node server.js",
66
"dev:start": "ng serve",
@@ -32,7 +32,7 @@
3232
"@angular/platform-browser": "11.2.5",
3333
"@angular/platform-browser-dynamic": "11.2.5",
3434
"@angular/router": "11.2.5",
35-
"@bity/oauth2-auth-code-pkce": "^2.12.0",
35+
"@bity/oauth2-auth-code-pkce": "^2.13.0",
3636
"@ng-bootstrap/ng-bootstrap": "9.0.2",
3737
"ansi-html": "~0.0.7",
3838
"bootstrap": "4.6.0",
@@ -65,7 +65,7 @@
6565
"husky": "5.1.3",
6666
"jasmine-core": "~3.9.0",
6767
"jasmine-spec-reporter": "~6.0.0",
68-
"karma": "6.2.0",
68+
"karma": "^6.3.17",
6969
"karma-chrome-launcher": "~3.1.0",
7070
"karma-coverage-istanbul-reporter": "3.0.3",
7171
"karma-jasmine": "~4.0.1",

src/app/app.component.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ export class AppComponent {
1111
title = 'LifeMonitor';
1212

1313
ngAfterViewInit() {
14-
$(document).on('mouseover', '[data-toggle="tooltip"]', function () {
15-
$(this).tooltip('show');
16-
});
14+
$(document)
15+
.on('mouseover', '[data-toggle="tooltip"]', function () {
16+
$(this).tooltip('show');
17+
})
18+
.on('mouseout', '[data-toggle="tooltip"]', function () {
19+
$(this).tooltip('hide');
20+
})
21+
.on('click', '[data-toggle="tooltip"]', function () {
22+
$(this).tooltip('hide');
23+
});
1724
}
1825
}

src/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import { BlankComponent } from './views/blank/blank.component';
4242
import { DashboardComponent } from './views/dashboard/dashboard.component';
4343
import { SuiteComponent } from './views/suite/suite.component';
4444
import { WorkflowComponent } from './views/workflow/workflow.component';
45+
import { WorkflowVersionSelectorComponent } from './components/workflow-version-selector/workflow-version-selector.component';
46+
import { TrimPipe } from './utils/filters/trim.pipe';
4547

4648

4749

@@ -81,11 +83,13 @@ export function initConfigService(appConfig: AppConfigService) {
8183
ArraySizeFilterPipe,
8284
SortingFilterPipe,
8385
SearchBarComponent,
86+
TrimPipe,
8487
LoaderComponent,
8588
RocrateLogoComponent,
8689
WorkflowHeaderComponent,
8790
InputDialogComponent,
8891
WorkflowUploaderComponent,
92+
WorkflowVersionSelectorComponent,
8993
],
9094
imports: [
9195
FormsModule,
@@ -119,4 +123,4 @@ export function initConfigService(appConfig: AppConfigService) {
119123
],
120124
bootstrap: [AppComponent],
121125
})
122-
export class AppModule {}
126+
export class AppModule { }

src/app/components/input-dialog/input-dialog.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ <h5 class="modal-title" [innerHTML]="title"></h5>
1111
<span aria-hidden="true">&times;</span>
1212
</button>
1313

14-
<div class="text-center p-5 text-primary">
14+
<div *ngIf="!iconImage" class="text-center p-5 text-primary">
1515
<i class="{{iconClass}} {{iconClassSize}}"></i>
1616
</div>
1717

18+
<div *ngIf="iconImage" class="text-center p-5 text-primary">
19+
<img src="{{iconImage}}" width="{{iconImageSize}}">
20+
</div>
21+
1822
<div class="text-center">
1923
<h2 clas="font-weight-light" [innerHTML]="question"></h2>
2024
<h6 class="text-muted" [innerHTML]="description"></h6>

src/app/components/input-dialog/input-dialog.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class InputDialogComponent implements OnInit {
1616
@Input() title = null;
1717
@Input() iconClass = 'far fa-question-circle';
1818
@Input() iconClassSize = 'fa-7x';
19+
@Input() iconImage = null;
20+
@Input() iconImageSize = '100px';
1921
@Input() question = 'Are you sure?';
2022
@Input() description = 'Would you like to confirm?';
2123
@Input() confirmText = 'Confirm';
@@ -27,7 +29,7 @@ export class InputDialogComponent implements OnInit {
2729
// initialize logger
2830
private logger: Logger = LoggerManager.create('InputDialogComponent');
2931

30-
constructor(private service: InputDialogService) { }
32+
constructor(private service: InputDialogService) {}
3133

3234
ngOnInit(): void {
3335
$('#' + this.name).on('hide.bs.modal', () => {
@@ -39,6 +41,8 @@ export class InputDialogComponent implements OnInit {
3941
this.title = config.title || this.title;
4042
this.iconClass = config.iconClass || this.iconClass;
4143
this.iconClassSize = config.iconClassSize || this.iconClassSize;
44+
this.iconImage = config.iconImage || this.iconImage;
45+
this.iconImageSize = config.iconImageSize || this.iconImageSize;
4246
this.question = config.question || this.question;
4347
this.description = config.description || this.description;
4448
this.confirmText = config.confirmText || this.confirmText;

src/app/components/loader/loader.component.scss

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
/* Spinner */
21
#loader {
3-
bottom: 0;
4-
height: 175px;
5-
left: 0;
6-
margin: auto;
7-
position: absolute;
8-
right: 0;
9-
top: 0;
10-
width: 175px;
11-
}
12-
13-
#loader {
14-
bottom: 0;
2+
bottom: 400px;
153
height: 175px;
164
left: 0;
175
margin: auto;

src/app/components/rocrate-logo/rocrate-logo.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div *ngIf="availableForDownload === true">
1+
<div *ngIf="availableForDownload === true" style="margin-top: 40%;">
22
<div class="d-none d-sm-none d-md-none d-lg-block">
33
<a [routerLink]="" (click)="downloadROCrate()" class="hvr-float-shadow" data-toggle="tooltip" data-placement="left"
44
data-html="true"
@@ -20,7 +20,7 @@
2020
</div>
2121
</div>
2222

23-
<div *ngIf="availableForDownload === false">
23+
<div *ngIf="availableForDownload === false" style="margin-top: 40%;">
2424
<div class="d-none d-sm-none d-md-none d-lg-block">
2525
<div class="text-muted text-center disabled" data-toggle="tooltip" data-html="true" data-placement="left"
2626
title="Download not available" style="min-width: 175px; max-width: 175px;">

src/app/components/rocrate-logo/rocrate-logo.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, Input, OnInit } from '@angular/core';
2-
import { Workflow } from 'src/app/models/workflow.model';
2+
import { WorkflowVersion } from 'src/app/models/workflow.model';
33
import { Logger, LoggerManager } from 'src/app/utils/logging';
44
import { AppService } from 'src/app/utils/services/app.service';
55

@@ -11,7 +11,7 @@ declare var $: any;
1111
styleUrls: ['./rocrate-logo.component.scss'],
1212
})
1313
export class RocrateLogoComponent implements OnInit {
14-
@Input() workflow: Workflow;
14+
@Input() workflow: WorkflowVersion;
1515

1616
private _availableForDownload: boolean;
1717

src/app/components/search-bar/search-bar.component.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,25 @@
44
</div>
55
<input #searchInputText (keyup.enter)="onKeyUpEnter()"
66
type="text" [(ngModel)]="actualFilterValue" class="form-control font-weight-light"
7-
placeholder="Press ENTER to list all {{elementType}} or search by UUID or Name" aria-label="Username" aria-describedby="basic-addon1" />
7+
placeholder="Search for {{elementType}}" aria-label="search" aria-describedby="basic-addon1"
8+
data-toggle="tooltip" data-placement="bottom" data-html="true"
9+
title="Press ENTER to list all {{elementType}} or search {{elementType}} by UUID or Name"/>
810

911
<div class="input-group-append">
1012
<button *ngIf="actualFilterValue || searchAll" class="btn btn-outline-secondary border-right-0" type="button" (click)="reset()"
11-
aria-haspopup="true" aria-expanded="false">
13+
aria-haspopup="true" aria-expanded="false"
14+
data-toggle="tooltip" data-placement="top" data-html="true"
15+
title="Clear search for {{elementType}}">
1216
<i class="fas fa-window-close"></i>
1317
</button>
1418
<button class="btn btn-outline-secondary border-left-0" type="button" (click)="changeSortingOrder()"
1519
aria-haspopup="true" aria-expanded="false">
16-
<i *ngIf="actualSortingOrder == 'asc'" class="fas fa-sort-amount-up"></i>
17-
<i *ngIf="actualSortingOrder == 'desc'" class="fas fa-sort-amount-down"></i>
20+
<i *ngIf="actualSortingOrder == 'asc'" class="fas fa-sort-amount-up"
21+
data-toggle="tooltip" data-placement="top" data-html="true"
22+
title="Sort {{elementType}} in ascending order"></i>
23+
<i *ngIf="actualSortingOrder == 'desc'" class="fas fa-sort-amount-down"
24+
data-toggle="tooltip" data-placement="top" data-html="true"
25+
title="Sort {{elementType}} in descending order"></i>
1826
</button>
1927
<!-- <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown"
2028
aria-haspopup="true" aria-expanded="false">

0 commit comments

Comments
 (0)