mockaton 10.3.2 → 10.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Dashboard.css +2 -0
- package/src/Dashboard.js +7 -4
package/package.json
CHANGED
package/src/Dashboard.css
CHANGED
|
@@ -586,6 +586,7 @@ table {
|
|
|
586
586
|
padding-top: 16px;
|
|
587
587
|
|
|
588
588
|
h2 {
|
|
589
|
+
padding-bottom: 4px;
|
|
589
590
|
padding-left: 16px;
|
|
590
591
|
}
|
|
591
592
|
|
|
@@ -593,6 +594,7 @@ table {
|
|
|
593
594
|
overflow: auto;
|
|
594
595
|
height: 100%;
|
|
595
596
|
padding: 16px;
|
|
597
|
+
padding-top: 12px;
|
|
596
598
|
font-family: monospace;
|
|
597
599
|
|
|
598
600
|
code {
|
package/src/Dashboard.js
CHANGED
|
@@ -708,14 +708,18 @@ function PayloadViewerProgressBar() {
|
|
|
708
708
|
r('div', { style: { animationDuration: state.delay + 'ms' } })))
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
function PayloadViewerTitle({ file,
|
|
712
|
-
const
|
|
711
|
+
function PayloadViewerTitle({ file, statusText }) {
|
|
712
|
+
const tokens = file.split('.')
|
|
713
|
+
const ext = tokens.pop()
|
|
714
|
+
const status = tokens.pop()
|
|
715
|
+
const urlAndMethod = '/' + tokens.join('.') + '.'
|
|
713
716
|
return (
|
|
714
717
|
r('span', null,
|
|
715
|
-
|
|
718
|
+
urlAndMethod,
|
|
716
719
|
r('abbr', { title: statusText }, status),
|
|
717
720
|
'.' + ext))
|
|
718
721
|
}
|
|
722
|
+
|
|
719
723
|
function PayloadViewerTitleWhenProxied({ mime, status, statusText, gatewayIsBad }) {
|
|
720
724
|
return (
|
|
721
725
|
r('span', null,
|
|
@@ -759,7 +763,6 @@ async function updatePayloadViewer(method, urlMask, response) {
|
|
|
759
763
|
}))
|
|
760
764
|
else
|
|
761
765
|
payloadViewerTitleRef.current.replaceChildren(PayloadViewerTitle({
|
|
762
|
-
status: response.status,
|
|
763
766
|
statusText: response.statusText,
|
|
764
767
|
file
|
|
765
768
|
}))
|