-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Datatarget multi-types administration and new FIWARE Datatarget type * PR fixes * DatatargetTypesService pr fixes
- Loading branch information
Showing
51 changed files
with
2,086 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...plications/datatarget/datatarget-detail/datatarget-detail-type-selector.directive.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
|
||
import { ViewContainerRef } from '@angular/core'; | ||
import { DatatargetDetailTypeSelectorDirective } from './datatarget-detail-type-selector.directive'; | ||
let viewContainerRef: ViewContainerRef; | ||
describe('Directive: DatatargetDetailTypeSelector', () => { | ||
it('should create an instance', () => { | ||
const directive = new DatatargetDetailTypeSelectorDirective(viewContainerRef); | ||
expect(directive).toBeTruthy(); | ||
}); | ||
}); |
9 changes: 9 additions & 0 deletions
9
...pp/applications/datatarget/datatarget-detail/datatarget-detail-type-selector.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Directive, ViewContainerRef } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[detail-component]' | ||
}) | ||
export class DatatargetDetailTypeSelectorDirective { | ||
|
||
constructor(public viewContainerRef: ViewContainerRef) { } | ||
} |
75 changes: 2 additions & 73 deletions
75
src/app/applications/datatarget/datatarget-detail/datatarget-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,3 @@ | ||
<div *ngIf="datatarget"> | ||
<app-top-bar [data]="datatarget" [backButton]="backButton" [subPage]="true" [addDetailDowndown]="true" | ||
[dropDownButton]="dropdownButton" (deleteSelectedInDropdown)="onDeleteDatatarget()"></app-top-bar> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-6 d-flex align-items-stretch"> | ||
<div class="jumbotron jumbotron--m-right jumbotron--full-width"> | ||
<h3>{{ 'DATATARGET.DETAILS' | translate }}</h3> | ||
<app-general-details [data]="datatarget"></app-general-details> | ||
<mat-divider></mat-divider> | ||
<p><strong>{{ 'DATATARGET.URL' | translate }}</strong>{{datatarget.url}}</p> | ||
<p><strong>{{ 'DATATARGET.TIMEOUT' | translate }}</strong>{{datatarget.timeout}}</p> | ||
<p><strong>{{ 'DATATARGET.TYPE' | translate }}</strong>{{datatarget.type | translate}}</p> | ||
<mat-divider></mat-divider> | ||
<p><strong>{{ 'DATATARGET.AUTHORIZATIONHEADER' | translate }}</strong></p> | ||
<code><pre *ngIf="datatarget.authorizationHeader; else showNoAuthText">{{datatarget.authorizationHeader}}</pre></code> | ||
<ng-template #showNoAuthText> | ||
<p>{{ 'DATATARGET.NO-AUTHORIZATIONHEADER' | translate }}</p> | ||
</ng-template> | ||
|
||
</div> | ||
</div> | ||
<div class="col-md-6 d-flex align-items-stretch"> | ||
<div class="jumbotron jumbotron--m-left jumbotron--full-width"> | ||
<h3>{{ 'DATATARGET.OPENDATA-DK' | translate }}</h3> | ||
<div *ngIf="datatarget.setToOpendataDk else noOpendataDk"> | ||
<app-opendatadk-detail [openDataDkDataset]="datatarget.openDataDkDataset"></app-opendatadk-detail> | ||
</div> | ||
<ng-template #noOpendataDk> | ||
<p>{{ 'DATATARGET.NO-OPENDATA-DK' | translate }}</p> | ||
</ng-template> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-12"> | ||
<div class=" jumbotron"> | ||
<div class="form-group"> | ||
<h3>{{ 'DATATARGET.RELATIONS' | translate }}</h3> | ||
<div *ngIf="dataTargetRelations?.length === 0"> | ||
<p>{{'DATATARGET.NO-RELATIONS' | translate}}</p> | ||
</div> | ||
<div *ngIf="dataTargetRelations"> | ||
<div *ngFor="let relation of dataTargetRelations"> | ||
<div class="row"> | ||
<div class="col-md-4 d-flex align-items-center"> | ||
<p><strong>{{'DATATARGET.PAYLOADEDECODER' | translate}}</strong><span | ||
*ngIf="relation.payloadDecoder; else noDecoder"> | ||
<a [routerLink]="['/payload-decoder/payload-decoder-detail/', relation.payloadDecoder.id]">{{relation.payloadDecoder.name}}</a> | ||
</span> | ||
<ng-template #noDecoder>{{ 'DATATARGET.NO-PAYLOADDECODER' | translate}}</ng-template> | ||
</p> | ||
</div> | ||
<div class="col-md-1 d-flex align-items-center justify-content-center"> | ||
<fa-icon [icon]="arrowsAltH" class="icon--primary icon--medium icon--disabled"></fa-icon> | ||
</div> | ||
<div class="col-md-7 d-flex align-items-center"> | ||
<p><strong>{{'DATATARGET.IOTDEVICE' | translate}}</strong> | ||
<span *ngFor="let device of relation.iotDevices; let first = first"> | ||
<ng-container *ngIf="!first">, </ng-container> <a [routerLink]="['/applications', device.application.id, 'iot-device', device.id]">{{device.name}}</a> | ||
</span> | ||
</p> | ||
</div> | ||
<mat-divider></mat-divider> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<ng-template detail-component></ng-template> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/app/applications/datatarget/datatarget-detail/datatarget-detail.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export interface DatatargetDetail { | ||
} |
11 changes: 11 additions & 0 deletions
11
...p/applications/datatarget/datatarget-edit/datatarget-edit-type-selector.directive.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
|
||
import { ViewContainerRef } from '@angular/core'; | ||
import { DatatargetEditTypeSelectorDirective } from './datatarget-edit-type-selector.directive'; | ||
let viewContainerRef: ViewContainerRef; | ||
describe('Directive: DatatargetEditTypeSelector', () => { | ||
it('should create an instance', () => { | ||
const directive = new DatatargetEditTypeSelectorDirective(viewContainerRef); | ||
expect(directive).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
src/app/applications/datatarget/datatarget-edit/datatarget-edit-type-selector.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Directive, ViewContainerRef } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[edit-component]' | ||
}) | ||
export class DatatargetEditTypeSelectorDirective { | ||
|
||
constructor(public viewContainerRef: ViewContainerRef) { } | ||
|
||
} |
Oops, something went wrong.