-
+
diff --git a/webapp/wiremock/src/app/components/tree-view/tree-view.component.scss b/webapp/wiremock/src/app/components/tree-view/tree-view.component.scss
index 758fc62bc4..868d4f2d7d 100644
--- a/webapp/wiremock/src/app/components/tree-view/tree-view.component.scss
+++ b/webapp/wiremock/src/app/components/tree-view/tree-view.component.scss
@@ -89,3 +89,16 @@ $color-mode-type: data;
border-top-right-radius: $btn-border-radius !important;
}
}
+
+.wmIndicatorContainer {
+ padding-left: 4px;
+ padding-right: 4px;
+ align-self: flex-start;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.wmProxyContainer {
+ align-self: flex-start;
+}
diff --git a/webapp/wiremock/src/app/components/unmatched/unmatched.component.ts b/webapp/wiremock/src/app/components/unmatched/unmatched.component.ts
index c34735828f..0fc5b347d9 100644
--- a/webapp/wiremock/src/app/components/unmatched/unmatched.component.ts
+++ b/webapp/wiremock/src/app/components/unmatched/unmatched.component.ts
@@ -29,8 +29,9 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
private webSocketService: WebSocketService,
private messageService: MessageService,
private autoRefreshService: AutoRefreshService,
- private modalService: NgbModal
- ) {}
+ private modalService: NgbModal,
+ ) {
+ }
ngOnInit() {
this.webSocketService
@@ -38,7 +39,7 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
.pipe(
filter(() => this.autoRefreshService.isAutoRefreshEnabled()),
takeUntil(this.ngUnsubscribe),
- debounceTime(100)
+ debounceTime(100),
)
.subscribe(() => {
this.loadMappings();
@@ -54,7 +55,7 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
},
err => {
UtilService.showErrorMessage(this.messageService, err);
- }
+ },
);
}
@@ -77,9 +78,9 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
copyCurl(request: LoggedRequest) {
if (UtilService.copyToClipboard(CurlExtractor.copyCurl(request))) {
- this.messageService.setMessage(new Message("Curl copied to clipboard", MessageType.INFO, 3000));
+ this.messageService.setMessage(new Message("Curl copied to clipboard", MessageType.INFO));
} else {
- this.messageService.setMessage(new Message("Was not able to copy. Details in log", MessageType.ERROR, 10000));
+ this.messageService.setMessage(new Message("Was not able to copy. Details in log", MessageType.ERROR));
}
}
@@ -94,19 +95,19 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
private copyMappingTemplateToClipboard(message?: string) {
if (message && UtilService.copyToClipboard(message)) {
- this.messageService.setMessage(new Message("Mapping template copied to clipboard", MessageType.INFO, 3000));
+ this.messageService.setMessage(new Message("Mapping template copied to clipboard", MessageType.INFO));
} else {
- this.messageService.setMessage(new Message("Was not able to copy. Details in log", MessageType.ERROR, 10000));
+ this.messageService.setMessage(new Message("Was not able to copy. Details in log", MessageType.ERROR));
}
}
private createMapping(request: LoggedRequest): string {
return UtilService.prettify(
- '{"request": {"method": "' +
- request.method +
- '","url": "' +
- request.url +
- '"},"response": {"status": 200,"body": "","headers": {"Content-Type": "text/plain"}}}'
+ "{\"request\": {\"method\": \"" +
+ request.method +
+ "\",\"url\": \"" +
+ request.url +
+ "\"},\"response\": {\"status\": 200,\"body\": \"\",\"headers\": {\"Content-Type\": \"text/plain\"}}}",
);
}
@@ -153,19 +154,19 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
} else {
first = false;
}
- printedNamespaces += '"' + key + '": "' + nameSpaces[key] + '"';
+ printedNamespaces += "\"" + key + "\": \"" + nameSpaces[key] + "\"";
}
let message =
- '{"request": {"method": "' +
+ "{\"request\": {\"method\": \"" +
method +
- '","url": "' +
+ "\",\"url\": \"" +
url +
- '","bodyPatterns": [{"matchesXPath": "' +
+ "\",\"bodyPatterns\": [{\"matchesXPath\": \"" +
xPath +
- '","xPathNamespaces": {' +
+ "\",\"xPathNamespaces\": {" +
printedNamespaces +
- '}}]},"response": {"status": 200,"body": "","headers": {"Content-Type": "text/xml"}}}';
+ "}}]},\"response\": {\"status\": 200,\"body\": \"\",\"headers\": {\"Content-Type\": \"text/xml\"}}}";
message = UtilService.prettify(message);
return message;
@@ -178,7 +179,7 @@ export class UnmatchedComponent implements OnInit, OnDestroy {
},
err => {
UtilService.showErrorMessage(this.messageService, err);
- }
+ },
);
}
diff --git a/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.html b/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.html
index 8c069bdce9..f1338da772 100644
--- a/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.html
+++ b/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.html
@@ -12,5 +12,5 @@
Wiremock recorder
diff --git a/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.ts b/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.ts
index 1e9ee1af22..e5042f618e 100644
--- a/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.ts
+++ b/webapp/wiremock/src/app/dialogs/dialog-recording/dialog-recording.component.ts
@@ -7,5 +7,6 @@ import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
styleUrls: ["./dialog-recording.component.scss"],
})
export class DialogRecordingComponent {
- constructor(public activeModal: NgbActiveModal) {}
+ constructor(public activeModal: NgbActiveModal) {
+ }
}
diff --git a/webapp/wiremock/src/app/dialogs/file-name/file-name.component.html b/webapp/wiremock/src/app/dialogs/file-name/file-name.component.html
new file mode 100644
index 0000000000..8bcf06d25f
--- /dev/null
+++ b/webapp/wiremock/src/app/dialogs/file-name/file-name.component.html
@@ -0,0 +1,17 @@
+
+