Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-6 d-flex align-items-stretch">
<div class="jumbotron jumbotron--full-width">
<div class="jumbotron jumbotron--full-width width100percent">
<div class="d-flex align-items-start justify-content-between">
<h3>{{ "DATATARGET.TEST_CONNECTION.TEST-CONNECTION" | translate }}</h3>
<div class="spinner-placeholder">
Expand Down Expand Up @@ -51,36 +51,36 @@ <h3>{{ "DATATARGET.TEST_CONNECTION.TEST-CONNECTION" | translate }}</h3>
</div>
</div>
<div class="col-md-6 d-flex align-items-stretch min-height-400">
<div class="jumbotron jumbotron--full-width">
<div class="jumbotron jumbotron--full-width width100percent">
<h3>{{ "DATATARGET.TEST_CONNECTION.CHOSEN-DATA-PACKAGE" | translate }}</h3>
<ngx-monaco-editor
[(ngModel)]="payloadData"
[ngModelOptions]="{ standalone: true }"
[options]="editorJsonOutpuOptions"
[options]="editorJsonInputOptions"
class="height-85"
>
</ngx-monaco-editor>
</div>
</div>
<div class="col-md-6 d-flex align-items-stretch min-height-400">
<div class="jumbotron jumbotron--full-width">
<div class="jumbotron jumbotron--full-width width100percent">
<h3>{{ "DATATARGET.TEST_CONNECTION.SENT-DECODED-REQUEST" | translate }}</h3>
<ngx-monaco-editor
[(ngModel)]="decodedData"
[ngModelOptions]="{ standalone: true }"
[options]="editorJsonOutpuOptions"
[options]="editorJsonOutputOptions"
class="height-85"
>
</ngx-monaco-editor>
</div>
</div>
<div class="col-md-6 d-flex align-items-stretch min-height-400">
<div class="jumbotron jumbotron--full-width">
<div class="jumbotron jumbotron--full-width width100percent">
<h3>{{ "DATATARGET.TEST_CONNECTION.RECEIVED-RESPONSE" | translate }}</h3>
<ngx-monaco-editor
[(ngModel)]="testResponse"
[ngModelOptions]="{ standalone: true }"
[options]="editorJsonOutpuOptions"
[options]="editorJsonOutputOptions"
class="height-85"
>
</ngx-monaco-editor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ import { TranslateService } from "@ngx-translate/core";
styleUrl: "./datatarget-test-connection.component.scss",
})
export class DatatargetTestConnectionComponent implements OnInit, OnDestroy {
editorJsonOutpuOptions = {
editorJsonOutputOptions = {
theme: "vs",
language: "json",
autoIndent: true,
roundedSelection: true,
minimap: { enabled: false },
readOnly: true,
};
editorJsonInputOptions = {
theme: "vs",
language: "json",
autoIndent: true,
roundedSelection: true,
minimap: { enabled: false },
readOnly: false,
};

public iotDevices: IotDevice[];
public payloadDecoders: PayloadDecoderMinimal[];
Expand Down
Loading