Skip to content

Commit

Permalink
Fix last two tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
fcv-iteratorIt committed Oct 30, 2024
1 parent ad689d8 commit d25f3b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
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

0 comments on commit d25f3b3

Please sign in to comment.