You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/01/02 18:46:15 UTC

[streampipes] branch chore/ui-linting-a created (now ee00ab2f8)

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a change to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at ee00ab2f8 add linting to app-asset-monitoring module (#877)

This branch includes the following new commits:

     new cdfe45afe add linting to add module (#877)
     new 561583842 add linting to apidocs module (#877)
     new 81e0dce1b add linting to app-asset-monitoring module (#877)
     new c426db7b9 add linting to app-overview module (#877)
     new e4a659443 add linting to assets module (#877)
     new ee00ab2f8 add linting to app-asset-monitoring module (#877)

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[streampipes] 03/06: add linting to app-asset-monitoring module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 81e0dce1b28ef5ebd279a345c01fe82749709d1d
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:34:43 2023 +0100

    add linting to app-asset-monitoring module (#877)
---
 ui/.eslintignore                                   |   1 -
 ui/.prettierignore                                 |   1 -
 .../app-asset-monitoring.component.css             |   4 +-
 .../app-asset-monitoring.component.html            |  34 +++--
 .../app-asset-monitoring.component.ts              |  14 +--
 .../app-asset-monitoring.module.ts                 |  67 +++++-----
 .../app-asset-monitoring.routes.ts                 |   8 +-
 .../create-asset/create-asset.component.css        |   5 +-
 .../create-asset/create-asset.component.html       |  58 ++++++---
 .../create-asset/create-asset.component.ts         | 121 +++++++++++-------
 .../dashboard-overview.component.css               |   5 +-
 .../dashboard-overview.component.html              |  63 +++++++---
 .../dashboard-overview.component.ts                |  11 +-
 .../components/view-asset/view-asset.component.css |   4 +-
 .../view-asset/view-asset.component.html           |  21 +++-
 .../components/view-asset/view-asset.component.ts  |  75 +++++++----
 .../dialog/add-link/add-link-dialog.component.html |  35 ++++--
 .../dialog/add-link/add-link-dialog.component.scss |   2 +-
 .../dialog/add-link/add-link-dialog.component.ts   |  61 +++++----
 .../add-pipeline-dialog.component.html             | 137 +++++++++++++++------
 .../add-pipeline-dialog.component.scss             |   8 +-
 .../add-pipeline/add-pipeline-dialog.component.ts  |  92 ++++++++------
 .../save-dashboard-dialog.component.html           |  33 +++--
 .../save-dashboard-dialog.component.scss           |   4 +-
 .../save-dashboard-dialog.component.ts             |  17 ++-
 .../model/canvas-attributes.model.ts               |   3 +-
 .../model/canvas-configuration.model.ts            |   4 +-
 .../model/canvas-element.model.ts                  |   4 +-
 .../model/dashboard-configuration.model.ts         |   1 -
 .../app/app-asset-monitoring/model/test-data.json  |  12 +-
 .../app-asset-monitoring/services/rest.service.ts  |  91 +++++++-------
 .../app-asset-monitoring/services/shape.service.ts |  82 ++++++++----
 32 files changed, 667 insertions(+), 411 deletions(-)

diff --git a/ui/.eslintignore b/ui/.eslintignore
index 4d01bd8dc..2bdb1038c 100644
--- a/ui/.eslintignore
+++ b/ui/.eslintignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/app-asset-monitoring
 src/app/app-overview
 src/app/assets
 src/app/configuration
diff --git a/ui/.prettierignore b/ui/.prettierignore
index 3335f04e0..5d8fb6322 100644
--- a/ui/.prettierignore
+++ b/ui/.prettierignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/app-asset-monitoring
 src/app/app-overview
 src/app/assets
 src/app/configuration
diff --git a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.css b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.css
index e9af73709..618e5b049 100644
--- a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.css
+++ b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.css
@@ -17,9 +17,9 @@
  */
 
 .page-container-padding {
-    width:100%;
+    width: 100%;
 }
 
 .page-container-padding-inner {
     padding: 10px;
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.html b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.html
index 80269581c..4ec241b38 100644
--- a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.html
+++ b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.html
@@ -18,17 +18,35 @@
 
 <sp-basic-view showBackLink="true" [backLinkTarget]="['apps']">
     <ng-container nav>
-        <mat-tab-group [selectedIndex]="selectedIndex" (selectedIndexChange)="selectedIndexChange($event)" color="accent">
-            <mat-tab label="Asset Dashboards">
-            </mat-tab>
-            <mat-tab id="all-adapters" label="New Asset Dashboard">
-            </mat-tab>
+        <mat-tab-group
+            [selectedIndex]="selectedIndex"
+            (selectedIndexChange)="selectedIndexChange($event)"
+            color="accent"
+        >
+            <mat-tab label="Asset Dashboards"> </mat-tab>
+            <mat-tab id="all-adapters" label="New Asset Dashboard"> </mat-tab>
         </mat-tab-group>
     </ng-container>
 
     <div fxLayout="column" fxFlex="100">
-        <sp-asset-dashboard-overview *ngIf="selectedIndex == 0 && !dashboardSelected" fxFlex="100" (selectedDashboard)="openDashboard($event)" (createDashboard)="selectedIndex = 1"></sp-asset-dashboard-overview>
-        <sp-view-asset fxFlex="100" *ngIf="selectedIndex == 0 && dashboardSelected" [dashboardConfig]="selectedDashboard" (dashboardClosed)="closeDashboard($event)" (editDashboardEmitter)="editDashboard($event)"></sp-view-asset>
-        <sp-create-asset *ngIf="selectedIndex == 1" fxFlex="100" (dashboardClosed)="closeDashboard($event)" [dashboardConfig]="selectedDashboard"></sp-create-asset>
+        <sp-asset-dashboard-overview
+            *ngIf="selectedIndex === 0 && !dashboardSelected"
+            fxFlex="100"
+            (selectedDashboard)="openDashboard($event)"
+            (createDashboard)="selectedIndex = 1"
+        ></sp-asset-dashboard-overview>
+        <sp-view-asset
+            fxFlex="100"
+            *ngIf="selectedIndex === 0 && dashboardSelected"
+            [dashboardConfig]="selectedDashboard"
+            (dashboardClosed)="closeDashboard($event)"
+            (editDashboardEmitter)="editDashboard($event)"
+        ></sp-view-asset>
+        <sp-create-asset
+            *ngIf="selectedIndex === 1"
+            fxFlex="100"
+            (dashboardClosed)="closeDashboard($event)"
+            [dashboardConfig]="selectedDashboard"
+        ></sp-create-asset>
     </div>
 </sp-basic-view>
diff --git a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.ts b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.ts
index 3d9542ada..988ffc3ec 100644
--- a/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.ts
+++ b/ui/src/app/app-asset-monitoring/app-asset-monitoring.component.ts
@@ -25,22 +25,21 @@ import { SpAppAssetMonitoringRoutes } from './app-asset-monitoring.routes';
 @Component({
     selector: 'sp-app-asset-monitoring',
     templateUrl: './app-asset-monitoring.component.html',
-    styleUrls: ['./app-asset-monitoring.component.css']
+    styleUrls: ['./app-asset-monitoring.component.css'],
 })
 export class AppAssetMonitoringComponent implements OnInit {
-
-
     selectedIndex = 0;
     dashboardSelected = false;
     selectedDashboard: DashboardConfiguration;
     @Output() appOpened = new EventEmitter<boolean>();
 
-    constructor(private breadcrumbService: SpBreadcrumbService) {
-
-    }
+    constructor(private breadcrumbService: SpBreadcrumbService) {}
 
     ngOnInit() {
-        this.breadcrumbService.updateBreadcrumb([SpAppRoutes.BASE, this.breadcrumbService.removeLink(SpAppAssetMonitoringRoutes.BASE)]);
+        this.breadcrumbService.updateBreadcrumb([
+            SpAppRoutes.BASE,
+            this.breadcrumbService.removeLink(SpAppAssetMonitoringRoutes.BASE),
+        ]);
         this.appOpened.emit(true);
     }
 
@@ -62,5 +61,4 @@ export class AppAssetMonitoringComponent implements OnInit {
         this.selectedDashboard = dashboardConfig;
         this.selectedIndex = 1;
     }
-
 }
diff --git a/ui/src/app/app-asset-monitoring/app-asset-monitoring.module.ts b/ui/src/app/app-asset-monitoring/app-asset-monitoring.module.ts
index 215705e01..1515e1074 100644
--- a/ui/src/app/app-asset-monitoring/app-asset-monitoring.module.ts
+++ b/ui/src/app/app-asset-monitoring/app-asset-monitoring.module.ts
@@ -43,41 +43,34 @@ import { RouterModule } from '@angular/router';
 import { SharedUiModule } from '@streampipes/shared-ui';
 
 @NgModule({
-  imports: [
-    CommonModule,
-    FlexLayoutModule,
-    CustomMaterialModule,
-    MatGridListModule,
-    MatInputModule,
-    MatFormFieldModule,
-    FormsModule,
-    ColorPickerModule,
-    DashboardModule,
-    RouterModule.forChild([
-      {
-        path: '',
-        component: AppAssetMonitoringComponent
-      }
-    ]),
-    SharedUiModule
-  ],
-  declarations: [
-    AppAssetMonitoringComponent,
-    CreateAssetComponent,
-    ViewAssetComponent,
-    AddLinkDialogComponent,
-    AddPipelineDialogComponent,
-    SaveDashboardDialogComponent,
-    AssetDashboardOverviewComponent
-  ],
-  providers: [
-    RestService,
-    ShapeService,
-    ElementIconText
-  ],
-  exports: [
-    AppAssetMonitoringComponent
-  ]
+    imports: [
+        CommonModule,
+        FlexLayoutModule,
+        CustomMaterialModule,
+        MatGridListModule,
+        MatInputModule,
+        MatFormFieldModule,
+        FormsModule,
+        ColorPickerModule,
+        DashboardModule,
+        RouterModule.forChild([
+            {
+                path: '',
+                component: AppAssetMonitoringComponent,
+            },
+        ]),
+        SharedUiModule,
+    ],
+    declarations: [
+        AppAssetMonitoringComponent,
+        CreateAssetComponent,
+        ViewAssetComponent,
+        AddLinkDialogComponent,
+        AddPipelineDialogComponent,
+        SaveDashboardDialogComponent,
+        AssetDashboardOverviewComponent,
+    ],
+    providers: [RestService, ShapeService, ElementIconText],
+    exports: [AppAssetMonitoringComponent],
 })
-export class AppAssetMonitoringModule {
-}
+export class AppAssetMonitoringModule {}
diff --git a/ui/src/app/app-asset-monitoring/app-asset-monitoring.routes.ts b/ui/src/app/app-asset-monitoring/app-asset-monitoring.routes.ts
index 13b9f4c5e..16d3facbb 100644
--- a/ui/src/app/app-asset-monitoring/app-asset-monitoring.routes.ts
+++ b/ui/src/app/app-asset-monitoring/app-asset-monitoring.routes.ts
@@ -16,10 +16,12 @@
  *
  */
 
-import { SpBreadcrumbItem, } from '@streampipes/shared-ui';
+import { SpBreadcrumbItem } from '@streampipes/shared-ui';
 import { SpAppRoutes } from '../app-overview/apps.routes';
 
 export class SpAppAssetMonitoringRoutes {
-
-  static BASE: SpBreadcrumbItem = {label: 'Asset Monitoring', link: [SpAppRoutes.APP_BASE_LINK, 'asset-monitoring']};
+    static BASE: SpBreadcrumbItem = {
+        label: 'Asset Monitoring',
+        link: [SpAppRoutes.APP_BASE_LINK, 'asset-monitoring'],
+    };
 }
diff --git a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.css b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.css
index 1ddbbd06c..457e5201c 100644
--- a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.css
+++ b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.css
@@ -21,10 +21,9 @@
 }
 
 .asset-configuration-board-canvas {
-    width:1400px;
-    height:900px;
+    width: 1400px;
+    height: 900px;
     border: 2px solid rgb(27, 20, 100);
     margin: 20px auto;
     background: white;
-
 }
diff --git a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.html b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.html
index 1e468112f..0705e1cf1 100644
--- a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.html
+++ b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.html
@@ -17,44 +17,72 @@
   -->
 
 <div fxLayout="column" fxFlex="100">
-    <input type="file" (change)="handleFileInput($event)" accept="image/*" #file style="display:none;">
+    <input
+        type="file"
+        (change)="handleFileInput($event)"
+        accept="image/*"
+        #file
+        style="display: none"
+    />
     <div class="sp-tab-bg sp-blue-bg page-container-nav">
         <div fxLayout="row" fxFlex="100" fxLayoutAlign="start center">
             <div>
-                <button color="accent" class="mat-basic" mat-button (click)="prepareDashboard()" type="submit"
-                        [disabled]="!backgroundImagePresent || !measurementPresent">
+                <button
+                    color="accent"
+                    class="mat-basic"
+                    mat-button
+                    (click)="prepareDashboard()"
+                    type="submit"
+                    [disabled]="!backgroundImagePresent || !measurementPresent"
+                >
                     <mat-icon>save</mat-icon>&nbsp;Save
                 </button>
             </div>
             <div>
-                <button color="accent" mat-button (click)="file.click()" type="submit"
-                        [disabled]="backgroundImagePresent">
+                <button
+                    color="accent"
+                    mat-button
+                    (click)="file.click()"
+                    type="submit"
+                    [disabled]="backgroundImagePresent"
+                >
                     <i class="material-icons">file_upload</i>&nbsp;Add image
                 </button>
             </div>
             <div>
-                <button color="accent" mat-button (click)="openAddPipelineDialog()">
+                <button
+                    color="accent"
+                    mat-button
+                    (click)="openAddPipelineDialog()"
+                >
                     <i class="material-icons">add</i>&nbsp;Add value
                 </button>
             </div>
             <div>
                 <button color="accent" mat-button (click)="openAddLinkDialog()">
-                    <span fxLayoutAlign="start center"><i class="material-icons">link</i>&nbsp;Add link</span>
+                    <span fxLayoutAlign="start center"
+                        ><i class="material-icons">link</i>&nbsp;Add link</span
+                    >
                 </button>
             </div>
             <div fxFlex="100" fxLayout="row" fxLayoutAlign="end center">
-                <button color="accent" mat-button mat-icon-button (click)="clearCanvas()" matTooltip="Clear">
-                    <i class="material-icons">
-                        clear
-                    </i>
+                <button
+                    color="accent"
+                    mat-button
+                    mat-icon-button
+                    (click)="clearCanvas()"
+                    matTooltip="Clear"
+                >
+                    <i class="material-icons"> clear </i>
                 </button>
             </div>
         </div>
     </div>
     <div id="outerAssemblyArea" class="asset-configuration-board-panel">
-        <div id="asset-configuration-board-canvas" class="asset-configuration-board-canvas"
-             fxLayoutAlign="center center">
-
-        </div>
+        <div
+            id="asset-configuration-board-canvas"
+            class="asset-configuration-board-canvas"
+            fxLayoutAlign="center center"
+        ></div>
     </div>
 </div>
diff --git a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.ts b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.ts
index b53ce8e80..a7e8f6ca8 100644
--- a/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.ts
+++ b/ui/src/app/app-asset-monitoring/components/create-asset/create-asset.component.ts
@@ -16,7 +16,14 @@
  *
  */
 
-import { AfterViewInit, Component, EventEmitter, HostListener, Input, Output } from '@angular/core';
+import {
+    AfterViewInit,
+    Component,
+    EventEmitter,
+    HostListener,
+    Input,
+    Output,
+} from '@angular/core';
 import Konva from 'konva';
 import { AddPipelineDialogComponent } from '../../dialog/add-pipeline/add-pipeline-dialog.component';
 import { MatDialog } from '@angular/material/dialog';
@@ -37,10 +44,9 @@ declare const window: Window;
 @Component({
     selector: 'sp-create-asset',
     templateUrl: './create-asset.component.html',
-    styleUrls: ['./create-asset.component.css']
+    styleUrls: ['./create-asset.component.css'],
 })
 export class CreateAssetComponent implements AfterViewInit {
-
     fileName: any;
     selectedUploadFile: File;
 
@@ -64,11 +70,12 @@ export class CreateAssetComponent implements AfterViewInit {
 
     keyboardListenerActive = true;
 
-    constructor(public dialog: MatDialog,
-                public shapeService: ShapeService,
-                private dialogService: DialogService,
-                private restService: RestService) {
-    }
+    constructor(
+        public dialog: MatDialog,
+        public shapeService: ShapeService,
+        private dialogService: DialogService,
+        private restService: RestService,
+    ) {}
 
     ngAfterViewInit() {
         const width = 1400;
@@ -77,23 +84,26 @@ export class CreateAssetComponent implements AfterViewInit {
             this.mainCanvasStage = new Konva.Stage({
                 container: 'asset-configuration-board-canvas',
                 width,
-                height
+                height,
             });
             this.initLayers();
         } else {
             this.editMode = true;
             this.makeEditable();
-            this.mainCanvasStage = Konva.Node.create(this.dashboardConfig, 'asset-configuration-board-canvas');
+            this.mainCanvasStage = Konva.Node.create(
+                this.dashboardConfig,
+                'asset-configuration-board-canvas',
+            );
             this.mainCanvasStage.draw();
 
             this.backgroundImageLayer = this.mainCanvasStage.children[0];
             this.mainLayer = this.mainCanvasStage.children[1];
             const groups = this.mainLayer.getChildren().find('Group');
             groups.forEach(g => {
-               const id = this.makeId();
-               g.id(id);
-               g.setDraggable(true);
-               this.addTransformerToShape(id, g);
+                const id = this.makeId();
+                g.id(id);
+                g.setDraggable(true);
+                this.addTransformerToShape(id, g);
             });
             this.makeClickable();
             this.showImage();
@@ -140,9 +150,15 @@ export class CreateAssetComponent implements AfterViewInit {
 
         const image = new window.Image();
         image.onload = () => {
-            const desiredWidth = Math.min(this.mainCanvasStage.width(), image.width);
+            const desiredWidth = Math.min(
+                this.mainCanvasStage.width(),
+                image.width,
+            );
             const aspectRatio = image.width / image.height;
-            const desiredHeight = image.width > image.height ? desiredWidth / aspectRatio : desiredWidth * aspectRatio;
+            const desiredHeight =
+                image.width > image.height
+                    ? desiredWidth / aspectRatio
+                    : desiredWidth * aspectRatio;
             const imageCanvas = new Konva.Image({
                 image,
                 width: desiredWidth,
@@ -150,7 +166,7 @@ export class CreateAssetComponent implements AfterViewInit {
                 x: 0,
                 y: 0,
                 draggable: true,
-                id: this.IMAGE_ID
+                id: this.IMAGE_ID,
             });
 
             this.addImageTransformer(imageCanvas);
@@ -158,11 +174,10 @@ export class CreateAssetComponent implements AfterViewInit {
         };
 
         const reader = new FileReader();
-        reader.onload = e => image.src = reader.result;
+        reader.onload = e => (image.src = reader.result);
 
         reader.readAsDataURL(this.selectedUploadFile);
         event.target.value = null;
-
     }
 
     addImageTransformer(imageCanvas: any) {
@@ -178,17 +193,20 @@ export class CreateAssetComponent implements AfterViewInit {
     }
 
     prepareDashboard() {
-        const dialogRef = this.dialogService.open(SaveDashboardDialogComponent, {
-            panelType: PanelType.SLIDE_IN_PANEL,
-            title: 'Save asset dashboard',
-            width: '50vw',
-            data: {
-                dashboardCanvas: this.mainCanvasStage as any,
-                file: this.selectedUploadFile,
-                editMode: this.editMode,
-                dashboardConfig: this.dashboardConfig
-            }
-        });
+        const dialogRef = this.dialogService.open(
+            SaveDashboardDialogComponent,
+            {
+                panelType: PanelType.SLIDE_IN_PANEL,
+                title: 'Save asset dashboard',
+                width: '50vw',
+                data: {
+                    dashboardCanvas: this.mainCanvasStage as any,
+                    file: this.selectedUploadFile,
+                    editMode: this.editMode,
+                    dashboardConfig: this.dashboardConfig,
+                },
+            },
+        );
         dialogRef.afterClosed().subscribe(closed => {
             this.dashboardClosed.emit(true);
         });
@@ -208,13 +226,13 @@ export class CreateAssetComponent implements AfterViewInit {
             panelType: PanelType.SLIDE_IN_PANEL,
             title: 'Add visualization',
             width: '50vw',
-            data: {
-            }
+            data: {},
         });
 
         dialogRef.afterClosed().subscribe(result => {
             if (result) {
-                const visGroup = this.shapeService.makeNewMeasurementShape(result);
+                const visGroup =
+                    this.shapeService.makeNewMeasurementShape(result);
                 this.addNewVisulizationItem(visGroup);
                 this.measurementPresent = true;
                 this.mainLayer.draw();
@@ -229,8 +247,7 @@ export class CreateAssetComponent implements AfterViewInit {
             panelType: PanelType.SLIDE_IN_PANEL,
             title: 'Add link',
             width: '50vw',
-            data: {
-            }
+            data: {},
         });
 
         dialogRef.afterClosed().subscribe(result => {
@@ -248,7 +265,9 @@ export class CreateAssetComponent implements AfterViewInit {
             const delta = 4;
             if (event.code === 'Delete') {
                 const id = this.currentlySelectedShape.id();
-                this.mainCanvasStage.findOne('#' + id + '-transformer').destroy();
+                this.mainCanvasStage
+                    .findOne('#' + id + '-transformer')
+                    .destroy();
                 this.currentlySelectedShape.destroy();
                 if (id === this.IMAGE_ID) {
                     this.backgroundImagePresent = false;
@@ -259,13 +278,21 @@ export class CreateAssetComponent implements AfterViewInit {
                     }
                 }
             } else if (event.code === 'ArrowLeft') {
-                this.currentlySelectedShape.x(this.currentlySelectedShape.x() - delta);
+                this.currentlySelectedShape.x(
+                    this.currentlySelectedShape.x() - delta,
+                );
             } else if (event.code === 'ArrowRight') {
-                this.currentlySelectedShape.x(this.currentlySelectedShape.x() + delta);
+                this.currentlySelectedShape.x(
+                    this.currentlySelectedShape.x() + delta,
+                );
             } else if (event.code === 'ArrowDown') {
-                this.currentlySelectedShape.y(this.currentlySelectedShape.y() + delta);
+                this.currentlySelectedShape.y(
+                    this.currentlySelectedShape.y() + delta,
+                );
             } else if (event.code === 'ArrowUp') {
-                this.currentlySelectedShape.y(this.currentlySelectedShape.y() - delta);
+                this.currentlySelectedShape.y(
+                    this.currentlySelectedShape.y() - delta,
+                );
             }
             this.backgroundImageLayer.draw();
             this.mainLayer.draw();
@@ -295,16 +322,19 @@ export class CreateAssetComponent implements AfterViewInit {
             borderStroke: 'green',
             borderDash: [3, 3],
             keepRatio: true,
-            id: id + '-transformer'
+            id: id + '-transformer',
         });
     }
 
     makeId() {
         let text = '';
-        const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+        const possible =
+            'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
 
         for (let i = 0; i < 6; i++) {
-            text += possible.charAt(Math.floor(Math.random() * possible.length));
+            text += possible.charAt(
+                Math.floor(Math.random() * possible.length),
+            );
         }
 
         return text;
@@ -312,12 +342,13 @@ export class CreateAssetComponent implements AfterViewInit {
 
     showImage() {
         const image = new window.Image();
-        image.src = this.restService.getImageUrl(this.dashboardConfig.imageInfo.imageName);
+        image.src = this.restService.getImageUrl(
+            this.dashboardConfig.imageInfo.imageName,
+        );
         this.dashboardConfig.imageInfo.image = image;
         image.onload = () => {
             const imageCanvas = new Konva.Image(this.dashboardConfig.imageInfo);
             this.addImageTransformer(imageCanvas);
         };
     }
-
 }
diff --git a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.css b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.css
index 213288b84..45381ca82 100644
--- a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.css
+++ b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.css
@@ -21,6 +21,7 @@
 }
 
 mat-card {
-    box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
+    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
+        0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
     margin: 10px;
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.html b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.html
index 90b70374c..6724e0a4d 100644
--- a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.html
+++ b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.html
@@ -19,30 +19,65 @@
 <div fxFlex="100" fxLayout="column" class="page-container-padding-inner">
     <h1>Asset Dashboards</h1>
     <mat-grid-list
-            [cols]="3" [rowHeight]="500"
-            [gutterSize]="10" fxFlex="100" *ngIf="dashboardConfigs.length > 0">
-
-        <mat-grid-tile class="gray" *ngFor="let dashboardConfig of dashboardConfigs">
-
+        [cols]="3"
+        [rowHeight]="500"
+        [gutterSize]="10"
+        fxFlex="100"
+        *ngIf="dashboardConfigs.length > 0"
+    >
+        <mat-grid-tile
+            class="gray"
+            *ngFor="let dashboardConfig of dashboardConfigs"
+        >
             <mat-card class="example-card">
                 <mat-card-header>
-                    <mat-card-title>  {{dashboardConfig.dashboardName}}</mat-card-title>
-                    <mat-card-subtitle>{{dashboardConfig.dashboardDescription}}</mat-card-subtitle>
+                    <mat-card-title>
+                        {{ dashboardConfig.dashboardName }}</mat-card-title
+                    >
+                    <mat-card-subtitle>{{
+                        dashboardConfig.dashboardDescription
+                    }}</mat-card-subtitle>
                 </mat-card-header>
-                <img mat-card-image [src]="getImageUrl(dashboardConfig)">
+                <img mat-card-image [src]="getImageUrl(dashboardConfig)" />
                 <mat-card-content>
-                    <p>
-                    </p>
+                    <p></p>
                 </mat-card-content>
                 <mat-card-actions>
-                    <button mat-button mat-raised-button color="accent" (click)="openDashboard(dashboardConfig)">Open Dashboard</button>
-                    <button mat-button mat-raised-button class="mat-basic"  (click)="deleteDashboard(dashboardConfig.dashboardId)">Delete</button>
+                    <button
+                        mat-button
+                        mat-raised-button
+                        color="accent"
+                        (click)="openDashboard(dashboardConfig)"
+                    >
+                        Open Dashboard
+                    </button>
+                    <button
+                        mat-button
+                        mat-raised-button
+                        class="mat-basic"
+                        (click)="deleteDashboard(dashboardConfig.dashboardId)"
+                    >
+                        Delete
+                    </button>
                 </mat-card-actions>
             </mat-card>
         </mat-grid-tile>
     </mat-grid-list>
-    <div *ngIf="dashboardConfigs.length == 0" fxLayoutAlign="center center" fxFlex="100" fxLayout="column">
+    <div
+        *ngIf="dashboardConfigs.length === 0"
+        fxLayoutAlign="center center"
+        fxFlex="100"
+        fxLayout="column"
+    >
         <h4>No asset dashboards available</h4>
-        <button mat-button mat-raised-button color="accent" style="margin-top: 10px;" (click)="createDashboard.emit()">Create new</button>
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            style="margin-top: 10px"
+            (click)="createDashboard.emit()"
+        >
+            Create new
+        </button>
     </div>
 </div>
diff --git a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.ts b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.ts
index 65e7a9c20..6671e968a 100644
--- a/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.ts
+++ b/ui/src/app/app-asset-monitoring/components/dashboard-overview/dashboard-overview.component.ts
@@ -23,25 +23,24 @@ import { DashboardConfiguration } from '../../model/dashboard-configuration.mode
 @Component({
     selector: 'sp-asset-dashboard-overview',
     templateUrl: './dashboard-overview.component.html',
-    styleUrls: ['./dashboard-overview.component.css']
+    styleUrls: ['./dashboard-overview.component.css'],
 })
 export class AssetDashboardOverviewComponent implements OnInit {
-
     @Output() selectedDashboard = new EventEmitter<DashboardConfiguration>();
     @Output() createDashboard = new EventEmitter<void>();
 
     dashboardConfigs: DashboardConfiguration[] = [];
 
-    constructor(private restService: RestService) {
-
-    }
+    constructor(private restService: RestService) {}
 
     ngOnInit() {
         this.getDashboards();
     }
 
     getImageUrl(dashboardConfig: DashboardConfiguration) {
-        return this.restService.getImageUrl(dashboardConfig.imageInfo.imageName);
+        return this.restService.getImageUrl(
+            dashboardConfig.imageInfo.imageName,
+        );
     }
 
     getDashboards() {
diff --git a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.css b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.css
index 0fe1fc6a1..39b9d68bb 100644
--- a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.css
+++ b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.css
@@ -17,8 +17,8 @@
  */
 
 .asset-view-canvas {
-    width:1400px;
-    height:900px;
+    width: 1400px;
+    height: 900px;
     border: 2px solid rgb(27, 20, 100);
     margin: 20px auto;
 }
diff --git a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.html b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.html
index df343f24d..e9187a6c3 100644
--- a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.html
+++ b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.html
@@ -19,11 +19,26 @@
 <div fxFlex="100" fxLayout="column" class="page-container-padding-inner">
     <div fxLayout="row">
         <div fxLayout="fill">
-            <h1>{{dashboardConfig.dashboardName}}</h1>
+            <h1>{{ dashboardConfig.dashboardName }}</h1>
         </div>
         <div fxFlex="100" fxLayout="row" fxLayoutAlign="end center">
-            <button mat-button mat-raised-button color="accent" (click)="editDashboard()" class="mr-10">Edit dashboard</button>
-            <button mat-button mat-raised-button class="mat-basic" (click)="closeDashboard()">Close dashboard</button>
+            <button
+                mat-button
+                mat-raised-button
+                color="accent"
+                (click)="editDashboard()"
+                class="mr-10"
+            >
+                Edit dashboard
+            </button>
+            <button
+                mat-button
+                mat-raised-button
+                class="mat-basic"
+                (click)="closeDashboard()"
+            >
+                Close dashboard
+            </button>
         </div>
     </div>
     <div id="container" class="asset-view-canvas"></div>
diff --git a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
index ca435e336..df05a23d7 100644
--- a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
+++ b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
@@ -16,12 +16,24 @@
  *
  */
 
-import { AfterViewInit, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
+import {
+    AfterViewInit,
+    Component,
+    EventEmitter,
+    Input,
+    OnDestroy,
+    Output,
+} from '@angular/core';
 
 import Konva from 'konva';
 import { DashboardConfiguration } from '../../model/dashboard-configuration.model';
 import { RestService } from '../../services/rest.service';
-import { DatalakeQueryParameterBuilder, DatalakeRestService, SpQueryResult, DashboardService } from '@streampipes/platform-services';
+import {
+    DatalakeQueryParameterBuilder,
+    DatalakeRestService,
+    SpQueryResult,
+    DashboardService,
+} from '@streampipes/platform-services';
 import { Subscription, timer } from 'rxjs';
 import { switchMap } from 'rxjs/operators';
 
@@ -34,10 +46,9 @@ declare const window: Window;
 @Component({
     selector: 'sp-view-asset',
     templateUrl: './view-asset.component.html',
-    styleUrls: ['./view-asset.component.css']
+    styleUrls: ['./view-asset.component.css'],
 })
 export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
-
     @Input() dashboardConfig: DashboardConfiguration;
     @Output() dashboardClosed = new EventEmitter<boolean>();
     @Output() editDashboardEmitter = new EventEmitter<DashboardConfiguration>();
@@ -48,17 +59,17 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
 
     subscriptions: Subscription[] = [];
 
-    constructor(private restService: RestService,
-                private dashboardService: DashboardService,
-                private dataLakeRestService: DatalakeRestService) {
-
-    }
-
-    ngOnInit() {
-    }
+    constructor(
+        private restService: RestService,
+        private dashboardService: DashboardService,
+        private dataLakeRestService: DatalakeRestService,
+    ) {}
 
     ngAfterViewInit() {
-        this.mainCanvasStage = Konva.Node.create(this.dashboardConfig, 'container');
+        this.mainCanvasStage = Konva.Node.create(
+            this.dashboardConfig,
+            'container',
+        );
         this.mainCanvasStage.draw();
 
         this.backgroundImageLayer = new Konva.Layer();
@@ -66,9 +77,9 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
         this.mainCanvasStage.add(this.backgroundImageLayer);
         const labels = this.mainCanvasStage.find('Label');
         labels.each(label => {
-           label.on('mouseenter', () => this.onMouseEnter(label));
+            label.on('mouseenter', () => this.onMouseEnter(label));
             label.on('mouseleave', () => this.onMouseLeave(label));
-           label.on('click', () => this.onLinkClicked(label));
+            label.on('click', () => this.onLinkClicked(label));
         });
 
         this.backgroundImageLayer.moveToBottom();
@@ -89,7 +100,9 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
     onLinkClicked(label) {
         const href = label.children[0].attrs.hyperlink;
         const newWindow = label.children[0].attrs.newWindow;
-        newWindow ? (window as any).open(href) : (window as any).location.href = href;
+        newWindow
+            ? (window as any).open(href)
+            : ((window as any).location.href = href);
     }
 
     updateMeasurements() {
@@ -97,18 +110,27 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
         dynamicShapes.forEach(ds => {
             const monitoredField = ds.text();
             const measurement = ds.attrs.dataLakeMeasure;
-            const subscription = timer(0, 2000).pipe(
-              switchMap(() => this.dataLakeRestService.getData(measurement, this.buildQuery())))
-              .subscribe(queryResult => {
-                  this.handleResponse(ds, monitoredField, queryResult);
-              });
+            const subscription = timer(0, 2000)
+                .pipe(
+                    switchMap(() =>
+                        this.dataLakeRestService.getData(
+                            measurement,
+                            this.buildQuery(),
+                        ),
+                    ),
+                )
+                .subscribe(queryResult => {
+                    this.handleResponse(ds, monitoredField, queryResult);
+                });
             this.subscriptions.push(subscription);
         });
     }
 
-    handleResponse(ds: any,
-                   monitoredField: string,
-                   queryResult: SpQueryResult): void {
+    handleResponse(
+        ds: any,
+        monitoredField: string,
+        queryResult: SpQueryResult,
+    ): void {
         if (queryResult.total > 0) {
             if (queryResult.allDataSeries.length === 1) {
                 const series = queryResult.allDataSeries[0];
@@ -132,7 +154,9 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
 
     showImage() {
         const image = new window.Image();
-        image.src = this.restService.getImageUrl(this.dashboardConfig.imageInfo.imageName);
+        image.src = this.restService.getImageUrl(
+            this.dashboardConfig.imageInfo.imageName,
+        );
         this.dashboardConfig.imageInfo.image = image;
         image.onload = () => {
             const imageCanvas = new Konva.Image(this.dashboardConfig.imageInfo);
@@ -152,5 +176,4 @@ export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
     ngOnDestroy(): void {
         this.subscriptions.forEach(s => s.unsubscribe());
     }
-
 }
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.html b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.html
index 0bf9e0a02..b2a3919fb 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.html
+++ b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.html
@@ -23,27 +23,47 @@
             <div class="dialog-margin-bottom" fxLayout="column">
                 <mat-form-field class="dialog-margin-bottom" color="accent">
                     <mat-label>Label</mat-label>
-                    <input matInput placeholder="Label" [(ngModel)]="linkLabel">
-                    <mat-hint>The label that should be displayed as link</mat-hint>
+                    <input
+                        matInput
+                        placeholder="Label"
+                        [(ngModel)]="linkLabel"
+                    />
+                    <mat-hint
+                        >The label that should be displayed as link</mat-hint
+                    >
                 </mat-form-field>
                 <mat-form-field color="accent">
                     <mat-label>Target</mat-label>
-                    <input matInput placeholder="Label" [(ngModel)]="linkHref">
+                    <input
+                        matInput
+                        placeholder="Label"
+                        [(ngModel)]="linkHref"
+                    />
                     <mat-hint>The target URL of the link</mat-hint>
                 </mat-form-field>
                 <mat-form-field color="accent">
                     <mat-label>Font Size</mat-label>
-                    <input matInput placeholder="Label" [(ngModel)]="labelFontSize">
+                    <input
+                        matInput
+                        placeholder="Label"
+                        [(ngModel)]="labelFontSize"
+                    />
                     <mat-hint>Font Size</mat-hint>
                 </mat-form-field>
-                <mat-checkbox [(ngModel)]="newWindow">Open in new window</mat-checkbox>
+                <mat-checkbox [(ngModel)]="newWindow"
+                    >Open in new window</mat-checkbox
+                >
             </div>
-
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button mat-raised-button class="mat-basic mr-10" (click)="cancel()">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic mr-10"
+            (click)="cancel()"
+        >
             Cancel
         </button>
         <button mat-button mat-raised-button color="accent" (click)="add()">
@@ -51,4 +71,3 @@
         </button>
     </div>
 </div>
-
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.scss b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.scss
index 974d8b116..0a5104be4 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.scss
+++ b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.scss
@@ -19,5 +19,5 @@
 @import '../../../../scss/sp/sp-dialog.scss';
 
 .mr-10 {
-  margin-right: 10px;
+    margin-right: 10px;
 }
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
index faa1e44de..f7e6962cb 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
+++ b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
@@ -16,43 +16,40 @@
  *
  */
 
-import { Component, OnInit } from '@angular/core';
+import { Component } from '@angular/core';
 import { DialogRef } from '@streampipes/shared-ui';
 import { ShapeService } from '../../services/shape.service';
 import { HyperlinkConfig } from '../../model/selected-visualization-data.model';
 
 @Component({
-  selector: 'sp-add-link-dialog-component',
-  templateUrl: 'add-link-dialog.component.html',
-  styleUrls: ['./add-link-dialog.component.scss'],
+    selector: 'sp-add-link-dialog-component',
+    templateUrl: 'add-link-dialog.component.html',
+    styleUrls: ['./add-link-dialog.component.scss'],
 })
 export class AddLinkDialogComponent implements OnInit {
-
-  linkLabel: string;
-  linkHref: string;
-  labelFontSize = 12;
-  newWindow = false;
-
-  constructor(private dialogRef: DialogRef<AddLinkDialogComponent>,
-              private shapeService: ShapeService) {}
-
-  ngOnInit(): void {
-  }
-
-  cancel() {
-    this.dialogRef.close();
-  }
-
-  add() {
-    const hyperlinkConfig: HyperlinkConfig = {
-      linkLabel: this.linkLabel,
-      linkHref: this.linkHref,
-      labelFontSize: this.labelFontSize,
-      newWindow: this.newWindow
-    };
-
-    const group = this.shapeService.makeNewHyperlinkGroup(hyperlinkConfig);
-    this.dialogRef.close(group);
-  }
-
+    linkLabel: string;
+    linkHref: string;
+    labelFontSize = 12;
+    newWindow = false;
+
+    constructor(
+        private dialogRef: DialogRef<AddLinkDialogComponent>,
+        private shapeService: ShapeService,
+    ) {}
+
+    cancel() {
+        this.dialogRef.close();
+    }
+
+    add() {
+        const hyperlinkConfig: HyperlinkConfig = {
+            linkLabel: this.linkLabel,
+            linkHref: this.linkHref,
+            labelFontSize: this.labelFontSize,
+            newWindow: this.newWindow,
+        };
+
+        const group = this.shapeService.makeNewHyperlinkGroup(hyperlinkConfig);
+        this.dialogRef.close(group);
+    }
 }
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.html b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.html
index 4df8b4715..2f45683cf 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.html
+++ b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.html
@@ -19,80 +19,138 @@
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
         <div fxFlex="100">
-            <div fxFlex="100" style="margin:5px;width:100%">
-                <div *ngIf="page == 'select-pipeline'">
-                    <div *ngIf="page == 'select-pipeline'">
-                        <h4>{{pages[0].description}}</h4>
+            <div fxFlex="100" style="margin: 5px; width: 100%">
+                <div *ngIf="page === 'select-pipeline'">
+                    <div *ngIf="page === 'select-pipeline'">
+                        <h4>{{ pages[0].description }}</h4>
                         <mat-list>
-                            <mat-list-item *ngFor="let pipeline of visualizablePipelines"
-                                           (click)="selectPipeline(pipeline)" class="list-item">
-                                <div mat-list-avatar
-                                     class="pipeline-avatar sp-accent-bg">{{iconText(pipeline.pipelineName)}}
+                            <mat-list-item
+                                *ngFor="let pipeline of visualizablePipelines"
+                                (click)="selectPipeline(pipeline)"
+                                class="list-item"
+                            >
+                                <div
+                                    mat-list-avatar
+                                    class="pipeline-avatar sp-accent-bg"
+                                >
+                                    {{ iconText(pipeline.pipelineName) }}
                                 </div>
-                                <h4 mat-line>{{pipeline.pipelineName}}</h4>
-                                <p mat-line>{{pipeline.measureName}} </p>
+                                <h4 mat-line>{{ pipeline.pipelineName }}</h4>
+                                <p mat-line>{{ pipeline.measureName }}</p>
                             </mat-list-item>
                         </mat-list>
                     </div>
                 </div>
 
                 <!-- Select Type -->
-                <div *ngIf="page == 'select-measurement'" fxLayout="column">
-                    <h4>{{pages[1].description}}</h4>
+                <div *ngIf="page === 'select-measurement'" fxLayout="column">
+                    <h4>{{ pages[1].description }}</h4>
                     <div fxFlex="100" fxLayout="column">
-                        <mat-radio-group fxLayout="column" class="example-radio-group"
-                                         [(ngModel)]="selectedMeasurement">
-                            <mat-radio-button class="example-radio-button"
-                                              *ngFor="let prop of selectedVisualization.eventSchema.eventProperties"
-                                              [value]="prop.runtimeName">
-                                {{prop.runtimeName}}
+                        <mat-radio-group
+                            fxLayout="column"
+                            class="example-radio-group"
+                            [(ngModel)]="selectedMeasurement"
+                        >
+                            <mat-radio-button
+                                class="example-radio-button"
+                                *ngFor="
+                                    let prop of selectedVisualization
+                                        .eventSchema.eventProperties
+                                "
+                                [value]="prop.runtimeName"
+                            >
+                                {{ prop.runtimeName }}
                             </mat-radio-button>
                         </mat-radio-group>
                     </div>
                 </div>
 
                 <!-- Select Scheme -->
-                <div *ngIf="page == 'select-label'" fxLayout="column">
-                    <b><h4>{{pages[2].description}}</h4></b>
+                <div *ngIf="page === 'select-label'" fxLayout="column">
+                    <b
+                        ><h4>{{ pages[2].description }}</h4></b
+                    >
                     <div fxFlex="100" fxLayout="column">
-                        <mat-form-field style="margin-bottom: 10px;" color="accent">
+                        <mat-form-field
+                            style="margin-bottom: 10px"
+                            color="accent"
+                        >
                             <mat-label>Label</mat-label>
-                            <input matInput placeholder="Label" [(ngModel)]="selectedLabel" value="Label">
-                            <mat-hint>Enter the label that will identify the measurement</mat-hint>
+                            <input
+                                matInput
+                                placeholder="Label"
+                                [(ngModel)]="selectedLabel"
+                                value="Label"
+                            />
+                            <mat-hint
+                                >Enter the label that will identify the
+                                measurement</mat-hint
+                            >
                         </mat-form-field>
                         <div fxLayout="row" class="element-margin">
-                            <mat-label fxFlex="50">Label Background Color</mat-label>
-                            <input [(colorPicker)]="selectedLabelBackgroundColor"
-                                   [style.background]="selectedLabelBackgroundColor"/>
+                            <mat-label fxFlex="50"
+                                >Label Background Color</mat-label
+                            >
+                            <input
+                                [(colorPicker)]="selectedLabelBackgroundColor"
+                                [style.background]="
+                                    selectedLabelBackgroundColor
+                                "
+                            />
                         </div>
                         <div fxLayout="row" class="element-margin">
                             <mat-label fxFlex="50">Label Text Color</mat-label>
-                            <input [(colorPicker)]="selectedLabelTextColor"
-                                   [style.background]="selectedLabelTextColor"/>
+                            <input
+                                [(colorPicker)]="selectedLabelTextColor"
+                                [style.background]="selectedLabelTextColor"
+                            />
                         </div>
                         <div fxLayout="row" class="element-margin">
-                            <mat-label fxFlex="50">Measurement Value Background Color</mat-label>
-                            <input [(colorPicker)]="selectedMeasurementBackgroundColor"
-                                   [style.background]="selectedMeasurementBackgroundColor"/>
+                            <mat-label fxFlex="50"
+                                >Measurement Value Background Color</mat-label
+                            >
+                            <input
+                                [(colorPicker)]="
+                                    selectedMeasurementBackgroundColor
+                                "
+                                [style.background]="
+                                    selectedMeasurementBackgroundColor
+                                "
+                            />
                         </div>
                         <div fxLayout="row" class="element-margin">
-                            <mat-label fxFlex="50">Measurement Value Text Color</mat-label>
-                            <input [(colorPicker)]="selectedMeasurementTextColor"
-                                   [style.background]="selectedMeasurementTextColor"/>
+                            <mat-label fxFlex="50"
+                                >Measurement Value Text Color</mat-label
+                            >
+                            <input
+                                [(colorPicker)]="selectedMeasurementTextColor"
+                                [style.background]="
+                                    selectedMeasurementTextColor
+                                "
+                            />
                         </div>
                     </div>
-
                 </div>
-
             </div>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button mat-raised-button class="mat-basic mr-10" (click)="onCancel()">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic mr-10"
+            (click)="onCancel()"
+        >
             Cancel
         </button>
-        <button mat-button mat-raised-button class="mat-basic mr-10" (click)="back()" *ngIf="!('select-pipeline'===page)">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic mr-10"
+            (click)="back()"
+            *ngIf="!('select-pipeline' === page)"
+        >
             Back
         </button>
         <button mat-button mat-raised-button color="accent" (click)="next()">
@@ -100,6 +158,3 @@
         </button>
     </div>
 </div>
-
-
-
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.scss b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.scss
index 28f082913..cdf80f50a 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.scss
+++ b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.scss
@@ -19,8 +19,8 @@
 @import '../../../../scss/sp/sp-dialog.scss';
 
 .element-margin {
-    margin-top:10px;
-    margin-bottom:10px;
+    margin-top: 10px;
+    margin-bottom: 10px;
 }
 
 .mat-radio-button {
@@ -35,7 +35,7 @@
     align-items: center;
     justify-content: center;
     display: flex;
-    color:white;
+    color: white;
 }
 
 .list-item:hover {
@@ -44,7 +44,7 @@
 }
 
 .list-item {
-    border-bottom: 1px solid #BDBDBD;
+    border-bottom: 1px solid #bdbdbd;
 }
 
 .mr-10 {
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
index dd0855ddd..a1508555e 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
+++ b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
@@ -22,29 +22,36 @@ import { RestService } from '../../services/rest.service';
 import { ElementIconText } from '../../../services/get-element-icon-text.service';
 import { SelectedVisualizationData } from '../../model/selected-visualization-data.model';
 import { DialogRef } from '@streampipes/shared-ui';
-import { DataLakeMeasure, DatalakeRestService, DataViewDataExplorerService } from '@streampipes/platform-services';
+import {
+    DataLakeMeasure,
+    DatalakeRestService,
+    DataViewDataExplorerService,
+} from '@streampipes/platform-services';
 import { zip } from 'rxjs';
 
 @Component({
     selector: 'sp-add-pipeline-dialog-component',
     templateUrl: './add-pipeline-dialog.component.html',
-    styleUrls: ['./add-pipeline-dialog.component.scss']
+    styleUrls: ['./add-pipeline-dialog.component.scss'],
 })
 export class AddPipelineDialogComponent implements OnInit {
-
-    pages = [{
-        type: 'select-pipeline',
-        title: 'Select Pipeline',
-        description: 'Select a pipeline you\'d like to visualize'
-    }, {
-        type: 'select-measurement',
-        title: 'Measurement Value',
-        description: 'Select measurement'
-    }, {
-        type: 'select-label',
-        title: 'Label',
-        description: 'Choose label'
-    }];
+    pages = [
+        {
+            type: 'select-pipeline',
+            title: 'Select Pipeline',
+            description: "Select a pipeline you'd like to visualize",
+        },
+        {
+            type: 'select-measurement',
+            title: 'Measurement Value',
+            description: 'Select measurement',
+        },
+        {
+            type: 'select-label',
+            title: 'Label',
+            description: 'Choose label',
+        },
+    ];
 
     visualizablePipelines: DataLakeMeasure[] = [];
 
@@ -59,32 +66,33 @@ export class AddPipelineDialogComponent implements OnInit {
     selectedMeasurementTextColor = '#FFFFFF';
     selectedLabel: string;
 
-
     constructor(
         private dialogRef: DialogRef<AddPipelineDialogComponent>,
         private restApi: RestApi,
         private restService: RestService,
         private dataLakeRestService: DatalakeRestService,
         private dataExplorerService: DataViewDataExplorerService,
-        public elementIconText: ElementIconText) {
-    }
+        public elementIconText: ElementIconText,
+    ) {}
 
     ngOnInit() {
         this.loadVisualizablePipelines();
     }
 
     loadVisualizablePipelines() {
-        zip(this.dataExplorerService.getAllPersistedDataStreams(), this.dataLakeRestService.getAllMeasurementSeries())
-          .subscribe(res => {
-              const visualizablePipelines = res[0];
-              visualizablePipelines.forEach(p => {
-                  const measurement = res[1].find(m => {
-                      return m.measureName === p.measureName;
-                  });
-                  p.eventSchema = measurement.eventSchema;
-              });
-              this.visualizablePipelines = visualizablePipelines;
-          });
+        zip(
+            this.dataExplorerService.getAllPersistedDataStreams(),
+            this.dataLakeRestService.getAllMeasurementSeries(),
+        ).subscribe(res => {
+            const visualizablePipelines = res[0];
+            visualizablePipelines.forEach(p => {
+                const measurement = res[1].find(m => {
+                    return m.measureName === p.measureName;
+                });
+                p.eventSchema = measurement.eventSchema;
+            });
+            this.visualizablePipelines = visualizablePipelines;
+        });
     }
 
     onCancel(): void {
@@ -108,7 +116,8 @@ export class AddPipelineDialogComponent implements OnInit {
     }
 
     getTabCss(page) {
-        if (page === this.page) { return 'md-fab md-accent';
+        if (page === this.page) {
+            return 'md-fab md-accent';
         } else {
             return 'md-fab md-accent wizard-inactive';
         }
@@ -117,7 +126,6 @@ export class AddPipelineDialogComponent implements OnInit {
     selectPipeline(vis) {
         this.selectedVisualization = vis;
         this.next();
-
     }
 
     next() {
@@ -126,16 +134,21 @@ export class AddPipelineDialogComponent implements OnInit {
         } else if (this.page === 'select-measurement') {
             this.page = 'select-label';
         } else {
-
-            const selectedConfig: SelectedVisualizationData = {} as SelectedVisualizationData;
-            selectedConfig.labelBackgroundColor = this.selectedLabelBackgroundColor;
+            const selectedConfig: SelectedVisualizationData =
+                {} as SelectedVisualizationData;
+            selectedConfig.labelBackgroundColor =
+                this.selectedLabelBackgroundColor;
             selectedConfig.labelTextColor = this.selectedLabelTextColor;
-            selectedConfig.measurementBackgroundColor = this.selectedMeasurementBackgroundColor;
-            selectedConfig.measurementTextColor = this.selectedMeasurementTextColor;
+            selectedConfig.measurementBackgroundColor =
+                this.selectedMeasurementBackgroundColor;
+            selectedConfig.measurementTextColor =
+                this.selectedMeasurementTextColor;
             selectedConfig.measurement = this.selectedMeasurement;
-            selectedConfig.visualizationId = this.selectedVisualization.pipelineId;
+            selectedConfig.visualizationId =
+                this.selectedVisualization.pipelineId;
             selectedConfig.label = this.selectedLabel;
-            selectedConfig.dataLakeMeasure = this.selectedVisualization.measureName;
+            selectedConfig.dataLakeMeasure =
+                this.selectedVisualization.measureName;
 
             this.dialogRef.close(selectedConfig);
         }
@@ -152,5 +165,4 @@ export class AddPipelineDialogComponent implements OnInit {
     iconText(s) {
         return this.elementIconText.getElementIconText(s);
     }
-
 }
diff --git a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.html b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.html
index df0f27474..93d818300 100644
--- a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.html
+++ b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.html
@@ -23,32 +23,39 @@
             <div class="dialog-margin-bottom" fxLayout="column">
                 <mat-form-field class="dialog-margin-bottom" color="accent">
                     <mat-label>Dashboard Name</mat-label>
-                    <input matInput placeholder="Label" [(ngModel)]="dashboardName">
+                    <input
+                        matInput
+                        placeholder="Label"
+                        [(ngModel)]="dashboardName"
+                    />
                     <mat-hint>The name of your new asset dashboard</mat-hint>
                 </mat-form-field>
                 <mat-form-field color="accent">
                     <mat-label>Description</mat-label>
-                    <input matInput placeholder="Label" [(ngModel)]="dashboardDescription">
-                    <mat-hint>The description of your new asset dashboard</mat-hint>
+                    <input
+                        matInput
+                        placeholder="Label"
+                        [(ngModel)]="dashboardDescription"
+                    />
+                    <mat-hint
+                        >The description of your new asset dashboard</mat-hint
+                    >
                 </mat-form-field>
             </div>
-
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button
-                mat-raised-button
-                class="mat-basic mr-10"
-                (click)="cancel()">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic mr-10"
+            (click)="cancel()"
+        >
             Cancel
         </button>
-        <button mat-button
-                mat-raised-button
-                color="accent"
-                (click)="save()">
+        <button mat-button mat-raised-button color="accent" (click)="save()">
             Save
         </button>
     </div>
 </div>
-
diff --git a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.scss b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.scss
index a2306be5d..da2aed864 100644
--- a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.scss
+++ b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.scss
@@ -19,8 +19,8 @@
 @import '../../../../scss/sp/sp-dialog.scss';
 
 .element-margin {
-    margin-top:10px;
-    margin-bottom:10px;
+    margin-top: 10px;
+    margin-bottom: 10px;
 }
 
 .mr-10 {
diff --git a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.ts b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.ts
index e8323ca5b..0a4a2cbf1 100644
--- a/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.ts
+++ b/ui/src/app/app-asset-monitoring/dialog/save-dashboard/save-dashboard-dialog.component.ts
@@ -30,7 +30,6 @@ import Stage = Konva.Stage;
     styleUrls: ['./save-dashboard-dialog.component.scss'],
 })
 export class SaveDashboardDialogComponent implements OnInit {
-
     dashboardName: string;
     dashboardDescription: string;
 
@@ -48,13 +47,14 @@ export class SaveDashboardDialogComponent implements OnInit {
 
     constructor(
         private dialogRef: DialogRef<SaveDashboardDialogComponent>,
-        private restService: RestService) {
-    }
+        private restService: RestService,
+    ) {}
 
     ngOnInit() {
         if (this.editMode) {
             this.dashboardName = this.dashboardConfig.dashboardName;
-            this.dashboardDescription = this.dashboardConfig.dashboardDescription;
+            this.dashboardDescription =
+                this.dashboardConfig.dashboardDescription;
         }
     }
 
@@ -65,8 +65,7 @@ export class SaveDashboardDialogComponent implements OnInit {
     save() {
         // save image
         if (this.file) {
-            this.restService.storeImage(this.file).subscribe(response => {
-            });
+            this.restService.storeImage(this.file).subscribe(response => {});
         }
 
         // save dashboard
@@ -84,9 +83,9 @@ export class SaveDashboardDialogComponent implements OnInit {
             dashboardConfig.dashboardId = this.dashboardConfig.dashboardId;
         }
 
-        const observable = this.editMode ?
-            this.restService.updateDashboard(dashboardConfig) :
-            this.restService.storeDashboard(dashboardConfig);
+        const observable = this.editMode
+            ? this.restService.updateDashboard(dashboardConfig)
+            : this.restService.storeDashboard(dashboardConfig);
         observable.subscribe(response => {
             this.dialogRef.close();
         });
diff --git a/ui/src/app/app-asset-monitoring/model/canvas-attributes.model.ts b/ui/src/app/app-asset-monitoring/model/canvas-attributes.model.ts
index 5c0d91496..e65920f76 100644
--- a/ui/src/app/app-asset-monitoring/model/canvas-attributes.model.ts
+++ b/ui/src/app/app-asset-monitoring/model/canvas-attributes.model.ts
@@ -33,5 +33,4 @@ export interface CanvasAttributes {
     name: string;
     align: string;
     fontSize: string;
-
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/model/canvas-configuration.model.ts b/ui/src/app/app-asset-monitoring/model/canvas-configuration.model.ts
index 0565ffc92..30ee9ebdc 100644
--- a/ui/src/app/app-asset-monitoring/model/canvas-configuration.model.ts
+++ b/ui/src/app/app-asset-monitoring/model/canvas-configuration.model.ts
@@ -16,9 +16,9 @@
  *
  */
 
-import Konva from "konva";
+import Konva from 'konva';
 
 export interface CanvasConfiguration {
     file: File;
     dashboardCanvas: Konva.Stage;
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/model/canvas-element.model.ts b/ui/src/app/app-asset-monitoring/model/canvas-element.model.ts
index a266c2895..9bba980de 100644
--- a/ui/src/app/app-asset-monitoring/model/canvas-element.model.ts
+++ b/ui/src/app/app-asset-monitoring/model/canvas-element.model.ts
@@ -16,10 +16,10 @@
  *
  */
 
-import {CanvasAttributes} from "./canvas-attributes.model";
+import { CanvasAttributes } from './canvas-attributes.model';
 
 export interface CanvasElement {
     attrs: CanvasAttributes;
     className: string;
     children: CanvasElement[];
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/model/dashboard-configuration.model.ts b/ui/src/app/app-asset-monitoring/model/dashboard-configuration.model.ts
index 1db405848..6ab768c5d 100644
--- a/ui/src/app/app-asset-monitoring/model/dashboard-configuration.model.ts
+++ b/ui/src/app/app-asset-monitoring/model/dashboard-configuration.model.ts
@@ -28,5 +28,4 @@ export interface DashboardConfiguration {
     attrs: CanvasAttributes;
     className: string;
     children: CanvasElement[];
-
 }
diff --git a/ui/src/app/app-asset-monitoring/model/test-data.json b/ui/src/app/app-asset-monitoring/model/test-data.json
index 3fcf5ce2f..4c2d5ed6d 100644
--- a/ui/src/app/app-asset-monitoring/model/test-data.json
+++ b/ui/src/app/app-asset-monitoring/model/test-data.json
@@ -23,10 +23,7 @@
             "anchorFill": "yellow",
             "anchorSize": 20,
             "borderStroke": "green",
-            "borderDash": [
-              3,
-              3
-            ]
+            "borderDash": [3, 3]
           },
           "className": "Transformer"
         }
@@ -119,14 +116,11 @@
             "anchorStroke": "red",
             "anchorFill": "yellow",
             "borderStroke": "green",
-            "borderDash": [
-              3,
-              3
-            ]
+            "borderDash": [3, 3]
           },
           "className": "Transformer"
         }
       ]
     }
   ]
-}
\ No newline at end of file
+}
diff --git a/ui/src/app/app-asset-monitoring/services/rest.service.ts b/ui/src/app/app-asset-monitoring/services/rest.service.ts
index f33c91083..16c09fbfc 100644
--- a/ui/src/app/app-asset-monitoring/services/rest.service.ts
+++ b/ui/src/app/app-asset-monitoring/services/rest.service.ts
@@ -25,56 +25,63 @@ import { PlatformServicesCommons } from '@streampipes/platform-services';
 
 @Injectable()
 export class RestService {
+    constructor(
+        private http: HttpClient,
+        private platformServicesCommons: PlatformServicesCommons,
+    ) {}
 
-  constructor(private http: HttpClient,
-              private platformServicesCommons: PlatformServicesCommons) {
-  }
+    getVisualizablePipelines(): Observable<any> {
+        return this.http.get(
+            '/visualizablepipeline/_all_docs?include_docs=true',
+        );
+    }
 
-  getVisualizablePipelines(): Observable<any> {
-    return this.http.get('/visualizablepipeline/_all_docs?include_docs=true');
-  }
+    getPipeline(pipelineId): Observable<any> {
+        return this.http.get('/pipeline/' + pipelineId);
+    }
 
-  getPipeline(pipelineId): Observable<any> {
-    return this.http.get('/pipeline/' + pipelineId);
-  }
+    storeImage(file: File): Observable<any> {
+        const data: FormData = new FormData();
+        data.append('file_upload', file, file.name);
+        return this.http.post(this.imagePath, data).pipe(
+            map(res => {
+                return res;
+            }),
+        );
+    }
 
-  storeImage(file: File): Observable<any> {
-    const data: FormData = new FormData();
-    data.append('file_upload', file, file.name);
-    return this.http.post(this.imagePath, data)
-        .pipe(map(res => {
-          return res;
-        }));
-  }
+    deleteDashboard(dashboardId: string) {
+        return this.http.delete(`${this.url}/${dashboardId}`);
+    }
 
-  deleteDashboard(dashboardId: string) {
-    return this.http.delete(`${this.url}/${dashboardId}`);
-  }
+    storeDashboard(dashboardConfig: DashboardConfiguration) {
+        return this.http.post(this.url, dashboardConfig);
+    }
 
-  storeDashboard(dashboardConfig: DashboardConfiguration) {
-    return this.http.post(this.url, dashboardConfig);
-  }
+    updateDashboard(dashboardConfig: DashboardConfiguration) {
+        return this.http.put(
+            this.url + '/' + dashboardConfig.dashboardId,
+            dashboardConfig,
+        );
+    }
 
-  updateDashboard(dashboardConfig: DashboardConfiguration) {
-    return this.http.put(this.url + '/' + dashboardConfig.dashboardId, dashboardConfig);
-  }
+    getDashboards(): Observable<DashboardConfiguration[]> {
+        return this.http.get(this.url).pipe(
+            map(response => {
+                return response as DashboardConfiguration[];
+            }),
+        );
+    }
 
-  getDashboards(): Observable<DashboardConfiguration[]> {
-    return this.http.get(this.url).pipe(map(response => {
-      return response as DashboardConfiguration[];
-    }));
-  }
+    getImageUrl(imageName: string): string {
+        return `${this.imagePath}/${imageName}`;
+    }
 
-  getImageUrl(imageName: string): string {
-    return `${this.imagePath}/${imageName}`;
-  }
-
-  private get url() {
-    return `${this.platformServicesCommons.apiBasePath}/asset-dashboards`;
-  }
-
-  private get imagePath() {
-    return `${this.url}/images`;
-  }
+    private get url() {
+        return `${this.platformServicesCommons.apiBasePath}/asset-dashboards`;
+    }
 
+    private get imagePath() {
+        return `${this.url}/images`;
+    }
 }
diff --git a/ui/src/app/app-asset-monitoring/services/shape.service.ts b/ui/src/app/app-asset-monitoring/services/shape.service.ts
index 01c2c16c9..410cf99b7 100644
--- a/ui/src/app/app-asset-monitoring/services/shape.service.ts
+++ b/ui/src/app/app-asset-monitoring/services/shape.service.ts
@@ -18,19 +18,15 @@
 
 import { Injectable } from '@angular/core';
 
-
 import Konva from 'konva';
 import {
     HyperlinkConfig,
-    SelectedVisualizationData
+    SelectedVisualizationData,
 } from '../model/selected-visualization-data.model';
 
 @Injectable()
 export class ShapeService {
-
-    constructor() {
-
-    }
+    constructor() {}
 
     makeNewHyperlinkGroup(hyperlinkConfig: HyperlinkConfig) {
         const group = this.makeGroup(true);
@@ -56,12 +52,14 @@ export class ShapeService {
             newWindow: hyperlinkConfig.newWindow,
             textDecoration: 'underline',
             fill: '#62e497',
-            fontSize: hyperlinkConfig.labelFontSize
+            fontSize: hyperlinkConfig.labelFontSize,
         };
         return new Konva.Text(settings);
     }
 
-    makeNewMeasurementShape(visualizationConfig: SelectedVisualizationData): Konva.Group {
+    makeNewMeasurementShape(
+        visualizationConfig: SelectedVisualizationData,
+    ): Konva.Group {
         const visualizationGroup = this.makeGroup(true);
         visualizationGroup.add(this.makeLabelGroup(visualizationConfig));
         visualizationGroup.add(this.makeMeasurementGroup(visualizationConfig));
@@ -70,15 +68,41 @@ export class ShapeService {
 
     makeLabelGroup(config: SelectedVisualizationData): Konva.Group {
         const labelGroup = this.makeGroup(false);
-        labelGroup.add(this.makeRect(config.labelBackgroundColor, 120, 40, 140, 20));
-        labelGroup.add(this.makeText(config, config.label, config.labelTextColor, 120, 45, 140, 20, false));
+        labelGroup.add(
+            this.makeRect(config.labelBackgroundColor, 120, 40, 140, 20),
+        );
+        labelGroup.add(
+            this.makeText(
+                config,
+                config.label,
+                config.labelTextColor,
+                120,
+                45,
+                140,
+                20,
+                false,
+            ),
+        );
         return labelGroup;
     }
 
     makeMeasurementGroup(config: SelectedVisualizationData): Konva.Group {
         const measurementGroup = this.makeGroup(false);
-        measurementGroup.add(this.makeRect(config.measurementBackgroundColor, 120, 60, 140, 40));
-        measurementGroup.add(this.makeText(config, config.measurement, config.measurementTextColor, 120, 65, 140, 40, true));
+        measurementGroup.add(
+            this.makeRect(config.measurementBackgroundColor, 120, 60, 140, 40),
+        );
+        measurementGroup.add(
+            this.makeText(
+                config,
+                config.measurement,
+                config.measurementTextColor,
+                120,
+                65,
+                140,
+                40,
+                true,
+            ),
+        );
         return measurementGroup;
     }
 
@@ -86,15 +110,17 @@ export class ShapeService {
         return new Konva.Group({
             x: 120,
             y: 40,
-            draggable
+            draggable,
         });
     }
 
-    makeRect(fillColor: string,
-             x: number,
-             y: number,
-             width: number,
-             height: number): Konva.Rect {
+    makeRect(
+        fillColor: string,
+        x: number,
+        y: number,
+        width: number,
+        height: number,
+    ): Konva.Rect {
         return new Konva.Rect({
             x,
             y,
@@ -104,14 +130,16 @@ export class ShapeService {
         });
     }
 
-    makeText(config: SelectedVisualizationData,
-             text: string,
-             textColor: string,
-             x: number,
-             y: number,
-             width: number | string,
-             height: number | string,
-             dynamicContent: boolean): Konva.Text {
+    makeText(
+        config: SelectedVisualizationData,
+        text: string,
+        textColor: string,
+        x: number,
+        y: number,
+        width: number | string,
+        height: number | string,
+        dynamicContent: boolean,
+    ): Konva.Text {
         const textSettings: any = {
             text,
             x,
@@ -120,7 +148,7 @@ export class ShapeService {
             height,
             fill: textColor,
             align: 'center',
-            fontSize: '15'
+            fontSize: '15',
         };
 
         if (dynamicContent) {


[streampipes] 02/06: add linting to apidocs module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 561583842af41e913fa49c7a0e1e59b405e7183f
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:28:54 2023 +0100

    add linting to apidocs module (#877)
---
 ui/.eslintignore                        |  1 -
 ui/.prettierignore                      |  1 -
 ui/src/app/apidocs/apidocs.component.ts | 31 ++++++++++++-------------------
 ui/src/app/apidocs/apidocs.module.ts    | 13 +++----------
 4 files changed, 15 insertions(+), 31 deletions(-)

diff --git a/ui/.eslintignore b/ui/.eslintignore
index 4f9c372fb..4d01bd8dc 100644
--- a/ui/.eslintignore
+++ b/ui/.eslintignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/apidocs
 src/app/app-asset-monitoring
 src/app/app-overview
 src/app/assets
diff --git a/ui/.prettierignore b/ui/.prettierignore
index e9b467842..3335f04e0 100644
--- a/ui/.prettierignore
+++ b/ui/.prettierignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/apidocs
 src/app/app-asset-monitoring
 src/app/app-overview
 src/app/assets
diff --git a/ui/src/app/apidocs/apidocs.component.ts b/ui/src/app/apidocs/apidocs.component.ts
index e3f94e5ff..f6a0a8074 100644
--- a/ui/src/app/apidocs/apidocs.component.ts
+++ b/ui/src/app/apidocs/apidocs.component.ts
@@ -19,27 +19,20 @@
 import { Component, ElementRef, OnInit } from '@angular/core';
 import SwaggerUI from 'swagger-ui';
 
-
 @Component({
-  selector: 'sp-apidocs',
-  templateUrl: './apidocs.component.html',
-  styleUrls: ['./apidocs.component.scss']
+    selector: 'sp-apidocs',
+    templateUrl: './apidocs.component.html',
+    styleUrls: ['./apidocs.component.scss'],
 })
 export class ApidocsComponent implements OnInit {
+    constructor(private el: ElementRef) {}
 
-  constructor(private el: ElementRef) {
-
-  }
-
-  ngOnInit(): void {
-    SwaggerUI({
-      url: '/streampipes-backend/api/openapi.json',
-      domNode: this.el.nativeElement.querySelector('.swagger-ui'),
-      deepLinking: false,
-      presets: [
-        SwaggerUI.presets.apis
-      ],
-    });
-  }
-
+    ngOnInit(): void {
+        SwaggerUI({
+            url: '/streampipes-backend/api/openapi.json',
+            domNode: this.el.nativeElement.querySelector('.swagger-ui'),
+            deepLinking: false,
+            presets: [SwaggerUI.presets.apis],
+        });
+    }
 }
diff --git a/ui/src/app/apidocs/apidocs.module.ts b/ui/src/app/apidocs/apidocs.module.ts
index 15dafa986..cc44fd6ad 100644
--- a/ui/src/app/apidocs/apidocs.module.ts
+++ b/ui/src/app/apidocs/apidocs.module.ts
@@ -30,17 +30,10 @@ import { ApidocsComponent } from './apidocs.component';
         CoreUiModule,
         CustomMaterialModule,
     ],
-    declarations: [
-        ApidocsComponent
-    ],
+    declarations: [ApidocsComponent],
     providers: [],
-    exports: [
-        ApidocsComponent
-    ]
+    exports: [ApidocsComponent],
 })
 export class ApidocsModule {
-
-  constructor() {
-  }
-
+    constructor() {}
 }


[streampipes] 05/06: add linting to assets module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit e4a659443d09f435157f0ff32fd6025f7163841f
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:39:26 2023 +0100

    add linting to assets module (#877)
---
 ui/.eslintignore                                   |   1 -
 ui/.prettierignore                                 |   1 -
 ui/src/app/app-overview/app-overview.component.css |   7 +-
 .../app/app-overview/app-overview.component.html   |  23 +-
 ui/src/app/app-overview/app-overview.component.ts  |  17 +-
 ui/src/app/app-overview/app-overview.module.ts     |  58 ++--
 ui/src/app/app-overview/apps.model.ts              |  10 +-
 ui/src/app/app-overview/apps.routes.ts             |  10 +-
 ui/src/app/assets/assets.module.ts                 | 104 +++---
 ui/src/app/assets/assets.routes.ts                 |  14 +-
 .../asset-details-panel.component.html             |  76 ++++-
 .../asset-details-panel.component.scss             |   8 +-
 .../asset-details-panel.component.ts               | 193 ++++++-----
 .../asset-link-item/asset-link-item.component.html |  45 ++-
 .../asset-link-item/asset-link-item.component.scss |  22 +-
 .../asset-link-item/asset-link-item.component.ts   |  95 +++---
 .../asset-details/asset-details.component.html     |  67 ++--
 .../asset-details/asset-details.component.scss     |  12 +-
 .../asset-details/asset-details.component.ts       | 120 ++++---
 .../asset-selection-panel.component.html           | 124 +++++--
 .../asset-selection-panel.component.scss           |  46 +--
 .../asset-selection-panel.component.ts             | 139 ++++----
 .../asset-overview/asset-overview.component.html   | 239 +++++++++----
 .../asset-overview/asset-overview.component.scss   |   2 +-
 .../asset-overview/asset-overview.component.ts     | 198 ++++++-----
 ui/src/app/assets/constants/asset.constants.ts     |   5 +-
 .../asset-upload-dialog.component.html             |  94 ++++--
 .../asset-upload-dialog.component.scss             |   2 +-
 .../asset-upload/asset-upload-dialog.component.ts  |  79 +++--
 .../assets/dialog/base-asset-links.directive.ts    | 156 +++++----
 .../create-asset-dialog.component.html             |  39 ++-
 .../create-asset/create-asset-dialog.component.ts  |  63 ++--
 .../edit-asset-link-dialog.component.html          | 260 +++++++++++----
 .../edit-asset-link-dialog.component.scss          |  10 +-
 .../edit-asset-link-dialog.component.ts            | 203 ++++++------
 .../manage-asset-links-dialog.component.html       | 368 ++++++++++++++++-----
 .../manage-asset-links-dialog.component.scss       |  12 +-
 .../manage-asset-links-dialog.component.ts         | 259 ++++++++-------
 38 files changed, 1983 insertions(+), 1198 deletions(-)

diff --git a/ui/.eslintignore b/ui/.eslintignore
index 7b1be800c..047036a35 100644
--- a/ui/.eslintignore
+++ b/ui/.eslintignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/assets
 src/app/configuration
 src/app/connect
 src/app/core
diff --git a/ui/.prettierignore b/ui/.prettierignore
index 817ef6310..6cf9c8ddb 100644
--- a/ui/.prettierignore
+++ b/ui/.prettierignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/assets
 src/app/configuration
 src/app/connect
 src/app/core
diff --git a/ui/src/app/app-overview/app-overview.component.css b/ui/src/app/app-overview/app-overview.component.css
index f64dded72..f40ce4dac 100644
--- a/ui/src/app/app-overview/app-overview.component.css
+++ b/ui/src/app/app-overview/app-overview.component.css
@@ -16,8 +16,11 @@
  *
  */
 
-mat-card { box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
-    margin: 10px;}
+mat-card {
+    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
+        0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
+    margin: 10px;
+}
 
 .page-container-padding-inner {
     margin: 10px;
diff --git a/ui/src/app/app-overview/app-overview.component.html b/ui/src/app/app-overview/app-overview.component.html
index 40ad6e2ae..9a72fb191 100644
--- a/ui/src/app/app-overview/app-overview.component.html
+++ b/ui/src/app/app-overview/app-overview.component.html
@@ -17,23 +17,30 @@
   -->
 
 <sp-basic-view padding="true">
-    <ng-container nav>
-
-    </ng-container>
-
+    <ng-container nav> </ng-container>
 
     <div fxFlex="100" fxLayout="column">
-        <sp-basic-header-title-component title="My apps"></sp-basic-header-title-component>
+        <sp-basic-header-title-component
+            title="My apps"
+        ></sp-basic-header-title-component>
         <mat-card class="example-card" *ngFor="let app of apps">
             <div fxFlex="100" fxLayout="row">
                 <div fxFlex="75" fxLayout="column" fxLayoutAlign="center start">
                     <mat-card-header>
-                        <mat-card-title> {{app.appName}}</mat-card-title>
-                        <mat-card-subtitle>{{app.appDescription}}</mat-card-subtitle>
+                        <mat-card-title> {{ app.appName }}</mat-card-title>
+                        <mat-card-subtitle>{{
+                            app.appDescription
+                        }}</mat-card-subtitle>
                     </mat-card-header>
                 </div>
                 <div fxFlex="25" fxLayoutAlign="center end" fxLayout="column">
-                    <button mat-button mat-raised-button color="accent" (click)="selectApp(app.appLink)">Open App
+                    <button
+                        mat-button
+                        mat-raised-button
+                        color="accent"
+                        (click)="selectApp(app.appLink)"
+                    >
+                        Open App
                     </button>
                 </div>
             </div>
diff --git a/ui/src/app/app-overview/app-overview.component.ts b/ui/src/app/app-overview/app-overview.component.ts
index 8c0aaa646..609cc3640 100644
--- a/ui/src/app/app-overview/app-overview.component.ts
+++ b/ui/src/app/app-overview/app-overview.component.ts
@@ -25,25 +25,24 @@ import { SpAppRoutes } from './apps.routes';
 
 @Component({
     templateUrl: './app-overview.component.html',
-    styleUrls: ['./app-overview.component.css']
+    styleUrls: ['./app-overview.component.css'],
 })
 export class AppOverviewComponent implements OnInit {
-
     apps: App[] = [];
 
-    constructor(private router: Router,
-                private breadcrumbService: SpBreadcrumbService) {
-
-    }
+    constructor(
+        private router: Router,
+        private breadcrumbService: SpBreadcrumbService,
+    ) {}
 
     ngOnInit() {
-        this.breadcrumbService.updateBreadcrumb(this.breadcrumbService.getRootLink(SpAppRoutes.BASE));
+        this.breadcrumbService.updateBreadcrumb(
+            this.breadcrumbService.getRootLink(SpAppRoutes.BASE),
+        );
         this.apps = AvailableAppsService.apps;
     }
 
     selectApp(appLink: string) {
         this.router.navigate(['apps', appLink]);
     }
-
-
 }
diff --git a/ui/src/app/app-overview/app-overview.module.ts b/ui/src/app/app-overview/app-overview.module.ts
index d924dfd7c..c09519f04 100644
--- a/ui/src/app/app-overview/app-overview.module.ts
+++ b/ui/src/app/app-overview/app-overview.module.ts
@@ -33,33 +33,33 @@ import { PageName } from '../_enums/page-name.enum';
 import { SharedUiModule } from '@streampipes/shared-ui';
 
 @NgModule({
-  imports: [
-    AppAssetMonitoringModule,
-    CommonModule,
-    CustomMaterialModule,
-    FlexLayoutModule,
-    FormsModule,
-    MatGridListModule,
-    MatInputModule,
-    MatFormFieldModule,
-    SharedUiModule,
-    RouterModule.forChild([
-      {
-        path: 'apps',
-        children: [{'path': '', component: AppOverviewComponent}, ...AvailableAppsService.apps.map(app => {
-          return {
-            path: app.appLink,
-            data: {authPageNames: [PageName.APPS]},
-            loadChildren: app.appModuleLink
-          };
-        }) as any]
-      }
-    ])
-  ],
-  declarations: [
-    AppOverviewComponent,
-  ],
-  providers: []
+    imports: [
+        AppAssetMonitoringModule,
+        CommonModule,
+        CustomMaterialModule,
+        FlexLayoutModule,
+        FormsModule,
+        MatGridListModule,
+        MatInputModule,
+        MatFormFieldModule,
+        SharedUiModule,
+        RouterModule.forChild([
+            {
+                path: 'apps',
+                children: [
+                    { path: '', component: AppOverviewComponent },
+                    ...(AvailableAppsService.apps.map(app => {
+                        return {
+                            path: app.appLink,
+                            data: { authPageNames: [PageName.APPS] },
+                            loadChildren: app.appModuleLink,
+                        };
+                    }) as any),
+                ],
+            },
+        ]),
+    ],
+    declarations: [AppOverviewComponent],
+    providers: [],
 })
-export class AppOverviewModule {
-}
+export class AppOverviewModule {}
diff --git a/ui/src/app/app-overview/apps.model.ts b/ui/src/app/app-overview/apps.model.ts
index 8d1d8711f..3a0ecd4e3 100644
--- a/ui/src/app/app-overview/apps.model.ts
+++ b/ui/src/app/app-overview/apps.model.ts
@@ -17,9 +17,9 @@
  */
 
 export interface App {
-  appName: string;
-  appDescription: string;
-  appId: string;
-  appLink: string;
-  appModuleLink?: any;
+    appName: string;
+    appDescription: string;
+    appId: string;
+    appLink: string;
+    appModuleLink?: any;
 }
diff --git a/ui/src/app/app-overview/apps.routes.ts b/ui/src/app/app-overview/apps.routes.ts
index 27f672dba..595bea5b3 100644
--- a/ui/src/app/app-overview/apps.routes.ts
+++ b/ui/src/app/app-overview/apps.routes.ts
@@ -16,10 +16,12 @@
  *
  */
 
-import { SpBreadcrumbItem, } from '@streampipes/shared-ui';
+import { SpBreadcrumbItem } from '@streampipes/shared-ui';
 
 export class SpAppRoutes {
-
-  static APP_BASE_LINK = 'apps';
-  static BASE: SpBreadcrumbItem = {label: 'Apps', link: [SpAppRoutes.APP_BASE_LINK]};
+    static APP_BASE_LINK = 'apps';
+    static BASE: SpBreadcrumbItem = {
+        label: 'Apps',
+        link: [SpAppRoutes.APP_BASE_LINK],
+    };
 }
diff --git a/ui/src/app/assets/assets.module.ts b/ui/src/app/assets/assets.module.ts
index 89d9314cc..daae82b26 100644
--- a/ui/src/app/assets/assets.module.ts
+++ b/ui/src/app/assets/assets.module.ts
@@ -46,57 +46,57 @@ import { SpCreateAssetDialogComponent } from './dialog/create-asset/create-asset
 import { SpManageAssetLinksDialogComponent } from './dialog/manage-asset-links/manage-asset-links-dialog.component';
 
 @NgModule({
-  imports: [
-    CommonModule,
-    CustomMaterialModule,
-    FlexLayoutModule,
-    MatGridListModule,
-    MatButtonModule,
-    MatProgressSpinnerModule,
-    MatIconModule,
-    MatInputModule,
-    MatCheckboxModule,
-    MatDividerModule,
-    MatTooltipModule,
-    FormsModule,
-    DragDropModule,
-    CoreUiModule,
-    ReactiveFormsModule,
-    PlatformServicesModule,
-    RouterModule.forChild([
-      {
-        path: 'assets',
-        children: [
-          {
-            path: '',
-            redirectTo: 'overview',
-            pathMatch: 'full'
-          },
-          {
-            path: 'overview',
-            component: SpAssetOverviewComponent
-          },
-          {
-            path: 'details/:assetId',
-            component: SpAssetDetailsComponent
-          }
-        ]
-      }
-    ]),
-    SharedUiModule,
-    MatTreeModule,
-  ],
-  declarations: [
-    AssetUploadDialogComponent,
-    EditAssetLinkDialogComponent,
-    SpAssetDetailsComponent,
-    SpAssetDetailsPanelComponent,
-    SpAssetLinkItemComponent,
-    SpAssetOverviewComponent,
-    SpAssetSelectionPanelComponent,
-    SpCreateAssetDialogComponent,
-    SpManageAssetLinksDialogComponent
-  ],
-  providers: [],
+    imports: [
+        CommonModule,
+        CustomMaterialModule,
+        FlexLayoutModule,
+        MatGridListModule,
+        MatButtonModule,
+        MatProgressSpinnerModule,
+        MatIconModule,
+        MatInputModule,
+        MatCheckboxModule,
+        MatDividerModule,
+        MatTooltipModule,
+        FormsModule,
+        DragDropModule,
+        CoreUiModule,
+        ReactiveFormsModule,
+        PlatformServicesModule,
+        RouterModule.forChild([
+            {
+                path: 'assets',
+                children: [
+                    {
+                        path: '',
+                        redirectTo: 'overview',
+                        pathMatch: 'full',
+                    },
+                    {
+                        path: 'overview',
+                        component: SpAssetOverviewComponent,
+                    },
+                    {
+                        path: 'details/:assetId',
+                        component: SpAssetDetailsComponent,
+                    },
+                ],
+            },
+        ]),
+        SharedUiModule,
+        MatTreeModule,
+    ],
+    declarations: [
+        AssetUploadDialogComponent,
+        EditAssetLinkDialogComponent,
+        SpAssetDetailsComponent,
+        SpAssetDetailsPanelComponent,
+        SpAssetLinkItemComponent,
+        SpAssetOverviewComponent,
+        SpAssetSelectionPanelComponent,
+        SpCreateAssetDialogComponent,
+        SpManageAssetLinksDialogComponent,
+    ],
+    providers: [],
 })
 export class AssetsModule {}
diff --git a/ui/src/app/assets/assets.routes.ts b/ui/src/app/assets/assets.routes.ts
index bacff6031..ff8de4635 100644
--- a/ui/src/app/assets/assets.routes.ts
+++ b/ui/src/app/assets/assets.routes.ts
@@ -16,11 +16,15 @@
  *
  */
 
-import { SpBreadcrumbItem, } from '@streampipes/shared-ui';
+import { SpBreadcrumbItem } from '@streampipes/shared-ui';
 
 export class SpAssetRoutes {
-
-  static BASE: SpBreadcrumbItem = {label: 'Asset Management', link: ['assets']};
-  static CREATE: SpBreadcrumbItem = {label: 'New Asset', link: ['assets', 'create']};
-
+    static BASE: SpBreadcrumbItem = {
+        label: 'Asset Management',
+        link: ['assets'],
+    };
+    static CREATE: SpBreadcrumbItem = {
+        label: 'New Asset',
+        link: ['assets', 'create'],
+    };
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.html b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.html
index a3cc3d1fd..50c1755c5 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.html
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.html
@@ -16,43 +16,85 @@
   ~
   -->
 
-<div fxFlex="100" fxLayout="column" class="page-container-padding-inner" *ngIf="asset">
-    <sp-basic-header-title-component [title]="asset.assetName"></sp-basic-header-title-component>
+<div
+    fxFlex="100"
+    fxLayout="column"
+    class="page-container-padding-inner"
+    *ngIf="asset"
+>
+    <sp-basic-header-title-component
+        [title]="asset.assetName"
+    ></sp-basic-header-title-component>
 
     <sp-basic-inner-panel panelTitle="Basics" outerMargin="20px 0px">
         <div fxLayout="column" fxFlex="100">
             <mat-form-field color="accent">
                 <mat-label>Name</mat-label>
-                <input matInput [(ngModel)]="asset.assetName" [disabled]="!editMode">
+                <input
+                    matInput
+                    [(ngModel)]="asset.assetName"
+                    [disabled]="!editMode"
+                />
             </mat-form-field>
             <mat-form-field color="accent">
                 <mat-label>Description</mat-label>
-                <input matInput [(ngModel)]="asset.assetDescription" [disabled]="!editMode">
+                <input
+                    matInput
+                    [(ngModel)]="asset.assetDescription"
+                    [disabled]="!editMode"
+                />
             </mat-form-field>
             <mat-form-field color="accent">
                 <mat-label>ID</mat-label>
-                <input matInput [(ngModel)]="asset.assetId" [disabled]="!editMode">
+                <input
+                    matInput
+                    [(ngModel)]="asset.assetId"
+                    [disabled]="!editMode"
+                />
             </mat-form-field>
         </div>
     </sp-basic-inner-panel>
 
-
     <sp-basic-inner-panel panelTitle="Linked Resources" outerMargin="0px 0px">
         <div header fxLayoutAlign="end center" fxLayout="row" fxFlex="100">
-            <button mat-button color="accent" *ngIf="editMode" (click)="openManageAssetLinksDialog()"><i class="material-icons">add</i><span>&nbsp;Manage links</span></button>
-            <button mat-button color="accent" *ngIf="editMode" (click)="openCreateAssetLinkDialog()"><i class="material-icons">add</i><span>&nbsp;Add link</span></button>
+            <button
+                mat-button
+                color="accent"
+                *ngIf="editMode"
+                (click)="openManageAssetLinksDialog()"
+            >
+                <i class="material-icons">add</i><span>&nbsp;Manage links</span>
+            </button>
+            <button
+                mat-button
+                color="accent"
+                *ngIf="editMode"
+                (click)="openCreateAssetLinkDialog()"
+            >
+                <i class="material-icons">add</i><span>&nbsp;Add link</span>
+            </button>
         </div>
         <div fxLayout="column" fxFlex="100" *ngIf="assetLinkTypes">
-            <div fxLayout="column" *ngFor="let link of asset.assetLinks; let i = index">
-                <sp-asset-link-item-component [assetLink]="link"
-                                              [assetLinkIndex]="i"
-                                              [assetLinkTypes]="assetLinkTypes"
-                                              [editMode]="editMode"
-                                              (openEditAssetLinkEmitter)="openEditAssetLinkDialog($event.assetLink, $event.index, false)"
-                                              (deleteAssetLinkEmitter)="deleteAssetLink($event)"
-                                              class="asset-link-item">
+            <div
+                fxLayout="column"
+                *ngFor="let link of asset.assetLinks; let i = index"
+            >
+                <sp-asset-link-item-component
+                    [assetLink]="link"
+                    [assetLinkIndex]="i"
+                    [assetLinkTypes]="assetLinkTypes"
+                    [editMode]="editMode"
+                    (openEditAssetLinkEmitter)="
+                        openEditAssetLinkDialog(
+                            $event.assetLink,
+                            $event.index,
+                            false
+                        )
+                    "
+                    (deleteAssetLinkEmitter)="deleteAssetLink($event)"
+                    class="asset-link-item"
+                >
                 </sp-asset-link-item-component>
-
             </div>
         </div>
     </sp-basic-inner-panel>
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.scss b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.scss
index 1dba0de23..8e03d1676 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.scss
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.scss
@@ -17,14 +17,14 @@
  */
 
 .asset-link-item:nth-child(odd) {
-  background: var(--color-bg-1);
+    background: var(--color-bg-1);
 }
 
 .asset-link-item:nth-child(even) {
-  background: var(--color-bg-1);
+    background: var(--color-bg-1);
 }
 
 .asset-link-item {
-  border-bottom: 1px solid var(--color-bg-3);
-  padding: 10px;
+    border-bottom: 1px solid var(--color-bg-3);
+    padding: 10px;
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.ts b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.ts
index 9bb97559c..d3c6eea37 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.ts
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-panel.component.ts
@@ -17,100 +17,119 @@
  */
 
 import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-import { AssetLink, AssetLinkType, GenericStorageService, SpAsset } from '@streampipes/platform-services';
+import {
+    AssetLink,
+    AssetLinkType,
+    GenericStorageService,
+    SpAsset,
+} from '@streampipes/platform-services';
 import { AssetConstants } from '../../../constants/asset.constants';
 import { AssetUploadDialogComponent } from '../../../dialog/asset-upload/asset-upload-dialog.component';
-import { DialogService, PanelType } from '../../../../../../dist/streampipes/shared-ui';
+import {
+    DialogService,
+    PanelType,
+} from '../../../../../../dist/streampipes/shared-ui';
 import { EditAssetLinkDialogComponent } from '../../../dialog/edit-asset-link/edit-asset-link-dialog.component';
 import { SpManageAssetLinksDialogComponent } from '../../../dialog/manage-asset-links/manage-asset-links-dialog.component';
 
-
 @Component({
-  selector: 'sp-asset-details-panel-component',
-  templateUrl: './asset-details-panel.component.html',
-  styleUrls: ['./asset-details-panel.component.scss']
+    selector: 'sp-asset-details-panel-component',
+    templateUrl: './asset-details-panel.component.html',
+    styleUrls: ['./asset-details-panel.component.scss'],
 })
 export class SpAssetDetailsPanelComponent implements OnInit {
-
-  @Input()
-  asset: SpAsset;
-
-  @Input()
-  editMode: boolean;
-
-  @Output()
-  updateAssetEmitter: EventEmitter<SpAsset> = new EventEmitter<SpAsset>();
-
-  assetLinkTypes: AssetLinkType[];
-
-  constructor(private genericStorageService: GenericStorageService,
-              private dialogService: DialogService) {
-
-  }
-
-  ngOnInit(): void {
-    this.genericStorageService.getAllDocuments(AssetConstants.ASSET_LINK_TYPES_DOC_NAME).subscribe(assetLinkTypes => {
-      this.assetLinkTypes = assetLinkTypes.sort((a, b) => a.linkLabel.localeCompare(b.linkLabel));
-    });
-  }
-
-  openManageAssetLinksDialog(): void {
-    const dialogRef = this.dialogService.open(SpManageAssetLinksDialogComponent, {
-      panelType: PanelType.SLIDE_IN_PANEL,
-      title: 'Manage asset links',
-      width: '50vw',
-      data: {
-        'assetLinks': this.asset.assetLinks,
-        'assetLinkTypes': this.assetLinkTypes
-      }
-    });
-
-    dialogRef.afterClosed().subscribe(assetLinks => {
-      if (assetLinks) {
-        this.asset.assetLinks = assetLinks;
-      }
-    });
-  }
-
-  openEditAssetLinkDialog(assetLink: AssetLink, index: number, createMode: boolean): void {
-    const dialogRef = this.dialogService.open(EditAssetLinkDialogComponent, {
-      panelType: PanelType.SLIDE_IN_PANEL,
-      title: createMode ? 'Create ' : 'Update ' + 'asset model',
-      width: '50vw',
-      data: {
-        'assetLink': assetLink,
-        'assetLinkTypes': this.assetLinkTypes,
-        'createMode': createMode
-      }
-    });
-
-    dialogRef.afterClosed().subscribe(storedLink => {
-      if (storedLink) {
-        if (index > -1) {
-          this.asset.assetLinks[index] = storedLink;
-        } else {
-          this.asset.assetLinks.push(storedLink);
-        }
+    @Input()
+    asset: SpAsset;
+
+    @Input()
+    editMode: boolean;
+
+    @Output()
+    updateAssetEmitter: EventEmitter<SpAsset> = new EventEmitter<SpAsset>();
+
+    assetLinkTypes: AssetLinkType[];
+
+    constructor(
+        private genericStorageService: GenericStorageService,
+        private dialogService: DialogService,
+    ) {}
+
+    ngOnInit(): void {
+        this.genericStorageService
+            .getAllDocuments(AssetConstants.ASSET_LINK_TYPES_DOC_NAME)
+            .subscribe(assetLinkTypes => {
+                this.assetLinkTypes = assetLinkTypes.sort((a, b) =>
+                    a.linkLabel.localeCompare(b.linkLabel),
+                );
+            });
+    }
+
+    openManageAssetLinksDialog(): void {
+        const dialogRef = this.dialogService.open(
+            SpManageAssetLinksDialogComponent,
+            {
+                panelType: PanelType.SLIDE_IN_PANEL,
+                title: 'Manage asset links',
+                width: '50vw',
+                data: {
+                    assetLinks: this.asset.assetLinks,
+                    assetLinkTypes: this.assetLinkTypes,
+                },
+            },
+        );
+
+        dialogRef.afterClosed().subscribe(assetLinks => {
+            if (assetLinks) {
+                this.asset.assetLinks = assetLinks;
+            }
+        });
+    }
+
+    openEditAssetLinkDialog(
+        assetLink: AssetLink,
+        index: number,
+        createMode: boolean,
+    ): void {
+        const dialogRef = this.dialogService.open(
+            EditAssetLinkDialogComponent,
+            {
+                panelType: PanelType.SLIDE_IN_PANEL,
+                title: createMode ? 'Create ' : 'Update ' + 'asset model',
+                width: '50vw',
+                data: {
+                    assetLink: assetLink,
+                    assetLinkTypes: this.assetLinkTypes,
+                    createMode: createMode,
+                },
+            },
+        );
+
+        dialogRef.afterClosed().subscribe(storedLink => {
+            if (storedLink) {
+                if (index > -1) {
+                    this.asset.assetLinks[index] = storedLink;
+                } else {
+                    this.asset.assetLinks.push(storedLink);
+                }
+                this.updateAssetEmitter.emit(this.asset);
+            }
+        });
+    }
+
+    openCreateAssetLinkDialog(): void {
+        const assetLink: AssetLink = {
+            linkLabel: '',
+            linkType: 'data-view',
+            editingDisabled: false,
+            resourceId: '',
+            navigationActive: true,
+            queryHint: 'data-view',
+        };
+        this.openEditAssetLinkDialog(assetLink, -1, true);
+    }
+
+    deleteAssetLink(index: number): void {
+        this.asset.assetLinks.splice(index, 1);
         this.updateAssetEmitter.emit(this.asset);
-      }
-    });
-  }
-
-  openCreateAssetLinkDialog(): void {
-    const assetLink: AssetLink = {
-      linkLabel: '',
-      linkType: 'data-view',
-      editingDisabled: false,
-      resourceId: '',
-      navigationActive: true,
-      queryHint: 'data-view'
-    };
-    this.openEditAssetLinkDialog(assetLink, -1, true);
-  }
-
-  deleteAssetLink(index: number): void {
-    this.asset.assetLinks.splice(index, 1);
-    this.updateAssetEmitter.emit(this.asset);
-  }
-
+    }
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.html b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.html
index c9c645ab1..33b5009b9 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.html
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.html
@@ -19,19 +19,48 @@
 <div fxFlex="100" fxLayout="column">
     <div fxLayout="row" fxLayoutGap="10px">
         <div fxLayoutAlign="center center">
-            <div fxLayoutAlign="center center" class="link-icon" [ngStyle]="{'background': currentAssetLinkType.linkColor}">
-            <i class="material-icons">{{currentAssetLinkType.linkIcon}}</i>
+            <div
+                fxLayoutAlign="center center"
+                class="link-icon"
+                [ngStyle]="{ background: currentAssetLinkType.linkColor }"
+            >
+                <i class="material-icons">{{
+                    currentAssetLinkType.linkIcon
+                }}</i>
             </div>
         </div>
-        <div fxLayoutAlign="start center"><span class="link-label">{{assetLink.linkLabel}}</span></div>
+        <div fxLayoutAlign="start center">
+            <span class="link-label">{{ assetLink.linkLabel }}</span>
+        </div>
         <div fxFlex></div>
         <div fxLayoutAlign="end center">
-            <button mat-button mat-icon-button color="accent" (click)="openLink()" *ngIf="assetLink.navigationActive"><i class="material-icons">link</i>
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                (click)="openLink()"
+                *ngIf="assetLink.navigationActive"
+            >
+                <i class="material-icons">link</i>
+            </button>
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                (click)="editLink()"
+                *ngIf="editMode"
+            >
+                <i class="material-icons">edit</i>
+            </button>
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                (click)="deleteLink()"
+                *ngIf="editMode"
+            >
+                <i class="material-icons">delete</i>
             </button>
-            <button mat-button mat-icon-button color="accent" (click)="editLink()" *ngIf="editMode"><i
-                    class="material-icons">edit</i></button>
-            <button mat-button mat-icon-button color="accent" (click)="deleteLink()" *ngIf="editMode"><i
-                    class="material-icons">delete</i></button>
         </div>
     </div>
 </div>
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.scss b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.scss
index 11c71ec39..6dd25c96f 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.scss
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.scss
@@ -17,21 +17,21 @@
  */
 
 .link-type {
-  background: var(--color-primary);
-  padding: 5px;
-  border-radius: 5px;
+    background: var(--color-primary);
+    padding: 5px;
+    border-radius: 5px;
 }
 
 .link-label {
-  margin-right: 15px;
-  font-weight: 500;
+    margin-right: 15px;
+    font-weight: 500;
 }
 
 .link-icon {
-  border-radius: 50%;
-  width: 40px;
-  height: 40px;
-  padding: 5px;
-  color: var(--color-bg-1);
-  background: var(--color-bg-3);
+    border-radius: 50%;
+    width: 40px;
+    height: 40px;
+    padding: 5px;
+    color: var(--color-bg-1);
+    background: var(--color-bg-3);
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.ts b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.ts
index 49dd4fd98..f747bf158 100644
--- a/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.ts
+++ b/ui/src/app/assets/components/asset-details/asset-details-panel/asset-link-item/asset-link-item.component.ts
@@ -16,55 +16,62 @@
  *
  */
 
-
 import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
 import { AssetLink, AssetLinkType } from '@streampipes/platform-services';
 import { Router } from '@angular/router';
 
 @Component({
-  selector: 'sp-asset-link-item-component',
-  templateUrl: './asset-link-item.component.html',
-  styleUrls: ['./asset-link-item.component.scss']
+    selector: 'sp-asset-link-item-component',
+    templateUrl: './asset-link-item.component.html',
+    styleUrls: ['./asset-link-item.component.scss'],
 })
 export class SpAssetLinkItemComponent implements OnInit {
-
-  @Input()
-  assetLink: AssetLink;
-
-  @Input()
-  assetLinkIndex: number;
-
-  @Input()
-  assetLinkTypes: AssetLinkType[];
-
-  @Input()
-  editMode: boolean;
-
-  @Output()
-  openEditAssetLinkEmitter: EventEmitter<{assetLink: AssetLink, index: number}> = new EventEmitter<{assetLink: AssetLink, index: number}>();
-
-  @Output()
-  deleteAssetLinkEmitter: EventEmitter<number> = new EventEmitter<number>();
-
-  currentAssetLinkType: AssetLinkType;
-
-  constructor(private router: Router) {
-
-  }
-
-  ngOnInit(): void {
-    this.currentAssetLinkType = this.assetLinkTypes.find(t => t.linkType === this.assetLink.linkType);
-  }
-
-  openLink(): void {
-    this.router.navigate([...this.currentAssetLinkType.navPaths, this.assetLink.resourceId]);
-  }
-
-  editLink(): void {
-    this.openEditAssetLinkEmitter.emit({assetLink: this.assetLink, index: this.assetLinkIndex});
-  }
-
-  deleteLink(): void {
-    this.deleteAssetLinkEmitter.emit(this.assetLinkIndex);
-  }
+    @Input()
+    assetLink: AssetLink;
+
+    @Input()
+    assetLinkIndex: number;
+
+    @Input()
+    assetLinkTypes: AssetLinkType[];
+
+    @Input()
+    editMode: boolean;
+
+    @Output()
+    openEditAssetLinkEmitter: EventEmitter<{
+        assetLink: AssetLink;
+        index: number;
+    }> = new EventEmitter<{ assetLink: AssetLink; index: number }>();
+
+    @Output()
+    deleteAssetLinkEmitter: EventEmitter<number> = new EventEmitter<number>();
+
+    currentAssetLinkType: AssetLinkType;
+
+    constructor(private router: Router) {}
+
+    ngOnInit(): void {
+        this.currentAssetLinkType = this.assetLinkTypes.find(
+            t => t.linkType === this.assetLink.linkType,
+        );
+    }
+
+    openLink(): void {
+        this.router.navigate([
+            ...this.currentAssetLinkType.navPaths,
+            this.assetLink.resourceId,
+        ]);
+    }
+
+    editLink(): void {
+        this.openEditAssetLinkEmitter.emit({
+            assetLink: this.assetLink,
+            index: this.assetLinkIndex,
+        });
+    }
+
+    deleteLink(): void {
+        this.deleteAssetLinkEmitter.emit(this.assetLinkIndex);
+    }
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details.component.html b/ui/src/app/assets/components/asset-details/asset-details.component.html
index ceec6c523..5a14d8881 100644
--- a/ui/src/app/assets/components/asset-details/asset-details.component.html
+++ b/ui/src/app/assets/components/asset-details/asset-details.component.html
@@ -15,45 +15,60 @@
   ~ limitations under the License.
   ~
   -->
-<sp-basic-view [showBackLink]="true"
-               [backLinkTarget]="['assets']"
-               [padding]="false">
-
-    <div nav fxFlex="100" fxLayoutAlign="start center" fxLayout="row" class="pl-10">
+<sp-basic-view
+    [showBackLink]="true"
+    [backLinkTarget]="['assets']"
+    [padding]="false"
+>
+    <div
+        nav
+        fxFlex="100"
+        fxLayoutAlign="start center"
+        fxLayout="row"
+        class="pl-10"
+    >
         <div fxLayout="row" fxLayoutAlign="start center" *ngIf="editMode">
-            <button mat-button mat-raised-button color="accent" (click)="saveAsset()">
+            <button
+                mat-button
+                mat-raised-button
+                color="accent"
+                (click)="saveAsset()"
+            >
                 <i class="material-icons">save</i><span>&nbsp;Save</span>
             </button>
         </div>
-        <div fxFlex fxLayout="row" fxLayoutAlign="end center">
-
-        </div>
+        <div fxFlex fxLayout="row" fxLayoutAlign="end center"></div>
     </div>
     <div fxFlex="100" fxLayout="column" *ngIf="asset">
-        <mat-drawer-container class="designer-panel-container h-100 dashboard-grid">
-            <mat-drawer #designerDrawer
-                        [opened]="true"
-                        mode="side"
-                        position="start"
-                        class="designer-panel">
+        <mat-drawer-container
+            class="designer-panel-container h-100 dashboard-grid"
+        >
+            <mat-drawer
+                #designerDrawer
+                [opened]="true"
+                mode="side"
+                position="start"
+                class="designer-panel"
+            >
                 <div fxLayout="column" fxFlex="100">
                     <sp-asset-selection-panel-component
-                            [editMode]="editMode"
-                            [assetModel]="asset"
-                            [selectedAsset]="selectedAsset"
-                            (selectedAssetEmitter)="selectedAsset = $event">
+                        [editMode]="editMode"
+                        [assetModel]="asset"
+                        [selectedAsset]="selectedAsset"
+                        (selectedAssetEmitter)="selectedAsset = $event"
+                    >
                     </sp-asset-selection-panel-component>
                 </div>
             </mat-drawer>
             <mat-drawer-content class="h-100 dashboard-grid">
                 <sp-asset-details-panel-component
-                        *ngIf="selectedAsset"
-                        [asset]="selectedAsset"
-                        [editMode]="editMode"
-                        (updateAssetEmitter)="updateAsset()"
-                        fxFlex="100"
-                        fxLayout="row">
-
+                    *ngIf="selectedAsset"
+                    [asset]="selectedAsset"
+                    [editMode]="editMode"
+                    (updateAssetEmitter)="updateAsset()"
+                    fxFlex="100"
+                    fxLayout="row"
+                >
                 </sp-asset-details-panel-component>
             </mat-drawer-content>
         </mat-drawer-container>
diff --git a/ui/src/app/assets/components/asset-details/asset-details.component.scss b/ui/src/app/assets/components/asset-details/asset-details.component.scss
index 676e7ab69..8c6b11994 100644
--- a/ui/src/app/assets/components/asset-details/asset-details.component.scss
+++ b/ui/src/app/assets/components/asset-details/asset-details.component.scss
@@ -17,16 +17,16 @@
  */
 
 .dashboard-grid {
-  display:flex;
-  flex-direction: column;
-  flex: 1 1 100%;
+    display: flex;
+    flex-direction: column;
+    flex: 1 1 100%;
 }
 
 .designer-panel-container {
-  width: 100%;
-  height: 100%;
+    width: 100%;
+    height: 100%;
 }
 
 .designer-panel {
-  width: 400px;
+    width: 400px;
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-details.component.ts b/ui/src/app/assets/components/asset-details/asset-details.component.ts
index 8f3750c6f..7956dae90 100644
--- a/ui/src/app/assets/components/asset-details/asset-details.component.ts
+++ b/ui/src/app/assets/components/asset-details/asset-details.component.ts
@@ -20,76 +20,86 @@ import { Component, OnInit } from '@angular/core';
 import { SpBreadcrumbService } from '@streampipes/shared-ui';
 import { ActivatedRoute } from '@angular/router';
 import { AssetConstants } from '../../constants/asset.constants';
-import { GenericStorageService, SpAsset, SpAssetModel } from '@streampipes/platform-services';
+import {
+    GenericStorageService,
+    SpAsset,
+    SpAssetModel,
+} from '@streampipes/platform-services';
 import { SpAssetRoutes } from '../../assets.routes';
 
 @Component({
-  selector: 'sp-asset-details-component',
-  templateUrl: './asset-details.component.html',
-  styleUrls: ['./asset-details.component.scss']
+    selector: 'sp-asset-details-component',
+    templateUrl: './asset-details.component.html',
+    styleUrls: ['./asset-details.component.scss'],
 })
 export class SpAssetDetailsComponent implements OnInit {
+    asset: SpAssetModel;
 
-  asset: SpAssetModel;
+    selectedAsset: SpAsset;
 
-  selectedAsset: SpAsset;
+    editMode: boolean;
 
-  editMode: boolean;
+    assetModelId: string;
 
-  assetModelId: string;
+    constructor(
+        private breadcrumbService: SpBreadcrumbService,
+        private genericStorageService: GenericStorageService,
+        private route: ActivatedRoute,
+    ) {}
 
-  constructor(private breadcrumbService: SpBreadcrumbService,
-              private genericStorageService: GenericStorageService,
-              private route: ActivatedRoute) {
-
-  }
-
-  ngOnInit(): void {
-    this.assetModelId = this.route.snapshot.params.assetId;
-    this.editMode = this.route.snapshot.queryParams.editMode;
-    this.loadAsset();
-  }
+    ngOnInit(): void {
+        this.assetModelId = this.route.snapshot.params.assetId;
+        this.editMode = this.route.snapshot.queryParams.editMode;
+        this.loadAsset();
+    }
 
-  loadAsset(): void {
-    this.genericStorageService.getDocument(AssetConstants.ASSET_APP_DOC_NAME, this.assetModelId).subscribe(asset => {
-      this.asset = asset;
-      if (!this.selectedAsset) {
-        this.selectedAsset = this.asset;
-      }
-      this.breadcrumbService.updateBreadcrumb([SpAssetRoutes.BASE, {label: this.asset.assetName}]);
-    });
-  }
+    loadAsset(): void {
+        this.genericStorageService
+            .getDocument(AssetConstants.ASSET_APP_DOC_NAME, this.assetModelId)
+            .subscribe(asset => {
+                this.asset = asset;
+                if (!this.selectedAsset) {
+                    this.selectedAsset = this.asset;
+                }
+                this.breadcrumbService.updateBreadcrumb([
+                    SpAssetRoutes.BASE,
+                    { label: this.asset.assetName },
+                ]);
+            });
+    }
 
-  updateAsset() {
-    this.updateSelected();
-  }
+    updateAsset() {
+        this.updateSelected();
+    }
 
-  saveAsset() {
-    this.genericStorageService.updateDocument(AssetConstants.ASSET_APP_DOC_NAME, this.asset).subscribe(res => {
-      this.loadAsset();
-      this.editMode = false;
-    });
-  }
+    saveAsset() {
+        this.genericStorageService
+            .updateDocument(AssetConstants.ASSET_APP_DOC_NAME, this.asset)
+            .subscribe(res => {
+                this.loadAsset();
+                this.editMode = false;
+            });
+    }
 
-  updateSelected() {
-    if (this.asset.assetId === this.selectedAsset.assetId) {
-      this.asset = this.selectedAsset as SpAssetModel;
-    } else {
-      this.asset.assets.forEach(a => {
-        this.walk(a, this.selectedAsset);
-      });
+    updateSelected() {
+        if (this.asset.assetId === this.selectedAsset.assetId) {
+            this.asset = this.selectedAsset as SpAssetModel;
+        } else {
+            this.asset.assets.forEach(a => {
+                this.walk(a, this.selectedAsset);
+            });
+        }
     }
-  }
 
-  walk(asset: SpAsset, selectedAsset: SpAsset) {
-    if (asset.assetId === selectedAsset.assetId) {
-      asset = selectedAsset;
-    } else {
-      if (asset.assets) {
-        asset.assets.forEach(a => {
-          this.walk(a, selectedAsset);
-        });
-      }
+    walk(asset: SpAsset, selectedAsset: SpAsset) {
+        if (asset.assetId === selectedAsset.assetId) {
+            asset = selectedAsset;
+        } else {
+            if (asset.assets) {
+                asset.assets.forEach(a => {
+                    this.walk(a, selectedAsset);
+                });
+            }
+        }
     }
-  }
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.html b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.html
index 5622b582a..6674056d4 100644
--- a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.html
+++ b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.html
@@ -16,57 +16,113 @@
   ~
   -->
 
-<div fxFlex="100" fxLayout="column" class="designer-panel-content" *ngIf="assetModel">
+<div
+    fxFlex="100"
+    fxLayout="column"
+    class="designer-panel-content"
+    *ngIf="assetModel"
+>
     <div fxLayout="row" class="sp-tab-bg designer-panel-header">
-        <div fxLayoutAlign="start center" class="designer-panel-title"><h4>Asset Browser</h4></div>
-        <div fxFlex fxLayoutAlign="end end">
-
+        <div fxLayoutAlign="start center" class="designer-panel-title">
+            <h4>Asset Browser</h4>
         </div>
+        <div fxFlex fxLayoutAlign="end end"></div>
     </div>
     <div fxFlex="100" fxLayout="column">
         <div fxFlex fxLayout="column" class="designer-panel-config">
-            <mat-tree [dataSource]="dataSource" [treeControl]="treeControl" class="sp-tree" #tree>
+            <mat-tree
+                [dataSource]="dataSource"
+                [treeControl]="treeControl"
+                class="sp-tree"
+                #tree
+            >
                 <mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
-                    <div [ngClass]="node.assetId === selectedAsset.assetId ? 'asset-node selected-node' : 'asset-node'"
-                         fxLayout="row" fxFlex="100" (click)="selectNode(node)" >
-                        <span fxLayoutAlign="end center">{{node.assetName}}</span>
+                    <div
+                        [ngClass]="
+                            node.assetId === selectedAsset.assetId
+                                ? 'asset-node selected-node'
+                                : 'asset-node'
+                        "
+                        fxLayout="row"
+                        fxFlex="100"
+                        (click)="selectNode(node)"
+                    >
+                        <span fxLayoutAlign="end center">{{
+                            node.assetName
+                        }}</span>
                         <div fxLayoutAlign="end center" fxFlex *ngIf="editMode">
-                            <button mat-button
-                                    mat-icon-button
-                                    (click)="addAsset(node)"
-                                    color="accent">
-                                <i class="material-icons">add</i></button>
-                            <button mat-button
-                                    mat-icon-button
-                                    (click)="deleteAsset(node)"
-                                    color="accent">
-                                <i class="material-icons">delete</i></button>
+                            <button
+                                mat-button
+                                mat-icon-button
+                                (click)="addAsset(node)"
+                                color="accent"
+                            >
+                                <i class="material-icons">add</i>
+                            </button>
+                            <button
+                                mat-button
+                                mat-icon-button
+                                (click)="deleteAsset(node)"
+                                color="accent"
+                            >
+                                <i class="material-icons">delete</i>
+                            </button>
                         </div>
                     </div>
                 </mat-tree-node>
-                <mat-nested-tree-node *matTreeNodeDef="let node; when: hasChild">
+                <mat-nested-tree-node
+                    *matTreeNodeDef="let node; when: hasChild"
+                >
                     <div class="mat-tree-node">
-                        <button mat-icon-button matTreeNodeToggle
-                                [attr.data-cy]="'button-' +node.nodeName"
-                                [attr.aria-label]="'Toggle ' + node.nodeName">
+                        <button
+                            mat-icon-button
+                            matTreeNodeToggle
+                            [attr.data-cy]="'button-' + node.nodeName"
+                            [attr.aria-label]="'Toggle ' + node.nodeName"
+                        >
                             <mat-icon class="mat-icon-rtl-mirror">
-                                {{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
+                                {{
+                                    treeControl.isExpanded(node)
+                                        ? 'expand_more'
+                                        : 'chevron_right'
+                                }}
                             </mat-icon>
                         </button>
-                        <div [ngClass]="node.assetId === selectedAsset.assetId ? 'asset-node selected-node' : 'asset-node'"
-                             fxLayout="row" fxFlex="100" (click)="selectNode(node)" >
-                            <span fxLayoutAlign="start center">{{node.assetName}}</span>
-                            <div fxLayoutAlign="end center" fxFlex *ngIf="editMode">
-                                <button mat-button
-                                        mat-icon-button
-                                        (click)="addAsset(node)"
-                                        color="accent">
-                                    <i class="material-icons">add</i></button>
+                        <div
+                            [ngClass]="
+                                node.assetId === selectedAsset.assetId
+                                    ? 'asset-node selected-node'
+                                    : 'asset-node'
+                            "
+                            fxLayout="row"
+                            fxFlex="100"
+                            (click)="selectNode(node)"
+                        >
+                            <span fxLayoutAlign="start center">{{
+                                node.assetName
+                            }}</span>
+                            <div
+                                fxLayoutAlign="end center"
+                                fxFlex
+                                *ngIf="editMode"
+                            >
+                                <button
+                                    mat-button
+                                    mat-icon-button
+                                    (click)="addAsset(node)"
+                                    color="accent"
+                                >
+                                    <i class="material-icons">add</i>
+                                </button>
                             </div>
                         </div>
                     </div>
-                    <div [class.sp-tree-invisible]="!treeControl.isExpanded(node)"
-                         role="group">
+                    <div
+                        [class.sp-tree-invisible]="
+                            !treeControl.isExpanded(node)
+                        "
+                        role="group"
+                    >
                         <ng-container matTreeNodeOutlet></ng-container>
                     </div>
                 </mat-nested-tree-node>
diff --git a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.scss b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.scss
index 2f3b83190..65eddd57b 100644
--- a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.scss
+++ b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.scss
@@ -17,53 +17,53 @@
  */
 
 .designer-panel-content {
-  padding: 0;
-  overflow-y: auto;
+    padding: 0;
+    overflow-y: auto;
 }
 
 .designer-panel-config {
-  padding: 0;
+    padding: 0;
 }
 
 .designer-panel-title {
-  margin-left: 5px;
+    margin-left: 5px;
 }
 
 .designer-panel-header {
-  border-bottom:1px solid var(--color-tab-border);
+    border-bottom: 1px solid var(--color-tab-border);
 }
 
 .sp-tree-invisible {
-  display: none;
+    display: none;
 }
 
 .sp-tree ul,
 .sp-tree li {
-  margin-top: 0;
-  margin-bottom: 0;
-  list-style-type: none;
+    margin-top: 0;
+    margin-bottom: 0;
+    list-style-type: none;
 }
 
-.sp-tree .mat-nested-tree-node div[role=group] {
-  padding-left: 20px;
+.sp-tree .mat-nested-tree-node div[role='group'] {
+    padding-left: 20px;
 }
 
-.sp-tree div[role=group] > .mat-tree-node {
-  padding-left: 20px;
+.sp-tree div[role='group'] > .mat-tree-node {
+    padding-left: 20px;
 }
 
 .asset-node {
-  font-weight: normal;
-  cursor: pointer;
-  font-size: 13pt;
-  width: 100%;
-  margin-right: 10px;
-  padding-left: 5px;
-  height: 50px;
+    font-weight: normal;
+    cursor: pointer;
+    font-size: 13pt;
+    width: 100%;
+    margin-right: 10px;
+    padding-left: 5px;
+    height: 50px;
 }
 
 .selected-node {
-  font-weight: bold;
-  background: var(--color-bg-2);
-  border-bottom: 2px solid var(--color-primary);
+    font-weight: bold;
+    background: var(--color-bg-2);
+    border-bottom: 2px solid var(--color-primary);
 }
diff --git a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.ts b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.ts
index 4bf1f1d14..b69e8566a 100644
--- a/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.ts
+++ b/ui/src/app/assets/components/asset-details/asset-selection-panel/asset-selection-panel.component.ts
@@ -16,89 +16,102 @@
  *
  */
 
-import { AfterViewInit, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
+import {
+    AfterViewInit,
+    Component,
+    EventEmitter,
+    Input,
+    OnInit,
+    Output,
+    ViewChild,
+} from '@angular/core';
 import { SpAsset, SpAssetModel } from '@streampipes/platform-services';
 import { NestedTreeControl } from '@angular/cdk/tree';
 import { MatTreeNestedDataSource } from '@angular/material/tree';
 
 @Component({
-  selector: 'sp-asset-selection-panel-component',
-  templateUrl: './asset-selection-panel.component.html',
-  styleUrls: ['./asset-selection-panel.component.scss']
+    selector: 'sp-asset-selection-panel-component',
+    templateUrl: './asset-selection-panel.component.html',
+    styleUrls: ['./asset-selection-panel.component.scss'],
 })
 export class SpAssetSelectionPanelComponent implements OnInit {
+    @Input()
+    assetModel: SpAssetModel;
 
-  @Input()
-  assetModel: SpAssetModel;
+    @Input()
+    selectedAsset: SpAsset;
 
-  @Input()
-  selectedAsset: SpAsset;
+    @Input()
+    editMode: boolean;
 
-  @Input()
-  editMode: boolean;
+    @Output()
+    selectedAssetEmitter: EventEmitter<SpAsset> = new EventEmitter<SpAsset>();
 
-  @Output()
-  selectedAssetEmitter: EventEmitter<SpAsset> = new EventEmitter<SpAsset>();
+    treeControl = new NestedTreeControl<SpAsset>(node => node.assets);
+    dataSource = new MatTreeNestedDataSource<SpAsset>();
 
-  treeControl = new NestedTreeControl<SpAsset>(node => node.assets);
-  dataSource = new MatTreeNestedDataSource<SpAsset>();
+    @ViewChild('tree') tree;
 
-  @ViewChild('tree') tree;
+    hasChild = (_: number, node: SpAsset) =>
+        !!node.assets && node.assets.length > 0;
 
-  hasChild = (_: number, node: SpAsset) => !!node.assets && node.assets.length > 0;
-
-  ngOnInit(): void {
-    this.treeControl = new NestedTreeControl<SpAsset>(node => node.assets);
-    this.dataSource = new MatTreeNestedDataSource<SpAsset>();
-    this.dataSource.data = [this.assetModel];
-    this.treeControl.dataNodes = [this.assetModel];
-    this.treeControl.expandAll();
-  }
-
-  selectNode(asset: SpAsset) {
-    this.selectedAssetEmitter.emit(asset);
-  }
+    ngOnInit(): void {
+        this.treeControl = new NestedTreeControl<SpAsset>(node => node.assets);
+        this.dataSource = new MatTreeNestedDataSource<SpAsset>();
+        this.dataSource.data = [this.assetModel];
+        this.treeControl.dataNodes = [this.assetModel];
+        this.treeControl.expandAll();
+    }
 
-  addAsset(node: SpAsset) {
-    if (!node.assets) {
-      node.assets = [];
+    selectNode(asset: SpAsset) {
+        this.selectedAssetEmitter.emit(asset);
     }
-    node.assets.push(this.makeNewAsset());
-    this.dataSource.data = [this.assetModel];
-    this.treeControl.dataNodes = [this.assetModel];
-    this.rerenderTree();
-  }
-
-  deleteAsset(node: SpAsset) {
-    this.removeAssetWithId(this.assetModel.assets, node.assetId);
-    this.rerenderTree();
-  }
-
-  removeAssetWithId(assets: SpAsset[], id: string) {
-    for (let i = 0; i < assets.length; i++) {
-      if (assets[i].assetId === id) {
-        assets.splice(i, 1);
-        return;
-      }
-      if (assets[i].assets) {
-        this.removeAssetWithId(assets[i].assets, id);
-      }
+
+    addAsset(node: SpAsset) {
+        if (!node.assets) {
+            node.assets = [];
+        }
+        node.assets.push(this.makeNewAsset());
+        this.dataSource.data = [this.assetModel];
+        this.treeControl.dataNodes = [this.assetModel];
+        this.rerenderTree();
     }
-  }
 
-  rerenderTree(): void {
-    this.dataSource.data = null;
-    this.dataSource.data = [this.assetModel];
-    this.treeControl.expandAll();
+    deleteAsset(node: SpAsset) {
+        this.removeAssetWithId(this.assetModel.assets, node.assetId);
+        this.rerenderTree();
+    }
 
+    removeAssetWithId(assets: SpAsset[], id: string) {
+        for (let i = 0; i < assets.length; i++) {
+            if (assets[i].assetId === id) {
+                assets.splice(i, 1);
+                return;
+            }
+            if (assets[i].assets) {
+                this.removeAssetWithId(assets[i].assets, id);
+            }
+        }
+    }
 
-  }
+    rerenderTree(): void {
+        this.dataSource.data = null;
+        this.dataSource.data = [this.assetModel];
+        this.treeControl.expandAll();
+    }
 
-  makeNewAsset(): SpAsset {
-    return {assetId: this.makeAssetId(), assetName: 'New Asset', assetDescription: '', assetLinks: [], assetType: undefined, assets: []};
-  }
+    makeNewAsset(): SpAsset {
+        return {
+            assetId: this.makeAssetId(),
+            assetName: 'New Asset',
+            assetDescription: '',
+            assetLinks: [],
+            assetType: undefined,
+            assets: [],
+        };
+    }
 
-  makeAssetId(): string {
-    return 'a' + Math.random().toString(36).substring(2, 9);
-  }
+    makeAssetId(): string {
+        return 'a' + Math.random().toString(36).substring(2, 9);
+    }
 }
diff --git a/ui/src/app/assets/components/asset-overview/asset-overview.component.html b/ui/src/app/assets/components/asset-overview/asset-overview.component.html
index 9fcac02df..40a7a0d7e 100644
--- a/ui/src/app/assets/components/asset-overview/asset-overview.component.html
+++ b/ui/src/app/assets/components/asset-overview/asset-overview.component.html
@@ -16,101 +16,218 @@
   ~
   -->
 <sp-basic-view [showBackLink]="false" [padding]="true">
-
-    <div nav fxFlex="100" fxLayoutAlign="start center" fxLayout="row" class="pl-10">
-        <button mat-button
-                mat-raised-button
-                color="accent"
-                data-cy="connect-create-new-adapter-button"
-                (click)="createNewAsset()">
+    <div
+        nav
+        fxFlex="100"
+        fxLayoutAlign="start center"
+        fxLayout="row"
+        class="pl-10"
+    >
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            data-cy="connect-create-new-adapter-button"
+            (click)="createNewAsset()"
+        >
             <i class="material-icons">add</i>&nbsp;New asset
         </button>
         <div fxFlex fxLayout="row" fxLayoutAlign="end center">
-            <button mat-button mat-icon-button matTooltip="Refresh assets" matTooltipPosition="below" color="accent"
-                    (click)="loadAssets()">
-                <i class="material-icons">
-                    refresh
-                </i>
+            <button
+                mat-button
+                mat-icon-button
+                matTooltip="Refresh assets"
+                matTooltipPosition="below"
+                color="accent"
+                (click)="loadAssets()"
+            >
+                <i class="material-icons"> refresh </i>
             </button>
-            <button mat-button mat-icon-button matTooltip="Upload assets" matTooltipPosition="below" color="accent"
-                    (click)="uploadAsset()">
-                <i class="material-icons">
-                    cloud_upload
-                </i>
+            <button
+                mat-button
+                mat-icon-button
+                matTooltip="Upload assets"
+                matTooltipPosition="below"
+                color="accent"
+                (click)="uploadAsset()"
+            >
+                <i class="material-icons"> cloud_upload </i>
             </button>
         </div>
     </div>
     <div fxFlex="100" fxLayout="column">
-        <sp-basic-header-title-component title="My assets"></sp-basic-header-title-component>
+        <sp-basic-header-title-component
+            title="My assets"
+        ></sp-basic-header-title-component>
         <div fxFlex="100" fxLayout="row" fxLayoutAlign="center start">
-            <sp-basic-inner-panel [showTitle]="false" innerPadding="0" outerMargin="0" fxFlex="90" [hideToolbar]="true">
-                <div fxFlex="100" fxLayout="column" *ngIf="existingAssets.length > 0">
+            <sp-basic-inner-panel
+                [showTitle]="false"
+                innerPadding="0"
+                outerMargin="0"
+                fxFlex="90"
+                [hideToolbar]="true"
+            >
+                <div
+                    fxFlex="100"
+                    fxLayout="column"
+                    *ngIf="existingAssets.length > 0"
+                >
                     <div fxFlex="100" fxLayout="column">
-                        <table fxFlex="100" mat-table [dataSource]="dataSource" style="width: 100%;" matSort>
-
+                        <table
+                            fxFlex="100"
+                            mat-table
+                            [dataSource]="dataSource"
+                            style="width: 100%"
+                            matSort
+                        >
                             <ng-container matColumnDef="name">
-                                <th mat-header-cell mat-sort-header *matHeaderCellDef> Name</th>
+                                <th
+                                    mat-header-cell
+                                    mat-sort-header
+                                    *matHeaderCellDef
+                                >
+                                    Name
+                                </th>
                                 <td mat-cell *matCellDef="let asset">
-                                    <div fxLayout="row" fxLayoutAlign="start center">
+                                    <div
+                                        fxLayout="row"
+                                        fxLayoutAlign="start center"
+                                    >
                                         <div fxLayoutAlign="start center">
-                                            <i class="material-icons">precision_manufacturing</i>
+                                            <i class="material-icons"
+                                                >precision_manufacturing</i
+                                            >
                                         </div>
-                                        <div fxLayoutAlign="center start" fxLayout="column" class="ml-10">
-                                            <h4 style="margin-bottom:0px;">{{asset.assetName}}</h4>
-                                            <h5>{{asset.assetDescription != '' ? asset.assetDescription : '-'}}</h5>
+                                        <div
+                                            fxLayoutAlign="center start"
+                                            fxLayout="column"
+                                            class="ml-10"
+                                        >
+                                            <h4 style="margin-bottom: 0px">
+                                                {{ asset.assetName }}
+                                            </h4>
+                                            <h5>
+                                                {{
+                                                    asset.assetDescription !==
+                                                    ''
+                                                        ? asset.assetDescription
+                                                        : '-'
+                                                }}
+                                            </h5>
                                         </div>
                                     </div>
-
                                 </td>
                             </ng-container>
                             <ng-container matColumnDef="action">
-                                <th mat-header-cell *matHeaderCellDef style="justify-content: center;"> Actions</th>
+                                <th
+                                    mat-header-cell
+                                    *matHeaderCellDef
+                                    style="justify-content: center"
+                                >
+                                    Actions
+                                </th>
                                 <td mat-cell *matCellDef="let asset">
                                     <div fxLayout="row">
-                            <span fxFlex fxFlexOrder="1" fxLayout="row" fxLayoutAlign="center center">
-                                <button color="accent" mat-button mat-icon-button matTooltip="Show info"
-                                        matTooltipPosition="above" (click)="goToDetailsView(asset)"><i
-                                        class="material-icons">search</i>
-                                </button>
-                            </span>
-                            <span fxFlex fxFlexOrder="2" fxLayout="row" fxLayoutAlign="center center">
-                                <button color="accent" mat-button mat-icon-button matTooltip="Edit asset"
-                                        matTooltipPosition="above" (click)="goToDetailsView(asset, true)"><i
-                                        class="material-icons">edit</i>
-                                </button>
-                            </span>
-                                        <span fxFlex fxFlexOrder="3" fxLayout="row" fxLayoutAlign="center center">
-<!--                    <button color="accent" mat-button mat-icon-button matTooltip="Manage permissions"-->
+                                        <span
+                                            fxFlex
+                                            fxFlexOrder="1"
+                                            fxLayout="row"
+                                            fxLayoutAlign="center center"
+                                        >
+                                            <button
+                                                color="accent"
+                                                mat-button
+                                                mat-icon-button
+                                                matTooltip="Show info"
+                                                matTooltipPosition="above"
+                                                (click)="goToDetailsView(asset)"
+                                            >
+                                                <i class="material-icons"
+                                                    >search</i
+                                                >
+                                            </button>
+                                        </span>
+                                        <span
+                                            fxFlex
+                                            fxFlexOrder="2"
+                                            fxLayout="row"
+                                            fxLayoutAlign="center center"
+                                        >
+                                            <button
+                                                color="accent"
+                                                mat-button
+                                                mat-icon-button
+                                                matTooltip="Edit asset"
+                                                matTooltipPosition="above"
+                                                (click)="
+                                                    goToDetailsView(asset, true)
+                                                "
+                                            >
+                                                <i class="material-icons"
+                                                    >edit</i
+                                                >
+                                            </button>
+                                        </span>
+                                        <span
+                                            fxFlex
+                                            fxFlexOrder="3"
+                                            fxLayout="row"
+                                            fxLayoutAlign="center center"
+                                        >
+                                            <!--                    <button color="accent" mat-button mat-icon-button matTooltip="Manage permissions"-->
                                             <!--                            matTooltipPosition="above" (click)="showPermissionsDialog(adapter)"><i-->
                                             <!--                            class="material-icons">share</i>-->
                                             <!--                    </button>-->
-                </span>
-                                        <span fxFlex fxFlexOrder="4" fxLayout="row" fxLayoutAlign="center center">
-                    <button color="accent" mat-button mat-icon-button matTooltip="Delete adapter"
-                            data-cy="delete" matTooltipPosition="above" (click)="deleteAsset(asset)">
-                        <i class="material-icons">delete</i>
-                    </button>
-                </span>
+                                        </span>
+                                        <span
+                                            fxFlex
+                                            fxFlexOrder="4"
+                                            fxLayout="row"
+                                            fxLayoutAlign="center center"
+                                        >
+                                            <button
+                                                color="accent"
+                                                mat-button
+                                                mat-icon-button
+                                                matTooltip="Delete adapter"
+                                                data-cy="delete"
+                                                matTooltipPosition="above"
+                                                (click)="deleteAsset(asset)"
+                                            >
+                                                <i class="material-icons"
+                                                    >delete</i
+                                                >
+                                            </button>
+                                        </span>
                                     </div>
                                 </td>
                             </ng-container>
 
-                            <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
-                            <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
-
+                            <tr
+                                mat-header-row
+                                *matHeaderRowDef="displayedColumns"
+                            ></tr>
+                            <tr
+                                mat-row
+                                *matRowDef="let row; columns: displayedColumns"
+                            ></tr>
                         </table>
                     </div>
                     <div fxFlex="100" fxLayoutAlign="end end">
-                        <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"
-                                       [pageSize]="20"
-                                       color="accent">
+                        <mat-paginator
+                            [pageSizeOptions]="[5, 10, 25, 100]"
+                            [pageSize]="20"
+                            color="accent"
+                        >
                         </mat-paginator>
                     </div>
                 </div>
-                <div fxFlex="100"
-                     fxLayout="column"
-                     fxLayoutAlign="center center"
-                     *ngIf="existingAssets.length == 0">
+                <div
+                    fxFlex="100"
+                    fxLayout="column"
+                    fxLayoutAlign="center center"
+                    *ngIf="existingAssets.length === 0"
+                >
                     <h5>(no assets available)</h5>
                 </div>
             </sp-basic-inner-panel>
diff --git a/ui/src/app/assets/components/asset-overview/asset-overview.component.scss b/ui/src/app/assets/components/asset-overview/asset-overview.component.scss
index d1728955a..efc38fc2b 100644
--- a/ui/src/app/assets/components/asset-overview/asset-overview.component.scss
+++ b/ui/src/app/assets/components/asset-overview/asset-overview.component.scss
@@ -17,5 +17,5 @@
  */
 
 .ml-10 {
-  margin-left: 10px;
+    margin-left: 10px;
 }
diff --git a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
index 1800e33ff..cf942f195 100644
--- a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
+++ b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
@@ -18,117 +18,133 @@
 
 import { Component, OnInit } from '@angular/core';
 import { MatTableDataSource } from '@angular/material/table';
-import { GenericStorageService, SpAssetModel } from '@streampipes/platform-services';
+import {
+    GenericStorageService,
+    SpAssetModel,
+} from '@streampipes/platform-services';
 import { AssetConstants } from '../../constants/asset.constants';
-import { DialogService, PanelType, SpBreadcrumbService } from '@streampipes/shared-ui';
+import {
+    DialogService,
+    PanelType,
+    SpBreadcrumbService,
+} from '@streampipes/shared-ui';
 import { SpAssetRoutes } from '../../assets.routes';
 import { AssetUploadDialogComponent } from '../../dialog/asset-upload/asset-upload-dialog.component';
 import { Router } from '@angular/router';
 import { SpCreateAssetDialogComponent } from '../../dialog/create-asset/create-asset-dialog.component';
 
 @Component({
-  selector: 'sp-asset-overview-component',
-  templateUrl: './asset-overview.component.html',
-  styleUrls: ['./asset-overview.component.scss']
+    selector: 'sp-asset-overview-component',
+    templateUrl: './asset-overview.component.html',
+    styleUrls: ['./asset-overview.component.scss'],
 })
 export class SpAssetOverviewComponent implements OnInit {
+    existingAssets: SpAssetModel[] = [];
 
-  existingAssets: SpAssetModel[] = [];
+    displayedColumns: string[] = ['name', 'action'];
 
-  displayedColumns: string[] = ['name', 'action'];
+    dataSource: MatTableDataSource<SpAssetModel>;
 
-  dataSource: MatTableDataSource<SpAssetModel>;
+    constructor(
+        private genericStorageService: GenericStorageService,
+        private breadcrumbService: SpBreadcrumbService,
+        private dialogService: DialogService,
+        private router: Router,
+    ) {}
 
-  constructor(private genericStorageService: GenericStorageService,
-              private breadcrumbService: SpBreadcrumbService,
-              private dialogService: DialogService,
-              private router: Router) {
-
-  }
-
-  ngOnInit(): void {
-    this.breadcrumbService.updateBreadcrumb(this.breadcrumbService.getRootLink(SpAssetRoutes.BASE));
-    this.loadAssets();
-  }
-
-  loadAssets(): void {
-    this.genericStorageService.getAllDocuments(AssetConstants.ASSET_APP_DOC_NAME).subscribe(result => {
-      this.existingAssets = result as SpAssetModel[];
-      this.dataSource = new MatTableDataSource<SpAssetModel>(this.existingAssets);
-    });
-  }
-
-  createNewAsset(assetModel?: SpAssetModel) {
-    if (!assetModel) {
-      assetModel = {
-        assetName: 'New Asset',
-        assetDescription: '',
-        assetLinks: [],
-        assetId: this.generateId(6),
-        _id: this.generateId(24),
-        appDocType: 'asset-management',
-        removable: true,
-        _rev: undefined,
-        assets: [],
-        assetType: undefined
-      };
+    ngOnInit(): void {
+        this.breadcrumbService.updateBreadcrumb(
+            this.breadcrumbService.getRootLink(SpAssetRoutes.BASE),
+        );
+        this.loadAssets();
     }
-    const dialogRef = this.dialogService.open(SpCreateAssetDialogComponent, {
-      panelType: PanelType.STANDARD_PANEL,
-      title: 'Create asset',
-      width: '40vw',
-      data: {
-        'createMode': true,
-        'assetModel': assetModel
-      }
-    });
-
-    dialogRef.afterClosed().subscribe(() => {
-      this.loadAssets();
-    });
-  }
 
-  private generateId(length): string {
-    const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-    let result = '';
-    for (let i = length; i > 0; --i) {
-      result += chars[Math.round(Math.random() * (chars.length - 1))];
+    loadAssets(): void {
+        this.genericStorageService
+            .getAllDocuments(AssetConstants.ASSET_APP_DOC_NAME)
+            .subscribe(result => {
+                this.existingAssets = result as SpAssetModel[];
+                this.dataSource = new MatTableDataSource<SpAssetModel>(
+                    this.existingAssets,
+                );
+            });
     }
-    return result;
-  }
-
-  uploadAsset() {
-    const dialogRef = this.dialogService.open(AssetUploadDialogComponent, {
-      panelType: PanelType.SLIDE_IN_PANEL,
-      title: 'Upload asset model',
-      width: '40vw',
-    });
 
-    dialogRef.afterClosed().subscribe(reload => {
-      if (reload) {
-        this.loadAssets();
-      }
-    });
-  }
+    createNewAsset(assetModel?: SpAssetModel) {
+        if (!assetModel) {
+            assetModel = {
+                assetName: 'New Asset',
+                assetDescription: '',
+                assetLinks: [],
+                assetId: this.generateId(6),
+                _id: this.generateId(24),
+                appDocType: 'asset-management',
+                removable: true,
+                _rev: undefined,
+                assets: [],
+                assetType: undefined,
+            };
+        }
+        const dialogRef = this.dialogService.open(
+            SpCreateAssetDialogComponent,
+            {
+                panelType: PanelType.STANDARD_PANEL,
+                title: 'Create asset',
+                width: '40vw',
+                data: {
+                    createMode: true,
+                    assetModel: assetModel,
+                },
+            },
+        );
+
+        dialogRef.afterClosed().subscribe(() => {
+            this.loadAssets();
+        });
+    }
 
-  goToDetailsView(asset: SpAssetModel,
-                  editMode = false) {
-    if (!editMode) {
-      this.router.navigate(['assets', 'details', asset._id]);
-    } else {
-      this.router.navigate(['assets', 'details', asset._id], {queryParams: {'editMode': editMode}});
+    private generateId(length): string {
+        const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
+        let result = '';
+        for (let i = length; i > 0; --i) {
+            result += chars[Math.round(Math.random() * (chars.length - 1))];
+        }
+        return result;
     }
-  }
 
-  deleteAsset(asset: SpAssetModel) {
-    this.genericStorageService.deleteDocument(
-      AssetConstants.ASSET_APP_DOC_NAME,
-      asset._id,
-      asset._rev)
-      .subscribe(result => {
-        this.loadAssets();
-      });
-  }
+    uploadAsset() {
+        const dialogRef = this.dialogService.open(AssetUploadDialogComponent, {
+            panelType: PanelType.SLIDE_IN_PANEL,
+            title: 'Upload asset model',
+            width: '40vw',
+        });
+
+        dialogRef.afterClosed().subscribe(reload => {
+            if (reload) {
+                this.loadAssets();
+            }
+        });
+    }
 
+    goToDetailsView(asset: SpAssetModel, editMode = false) {
+        if (!editMode) {
+            this.router.navigate(['assets', 'details', asset._id]);
+        } else {
+            this.router.navigate(['assets', 'details', asset._id], {
+                queryParams: { editMode: editMode },
+            });
+        }
+    }
 
+    deleteAsset(asset: SpAssetModel) {
+        this.genericStorageService
+            .deleteDocument(
+                AssetConstants.ASSET_APP_DOC_NAME,
+                asset._id,
+                asset._rev,
+            )
+            .subscribe(result => {
+                this.loadAssets();
+            });
+    }
 }
diff --git a/ui/src/app/assets/constants/asset.constants.ts b/ui/src/app/assets/constants/asset.constants.ts
index ee412ee6b..9d99800ca 100644
--- a/ui/src/app/assets/constants/asset.constants.ts
+++ b/ui/src/app/assets/constants/asset.constants.ts
@@ -17,7 +17,6 @@
  */
 
 export class AssetConstants {
-
-  public static ASSET_APP_DOC_NAME = 'asset-management';
-  public static ASSET_LINK_TYPES_DOC_NAME = 'asset-link-type';
+    public static ASSET_APP_DOC_NAME = 'asset-management';
+    public static ASSET_LINK_TYPES_DOC_NAME = 'asset-link-type';
 }
diff --git a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.html b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.html
index 9cd6bf1ce..b3b3d62f6 100644
--- a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.html
+++ b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.html
@@ -16,52 +16,96 @@
 ~
 -->
 
-
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
         <div fxFlex="100" fxLayout="column">
-            <div fxFlex style="margin:5px;width:100%" fxLayout="column">
-                <mat-form-field style="width: 95%" (click)="fileInput.click();" color="accent">
+            <div fxFlex style="margin: 5px; width: 100%" fxLayout="column">
+                <mat-form-field
+                    style="width: 95%"
+                    (click)="fileInput.click()"
+                    color="accent"
+                >
                     <mat-label>Upload JSON file</mat-label>
-                    <input matInput placeholder="File" disabled (value)="fileName">
-                    <input #fileInput type="file" style="display:none;"
-                           (change)="handleFileInput($event.target.files)"
-                           data-cy="sp-file-management-file-input">
+                    <input
+                        matInput
+                        placeholder="File"
+                        disabled
+                        (value)="(fileName)"
+                    />
+                    <input
+                        #fileInput
+                        type="file"
+                        style="display: none"
+                        (change)="handleFileInput($event.target.files)"
+                        data-cy="sp-file-management-file-input"
+                    />
                     <div>
-                        {{fileName}}
-                        <mat-progress-bar mode="determinate" value="{{uploadStatus}}" *ngIf="uploadStatus > 0" color="accent"></mat-progress-bar>
+                        {{ fileName }}
+                        <mat-progress-bar
+                            mode="determinate"
+                            value="{{ uploadStatus }}"
+                            *ngIf="uploadStatus > 0"
+                            color="accent"
+                        ></mat-progress-bar>
                     </div>
-                    <button color="accent" matSuffix
-                            mat-button style="min-width: 0px">
-                        <mat-icon *ngIf="uploadStatus < 99">insert_drive_file</mat-icon>
-                        <mat-icon *ngIf="uploadStatus == 100" class="green-icon">check_circle</mat-icon>
+                    <button
+                        color="accent"
+                        matSuffix
+                        mat-button
+                        style="min-width: 0px"
+                    >
+                        <mat-icon *ngIf="uploadStatus < 99"
+                            >insert_drive_file</mat-icon
+                        >
+                        <mat-icon
+                            *ngIf="uploadStatus === 100"
+                            class="green-icon"
+                            >check_circle</mat-icon
+                        >
                     </button>
                     <mat-error *ngIf="!hasInput">
-                        {{errorMessage}}
+                        {{ errorMessage }}
                     </mat-error>
                 </mat-form-field>
             </div>
             <div fxFlex="100">
-                <mat-form-field style="width: 100%;height: 100%;" color="accent">
+                <mat-form-field
+                    style="width: 100%; height: 100%"
+                    color="accent"
+                >
                     <mat-label>Insert model</mat-label>
-                    <textarea matInput [(ngModel)]="jsonModel" style="height: 100%;"
-                              cdkTextareaAutosize
-                              cdkAutosizeMinRows="30"
-                              cdkAutosizeMaxRows="30"></textarea>
+                    <textarea
+                        matInput
+                        [(ngModel)]="jsonModel"
+                        style="height: 100%"
+                        cdkTextareaAutosize
+                        cdkAutosizeMinRows="30"
+                        cdkAutosizeMaxRows="30"
+                    ></textarea>
                 </mat-form-field>
             </div>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button
-                mat-raised-button
-                color="accent"
-                [disabled]="jsonModel === undefined"
-                (click)="store()" data-cy="sp-file-management-store-file" style="margin-right:10px;">
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            [disabled]="jsonModel === undefined"
+            (click)="store()"
+            data-cy="sp-file-management-store-file"
+            style="margin-right: 10px"
+        >
             Create asset
         </button>
-        <button mat-button mat-raised-button class="mat-basic" (click)="cancel()" style="margin-right:10px;">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic"
+            (click)="cancel()"
+            style="margin-right: 10px"
+        >
             Cancel
         </button>
     </div>
diff --git a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.scss b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.scss
index d25ee7413..704f843e4 100644
--- a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.scss
+++ b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.scss
@@ -16,4 +16,4 @@
  *
  */
 
-@import 'src/scss/sp/sp-dialog';
\ No newline at end of file
+@import 'src/scss/sp/sp-dialog';
diff --git a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.ts b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.ts
index b1f52f129..090b1bc47 100644
--- a/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.ts
+++ b/ui/src/app/assets/dialog/asset-upload/asset-upload-dialog.component.ts
@@ -16,62 +16,59 @@
  *
  */
 
-import { Component, OnInit } from '@angular/core';
+import { Component } from '@angular/core';
 import { DialogRef } from '@streampipes/shared-ui';
 import { GenericStorageService } from '@streampipes/platform-services';
 import { AssetConstants } from '../../constants/asset.constants';
 
 @Component({
-  selector: 'sp-file-upload-dialog-component',
-  templateUrl: './asset-upload-dialog.component.html',
-  styleUrls: ['./asset-upload-dialog.component.scss']
+    selector: 'sp-file-upload-dialog-component',
+    templateUrl: './asset-upload-dialog.component.html',
+    styleUrls: ['./asset-upload-dialog.component.scss'],
 })
-export class AssetUploadDialogComponent implements OnInit {
+export class AssetUploadDialogComponent {
+    inputValue: string;
+    fileName: string;
 
-  inputValue: string;
-  fileName: string;
+    jsonModel: string;
 
-  jsonModel: string;
+    hasInput: boolean;
+    errorMessage = 'Please enter a value';
 
-  hasInput: boolean;
-  errorMessage = 'Please enter a value';
+    uploadStatus = 0;
 
-  uploadStatus = 0;
+    constructor(
+        private dialogRef: DialogRef<AssetUploadDialogComponent>,
+        private genericStorageService: GenericStorageService,
+    ) {}
 
-  constructor(private dialogRef: DialogRef<AssetUploadDialogComponent>,
-              private genericStorageService: GenericStorageService) {
+    handleFileInput(files: any) {
+        this.uploadStatus = 0;
 
-  }
+        const fr = new FileReader();
 
-  ngOnInit(): void {
-  }
+        fr.onload = ev => {
+            const jsonObject = JSON.parse(ev.target.result as string);
+            this.jsonModel = JSON.stringify(jsonObject, null, 2);
+        };
 
-  handleFileInput(files: any) {
-    this.uploadStatus = 0;
-
-    const fr = new FileReader();
-
-    fr.onload = (ev => {
-      const jsonObject = JSON.parse(ev.target.result as string);
-      this.jsonModel = JSON.stringify(jsonObject, null, 2);
-    });
-
-    fr.readAsText(files.item(0));
-  }
-
-  store() {
-    this.uploadStatus = 0;
-    if (this.jsonModel !== undefined) {
-      const jsonObject = JSON.parse(this.jsonModel);
-      jsonObject._rev = undefined;
-      this.genericStorageService.createDocument(AssetConstants.ASSET_APP_DOC_NAME, jsonObject).subscribe(result => {
-        this.dialogRef.close(true);
-      });
+        fr.readAsText(files.item(0));
     }
-  }
 
-  cancel() {
-    this.dialogRef.close();
-  }
+    store() {
+        this.uploadStatus = 0;
+        if (this.jsonModel !== undefined) {
+            const jsonObject = JSON.parse(this.jsonModel);
+            jsonObject._rev = undefined;
+            this.genericStorageService
+                .createDocument(AssetConstants.ASSET_APP_DOC_NAME, jsonObject)
+                .subscribe(result => {
+                    this.dialogRef.close(true);
+                });
+        }
+    }
 
+    cancel() {
+        this.dialogRef.close();
+    }
 }
diff --git a/ui/src/app/assets/dialog/base-asset-links.directive.ts b/ui/src/app/assets/dialog/base-asset-links.directive.ts
index 28df15b43..6c29c9ece 100644
--- a/ui/src/app/assets/dialog/base-asset-links.directive.ts
+++ b/ui/src/app/assets/dialog/base-asset-links.directive.ts
@@ -18,81 +18,105 @@
 
 import { Directive } from '@angular/core';
 import {
-  AdapterDescriptionUnion, AdapterService,
-  Dashboard, DashboardService,
-  DataLakeMeasure, DatalakeRestService, DataViewDataExplorerService, FileMetadata, FilesService, GenericStorageService,
-  Pipeline, PipelineElementService, PipelineService,
-  SpDataStream
+    AdapterDescriptionUnion,
+    AdapterService,
+    Dashboard,
+    DashboardService,
+    DataLakeMeasure,
+    DatalakeRestService,
+    DataViewDataExplorerService,
+    FileMetadata,
+    FilesService,
+    GenericStorageService,
+    Pipeline,
+    PipelineElementService,
+    PipelineService,
+    SpDataStream,
 } from '@streampipes/platform-services';
 import { zip } from 'rxjs';
 
 @Directive()
 export abstract class BaseAssetLinksDirective {
+    // Resources
+    pipelines: Pipeline[];
+    dataViews: Dashboard[];
+    dashboards: Dashboard[];
+    dataLakeMeasures: DataLakeMeasure[];
+    dataSources: SpDataStream[];
+    adapters: AdapterDescriptionUnion[];
+    files: FileMetadata[];
 
-  // Resources
-  pipelines: Pipeline[];
-  dataViews: Dashboard[];
-  dashboards: Dashboard[];
-  dataLakeMeasures: DataLakeMeasure[];
-  dataSources: SpDataStream[];
-  adapters: AdapterDescriptionUnion[];
-  files: FileMetadata[];
+    allResources: any[] = [];
 
-  allResources: any[] = [];
+    constructor(
+        protected genericStorageService: GenericStorageService,
+        protected pipelineService: PipelineService,
+        protected dataViewService: DataViewDataExplorerService,
+        protected dashboardService: DashboardService,
+        protected dataLakeService: DatalakeRestService,
+        protected pipelineElementService: PipelineElementService,
+        protected adapterService: AdapterService,
+        protected filesService: FilesService,
+    ) {}
 
-  constructor(protected genericStorageService: GenericStorageService,
-              protected pipelineService: PipelineService,
-              protected dataViewService: DataViewDataExplorerService,
-              protected dashboardService: DashboardService,
-              protected dataLakeService: DatalakeRestService,
-              protected pipelineElementService: PipelineElementService,
-              protected adapterService: AdapterService,
-              protected filesService: FilesService) {
+    onInit() {
+        this.getAllResources();
+    }
 
-  }
+    getAllResources() {
+        zip(
+            this.pipelineService.getOwnPipelines(),
+            this.dataViewService.getDataViews(),
+            this.dashboardService.getDashboards(),
+            this.pipelineElementService.getDataStreams(),
+            this.dataLakeService.getAllMeasurementSeries(),
+            this.filesService.getFileMetadata(),
+            this.adapterService.getAdapters(),
+        ).subscribe(
+            ([
+                pipelines,
+                dataViews,
+                dashboards,
+                streams,
+                measurements,
+                files,
+                adapters,
+            ]) => {
+                this.pipelines = pipelines.sort((a, b) =>
+                    a.name.localeCompare(b.name),
+                );
+                this.dataViews = dataViews.sort((a, b) =>
+                    a.name.localeCompare(b.name),
+                );
+                this.dashboards = dashboards.sort((a, b) =>
+                    a.name.localeCompare(b.name),
+                );
+                this.dataSources = streams.sort((a, b) =>
+                    a.name.localeCompare(b.name),
+                );
+                this.dataLakeMeasures = measurements.sort((a, b) =>
+                    a.measureName.localeCompare(b.measureName),
+                );
+                this.files = files.sort((a, b) =>
+                    a.originalFilename.localeCompare(b.originalFilename),
+                );
+                this.adapters = adapters.sort((a, b) =>
+                    a.name.localeCompare(b.name),
+                );
 
-  onInit() {
-    this.getAllResources();
-  }
+                this.allResources = [
+                    ...this.pipelines,
+                    ...this.dataViews,
+                    ...this.dashboards,
+                    ...this.dataSources,
+                    ...this.dataLakeMeasures,
+                    ...this.files,
+                    ...this.adapters,
+                ];
+                this.afterResourcesLoaded();
+            },
+        );
+    }
 
-  getAllResources() {
-    zip(
-      this.pipelineService.getOwnPipelines(),
-        this.dataViewService.getDataViews(),
-        this.dashboardService.getDashboards(),
-        this.pipelineElementService.getDataStreams(),
-        this.dataLakeService.getAllMeasurementSeries(),
-        this.filesService.getFileMetadata(),
-        this.adapterService.getAdapters()).subscribe((
-      [pipelines,
-        dataViews,
-        dashboards,
-        streams,
-        measurements,
-        files,
-        adapters
-      ]) => {
-      this.pipelines = pipelines.sort((a, b) => a.name.localeCompare(b.name));
-      this.dataViews = dataViews.sort((a, b) => a.name.localeCompare(b.name));
-      this.dashboards = dashboards.sort((a, b) => a.name.localeCompare(b.name));
-      this.dataSources = streams.sort((a, b) => a.name.localeCompare(b.name));
-      this.dataLakeMeasures = measurements.sort((a, b) => a.measureName.localeCompare(b.measureName));
-      this.files = files.sort((a, b) => a.originalFilename.localeCompare(b.originalFilename));
-      this.adapters = adapters.sort((a, b) => a.name.localeCompare(b.name));
-
-      this.allResources = [
-        ...this.pipelines,
-        ...this.dataViews,
-        ...this.dashboards,
-        ...this.dataSources,
-        ...this.dataLakeMeasures,
-        ...this.files,
-        ...this.adapters
-      ];
-      this.afterResourcesLoaded();
-    });
-  }
-
-  abstract afterResourcesLoaded(): void;
+    abstract afterResourcesLoaded(): void;
 }
-
diff --git a/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.html b/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.html
index 3515fd992..e4acc1423 100644
--- a/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.html
+++ b/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.html
@@ -19,32 +19,45 @@
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
         <div fxFlex="100">
-            <div fxFlex="100" fxLayout="column" style="margin:5px;width:100%">
+            <div
+                fxFlex="100"
+                fxLayout="column"
+                style="margin: 5px; width: 100%"
+            >
                 <mat-form-field class="full-width" color="accent">
                     <mat-label>Asset Name</mat-label>
-                    <input matInput
-                           data-cy="asset-name"
-                           [(ngModel)]="assetModel.assetName">
+                    <input
+                        matInput
+                        data-cy="asset-name"
+                        [(ngModel)]="assetModel.assetName"
+                    />
                 </mat-form-field>
                 <mat-form-field class="full-width" color="accent">
                     <mat-label>Description</mat-label>
-                    <input matInput [(ngModel)]="assetModel.assetDescription">
+                    <input matInput [(ngModel)]="assetModel.assetDescription" />
                 </mat-form-field>
             </div>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions actions-align-right">
-        <button mat-button mat-raised-button class="mat-basic mr-10"
-                (click)="onCancel()" style="margin-right: 10px;">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic mr-10"
+            (click)="onCancel()"
+            style="margin-right: 10px"
+        >
             Close
         </button>
-        <button mat-button mat-raised-button color="accent"
-                data-cy="save-data-view"
-                (click)="onSave()">
-            {{createMode ? 'Create' : 'Save'}}
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            data-cy="save-data-view"
+            (click)="onSave()"
+        >
+            {{ createMode ? 'Create' : 'Save' }}
         </button>
     </div>
 </div>
-
-
diff --git a/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.ts b/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.ts
index 460a304c3..e4a6aad67 100644
--- a/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.ts
+++ b/ui/src/app/assets/dialog/create-asset/create-asset-dialog.component.ts
@@ -16,44 +16,45 @@
  *
  */
 
-
-import { Component, Input, OnInit } from '@angular/core';
-import { AssetManagementService, DataViewDataExplorerService, SpAssetModel } from '@streampipes/platform-services';
+import { Component, Input } from '@angular/core';
+import {
+    AssetManagementService,
+    DataViewDataExplorerService,
+    SpAssetModel,
+} from '@streampipes/platform-services';
 import { DialogRef } from '@streampipes/shared-ui';
 
 @Component({
-  selector: 'sp-create-asset-dialog-component',
-  templateUrl: './create-asset-dialog.component.html',
-  styleUrls: ['./create-asset-dialog.component.scss']
+    selector: 'sp-create-asset-dialog-component',
+    templateUrl: './create-asset-dialog.component.html',
+    styleUrls: ['./create-asset-dialog.component.scss'],
 })
-export class SpCreateAssetDialogComponent implements OnInit {
-
-  @Input() createMode: boolean;
-  @Input() assetModel: SpAssetModel;
-
-  constructor(
-    private dialogRef: DialogRef<SpCreateAssetDialogComponent>,
-    private assetManagementService: AssetManagementService) {
-  }
-
-  ngOnInit() {
+export class SpCreateAssetDialogComponent {
+    @Input() createMode: boolean;
+    @Input() assetModel: SpAssetModel;
 
-  }
+    constructor(
+        private dialogRef: DialogRef<SpCreateAssetDialogComponent>,
+        private assetManagementService: AssetManagementService,
+    ) {}
 
-  onCancel(): void {
-    this.dialogRef.close();
-  }
-
-  onSave(): void {
-    if (this.createMode) {
-      this.assetManagementService.createAsset(this.assetModel).subscribe(() => {
-        this.dialogRef.close();
-      });
-    } else {
-      this.assetManagementService.updateAsset(this.assetModel).subscribe(() => {
+    onCancel(): void {
         this.dialogRef.close();
-      });
     }
-  }
 
+    onSave(): void {
+        if (this.createMode) {
+            this.assetManagementService
+                .createAsset(this.assetModel)
+                .subscribe(() => {
+                    this.dialogRef.close();
+                });
+        } else {
+            this.assetManagementService
+                .updateAsset(this.assetModel)
+                .subscribe(() => {
+                    this.dialogRef.close();
+                });
+        }
+    }
 }
diff --git a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.html b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.html
index 143d09387..b65fc359f 100644
--- a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.html
+++ b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.html
@@ -16,129 +16,259 @@
 ~
 -->
 
-
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
         <div fxFlex="100" fxLayout="column" *ngIf="clonedAssetLink">
-            <div fxLayout="column" class="link-configuration link-type-selection">
+            <div
+                fxLayout="column"
+                class="link-configuration link-type-selection"
+            >
                 <mat-form-field color="accent">
                     <mat-label>Link Type</mat-label>
-                    <mat-select fxFlex [(value)]="selectedLinkType"
-                                required (selectionChange)="onLinkTypeChanged($event)">
-                        <mat-option *ngFor="let assetLinkType of assetLinkTypes"
-                                    [value]="assetLinkType">{{assetLinkType.linkLabel}}</mat-option>
+                    <mat-select
+                        fxFlex
+                        [(value)]="selectedLinkType"
+                        required
+                        (selectionChange)="onLinkTypeChanged($event)"
+                    >
+                        <mat-option
+                            *ngFor="let assetLinkType of assetLinkTypes"
+                            [value]="assetLinkType"
+                            >{{ assetLinkType.linkLabel }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'pipeline'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'pipeline'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Pipelines</mat-label>
-                    <mat-select [(ngModel)]="currentResource"
-                                fxFlex (selectionChange)="changeLabel($event.value._id, $event.value.name, $event.value)"
-                                required>
-                        <mat-option *ngFor="let pipeline of pipelines"
-                                    [value]="pipeline">{{pipeline.name}}</mat-option>
+                    <mat-select
+                        [(ngModel)]="currentResource"
+                        fxFlex
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value._id,
+                                $event.value.name,
+                                $event.value
+                            )
+                        "
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let pipeline of pipelines"
+                            [value]="pipeline"
+                            >{{ pipeline.name }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'data-source'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'data-source'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Data Source</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value.elementId, $event.value.name, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let source of dataSources"
-                                    [value]="source">{{source.name}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value.elementId,
+                                $event.value.name,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let source of dataSources"
+                            [value]="source"
+                            >{{ source.name }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'dashboard'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'dashboard'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Dashboards</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value._id, $event.value.name, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let dashboard of dashboards"
-                                    [value]="dashboard">{{dashboard.name}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value._id,
+                                $event.value.name,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let dashboard of dashboards"
+                            [value]="dashboard"
+                            >{{ dashboard.name }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'data-view'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'data-view'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Data Views</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value._id, $event.value.name, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let dataView of dataViews"
-                                    [value]="dataView">{{dataView.name}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value._id,
+                                $event.value.name,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let dataView of dataViews"
+                            [value]="dataView"
+                            >{{ dataView.name }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'adapter'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'adapter'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Adapter</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value.elementId, $event.value.name, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let adapter of adapters"
-                                    [value]="adapter">{{adapter.name}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value.elementId,
+                                $event.value.name,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let adapter of adapters"
+                            [value]="adapter"
+                            >{{ adapter.name }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'measurement'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'measurement'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Data Lake Storage</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value.elementId, $event.value.measureName, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let measure of dataLakeMeasures"
-                                    [value]="measure">{{measure.measureName}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value.elementId,
+                                $event.value.measureName,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option
+                            *ngFor="let measure of dataLakeMeasures"
+                            [value]="measure"
+                            >{{ measure.measureName }}</mat-option
+                        >
                     </mat-select>
                 </mat-form-field>
             </div>
-            <div *ngIf="selectedLinkType.linkQueryHint === 'file'" fxLayout="column" class="link-configuration">
+            <div
+                *ngIf="selectedLinkType.linkQueryHint === 'file'"
+                fxLayout="column"
+                class="link-configuration"
+            >
                 <mat-form-field color="accent" fxFlex="100">
                     <mat-label>Files</mat-label>
-                    <mat-select (selectionChange)="changeLabel($event.value.fileId, $event.value.originalFilename, $event.value)"
-                                [(value)]="currentResource"
-                                fxFlex
-                                required>
-                        <mat-option *ngFor="let file of files"
-                                    [value]="file">{{file.originalFilename}}</mat-option>
+                    <mat-select
+                        (selectionChange)="
+                            changeLabel(
+                                $event.value.fileId,
+                                $event.value.originalFilename,
+                                $event.value
+                            )
+                        "
+                        [(value)]="currentResource"
+                        fxFlex
+                        required
+                    >
+                        <mat-option *ngFor="let file of files" [value]="file">{{
+                            file.originalFilename
+                        }}</mat-option>
                     </mat-select>
                 </mat-form-field>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <mat-form-field color="accent">
                     <mat-label>Label</mat-label>
-                    <input matInput [(ngModel)]="clonedAssetLink.linkLabel" required>
+                    <input
+                        matInput
+                        [(ngModel)]="clonedAssetLink.linkLabel"
+                        required
+                    />
                 </mat-form-field>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <mat-form-field color="accent">
                     <mat-label>Resource ID</mat-label>
-                    <input matInput [(ngModel)]="clonedAssetLink.resourceId" required [disabled]="true">
+                    <input
+                        matInput
+                        [(ngModel)]="clonedAssetLink.resourceId"
+                        required
+                        [disabled]="true"
+                    />
                 </mat-form-field>
             </div>
-            <div fxFlex="100">
-
-            </div>
+            <div fxFlex="100"></div>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button
-                mat-raised-button
-                color="accent"
-                (click)="store()" style="margin-right:10px;" [disabled]="!clonedAssetLink.resourceId">
-            {{createMode ? 'Create ' : 'Update' }} link
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            (click)="store()"
+            style="margin-right: 10px"
+            [disabled]="!clonedAssetLink.resourceId"
+        >
+            {{ createMode ? 'Create ' : 'Update' }} link
         </button>
-        <button mat-button mat-raised-button class="mat-basic" (click)="cancel()" style="margin-right:10px;">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic"
+            (click)="cancel()"
+            style="margin-right: 10px"
+        >
             Cancel
         </button>
     </div>
diff --git a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.scss b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.scss
index e1f0e27ce..d16d660ec 100644
--- a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.scss
+++ b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.scss
@@ -22,9 +22,9 @@
 }
 
 .link-configuration {
-  padding: 10px;
-  width:100%;
-  margin:5px;
-  background: var(--color-bg-1);
-  border: 1px solid var(--color-bg-3);
+    padding: 10px;
+    width: 100%;
+    margin: 5px;
+    background: var(--color-bg-1);
+    border: 1px solid var(--color-bg-3);
 }
diff --git a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.ts b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.ts
index 216ca432c..e87ee8fed 100644
--- a/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.ts
+++ b/ui/src/app/assets/dialog/edit-asset-link/edit-asset-link-dialog.component.ts
@@ -19,19 +19,22 @@
 import { Component, Input, OnInit } from '@angular/core';
 import { DialogRef } from '@streampipes/shared-ui';
 import {
-  AdapterDescriptionUnion,
-  SpDataStream,
-  AdapterService,
-  AssetLink,
-  AssetLinkType,
-  Dashboard,
-  DashboardService,
-  DataLakeMeasure, DatalakeRestService,
-  DataViewDataExplorerService,
-  GenericStorageService,
-  Pipeline,
-  PipelineService,
-  PipelineElementService, FileMetadata, FilesService
+    AdapterDescriptionUnion,
+    SpDataStream,
+    AdapterService,
+    AssetLink,
+    AssetLinkType,
+    Dashboard,
+    DashboardService,
+    DataLakeMeasure,
+    DatalakeRestService,
+    DataViewDataExplorerService,
+    GenericStorageService,
+    Pipeline,
+    PipelineService,
+    PipelineElementService,
+    FileMetadata,
+    FilesService,
 } from '@streampipes/platform-services';
 import { UntypedFormGroup } from '@angular/forms';
 import { zip } from 'rxjs';
@@ -39,89 +42,99 @@ import { MatSelectChange } from '@angular/material/select';
 import { BaseAssetLinksDirective } from '../base-asset-links.directive';
 
 @Component({
-  selector: 'sp-edit-asset-link-dialog-component',
-  templateUrl: './edit-asset-link-dialog.component.html',
-  styleUrls: ['./edit-asset-link-dialog.component.scss']
+    selector: 'sp-edit-asset-link-dialog-component',
+    templateUrl: './edit-asset-link-dialog.component.html',
+    styleUrls: ['./edit-asset-link-dialog.component.scss'],
 })
-export class EditAssetLinkDialogComponent extends BaseAssetLinksDirective implements OnInit {
-
-  @Input()
-  assetLink: AssetLink;
-
-  @Input()
-  assetLinkTypes: AssetLinkType[];
-
-  @Input()
-  createMode: boolean;
-
-  parentForm: UntypedFormGroup;
-
-  clonedAssetLink: AssetLink;
-
-
-  currentResource: any;
-
-  selectedLinkType: AssetLinkType;
-
-  constructor(private dialogRef: DialogRef<EditAssetLinkDialogComponent>,
-              protected genericStorageService: GenericStorageService,
-              protected pipelineService: PipelineService,
-              protected dataViewService: DataViewDataExplorerService,
-              protected dashboardService: DashboardService,
-              protected dataLakeService: DatalakeRestService,
-              protected pipelineElementService: PipelineElementService,
-              protected adapterService: AdapterService,
-              protected filesService: FilesService) {
-    super(
-      genericStorageService,
-      pipelineService,
-      dataViewService,
-      dashboardService,
-      dataLakeService,
-      pipelineElementService,
-      adapterService,
-      filesService);
-  }
-
-  ngOnInit(): void {
-    super.onInit();
-    this.clonedAssetLink = {...this.assetLink};
-    this.selectedLinkType = this.getCurrAssetLinkType();
-  }
-
-  getCurrAssetLinkType(): AssetLinkType {
-    return this.assetLinkTypes.find(a => a.linkType === this.clonedAssetLink.linkType);
-  }
-
-  store() {
-    this.assetLink = this.clonedAssetLink;
-    this.dialogRef.close(this.assetLink);
-  }
-
-  cancel() {
-    this.dialogRef.close();
-  }
-
-  onLinkTypeChanged(event: MatSelectChange): void {
-    this.selectedLinkType = event.value;
-    const linkType = this.assetLinkTypes.find(a => a.linkType === this.selectedLinkType.linkType);
-    this.clonedAssetLink.editingDisabled = false;
-    this.clonedAssetLink.linkType = linkType.linkType;
-    this.clonedAssetLink.queryHint = linkType.linkQueryHint;
-    this.clonedAssetLink.navigationActive = linkType.navigationActive;
-  }
-
-  changeLabel(id: string, label: string, currentResource: any) {
-    this.clonedAssetLink.resourceId = id;
-    this.clonedAssetLink.linkLabel = label;
-    this.currentResource = currentResource;
-  }
-
-  afterResourcesLoaded(): void {
-    if (!this.createMode) {
-      this.currentResource = this.allResources.find(r => r._id === this.clonedAssetLink.resourceId ||
-        r.elementId === this.clonedAssetLink.resourceId);
+export class EditAssetLinkDialogComponent
+    extends BaseAssetLinksDirective
+    implements OnInit
+{
+    @Input()
+    assetLink: AssetLink;
+
+    @Input()
+    assetLinkTypes: AssetLinkType[];
+
+    @Input()
+    createMode: boolean;
+
+    parentForm: UntypedFormGroup;
+
+    clonedAssetLink: AssetLink;
+
+    currentResource: any;
+
+    selectedLinkType: AssetLinkType;
+
+    constructor(
+        private dialogRef: DialogRef<EditAssetLinkDialogComponent>,
+        protected genericStorageService: GenericStorageService,
+        protected pipelineService: PipelineService,
+        protected dataViewService: DataViewDataExplorerService,
+        protected dashboardService: DashboardService,
+        protected dataLakeService: DatalakeRestService,
+        protected pipelineElementService: PipelineElementService,
+        protected adapterService: AdapterService,
+        protected filesService: FilesService,
+    ) {
+        super(
+            genericStorageService,
+            pipelineService,
+            dataViewService,
+            dashboardService,
+            dataLakeService,
+            pipelineElementService,
+            adapterService,
+            filesService,
+        );
     }
-  }
 
+    ngOnInit(): void {
+        super.onInit();
+        this.clonedAssetLink = { ...this.assetLink };
+        this.selectedLinkType = this.getCurrAssetLinkType();
+    }
+
+    getCurrAssetLinkType(): AssetLinkType {
+        return this.assetLinkTypes.find(
+            a => a.linkType === this.clonedAssetLink.linkType,
+        );
+    }
+
+    store() {
+        this.assetLink = this.clonedAssetLink;
+        this.dialogRef.close(this.assetLink);
+    }
+
+    cancel() {
+        this.dialogRef.close();
+    }
+
+    onLinkTypeChanged(event: MatSelectChange): void {
+        this.selectedLinkType = event.value;
+        const linkType = this.assetLinkTypes.find(
+            a => a.linkType === this.selectedLinkType.linkType,
+        );
+        this.clonedAssetLink.editingDisabled = false;
+        this.clonedAssetLink.linkType = linkType.linkType;
+        this.clonedAssetLink.queryHint = linkType.linkQueryHint;
+        this.clonedAssetLink.navigationActive = linkType.navigationActive;
+    }
+
+    changeLabel(id: string, label: string, currentResource: any) {
+        this.clonedAssetLink.resourceId = id;
+        this.clonedAssetLink.linkLabel = label;
+        this.currentResource = currentResource;
+    }
+
+    afterResourcesLoaded(): void {
+        if (!this.createMode) {
+            this.currentResource = this.allResources.find(
+                r =>
+                    r._id === this.clonedAssetLink.resourceId ||
+                    r.elementId === this.clonedAssetLink.resourceId,
+            );
+        }
+    }
 }
diff --git a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.html b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.html
index eba2f811f..0d7d280b1 100644
--- a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.html
+++ b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.html
@@ -16,137 +16,280 @@
 ~
 -->
 
-
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
         <div fxFlex="100" fxLayout="column" *ngIf="clonedAssetLinks">
             <div fxLayout="column" class="link-configuration">
-                <div fxLayout="row" fxLayoutAlign="start center" class="mb-10" fxFlex="100">
+                <div
+                    fxLayout="row"
+                    fxLayoutAlign="start center"
+                    class="mb-10"
+                    fxFlex="100"
+                >
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Adapters</span>
+                        <span class="general-options-header mb-0"
+                            >Adapters</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(adapters, elementIdFunction, nameFunction, 'adapter')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    adapters,
+                                    elementIdFunction,
+                                    nameFunction,
+                                    'adapter'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(adapters, elementIdFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="deselectAll(adapters, elementIdFunction)"
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let element of adapters" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(element.elementId)"
-                                  (change)="selectLink($event.checked, element.elementId, element.name, 'adapter')">
-                        {{element.name}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(element.elementId)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                element.elementId,
+                                element.name,
+                                'adapter'
+                            )
+                        "
+                    >
+                        {{ element.name }}
                     </mat-checkbox>
                 </div>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <div fxLayout="row" fxLayoutAlign="start center" class="mb-10">
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Dasboards</span>
+                        <span class="general-options-header mb-0"
+                            >Dasboards</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(dashboards, idFunction, nameFunction, 'dashboard')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    dashboards,
+                                    idFunction,
+                                    nameFunction,
+                                    'dashboard'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(dashboards, idFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="deselectAll(dashboards, idFunction)"
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let element of dashboards" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(element._id)"
-                                  (change)="selectLink($event.checked, element._id, element.name, 'dashboard')">
-                        {{element.name}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(element._id)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                element._id,
+                                element.name,
+                                'dashboard'
+                            )
+                        "
+                    >
+                        {{ element.name }}
                     </mat-checkbox>
                 </div>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <div fxLayout="row" fxLayoutAlign="start center" class="mb-10">
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Data Lake Storage</span>
+                        <span class="general-options-header mb-0"
+                            >Data Lake Storage</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(dataLakeMeasures, elementIdFunction, measureNameFunction, 'measurement')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    dataLakeMeasures,
+                                    elementIdFunction,
+                                    measureNameFunction,
+                                    'measurement'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(dataLakeMeasures, elementIdFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="
+                                deselectAll(dataLakeMeasures, elementIdFunction)
+                            "
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let element of dataLakeMeasures" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(element.elementId)"
-                                  (change)="selectLink($event.checked, element.elementId, element.measureName, 'measurement')">
-                        {{element.measureName}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(element.elementId)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                element.elementId,
+                                element.measureName,
+                                'measurement'
+                            )
+                        "
+                    >
+                        {{ element.measureName }}
                     </mat-checkbox>
                 </div>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <div fxLayout="row" fxLayoutAlign="start center" class="mb-10">
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Data Sources</span>
+                        <span class="general-options-header mb-0"
+                            >Data Sources</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(dataSources, elementIdFunction, nameFunction, 'data-source')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    dataSources,
+                                    elementIdFunction,
+                                    nameFunction,
+                                    'data-source'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(dataSources, elementIdFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="
+                                deselectAll(dataSources, elementIdFunction)
+                            "
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let source of dataSources" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(source.elementId)"
-                                  (change)="selectLink($event.checked, source.elementId, source.name, 'data-source')">
-                        {{source.name}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(source.elementId)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                source.elementId,
+                                source.name,
+                                'data-source'
+                            )
+                        "
+                    >
+                        {{ source.name }}
                     </mat-checkbox>
                 </div>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <div fxLayout="row" fxLayoutAlign="start center" class="mb-10">
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Data Views</span>
+                        <span class="general-options-header mb-0"
+                            >Data Views</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(dataViews, idFunction, nameFunction, 'data-view')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    dataViews,
+                                    idFunction,
+                                    nameFunction,
+                                    'data-view'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(dataViews, idFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="deselectAll(dataViews, idFunction)"
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let element of dataViews" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(element._id)"
-                                  (change)="selectLink($event.checked, element._id, element.name, 'data-view')">
-                        {{element.name}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(element._id)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                element._id,
+                                element.name,
+                                'data-view'
+                            )
+                        "
+                    >
+                        {{ element.name }}
                     </mat-checkbox>
                 </div>
             </div>
@@ -156,60 +299,123 @@
                         <span class="general-options-header mb-0">Files</span>
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(files, fileIdFunction, filenameFunction, 'file')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    files,
+                                    fileIdFunction,
+                                    filenameFunction,
+                                    'file'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(files, fileIdFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="deselectAll(files, fileIdFunction)"
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let element of files" fxLayout="row">
-                    <mat-checkbox color="accent"
-                                  [checked]="linkSelected(element.fileId)"
-                                  (change)="selectLink($event.checked, element.fileId, element.originalFilename, 'file')">
-                        {{element.originalFilename}}
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(element.fileId)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                element.fileId,
+                                element.originalFilename,
+                                'file'
+                            )
+                        "
+                    >
+                        {{ element.originalFilename }}
                     </mat-checkbox>
                 </div>
             </div>
             <div fxLayout="column" class="link-configuration">
                 <div fxLayout="row" fxLayoutAlign="start center" class="mb-10">
                     <div fxLayout="row" fxLayoutAlign="start center">
-                        <span class="general-options-header mb-0">Pipelines</span>
+                        <span class="general-options-header mb-0"
+                            >Pipelines</span
+                        >
                     </div>
                     <div fxLayout="row" fxLayoutAlign="end center" fxFlex>
-                        <button mat-button mat-raised-button color="accent" class="small-button"
-                                (click)="selectAll(pipelines, idFunction, nameFunction, 'pipeline')"
-                                style="margin-right:5px;margin-left:15px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            color="accent"
+                            class="small-button"
+                            (click)="
+                                selectAll(
+                                    pipelines,
+                                    idFunction,
+                                    nameFunction,
+                                    'pipeline'
+                                )
+                            "
+                            style="margin-right: 5px; margin-left: 15px"
+                        >
                             <span>Select All</span>
                         </button>
-                        <button mat-button mat-raised-button class="mat-basic small-button"
-                                (click)="deselectAll(pipelines, idFunction)"
-                                style="margin-right:10px;margin-left:5px;">
+                        <button
+                            mat-button
+                            mat-raised-button
+                            class="mat-basic small-button"
+                            (click)="deselectAll(pipelines, idFunction)"
+                            style="margin-right: 10px; margin-left: 5px"
+                        >
                             <span>Deselect All</span>
                         </button>
                     </div>
                 </div>
                 <div *ngFor="let pipeline of pipelines" fxLayout="row">
-                    <mat-checkbox color="accent" [checked]="linkSelected(pipeline._id)"
-                                  (change)="selectLink($event.checked, pipeline._id, pipeline.name, 'pipeline')">{{pipeline.name}}</mat-checkbox>
+                    <mat-checkbox
+                        color="accent"
+                        [checked]="linkSelected(pipeline._id)"
+                        (change)="
+                            selectLink(
+                                $event.checked,
+                                pipeline._id,
+                                pipeline.name,
+                                'pipeline'
+                            )
+                        "
+                        >{{ pipeline.name }}</mat-checkbox
+                    >
                 </div>
             </div>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions">
-        <button mat-button
-                mat-raised-button
-                color="accent"
-                (click)="store()" style="margin-right:10px;">
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            (click)="store()"
+            style="margin-right: 10px"
+        >
             Update links
         </button>
-        <button mat-button mat-raised-button class="mat-basic" (click)="cancel()" style="margin-right:10px;">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic"
+            (click)="cancel()"
+            style="margin-right: 10px"
+        >
             Cancel
         </button>
     </div>
diff --git a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.scss b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.scss
index c7debbd6e..e22d0671a 100644
--- a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.scss
+++ b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.scss
@@ -19,13 +19,13 @@
 @import 'src/scss/sp/sp-dialog';
 
 .link-configuration {
-  padding: 10px;
-  width:100%;
-  margin:5px;
-  background: var(--color-bg-1);
-  border: 1px solid var(--color-bg-3);
+    padding: 10px;
+    width: 100%;
+    margin: 5px;
+    background: var(--color-bg-1);
+    border: 1px solid var(--color-bg-3);
 }
 
 .mb-0 {
-  margin-bottom: 0;
+    margin-bottom: 0;
 }
diff --git a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.ts b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.ts
index 320bf835a..6c84dbc3d 100644
--- a/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.ts
+++ b/ui/src/app/assets/dialog/manage-asset-links/manage-asset-links-dialog.component.ts
@@ -19,19 +19,22 @@
 import { Component, Input, OnInit } from '@angular/core';
 import { DialogRef } from '@streampipes/shared-ui';
 import {
-  AdapterDescriptionUnion,
-  SpDataStream,
-  AdapterService,
-  AssetLink,
-  AssetLinkType,
-  Dashboard,
-  DashboardService,
-  DataLakeMeasure, DatalakeRestService,
-  DataViewDataExplorerService,
-  GenericStorageService,
-  Pipeline,
-  PipelineService,
-  PipelineElementService, FileMetadata, FilesService
+    AdapterDescriptionUnion,
+    SpDataStream,
+    AdapterService,
+    AssetLink,
+    AssetLinkType,
+    Dashboard,
+    DashboardService,
+    DataLakeMeasure,
+    DatalakeRestService,
+    DataViewDataExplorerService,
+    GenericStorageService,
+    Pipeline,
+    PipelineService,
+    PipelineElementService,
+    FileMetadata,
+    FilesService,
 } from '@streampipes/platform-services';
 import { FormGroup } from '@angular/forms';
 import { zip } from 'rxjs';
@@ -39,121 +42,139 @@ import { MatSelectChange } from '@angular/material/select';
 import { BaseAssetLinksDirective } from '../base-asset-links.directive';
 
 @Component({
-  selector: 'sp-manage-asset-links-dialog-component',
-  templateUrl: './manage-asset-links-dialog.component.html',
-  styleUrls: ['./manage-asset-links-dialog.component.scss']
+    selector: 'sp-manage-asset-links-dialog-component',
+    templateUrl: './manage-asset-links-dialog.component.html',
+    styleUrls: ['./manage-asset-links-dialog.component.scss'],
 })
-export class SpManageAssetLinksDialogComponent extends BaseAssetLinksDirective implements OnInit {
-
-  @Input()
-  assetLinks: AssetLink[];
-
-  @Input()
-  assetLinkTypes: AssetLinkType[];
-
-  clonedAssetLinks: AssetLink[] = [];
-
-  idFunction = (el) => el._id;
-  elementIdFunction = (el) => el.elementId;
-  fileIdFunction = (el) => el.fileId;
-  nameFunction = (el) => el.name;
-  filenameFunction = (el) => el.originalFilename;
-  measureNameFunction = (el) => el.measureName;
-
-
-  constructor(private dialogRef: DialogRef<SpManageAssetLinksDialogComponent>,
-              protected genericStorageService: GenericStorageService,
-              protected pipelineService: PipelineService,
-              protected dataViewService: DataViewDataExplorerService,
-              protected dashboardService: DashboardService,
-              protected dataLakeService: DatalakeRestService,
-              protected pipelineElementService: PipelineElementService,
-              protected adapterService: AdapterService,
-              protected filesService: FilesService) {
-    super(
-      genericStorageService,
-      pipelineService,
-      dataViewService,
-      dashboardService,
-      dataLakeService,
-      pipelineElementService,
-      adapterService,
-      filesService);
-  }
-
-  ngOnInit(): void {
-    super.onInit();
-    this.clonedAssetLinks = [
-      ...this.assetLinks.map(al => {
-        return {...al};
-      })
-    ];
-  }
+export class SpManageAssetLinksDialogComponent
+    extends BaseAssetLinksDirective
+    implements OnInit
+{
+    @Input()
+    assetLinks: AssetLink[];
+
+    @Input()
+    assetLinkTypes: AssetLinkType[];
+
+    clonedAssetLinks: AssetLink[] = [];
+
+    idFunction = el => el._id;
+    elementIdFunction = el => el.elementId;
+    fileIdFunction = el => el.fileId;
+    nameFunction = el => el.name;
+    filenameFunction = el => el.originalFilename;
+    measureNameFunction = el => el.measureName;
+
+    constructor(
+        private dialogRef: DialogRef<SpManageAssetLinksDialogComponent>,
+        protected genericStorageService: GenericStorageService,
+        protected pipelineService: PipelineService,
+        protected dataViewService: DataViewDataExplorerService,
+        protected dashboardService: DashboardService,
+        protected dataLakeService: DatalakeRestService,
+        protected pipelineElementService: PipelineElementService,
+        protected adapterService: AdapterService,
+        protected filesService: FilesService,
+    ) {
+        super(
+            genericStorageService,
+            pipelineService,
+            dataViewService,
+            dashboardService,
+            dataLakeService,
+            pipelineElementService,
+            adapterService,
+            filesService,
+        );
+    }
 
-  cancel(): void {
-    this.dialogRef.close();
-  }
+    ngOnInit(): void {
+        super.onInit();
+        this.clonedAssetLinks = [
+            ...this.assetLinks.map(al => {
+                return { ...al };
+            }),
+        ];
+    }
 
-  store(): void {
-    this.assetLinks = this.clonedAssetLinks;
-    this.dialogRef.close(this.assetLinks);
-  }
+    cancel(): void {
+        this.dialogRef.close();
+    }
 
-  afterResourcesLoaded(): void {
-  }
+    store(): void {
+        this.assetLinks = this.clonedAssetLinks;
+        this.dialogRef.close(this.assetLinks);
+    }
 
-  linkSelected(resourceId: string): boolean {
-    return this.clonedAssetLinks.find(al => al.resourceId === resourceId) !== undefined;
-  }
+    afterResourcesLoaded(): void {}
 
-  selectLink(checked: boolean,
-             resourceId: string,
-             label: string,
-             assetLinkType: string): void {
-    if (checked) {
-      this.clonedAssetLinks.push(this.makeLink(resourceId, label, assetLinkType));
-    } else {
-      const index = this.clonedAssetLinks.findIndex(al => al.resourceId === resourceId);
-      this.clonedAssetLinks.splice(index, 1);
+    linkSelected(resourceId: string): boolean {
+        return (
+            this.clonedAssetLinks.find(al => al.resourceId === resourceId) !==
+            undefined
+        );
     }
-  }
 
-  makeLink(resourceId: string,
-           label: string,
-           assetLinkType: string): AssetLink {
+    selectLink(
+        checked: boolean,
+        resourceId: string,
+        label: string,
+        assetLinkType: string,
+    ): void {
+        if (checked) {
+            this.clonedAssetLinks.push(
+                this.makeLink(resourceId, label, assetLinkType),
+            );
+        } else {
+            const index = this.clonedAssetLinks.findIndex(
+                al => al.resourceId === resourceId,
+            );
+            this.clonedAssetLinks.splice(index, 1);
+        }
+    }
 
-    const linkType = this.assetLinkTypes.find(a => a.linkType === assetLinkType);
-    return {
-      linkLabel: label,
-      linkType: linkType.linkType,
-      editingDisabled: false,
-      queryHint: linkType.linkQueryHint,
-      navigationActive: linkType.navigationActive,
-      resourceId
-    };
-  }
+    makeLink(
+        resourceId: string,
+        label: string,
+        assetLinkType: string,
+    ): AssetLink {
+        const linkType = this.assetLinkTypes.find(
+            a => a.linkType === assetLinkType,
+        );
+        return {
+            linkLabel: label,
+            linkType: linkType.linkType,
+            editingDisabled: false,
+            queryHint: linkType.linkQueryHint,
+            navigationActive: linkType.navigationActive,
+            resourceId,
+        };
+    }
 
-  selectAll(elements: any[],
-            idFunction: any,
-            nameFunction: any,
-            assetLinkType: string): void {
-    elements.forEach(el => {
-      const id = idFunction(el);
-      const elementName = nameFunction(el);
-      if (!this.linkSelected(id)) {
-        this.selectLink(true, id, elementName, assetLinkType);
-      }
-    });
-  }
+    selectAll(
+        elements: any[],
+        idFunction: any,
+        nameFunction: any,
+        assetLinkType: string,
+    ): void {
+        elements.forEach(el => {
+            const id = idFunction(el);
+            const elementName = nameFunction(el);
+            if (!this.linkSelected(id)) {
+                this.selectLink(true, id, elementName, assetLinkType);
+            }
+        });
+    }
 
-  deselectAll(elements: any[],
-              idFunction: any): void {
-    elements.forEach(el => {
-      const id = idFunction(el);
-      const index = this.clonedAssetLinks.findIndex(al => al.resourceId === id);
-      if (index > -1) {
-        this.clonedAssetLinks.splice(index, 1);
-      }
-    });
-  }
+    deselectAll(elements: any[], idFunction: any): void {
+        elements.forEach(el => {
+            const id = idFunction(el);
+            const index = this.clonedAssetLinks.findIndex(
+                al => al.resourceId === id,
+            );
+            if (index > -1) {
+                this.clonedAssetLinks.splice(index, 1);
+            }
+        });
+    }
 }


[streampipes] 04/06: add linting to app-overview module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit c426db7b957ea3c02176a7a26745662fc3fc6412
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:35:38 2023 +0100

    add linting to app-overview module (#877)
---
 ui/.eslintignore   | 1 -
 ui/.prettierignore | 1 -
 2 files changed, 2 deletions(-)

diff --git a/ui/.eslintignore b/ui/.eslintignore
index 2bdb1038c..7b1be800c 100644
--- a/ui/.eslintignore
+++ b/ui/.eslintignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/app-overview
 src/app/assets
 src/app/configuration
 src/app/connect
diff --git a/ui/.prettierignore b/ui/.prettierignore
index 5d8fb6322..817ef6310 100644
--- a/ui/.prettierignore
+++ b/ui/.prettierignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/app-overview
 src/app/assets
 src/app/configuration
 src/app/connect


[streampipes] 01/06: add linting to add module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit cdfe45afe39cbf6bbd31bbd239836cc05114410d
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:28:02 2023 +0100

    add linting to add module (#877)
---
 ui/.eslintignore                                   |   1 -
 ui/.prettierignore                                 |   1 -
 ui/src/app/add/add.component.html                  | 169 +++++++++----
 ui/src/app/add/add.component.scss                  |  16 +-
 ui/src/app/add/add.component.ts                    |  95 +++++---
 ui/src/app/add/add.module.ts                       |  88 ++++---
 ui/src/app/add/add.routes.ts                       |  10 +-
 .../endpoint-item/endpoint-item.component.html     | 116 +++++++--
 .../endpoint-item/endpoint-item.component.scss     |  30 +--
 .../endpoint-item/endpoint-item.component.ts       | 261 +++++++++++----------
 .../add-endpoint/add-endpoint.component.html       |  75 +++++-
 .../add-endpoint/add-endpoint.component.scss       |   2 +-
 .../dialogs/add-endpoint/add-endpoint.component.ts |  34 ++-
 .../endpoint-installation.component.html           |  61 ++++-
 .../endpoint-installation.component.scss           |   2 +-
 .../endpoint-installation.component.ts             | 190 ++++++++-------
 ui/src/app/add/filter/order-by.pipe.ts             |  37 +--
 .../pipeline-element-installation-status.pipe.ts   |  19 +-
 .../app/add/filter/pipeline-element-name.pipe.ts   |  19 +-
 .../app/add/filter/pipeline-element-type.pipe.ts   |  17 +-
 ui/src/app/add/services/add.service.ts             |  74 ++++--
 21 files changed, 804 insertions(+), 513 deletions(-)

diff --git a/ui/.eslintignore b/ui/.eslintignore
index 1c49c614c..4f9c372fb 100644
--- a/ui/.eslintignore
+++ b/ui/.eslintignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/add
 src/app/apidocs
 src/app/app-asset-monitoring
 src/app/app-overview
diff --git a/ui/.prettierignore b/ui/.prettierignore
index 920a48bda..e9b467842 100644
--- a/ui/.prettierignore
+++ b/ui/.prettierignore
@@ -22,7 +22,6 @@ projects
 src/app/_enums
 src/app/_guards
 src/app/_models
-src/app/add
 src/app/apidocs
 src/app/app-asset-monitoring
 src/app/app-overview
diff --git a/ui/src/app/add/add.component.html b/ui/src/app/add/add.component.html
index 0c7509465..1d30d5e63 100644
--- a/ui/src/app/add/add.component.html
+++ b/ui/src/app/add/add.component.html
@@ -17,55 +17,89 @@
   -->
 
 <sp-basic-view [showBackLink]="false" [padding]="true">
-    <div nav fxFlex="100" fxLayoutAlign="start center" fxLayout="row" class="pl-10">
+    <div
+        nav
+        fxFlex="100"
+        fxLayoutAlign="start center"
+        fxLayout="row"
+        class="pl-10"
+    >
         <div fxFlex="100" fxLayout="row">
-            <button mat-button mat-raised-button color="accent" [disabled]="selectedEndpointItems.length === 0"
-                    (click)="installSelected()" class="mr-10">
+            <button
+                mat-button
+                mat-raised-button
+                color="accent"
+                [disabled]="selectedEndpointItems.length === 0"
+                (click)="installSelected()"
+                class="mr-10"
+            >
                 <i class="material-icons">cloud_download</i>
                 &nbsp;Install selected
             </button>
-            <button mat-button mat-raised-button color="accent" [disabled]="selectedEndpointItems.length === 0"
-                    (click)="uninstallSelected()" class="mr-10">
+            <button
+                mat-button
+                mat-raised-button
+                color="accent"
+                [disabled]="selectedEndpointItems.length === 0"
+                (click)="uninstallSelected()"
+                class="mr-10"
+            >
                 <i class="material-icons">delete</i>
                 &nbsp;Uninstall selected
             </button>
-            <button mat-button mat-icon-button color="accent" class="mr-10" (click)="selectAll(true)"
-                    matTooltip="Select all" matTooltipPosition="above">
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                class="mr-10"
+                (click)="selectAll(true)"
+                matTooltip="Select all"
+                matTooltipPosition="above"
+            >
                 <i class="material-icons">queue</i>
             </button>
-            <button mat-button mat-icon-button color="accent" class="mr-10" (click)="selectAll(false)"
-                    matTooltip="Select none" matTooltipPosition="above">
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                class="mr-10"
+                (click)="selectAll(false)"
+                matTooltip="Select none"
+                matTooltipPosition="above"
+            >
                 <i class="material-icons">filter_none</i>
             </button>
         </div>
         <span fxFlex></span>
         <div fxLayoutAlign="start center" fxLayout="row">
             <mat-form-field color="accent">
-                <mat-select [(value)]="selectedCategory"
-                            (selectionChange)="filterByCatergory($event)">
-                    <mat-option [value]="'all'">
-                        All
-                    </mat-option>
-                    <mat-option [value]="'set'">
-                        Sets
-                    </mat-option>
-                    <mat-option [value]="'stream'">
-                        Streams
-                    </mat-option>
-                    <mat-option [value]="'sepa'">
-                        Processors
-                    </mat-option>
-                    <mat-option [value]="'action'">
-                        Sinks
-                    </mat-option>
+                <mat-select
+                    [(value)]="selectedCategory"
+                    (selectionChange)="filterByCatergory($event)"
+                >
+                    <mat-option [value]="'all'"> All </mat-option>
+                    <mat-option [value]="'set'"> Sets </mat-option>
+                    <mat-option [value]="'stream'"> Streams </mat-option>
+                    <mat-option [value]="'sepa'"> Processors </mat-option>
+                    <mat-option [value]="'action'"> Sinks </mat-option>
                 </mat-select>
             </mat-form-field>
         </div>
         <div class="ml-10" fxLayoutAlign="start center" fxLayout="row">
             <mat-icon>search</mat-icon>
 
-            <mat-form-field class="form-style" color="accent" floatLabel="never">
-                <input matInput placeholder="Find Element" value="" [(ngModel)]="filterTerm" name="something">
+            <mat-form-field
+                class="form-style"
+                color="accent"
+                floatLabel="never"
+            >
+                <input
+                    matInput
+                    placeholder="Find Element"
+                    value=""
+                    [(ngModel)]="filterTerm"
+                    name="something"
+                />
             </mat-form-field>
         </div>
         <div fxLayoutAlign="start center" fxLayout="row" class="ml-10">
@@ -74,44 +108,79 @@
                     <mat-option [value]="'all'">
                         Available & Installed
                     </mat-option>
-                    <mat-option [value]="'installed'">
-                        Installed
-                    </mat-option>
-                    <mat-option [value]="'available'">
-                        Available
-                    </mat-option>
+                    <mat-option [value]="'installed'"> Installed </mat-option>
+                    <mat-option [value]="'available'"> Available </mat-option>
                 </mat-select>
             </mat-form-field>
         </div>
         <div fxLayoutAlign="start center" fxLayout="row" class="ml-10">
-            <button mat-button mat-icon-button color="accent" (click)="getEndpointItems()" matTooltip="Reload items"
-                    matTooltipPosition="above">
+            <button
+                mat-button
+                mat-icon-button
+                color="accent"
+                (click)="getEndpointItems()"
+                matTooltip="Reload items"
+                matTooltipPosition="above"
+            >
                 <mat-icon>refresh</mat-icon>
             </button>
         </div>
-        <button mat-button mat-icon-button color="accent" (click)="showManageRdfEndpointsDialog()"
-                matTooltip="Manage Endpoints">
+        <button
+            mat-button
+            mat-icon-button
+            color="accent"
+            (click)="showManageRdfEndpointsDialog()"
+            matTooltip="Manage Endpoints"
+        >
             <i class="material-icons">settings</i>
         </button>
     </div>
     <div fxLayout="column" fxFlex="100">
-
-
-        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start"
-             *ngIf="endpointItemsLoadingComplete">
+        <div
+            fxFlex="100"
+            fxLayout="column"
+            fxLayoutAlign="start start"
+            *ngIf="endpointItemsLoadingComplete"
+        >
             <div fxLayoutAlign="start start" fxLayout="column">
-                <sp-basic-header-title-component title="Available Pipeline Elements"></sp-basic-header-title-component>
+                <sp-basic-header-title-component
+                    title="Available Pipeline Elements"
+                ></sp-basic-header-title-component>
             </div>
             <div fxLayout="row wrap" class="w-100">
-                <sp-endpoint-item fxFlex="33" [itemSelected]="endpointItem.selected" [item]="endpointItem"
-                                  (triggerInstallation)="triggerInstallation($event)"
-                                  *ngFor="let endpointItem of endpointItems | pipelineElementTypeFilter: selectedTab | pipelineElementNameFilter: filterTerm | pipelineElementInstallationStatusFilter: selectedInstallationStatus | orderBy: 'asc':'name'"
-                                  class="p-15" (click)="toggleSelected(endpointItem)"></sp-endpoint-item>
+                <sp-endpoint-item
+                    fxFlex="33"
+                    [itemSelected]="endpointItem.selected"
+                    [item]="endpointItem"
+                    (triggerInstallation)="triggerInstallation($event)"
+                    *ngFor="
+                        let endpointItem of endpointItems
+                            | pipelineElementTypeFilter : selectedTab
+                            | pipelineElementNameFilter : filterTerm
+                            | pipelineElementInstallationStatusFilter
+                                : selectedInstallationStatus
+                            | orderBy : 'asc' : 'name'
+                    "
+                    class="p-15"
+                    (click)="toggleSelected(endpointItem)"
+                ></sp-endpoint-item>
             </div>
         </div>
-        <div fxFlex="100" fxLayout="row" fxLayoutAlign="center center" *ngIf="!endpointItemsLoadingComplete">
-            <mat-spinner [mode]="'indeterminate'" [diameter]="20" color="accent"></mat-spinner>
-            <h4>&nbsp;&nbsp;Searching for available pipeline elements, please wait...</h4>
+        <div
+            fxFlex="100"
+            fxLayout="row"
+            fxLayoutAlign="center center"
+            *ngIf="!endpointItemsLoadingComplete"
+        >
+            <mat-spinner
+                [mode]="'indeterminate'"
+                [diameter]="20"
+                color="accent"
+            ></mat-spinner>
+            <h4>
+                &nbsp;&nbsp;Searching for available pipeline elements, please
+                wait...
+            </h4>
         </div>
     </div>
 </sp-basic-view>
diff --git a/ui/src/app/add/add.component.scss b/ui/src/app/add/add.component.scss
index ffe023f99..0b12aa99b 100644
--- a/ui/src/app/add/add.component.scss
+++ b/ui/src/app/add/add.component.scss
@@ -19,27 +19,27 @@
 @import '../../scss/variables';
 
 .page-container-padding-inner {
-  margin: 20px;
+    margin: 20px;
 }
 
 .p-15 {
-  padding: 15px;
+    padding: 15px;
 }
 
 .mr-10 {
-  margin-right: 10px;
+    margin-right: 10px;
 }
 
 .ml-10 {
-  margin-left: 10px;
+    margin-left: 10px;
 }
 
 .add-options {
-  padding:0px;
-  border-bottom: 1px solid var(--color-bg-2);
+    padding: 0px;
+    border-bottom: 1px solid var(--color-bg-2);
 }
 
 .add-options-item {
-  display: inline;
-  margin-right: 10px;
+    display: inline;
+    margin-right: 10px;
 }
diff --git a/ui/src/app/add/add.component.ts b/ui/src/app/add/add.component.ts
index 62e5e3f85..82e3f1f8d 100644
--- a/ui/src/app/add/add.component.ts
+++ b/ui/src/app/add/add.component.ts
@@ -18,7 +18,12 @@
 
 import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
 import { AddService } from './services/add.service';
-import { DialogRef, DialogService, PanelType, SpBreadcrumbService } from '@streampipes/shared-ui';
+import {
+    DialogRef,
+    DialogService,
+    PanelType,
+    SpBreadcrumbService,
+} from '@streampipes/shared-ui';
 import { AddEndpointComponent } from './dialogs/add-endpoint/add-endpoint.component';
 import { EndpointInstallationComponent } from './dialogs/endpoint-installation/endpoint-installation.component';
 import { ExtensionsServiceEndpointItem } from '@streampipes/platform-services';
@@ -28,10 +33,9 @@ import { SpAddRoutes } from './add.routes';
 @Component({
     selector: 'sp-add',
     templateUrl: './add.component.html',
-    styleUrls: ['./add.component.scss']
+    styleUrls: ['./add.component.scss'],
 })
 export class AddComponent implements OnInit {
-
     activeLink: string;
 
     results: any[];
@@ -49,11 +53,13 @@ export class AddComponent implements OnInit {
     _filterTerm = '';
     _selectedInstallationStatus = 'all';
 
-    constructor(private addService: AddService,
-                private dialogService: DialogService,
-                private changeDetectorRef: ChangeDetectorRef,
-                private router: Router,
-                private breadcrumbService: SpBreadcrumbService) {
+    constructor(
+        private addService: AddService,
+        private dialogService: DialogService,
+        private changeDetectorRef: ChangeDetectorRef,
+        private router: Router,
+        private breadcrumbService: SpBreadcrumbService,
+    ) {
         this.results = [];
         this.loading = false;
         this.endpointItems = [];
@@ -61,15 +67,24 @@ export class AddComponent implements OnInit {
     }
 
     ngOnInit() {
-        this.breadcrumbService.updateBreadcrumb(this.breadcrumbService.getRootLink(SpAddRoutes.BASE));
+        this.breadcrumbService.updateBreadcrumb(
+            this.breadcrumbService.getRootLink(SpAddRoutes.BASE),
+        );
         this.getEndpointItems();
         this.selectedTab = 'all';
     }
 
     toggleSelected(endpointItem) {
         if (endpointItem.editable) {
-            if (this.selectedEndpointItems.some(item => item === endpointItem.uri)) {
-                this.selectedEndpointItems.splice(this.selectedEndpointItems.indexOf(endpointItem.uri), 1);
+            if (
+                this.selectedEndpointItems.some(
+                    item => item === endpointItem.uri,
+                )
+            ) {
+                this.selectedEndpointItems.splice(
+                    this.selectedEndpointItems.indexOf(endpointItem.uri),
+                    1,
+                );
             } else {
                 this.selectedEndpointItems.push(endpointItem.uri);
             }
@@ -95,7 +110,10 @@ export class AddComponent implements OnInit {
         this.selectedEndpointItems = [];
         this.endpointItems.forEach(item => {
             if (item.editable) {
-                if (item.type === this.selectedTab || this.selectedTab === 'all') {
+                if (
+                    item.type === this.selectedTab ||
+                    this.selectedTab === 'all'
+                ) {
                     (item as any).selected = selected;
                     if (selected) {
                         this.selectedEndpointItems.push(item.uri);
@@ -105,17 +123,15 @@ export class AddComponent implements OnInit {
         });
         this.changeDetectorRef.detectChanges();
     }
-    
 
     showManageRdfEndpointsDialog() {
-        const dialogRef: DialogRef<AddEndpointComponent> = this.dialogService.open(AddEndpointComponent, {
-            panelType: PanelType.STANDARD_PANEL,
-            title: 'Manage Endpoints',
-            width: '70vw',
-            data: {
-
-            }
-        });
+        const dialogRef: DialogRef<AddEndpointComponent> =
+            this.dialogService.open(AddEndpointComponent, {
+                panelType: PanelType.STANDARD_PANEL,
+                title: 'Manage Endpoints',
+                width: '70vw',
+                data: {},
+            });
         dialogRef.afterClosed().subscribe(data => {
             if (data) {
                 this.getEndpointItems();
@@ -125,11 +141,10 @@ export class AddComponent implements OnInit {
 
     getEndpointItems() {
         this.endpointItemsLoadingComplete = false;
-        this.addService.getRdfEndpointItems()
-            .subscribe(endpointItems => {
-                this.endpointItems = endpointItems;
-                this.endpointItemsLoadingComplete = true;
-            });
+        this.addService.getRdfEndpointItems().subscribe(endpointItems => {
+            this.endpointItems = endpointItems;
+            this.endpointItemsLoadingComplete = true;
+        });
     }
 
     installSelected() {
@@ -155,19 +170,23 @@ export class AddComponent implements OnInit {
     }
 
     triggerInstallation(installationInfo: any) {
-        this.installElements(installationInfo.endpointItems, installationInfo.install);
+        this.installElements(
+            installationInfo.endpointItems,
+            installationInfo.install,
+        );
     }
 
     installElements(endpointItems, install) {
-        const dialogRef: DialogRef<EndpointInstallationComponent> = this.dialogService.open(EndpointInstallationComponent, {
-            panelType: PanelType.STANDARD_PANEL,
-            title: 'Installation',
-            width: '70vw',
-            data: {
-                'install': install,
-                'endpointItemsToInstall': endpointItems
-            }
-        });
+        const dialogRef: DialogRef<EndpointInstallationComponent> =
+            this.dialogService.open(EndpointInstallationComponent, {
+                panelType: PanelType.STANDARD_PANEL,
+                title: 'Installation',
+                width: '70vw',
+                data: {
+                    install: install,
+                    endpointItemsToInstall: endpointItems,
+                },
+            });
         dialogRef.afterClosed().subscribe(data => {
             if (data) {
                 this.getEndpointItems();
@@ -194,7 +213,7 @@ export class AddComponent implements OnInit {
     }
 
     navigateTo(routeId: string): void {
-      this.router.navigate(['add', routeId]);
-      this.activeLink = routeId;
+        this.router.navigate(['add', routeId]);
+        this.activeLink = routeId;
     }
 }
diff --git a/ui/src/app/add/add.module.ts b/ui/src/app/add/add.module.ts
index 9c91e7dd7..f8b23d9e6 100644
--- a/ui/src/app/add/add.module.ts
+++ b/ui/src/app/add/add.module.ts
@@ -33,56 +33,50 @@ import { OrderByPipe } from './filter/order-by.pipe';
 import { EndpointInstallationComponent } from './dialogs/endpoint-installation/endpoint-installation.component';
 import { PipelineElementNameFilter } from './filter/pipeline-element-name.pipe';
 import { PipelineElementInstallationStatusFilter } from './filter/pipeline-element-installation-status.pipe';
-import { RouterModule } from "@angular/router";
+import { RouterModule } from '@angular/router';
 import { SharedUiModule } from '../../../projects/streampipes/shared-ui/src/lib/shared-ui.module';
 
-
 @NgModule({
-  imports: [
-    CommonModule,
-    FormsModule,
-    MatTabsModule,
-    FlexLayoutModule,
-    CoreUiModule,
-    CustomMaterialModule,
-    MatProgressSpinnerModule,
-    RouterModule.forChild([
-      {
-        path: 'add',
-        children: [
-          {
-            path: '',
-            component: AddComponent
-          }
-        ]
-      }
-    ]),
-    SharedUiModule
-  ],
-  declarations: [
-    AddComponent,
-    AddEndpointComponent,
-    EndpointInstallationComponent,
-    EndpointItemComponent,
-    OrderByPipe,
-    PipelineElementNameFilter,
-    PipelineElementInstallationStatusFilter,
-    PipelineElementTypeFilter
-  ],
-  providers: [
-    AddService,
-    OrderByPipe,
-    PipelineElementInstallationStatusFilter,
-    PipelineElementNameFilter,
-    PipelineElementTypeFilter
-  ],
-  exports: [
-    AddComponent
-  ]
+    imports: [
+        CommonModule,
+        FormsModule,
+        MatTabsModule,
+        FlexLayoutModule,
+        CoreUiModule,
+        CustomMaterialModule,
+        MatProgressSpinnerModule,
+        RouterModule.forChild([
+            {
+                path: 'add',
+                children: [
+                    {
+                        path: '',
+                        component: AddComponent,
+                    },
+                ],
+            },
+        ]),
+        SharedUiModule,
+    ],
+    declarations: [
+        AddComponent,
+        AddEndpointComponent,
+        EndpointInstallationComponent,
+        EndpointItemComponent,
+        OrderByPipe,
+        PipelineElementNameFilter,
+        PipelineElementInstallationStatusFilter,
+        PipelineElementTypeFilter,
+    ],
+    providers: [
+        AddService,
+        OrderByPipe,
+        PipelineElementInstallationStatusFilter,
+        PipelineElementNameFilter,
+        PipelineElementTypeFilter,
+    ],
+    exports: [AddComponent],
 })
 export class AddModule {
-
-  constructor() {
-  }
-
+    constructor() {}
 }
diff --git a/ui/src/app/add/add.routes.ts b/ui/src/app/add/add.routes.ts
index a035fea7c..b6945d3bf 100644
--- a/ui/src/app/add/add.routes.ts
+++ b/ui/src/app/add/add.routes.ts
@@ -16,10 +16,12 @@
  *
  */
 
-import { SpBreadcrumbItem, } from '@streampipes/shared-ui';
+import { SpBreadcrumbItem } from '@streampipes/shared-ui';
 
 export class SpAddRoutes {
-
-  static ADD_BASE_LINK = 'add';
-  static BASE: SpBreadcrumbItem = {label: 'Install Pipeline Elements', link: [SpAddRoutes.ADD_BASE_LINK]};
+    static ADD_BASE_LINK = 'add';
+    static BASE: SpBreadcrumbItem = {
+        label: 'Install Pipeline Elements',
+        link: [SpAddRoutes.ADD_BASE_LINK],
+    };
 }
diff --git a/ui/src/app/add/components/endpoint-item/endpoint-item.component.html b/ui/src/app/add/components/endpoint-item/endpoint-item.component.html
index 09ead1790..1a536414f 100644
--- a/ui/src/app/add/components/endpoint-item/endpoint-item.component.html
+++ b/ui/src/app/add/components/endpoint-item/endpoint-item.component.html
@@ -16,40 +16,104 @@
   ~
   -->
 
-<div fxFlex="100" fxLayout="column" fxLayoutAlign="start start" class="pipeline-element-box"
-     style="padding:5px;margin-bottom:10px;background:{{getSelectedBackground()}}" [ngStyle]="item.editable ? {opacity: 1} : {opacity: 0.5}">
+<div
+    fxFlex="100"
+    fxLayout="column"
+    fxLayoutAlign="start start"
+    class="pipeline-element-box"
+    style="padding:5px;margin-bottom:10px;background:{{
+        getSelectedBackground()
+    }}"
+    [ngStyle]="item.editable ? { opacity: 1 } : { opacity: 0.5 }"
+>
     <div fxLayout="row" class="w-100">
-        <i class="material-icons" [ngClass]="item.available ? 'endpoint-icon-available' : 'endpoint-icon-critical'">lens</i>
+        <i
+            class="material-icons"
+            [ngClass]="
+                item.available
+                    ? 'endpoint-icon-available'
+                    : 'endpoint-icon-critical'
+            "
+            >lens</i
+        >
         <span fxFlex></span>
-        <span class="{{itemTypeStyle}}" matTooltip="Endpoint {{item.available ? 'available' : 'not available'}}">{{itemTypeTitle}}</span>
+        <span
+            class="{{ itemTypeStyle }}"
+            matTooltip="Endpoint {{
+                item.available ? 'available' : 'not available'
+            }}"
+            >{{ itemTypeTitle }}</span
+        >
     </div>
-    <div fxFlex fxLayout="row" style="width:100%;">
-        <div style="margin-right:10px;margin-left:10px;margin-top:10px;">
-            <div *ngIf="!item.includesIcon || iconError" class="draggable-icon {{item.type}}">{{iconText(item.name)}}</div>
-            <div *ngIf="item.includesIcon && iconReady" class="draggable-icon {{item.type}}">
-                <img class="icon" [src]="image"></div>
+    <div fxFlex fxLayout="row" style="width: 100%">
+        <div style="margin-right: 10px; margin-left: 10px; margin-top: 10px">
+            <div
+                *ngIf="!item.includesIcon || iconError"
+                class="draggable-icon {{ item.type }}"
+            >
+                {{ iconText(item.name) }}
+            </div>
+            <div
+                *ngIf="item.includesIcon && iconReady"
+                class="draggable-icon {{ item.type }}"
+            >
+                <img class="icon" [src]="image" />
+            </div>
         </div>
         <div fxFlex fxLayout="column">
-
-            <div class="ml-5"><small *ngIf="!(item.editable)">Internally managed by {{appConstants.APP_NAME}}</small></div>
+            <div class="ml-5">
+                <small *ngIf="!item.editable"
+                    >Internally managed by {{ appConstants.APP_NAME }}</small
+                >
+            </div>
             <div fxFlex fxLayoutAlign="start end" class="ml-5">
-                <button class="small-button-add" mat-button mat-raised-button color="accent" [disabled]="!(item.editable)"
-                        (click)="installSingleElement($event, item)" *ngIf="!item.installed">
+                <button
+                    class="small-button-add"
+                    mat-button
+                    mat-raised-button
+                    color="accent"
+                    [disabled]="!item.editable"
+                    (click)="installSingleElement($event, item)"
+                    *ngIf="!item.installed"
+                >
                     <span>&nbsp;Install</span>
                 </button>
-                <button class="small-button-add-inverted" mat-button mat-raised-button [disabled]="!(item.editable)"
-                        (click)="uninstallSingleElement($event, item)" *ngIf="item.installed">
+                <button
+                    class="small-button-add-inverted"
+                    mat-button
+                    mat-raised-button
+                    [disabled]="!item.editable"
+                    (click)="uninstallSingleElement($event, item)"
+                    *ngIf="item.installed"
+                >
                     <span>&nbsp;Uninstall</span>
                 </button>
-                <div *ngIf="item.installed" style="margin-left:5px;">
-                    <button class="small-button-add mat-basic no-min-width" [disabled]="!(item.editable)"
-                            mat-raised-button mat-button [matMenuTriggerFor]="menu"><span style="font-size:12px;">...</span></button>
+                <div *ngIf="item.installed" style="margin-left: 5px">
+                    <button
+                        class="small-button-add mat-basic no-min-width"
+                        [disabled]="!item.editable"
+                        mat-raised-button
+                        mat-button
+                        [matMenuTriggerFor]="menu"
+                    >
+                        <span style="font-size: 12px">...</span>
+                    </button>
                     <mat-menu #menu="matMenu">
-                        <button mat-menu-item (click)="refresh(item.elementId)" [disabled]="!item.available">
+                        <button
+                            mat-menu-item
+                            (click)="refresh(item.elementId)"
+                            [disabled]="!item.available"
+                        >
                             <mat-icon>refresh</mat-icon>
                             <span>&nbsp;Update</span>
                         </button>
-                        <button mat-menu-item (click)="showPermissionsDialog(item.elementId, item.name)" [disabled]="!item.available">
+                        <button
+                            mat-menu-item
+                            (click)="
+                                showPermissionsDialog(item.elementId, item.name)
+                            "
+                            [disabled]="!item.available"
+                        >
                             <mat-icon>share</mat-icon>
                             <span>&nbsp;Manage permissions</span>
                         </button>
@@ -58,11 +122,17 @@
             </div>
         </div>
     </div>
-    <div fxFlex="100" fxLayout="column" style="padding-left:10px;margin-top:10px;">
+    <div
+        fxFlex="100"
+        fxLayout="column"
+        style="padding-left: 10px; margin-top: 10px"
+    >
         <div fxLayout="column">
             <div fxFlex fxLayout="column">
-                <h3><b>{{item.name}}</b></h3>
-                <p>{{item.description}}</p>
+                <h3>
+                    <b>{{ item.name }}</b>
+                </h3>
+                <p>{{ item.description }}</p>
             </div>
         </div>
     </div>
diff --git a/ui/src/app/add/components/endpoint-item/endpoint-item.component.scss b/ui/src/app/add/components/endpoint-item/endpoint-item.component.scss
index 26ab5fd71..12731c0b1 100644
--- a/ui/src/app/add/components/endpoint-item/endpoint-item.component.scss
+++ b/ui/src/app/add/components/endpoint-item/endpoint-item.component.scss
@@ -17,37 +17,37 @@
  */
 
 .pipeline-element-box {
-  height: 100%;
-  box-shadow: 1px 1px 2px #555;
-  border: 1px solid gray;
-  cursor: pointer;
-  padding: 10px;
+    height: 100%;
+    box-shadow: 1px 1px 2px #555;
+    border: 1px solid gray;
+    cursor: pointer;
+    padding: 10px;
 }
 
 .small-icon {
-  font-size:12px;
+    font-size: 12px;
 }
 
 .ml-5 {
-  margin-left:5px;
+    margin-left: 5px;
 }
 
 .no-min-width {
-  min-width: 0;
+    min-width: 0;
 }
 
 .icon {
-  height: 50px;
-  margin-top: -5px;
-  width: 50px;
+    height: 50px;
+    margin-top: -5px;
+    width: 50px;
 }
 
 .endpoint-icon-available {
-  cursor: default;
-  color: #4CAF50;
+    cursor: default;
+    color: #4caf50;
 }
 
 .endpoint-icon-critical {
-  cursor: default;
-  color: #F44336;
+    cursor: default;
+    color: #f44336;
 }
diff --git a/ui/src/app/add/components/endpoint-item/endpoint-item.component.ts b/ui/src/app/add/components/endpoint-item/endpoint-item.component.ts
index 0b15e0eed..639c20791 100644
--- a/ui/src/app/add/components/endpoint-item/endpoint-item.component.ts
+++ b/ui/src/app/add/components/endpoint-item/endpoint-item.component.ts
@@ -20,143 +20,154 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
 import { MatSnackBar } from '@angular/material/snack-bar';
 import { AddService } from '../../services/add.service';
 import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
-import { ExtensionsServiceEndpointItem, PipelineElementEndpointService } from '@streampipes/platform-services';
+import {
+    ExtensionsServiceEndpointItem,
+    PipelineElementEndpointService,
+} from '@streampipes/platform-services';
 import { AppConstants } from '../../../services/app.constants';
 import { ObjectPermissionDialogComponent } from '../../../core-ui/object-permission-dialog/object-permission-dialog.component';
 import { PanelType, DialogService } from '@streampipes/shared-ui';
 
 @Component({
-  selector: 'sp-endpoint-item',
-  templateUrl: './endpoint-item.component.html',
-  styleUrls: ['./endpoint-item.component.scss']
+    selector: 'sp-endpoint-item',
+    templateUrl: './endpoint-item.component.html',
+    styleUrls: ['./endpoint-item.component.scss'],
 })
 export class EndpointItemComponent implements OnInit {
+    @Input()
+    item: ExtensionsServiceEndpointItem;
+
+    itemTypeTitle: string;
+    itemTypeStyle: string;
+
+    @Input()
+    itemSelected: boolean;
+
+    image: SafeUrl;
+    iconReady = false;
+    iconError = false;
+
+    @Output()
+    triggerInstallation: EventEmitter<any> = new EventEmitter<any>();
+
+    constructor(
+        private snackBar: MatSnackBar,
+        private pipelineElementEndpointService: PipelineElementEndpointService,
+        private addService: AddService,
+        private sanitizer: DomSanitizer,
+        public appConstants: AppConstants,
+        private dialogService: DialogService,
+    ) {}
+
+    ngOnInit(): void {
+        this.findItemTypeTitle();
+        this.findItemStyle();
+        if (this.item.includesIcon) {
+            this.addService.getRdfEndpointIcon(this.item).subscribe(
+                blob => {
+                    const objectURL = URL.createObjectURL(blob);
+                    this.image =
+                        this.sanitizer.bypassSecurityTrustUrl(objectURL);
+                    this.iconReady = true;
+                },
+                () => (this.iconError = true),
+            );
+        }
+    }
+
+    iconText(s) {
+        let result = '';
+        if (s.length <= 4) {
+            result = s;
+        } else {
+            const words = s.split(' ');
+            words.forEach((word, i) => {
+                if (i < 4) {
+                    result += word.charAt(0);
+                }
+            });
+        }
+        return result.toUpperCase();
+    }
+
+    getSelectedBackground() {
+        if (this.itemSelected) {
+            return 'var(--color-bg-2)';
+        } else {
+            return 'var(--color-bg-1)';
+        }
+    }
 
-  @Input()
-  item: ExtensionsServiceEndpointItem;
-
-  itemTypeTitle: string;
-  itemTypeStyle: string;
-
-  @Input()
-  itemSelected: boolean;
-
-  image: SafeUrl;
-  iconReady = false;
-  iconError = false;
-
-  @Output()
-  triggerInstallation: EventEmitter<any> = new EventEmitter<any>();
-
-  constructor(private snackBar: MatSnackBar,
-              private pipelineElementEndpointService: PipelineElementEndpointService,
-              private addService: AddService,
-              private sanitizer: DomSanitizer,
-              public appConstants: AppConstants,
-              private dialogService: DialogService) {
-
-  }
-
-  ngOnInit(): void {
-   this.findItemTypeTitle();
-   this.findItemStyle();
-   if (this.item.includesIcon) {
-     this.addService.getRdfEndpointIcon(this.item).subscribe(blob => {
-       const objectURL = URL.createObjectURL(blob);
-       this.image = this.sanitizer.bypassSecurityTrustUrl(objectURL);
-       this.iconReady = true;
-     }, () => this.iconError = true);
-   }
-  }
-
-  iconText(s) {
-    let result = '';
-    if (s.length <= 4) {
-      result = s;
-    } else {
-      const words = s.split(' ');
-      words.forEach((word, i) => {
-        if (i < 4) {
-          result += word.charAt(0);
+    findItemTypeTitle() {
+        if (this.item.type === 'stream') {
+            this.itemTypeTitle = 'Data Stream';
+        } else if (this.item.type === 'set') {
+            this.itemTypeTitle = 'Data Set';
+        } else if (this.item.type === 'sepa') {
+            this.itemTypeTitle = 'Data Processor';
+        } else {
+            this.itemTypeTitle = 'Data Sink';
         }
-      });
     }
-    return result.toUpperCase();
-  }
-
-  getSelectedBackground() {
-    if (this.itemSelected) {
-      return 'var(--color-bg-2)';
-    } else {
-      return 'var(--color-bg-1)';
+
+    findItemStyle() {
+        const baseType = 'pe-label ';
+        if (this.item.type === 'stream') {
+            this.itemTypeStyle = baseType + 'stream-label';
+        } else if (this.item.type === 'set') {
+            this.itemTypeStyle = baseType + 'set-label';
+        } else if (this.item.type === 'sepa') {
+            this.itemTypeStyle = baseType + 'processor-label';
+        } else {
+            this.itemTypeStyle = baseType + 'sink-label';
+        }
+    }
+
+    installSingleElement(event: Event, endpointItem) {
+        const endpointItems = [];
+        endpointItems.push(endpointItem);
+        this.triggerInstallation.emit({ endpointItems, install: true });
+        event.stopPropagation();
     }
-  }
-
-  findItemTypeTitle() {
-    if (this.item.type === 'stream') {
-      this.itemTypeTitle = 'Data Stream';
-    } else if (this.item.type === 'set') {
-      this.itemTypeTitle = 'Data Set';
-    } else if (this.item.type === 'sepa') {
-      this.itemTypeTitle = 'Data Processor';
-    } else {
-      this.itemTypeTitle = 'Data Sink';
+
+    uninstallSingleElement(event: Event, endpointItem) {
+        const endpointItems = [];
+        endpointItems.push(endpointItem);
+        this.triggerInstallation.emit({ endpointItems, install: false });
+        event.stopPropagation();
     }
-  }
-
-  findItemStyle() {
-    const baseType = 'pe-label ';
-    if (this.item.type === 'stream') {
-      this.itemTypeStyle = baseType + 'stream-label';
-    } else if (this.item.type === 'set') {
-      this.itemTypeStyle = baseType + 'set-label';
-    } else if (this.item.type === 'sepa') {
-      this.itemTypeStyle = baseType + 'processor-label';
-    } else {
-      this.itemTypeStyle = baseType + 'sink-label';
+
+    refresh(elementId: string) {
+        this.pipelineElementEndpointService
+            .update(elementId)
+            .subscribe(msg => {
+                this.snackBar.open(msg.notifications[0].title, 'Ok', {
+                    duration: 2000,
+                });
+            })
+            .add(() => {
+                // this.loadCurrentElements(type);
+            });
     }
-  }
-
-  installSingleElement(event: Event, endpointItem) {
-    const endpointItems = [];
-    endpointItems.push(endpointItem);
-    this.triggerInstallation.emit({endpointItems, install: true});
-    event.stopPropagation();
-  }
-
-  uninstallSingleElement(event: Event, endpointItem) {
-    const endpointItems = [];
-    endpointItems.push(endpointItem);
-    this.triggerInstallation.emit({endpointItems, install: false});
-    event.stopPropagation();
-  }
-
-  refresh(elementId: string) {
-    this.pipelineElementEndpointService.update(elementId)
-        .subscribe(msg => {
-          this.snackBar.open(msg.notifications[0].title, 'Ok', {
-            duration: 2000
-          });
-        })
-        .add(() => {
-          // this.loadCurrentElements(type);
+
+    showPermissionsDialog(elementId: string, elementName: string) {
+        const dialogRef = this.dialogService.open(
+            ObjectPermissionDialogComponent,
+            {
+                panelType: PanelType.SLIDE_IN_PANEL,
+                title: 'Manage permissions',
+                width: '50vw',
+                data: {
+                    objectInstanceId: elementId,
+                    headerTitle:
+                        'Manage permissions for pipeline element ' +
+                        elementName,
+                },
+            },
+        );
+
+        dialogRef.afterClosed().subscribe(refresh => {
+            console.log(refresh);
         });
-  }
-
-  showPermissionsDialog(elementId: string,
-                        elementName: string) {
-    const dialogRef = this.dialogService.open(ObjectPermissionDialogComponent, {
-      panelType: PanelType.SLIDE_IN_PANEL,
-      title: 'Manage permissions',
-      width: '50vw',
-      data: {
-        'objectInstanceId': elementId,
-        'headerTitle': 'Manage permissions for pipeline element ' + elementName
-      }
-    });
-
-    dialogRef.afterClosed().subscribe(refresh => {
-      console.log(refresh);
-    });
-  }
+    }
 }
diff --git a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.html b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.html
index 2b9c7cf53..441127227 100644
--- a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.html
+++ b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.html
@@ -20,13 +20,34 @@
     <div class="sp-dialog-content p-15">
         <h5><b>Existing Endpoints</b></h5>
         <div>
-            <div *ngFor="let rdfEndpoint of rdfEndpoints | orderBy: 'asc':'endpointUrl'">
-                <div layout="row" class="md-with-secondary" *ngIf="rdfEndpoint._id !== undefined">
-                    <div class="md-list-item-text" fxFlex="80" fxLayout="column">
-                        {{rdfEndpoint.endpointUrl}}
+            <div
+                *ngFor="
+                    let rdfEndpoint of rdfEndpoints
+                        | orderBy : 'asc' : 'endpointUrl'
+                "
+            >
+                <div
+                    layout="row"
+                    class="md-with-secondary"
+                    *ngIf="rdfEndpoint._id !== undefined"
+                >
+                    <div
+                        class="md-list-item-text"
+                        fxFlex="80"
+                        fxLayout="column"
+                    >
+                        {{ rdfEndpoint.endpointUrl }}
                     </div>
-                    <div class="md-list-item-text" fxFlex="20" fxLayout="column">
-                        <button mat-button mat-flat-button (click)="removeRdfEndpoint(rdfEndpoint._id)">
+                    <div
+                        class="md-list-item-text"
+                        fxFlex="20"
+                        fxLayout="column"
+                    >
+                        <button
+                            mat-button
+                            mat-flat-button
+                            (click)="removeRdfEndpoint(rdfEndpoint._id)"
+                        >
                             <mat-icon color="accent">delete</mat-icon>
                         </button>
                     </div>
@@ -35,27 +56,55 @@
             <mat-divider></mat-divider>
             <div *ngIf="addSelected">
                 <div fxLayout="row" class="md-with-secondary">
-                    <div class="md-list-item-text" fxFlex="80" fxLayout="column">
+                    <div
+                        class="md-list-item-text"
+                        fxFlex="80"
+                        fxLayout="column"
+                    >
                         <mat-form-field>
                             <mat-label>Endpoint URL</mat-label>
-                            <input matInput type="text" [(ngModel)]="newEndpoint.endpointUrl">
+                            <input
+                                matInput
+                                type="text"
+                                [(ngModel)]="newEndpoint.endpointUrl"
+                            />
                         </mat-form-field>
                     </div>
-                    <div class="md-list-item-text" fxFlex="20" fxlayout="column">
-                        <button mat-button mat-flat-button (click)="addRdfEndpoint(newEndpoint)">
+                    <div
+                        class="md-list-item-text"
+                        fxFlex="20"
+                        fxlayout="column"
+                    >
+                        <button
+                            mat-button
+                            mat-flat-button
+                            (click)="addRdfEndpoint(newEndpoint)"
+                        >
                             <mat-icon>save</mat-icon>
                         </button>
                     </div>
                 </div>
             </div>
         </div>
-        <div style="margin-top:10px;">
-            <button mat-button mat-raised-button color="accent" (click)="showAddInput()">Add Endpoint</button>
+        <div style="margin-top: 10px">
+            <button
+                mat-button
+                mat-raised-button
+                color="accent"
+                (click)="showAddInput()"
+            >
+                Add Endpoint
+            </button>
         </div>
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions actions-align-right">
-        <button mat-button mat-raised-button class="mat-basic" (click)="close()">
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic"
+            (click)="close()"
+        >
             Close
         </button>
     </div>
diff --git a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.scss b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.scss
index 0a776e5ff..fddade7bf 100644
--- a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.scss
+++ b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.scss
@@ -16,4 +16,4 @@
  *
  */
 
-@import '../../../../scss/sp/sp-dialog.scss';
\ No newline at end of file
+@import '../../../../scss/sp/sp-dialog.scss';
diff --git a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.ts b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.ts
index 5976d4aee..d8d52bbd0 100644
--- a/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.ts
+++ b/ui/src/app/add/dialogs/add-endpoint/add-endpoint.component.ts
@@ -23,18 +23,19 @@ import { DialogRef } from '@streampipes/shared-ui';
 @Component({
     selector: 'sp-add-endpoint-dialog',
     templateUrl: './add-endpoint.component.html',
-    styleUrls: ['./add-endpoint.component.scss']
+    styleUrls: ['./add-endpoint.component.scss'],
 })
 export class AddEndpointComponent implements OnInit {
-
     rdfEndpoints: any;
     addSelected: any;
     newEndpoint: any;
 
     endpointsChanged = false;
 
-    constructor(private addService: AddService,
-                private dialogRef: DialogRef<AddEndpointComponent>) {
+    constructor(
+        private addService: AddService,
+        private dialogRef: DialogRef<AddEndpointComponent>,
+    ) {
         this.rdfEndpoints = [];
         this.addSelected = false;
         this.newEndpoint = {};
@@ -49,27 +50,24 @@ export class AddEndpointComponent implements OnInit {
     }
 
     loadRdfEndpoints() {
-        this.addService.getRdfEndpoints()
-            .subscribe(rdfEndpoints => {
-                this.rdfEndpoints = rdfEndpoints;
-            });
+        this.addService.getRdfEndpoints().subscribe(rdfEndpoints => {
+            this.rdfEndpoints = rdfEndpoints;
+        });
     }
 
     addRdfEndpoint(rdfEndpoint) {
         console.log(rdfEndpoint);
-        this.addService.addRdfEndpoint(rdfEndpoint)
-            .subscribe(() => {
-                this.loadRdfEndpoints();
-                this.endpointsChanged = true;
-            });
+        this.addService.addRdfEndpoint(rdfEndpoint).subscribe(() => {
+            this.loadRdfEndpoints();
+            this.endpointsChanged = true;
+        });
     }
 
     removeRdfEndpoint(rdfEndpointId) {
-        this.addService.removeRdfEndpoint(rdfEndpointId)
-            .subscribe(() => {
-                this.loadRdfEndpoints();
-                this.endpointsChanged = true;
-            });
+        this.addService.removeRdfEndpoint(rdfEndpointId).subscribe(() => {
+            this.loadRdfEndpoints();
+            this.endpointsChanged = true;
+        });
     }
 
     close() {
diff --git a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.html b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.html
index 4edf8181f..be98dddc3 100644
--- a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.html
+++ b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.html
@@ -16,24 +16,43 @@
   ~
   -->
 
-
 <div class="sp-dialog-container">
     <div class="sp-dialog-content p-15">
-        <div fxFlex="100" class="md-dialog-content" style="padding:20px;" *ngIf="page == 'preview'">
-            <h4>You are about to {{install ? 'install' : 'uninstall'}} the following elements:</h4>
+        <div
+            fxFlex="100"
+            class="md-dialog-content"
+            style="padding: 20px"
+            *ngIf="page === 'preview'"
+        >
+            <h4>
+                You are about to {{ install ? 'install' : 'uninstall' }} the
+                following elements:
+            </h4>
             <div *ngFor="let endpointItem of endpointItemsToInstall">
-                <h5>{{endpointItem.name}}</h5>
+                <h5>{{ endpointItem.name }}</h5>
             </div>
             <h5><b>Press 'Next' to start the process.</b></h5>
         </div>
-        <div fxFlex="100" class="md-dialog-content" style="padding:20px;" *ngIf="page == 'installation'">
+        <div
+            fxFlex="100"
+            class="md-dialog-content"
+            style="padding: 20px"
+            *ngIf="page === 'installation'"
+        >
             <div *ngFor="let status of installationStatus">
-                <h4>{{install ? 'Installing' : 'Uninstalling'}} {{status.id + 1}} of {{endpointItemsToInstall.length}}
-                    ({{status.name}})...{{status.status}}</h4>
+                <h4>
+                    {{ install ? 'Installing' : 'Uninstalling' }}
+                    {{ status.id + 1 }} of
+                    {{ endpointItemsToInstall.length }} ({{ status.name }})...{{
+                        status.status
+                    }}
+                </h4>
                 <div>
                     <div fxFlex fxLayout="column" *ngIf="status.details">
                         <b>More Details:</b>
-                        <div class="md-padding"><i class="fa fa-terminal">{{status.details}}</i></div>
+                        <div class="md-padding">
+                            <i class="fa fa-terminal">{{ status.details }}</i>
+                        </div>
                     </div>
                 </div>
             </div>
@@ -41,12 +60,30 @@
     </div>
     <mat-divider></mat-divider>
     <div class="sp-dialog-actions actions-align-right">
-        <mat-checkbox class="mr-15" [(ngModel)]="installAsPublicElement" *ngIf="install">Make available to all users with appropriate role</mat-checkbox>
-        <button mat-button mat-raised-button class="mat-basic" (click)="close()" style="margin-right: 10px;" *ngIf="nextButton !== 'Close'">
+        <mat-checkbox
+            class="mr-15"
+            [(ngModel)]="installAsPublicElement"
+            *ngIf="install"
+            >Make available to all users with appropriate role</mat-checkbox
+        >
+        <button
+            mat-button
+            mat-raised-button
+            class="mat-basic"
+            (click)="close()"
+            style="margin-right: 10px"
+            *ngIf="nextButton !== 'Close'"
+        >
             Close
         </button>
-        <button mat-button mat-raised-button color="accent" (click)="next()" [disabled]="installationRunning">
-            {{nextButton}}
+        <button
+            mat-button
+            mat-raised-button
+            color="accent"
+            (click)="next()"
+            [disabled]="installationRunning"
+        >
+            {{ nextButton }}
         </button>
     </div>
 </div>
diff --git a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.scss b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.scss
index 0a776e5ff..fddade7bf 100644
--- a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.scss
+++ b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.scss
@@ -16,4 +16,4 @@
  *
  */
 
-@import '../../../../scss/sp/sp-dialog.scss';
\ No newline at end of file
+@import '../../../../scss/sp/sp-dialog.scss';
diff --git a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.ts b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.ts
index c52945ff7..c05b24360 100644
--- a/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.ts
+++ b/ui/src/app/add/dialogs/endpoint-installation/endpoint-installation.component.ts
@@ -21,104 +21,126 @@ import { DialogRef } from '@streampipes/shared-ui';
 import { PipelineElementEndpointService } from '@streampipes/platform-services';
 
 @Component({
-  selector: 'sp-endpoint-installation-dialog',
-  templateUrl: './endpoint-installation.component.html',
-  styleUrls: ['./endpoint-installation.component.scss']
+    selector: 'sp-endpoint-installation-dialog',
+    templateUrl: './endpoint-installation.component.html',
+    styleUrls: ['./endpoint-installation.component.scss'],
 })
 export class EndpointInstallationComponent {
+    endpointItems: any;
 
-  endpointItems: any;
+    @Input()
+    install: boolean;
 
-  @Input()
-  install: boolean;
+    @Input()
+    endpointItemsToInstall: any;
 
-  @Input()
-  endpointItemsToInstall: any;
+    installedItemsChanged = false;
 
-  installedItemsChanged = false;
+    installationStatus: any;
+    installationFinished: boolean;
+    page: string;
+    nextButton: string;
+    installationRunning: boolean;
 
-  installationStatus: any;
-  installationFinished: boolean;
-  page: string;
-  nextButton: string;
-  installationRunning: boolean;
+    installAsPublicElement = true;
 
-  installAsPublicElement = true;
-
-  constructor(private dialogRef: DialogRef<EndpointInstallationComponent>,
-              private pipelineElementEndpointService: PipelineElementEndpointService) {
-    this.installationStatus = [];
-    this.installationFinished = false;
-    this.page = 'preview';
-    this.nextButton = 'Next';
-    this.installationRunning = false;
-  }
+    constructor(
+        private dialogRef: DialogRef<EndpointInstallationComponent>,
+        private pipelineElementEndpointService: PipelineElementEndpointService,
+    ) {
+        this.installationStatus = [];
+        this.installationFinished = false;
+        this.page = 'preview';
+        this.nextButton = 'Next';
+        this.installationRunning = false;
+    }
 
-  close() {
-    this.dialogRef.close(this.installedItemsChanged);
-  }
+    close() {
+        this.dialogRef.close(this.installedItemsChanged);
+    }
 
-  next() {
-    if (this.page === 'installation') {
-      this.close();
-    } else {
-      this.page = 'installation';
-      this.initiateInstallation(this.endpointItemsToInstall[0], 0);
+    next() {
+        if (this.page === 'installation') {
+            this.close();
+        } else {
+            this.page = 'installation';
+            this.initiateInstallation(this.endpointItemsToInstall[0], 0);
+        }
     }
-  }
 
-  initiateInstallation(endpointUri, index) {
-    this.installationRunning = true;
-    this.installationStatus.push({'name': endpointUri.name, 'id': index, 'status': 'waiting'});
-    if (this.install) {
-      this.installElement(endpointUri, index);
-    } else {
-      this.uninstallElement(endpointUri, index);
+    initiateInstallation(endpointUri, index) {
+        this.installationRunning = true;
+        this.installationStatus.push({
+            name: endpointUri.name,
+            id: index,
+            status: 'waiting',
+        });
+        if (this.install) {
+            this.installElement(endpointUri, index);
+        } else {
+            this.uninstallElement(endpointUri, index);
+        }
     }
-  }
 
-  installElement(endpointUri, index) {
-    endpointUri = encodeURIComponent(endpointUri.uri);
+    installElement(endpointUri, index) {
+        endpointUri = encodeURIComponent(endpointUri.uri);
 
-    this.pipelineElementEndpointService.add(endpointUri, this.installAsPublicElement)
-        .subscribe(data => {
-          if (data.success) {
-            this.installationStatus[index].status = 'success';
-          } else {
-            this.installationStatus[index].status = 'error';
-            this.installationStatus[index].details = data.notifications[0].additionalInformation;
-          }
-        }, () => {
-          this.installationStatus[index].status = 'error';
-        })
-        .add(() => {
-          if (index < this.endpointItemsToInstall.length - 1) {
-            index++;
-            this.initiateInstallation(this.endpointItemsToInstall[index], index);
-          } else {
-            this.installedItemsChanged = true;
-            this.nextButton = 'Close';
-            this.installationRunning = false;
-          }
-        });
-  }
+        this.pipelineElementEndpointService
+            .add(endpointUri, this.installAsPublicElement)
+            .subscribe(
+                data => {
+                    if (data.success) {
+                        this.installationStatus[index].status = 'success';
+                    } else {
+                        this.installationStatus[index].status = 'error';
+                        this.installationStatus[index].details =
+                            data.notifications[0].additionalInformation;
+                    }
+                },
+                () => {
+                    this.installationStatus[index].status = 'error';
+                },
+            )
+            .add(() => {
+                if (index < this.endpointItemsToInstall.length - 1) {
+                    index++;
+                    this.initiateInstallation(
+                        this.endpointItemsToInstall[index],
+                        index,
+                    );
+                } else {
+                    this.installedItemsChanged = true;
+                    this.nextButton = 'Close';
+                    this.installationRunning = false;
+                }
+            });
+    }
 
-  uninstallElement(endpointUri, index) {
-    this.pipelineElementEndpointService.del(endpointUri.elementId)
-        .subscribe(data => {
-          this.installationStatus[index].status = data.success ? 'success' : 'error';
-        }, () => {
-          this.installationStatus[index].status = 'error';
-        })
-        .add(() => {
-          if (index < this.endpointItemsToInstall.length - 1) {
-            index++;
-            this.initiateInstallation(this.endpointItemsToInstall[index], index);
-          } else {
-            this.nextButton = 'Close';
-            this.installationRunning = false;
-            this.installedItemsChanged = true;
-          }
-        });
-  }
+    uninstallElement(endpointUri, index) {
+        this.pipelineElementEndpointService
+            .del(endpointUri.elementId)
+            .subscribe(
+                data => {
+                    this.installationStatus[index].status = data.success
+                        ? 'success'
+                        : 'error';
+                },
+                () => {
+                    this.installationStatus[index].status = 'error';
+                },
+            )
+            .add(() => {
+                if (index < this.endpointItemsToInstall.length - 1) {
+                    index++;
+                    this.initiateInstallation(
+                        this.endpointItemsToInstall[index],
+                        index,
+                    );
+                } else {
+                    this.nextButton = 'Close';
+                    this.installationRunning = false;
+                    this.installedItemsChanged = true;
+                }
+            });
+    }
 }
diff --git a/ui/src/app/add/filter/order-by.pipe.ts b/ui/src/app/add/filter/order-by.pipe.ts
index 28ab2ec7a..b73352efb 100644
--- a/ui/src/app/add/filter/order-by.pipe.ts
+++ b/ui/src/app/add/filter/order-by.pipe.ts
@@ -18,24 +18,25 @@
 
 import { Pipe, PipeTransform } from '@angular/core';
 
-@Pipe({name: 'orderBy'})
+@Pipe({ name: 'orderBy' })
 export class OrderByPipe implements PipeTransform {
-
-  transform(value: any[], order = '', column: string = ''): any[] {
-    if (!value || order === '' || !order) {
-      return value;
-    }
-    if (value.length <= 1) {
-      return value;
-    }
-    if (!column || column === '') {
-      if (order === 'asc') {
-        return value.sort();
-      } else {
-        return value.sort().reverse();
-      }
+    transform(value: any[], order = '', column: string = ''): any[] {
+        if (!value || order === '' || !order) {
+            return value;
+        }
+        if (value.length <= 1) {
+            return value;
+        }
+        if (!column || column === '') {
+            if (order === 'asc') {
+                return value.sort();
+            } else {
+                return value.sort().reverse();
+            }
+        }
+        const sortedValues = value.sort((a, b) =>
+            a[column].localeCompare(b[column]),
+        );
+        return order === 'asc' ? sortedValues : sortedValues.reverse();
     }
-    const sortedValues = value.sort((a, b) => a[column].localeCompare(b[column]));
-    return order === 'asc' ? sortedValues : sortedValues.reverse();
-  }
 }
diff --git a/ui/src/app/add/filter/pipeline-element-installation-status.pipe.ts b/ui/src/app/add/filter/pipeline-element-installation-status.pipe.ts
index ad029b477..3c88f5c56 100644
--- a/ui/src/app/add/filter/pipeline-element-installation-status.pipe.ts
+++ b/ui/src/app/add/filter/pipeline-element-installation-status.pipe.ts
@@ -19,17 +19,16 @@
 import { Pipe, PipeTransform } from '@angular/core';
 
 @Pipe({
-  name: 'pipelineElementInstallationStatusFilter',
-  pure: false
+    name: 'pipelineElementInstallationStatusFilter',
+    pure: false,
 })
 export class PipelineElementInstallationStatusFilter implements PipeTransform {
-
-  transform(values: any[], filterTerm: string): any[] {
-    if (filterTerm === 'all') {
-      return values;
-    } else {
-      const installed = filterTerm === 'installed';
-      return values.filter(v => v.installed === installed);
+    transform(values: any[], filterTerm: string): any[] {
+        if (filterTerm === 'all') {
+            return values;
+        } else {
+            const installed = filterTerm === 'installed';
+            return values.filter(v => v.installed === installed);
+        }
     }
-  }
 }
diff --git a/ui/src/app/add/filter/pipeline-element-name.pipe.ts b/ui/src/app/add/filter/pipeline-element-name.pipe.ts
index d11f6301c..5a650aa20 100644
--- a/ui/src/app/add/filter/pipeline-element-name.pipe.ts
+++ b/ui/src/app/add/filter/pipeline-element-name.pipe.ts
@@ -19,16 +19,17 @@
 import { Pipe, PipeTransform } from '@angular/core';
 
 @Pipe({
-  name: 'pipelineElementNameFilter',
-  pure: false
+    name: 'pipelineElementNameFilter',
+    pure: false,
 })
 export class PipelineElementNameFilter implements PipeTransform {
-
-  transform(values: any[], filterTerm: string): any[] {
-    if (filterTerm === '') {
-      return values;
-    } else {
-      return values.filter(v => v.name.toLowerCase().includes(filterTerm.toLowerCase()));
+    transform(values: any[], filterTerm: string): any[] {
+        if (filterTerm === '') {
+            return values;
+        } else {
+            return values.filter(v =>
+                v.name.toLowerCase().includes(filterTerm.toLowerCase()),
+            );
+        }
     }
-  }
 }
diff --git a/ui/src/app/add/filter/pipeline-element-type.pipe.ts b/ui/src/app/add/filter/pipeline-element-type.pipe.ts
index d305c5b9b..98ecf9bea 100644
--- a/ui/src/app/add/filter/pipeline-element-type.pipe.ts
+++ b/ui/src/app/add/filter/pipeline-element-type.pipe.ts
@@ -19,16 +19,15 @@
 import { Pipe, PipeTransform } from '@angular/core';
 
 @Pipe({
-  name: 'pipelineElementTypeFilter',
-  pure: false
+    name: 'pipelineElementTypeFilter',
+    pure: false,
 })
 export class PipelineElementTypeFilter implements PipeTransform {
-
-  transform(value: any[], type: string): any[] {
-    if (type === 'all') {
-      return value;
-    } else {
-      return value.filter(v => v.type === type);
+    transform(value: any[], type: string): any[] {
+        if (type === 'all') {
+            return value;
+        } else {
+            return value.filter(v => v.type === type);
+        }
     }
-  }
 }
diff --git a/ui/src/app/add/services/add.service.ts b/ui/src/app/add/services/add.service.ts
index cfebaca4e..225db527e 100644
--- a/ui/src/app/add/services/add.service.ts
+++ b/ui/src/app/add/services/add.service.ts
@@ -18,40 +18,62 @@
 
 import { Injectable } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
-import { PlatformServicesCommons, ExtensionsServiceEndpointItem } from '@streampipes/platform-services';
+import {
+    PlatformServicesCommons,
+    ExtensionsServiceEndpointItem,
+} from '@streampipes/platform-services';
 import { Observable } from 'rxjs';
 import { map } from 'rxjs/operators';
 
 @Injectable()
 export class AddService {
+    constructor(
+        private http: HttpClient,
+        private platformServicesCommons: PlatformServicesCommons,
+    ) {}
 
-  constructor(private http: HttpClient,
-              private platformServicesCommons: PlatformServicesCommons) {
-  }
+    getRdfEndpoints(): Observable<any> {
+        return this.http.get(
+            this.platformServicesCommons.apiBasePath + '/rdfendpoints',
+        );
+    }
 
-  getRdfEndpoints(): Observable<any> {
-    return this.http.get(this.platformServicesCommons.apiBasePath + '/rdfendpoints');
-  }
+    getRdfEndpointItems(): Observable<ExtensionsServiceEndpointItem[]> {
+        return this.http
+            .get(
+                this.platformServicesCommons.apiBasePath +
+                    '/rdfendpoints/items',
+            )
+            .pipe(
+                map(response => {
+                    return (response as any[]).map(item =>
+                        ExtensionsServiceEndpointItem.fromData(item),
+                    );
+                }),
+            );
+    }
 
-  getRdfEndpointItems(): Observable<ExtensionsServiceEndpointItem[]> {
-    return this
-        .http
-        .get(this.platformServicesCommons.apiBasePath + '/rdfendpoints/items')
-        .pipe(map(response => {
-          return (response as any[]).map(item => ExtensionsServiceEndpointItem.fromData(item));
-        }));
-  }
+    addRdfEndpoint(rdfEndpoint): Observable<any> {
+        return this.http.post(
+            this.platformServicesCommons.apiBasePath + '/rdfendpoints',
+            rdfEndpoint,
+        );
+    }
 
-  addRdfEndpoint(rdfEndpoint): Observable<any> {
-    return this.http.post(this.platformServicesCommons.apiBasePath + '/rdfendpoints', rdfEndpoint);
-  }
+    removeRdfEndpoint(rdfEndpointId): Observable<any> {
+        return this.http.delete(
+            this.platformServicesCommons.apiBasePath +
+                '/rdfendpoints/' +
+                rdfEndpointId,
+        );
+    }
 
-  removeRdfEndpoint(rdfEndpointId): Observable<any> {
-    return this.http.delete(this.platformServicesCommons.apiBasePath + '/rdfendpoints/' + rdfEndpointId);
-  }
-
-  getRdfEndpointIcon(item: ExtensionsServiceEndpointItem): Observable<any> {
-    return this.http.post(this.platformServicesCommons.apiBasePath
-        + '/rdfendpoints/items/icon', item, {responseType: 'blob'});
-  }
+    getRdfEndpointIcon(item: ExtensionsServiceEndpointItem): Observable<any> {
+        return this.http.post(
+            this.platformServicesCommons.apiBasePath +
+                '/rdfendpoints/items/icon',
+            item,
+            { responseType: 'blob' },
+        );
+    }
 }


[streampipes] 06/06: add linting to app-asset-monitoring module (#877)

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/ui-linting-a
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit ee00ab2f83be707ef8c7c4b0df63eccf527dc98c
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 2 19:44:50 2023 +0100

    add linting to app-asset-monitoring module (#877)
---
 .../app-asset-monitoring/components/view-asset/view-asset.component.ts  | 2 +-
 .../app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts   | 2 +-
 .../dialog/add-pipeline/add-pipeline-dialog.component.ts                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
index df05a23d7..3c0f859ed 100644
--- a/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
+++ b/ui/src/app/app-asset-monitoring/components/view-asset/view-asset.component.ts
@@ -48,7 +48,7 @@ declare const window: Window;
     templateUrl: './view-asset.component.html',
     styleUrls: ['./view-asset.component.css'],
 })
-export class ViewAssetComponent implements OnInit, AfterViewInit, OnDestroy {
+export class ViewAssetComponent implements AfterViewInit, OnDestroy {
     @Input() dashboardConfig: DashboardConfiguration;
     @Output() dashboardClosed = new EventEmitter<boolean>();
     @Output() editDashboardEmitter = new EventEmitter<DashboardConfiguration>();
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
index f7e6962cb..9dc2b0342 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
+++ b/ui/src/app/app-asset-monitoring/dialog/add-link/add-link-dialog.component.ts
@@ -26,7 +26,7 @@ import { HyperlinkConfig } from '../../model/selected-visualization-data.model';
     templateUrl: 'add-link-dialog.component.html',
     styleUrls: ['./add-link-dialog.component.scss'],
 })
-export class AddLinkDialogComponent implements OnInit {
+export class AddLinkDialogComponent {
     linkLabel: string;
     linkHref: string;
     labelFontSize = 12;
diff --git a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
index a1508555e..95490f317 100644
--- a/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
+++ b/ui/src/app/app-asset-monitoring/dialog/add-pipeline/add-pipeline-dialog.component.ts
@@ -34,7 +34,7 @@ import { zip } from 'rxjs';
     templateUrl: './add-pipeline-dialog.component.html',
     styleUrls: ['./add-pipeline-dialog.component.scss'],
 })
-export class AddPipelineDialogComponent implements OnInit {
+export class AddPipelineDialogComponent {
     pages = [
         {
             type: 'select-pipeline',