-
Notifications
You must be signed in to change notification settings - Fork 6
FIWARE datatarget #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c0ceda8
Make environment configurable using environment variables (#52)
MadsSvejstrup b5cd43c
Added message to prompt when attempting to delete application with ex…
GufCab a6a7223
Updated default baseUrl to match docs
MadsSvejstrup 9e1679d
Active column now uses timestamp from latest message (#56)
AramAlsabti 4184c59
Datatarget multi-types administration and new FIWARE Datatarget type
fb6c633
Merge branch 'fiware-data-target-sq' into fiware-data-target-stage
ac070b6
PR fixes
dd1984f
DatatargetTypesService pr fixes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.