mockaton 9.4.0 → 9.4.2

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mockaton",
3
3
  "description": "HTTP Mock Server",
4
4
  "type": "module",
5
- "version": "9.4.0",
5
+ "version": "9.4.2",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
@@ -28,8 +28,5 @@
28
28
  "devDependencies": {
29
29
  "pixaton": "1.1.3",
30
30
  "puppeteer": "24.19.0"
31
- },
32
- "optionalDependencies": {
33
- "open": "10.2.0"
34
31
  }
35
32
  }
package/src/Dashboard.css CHANGED
@@ -100,6 +100,14 @@ select, a, input, button {
100
100
  }
101
101
  }
102
102
 
103
+ a {
104
+ text-decoration: none;
105
+
106
+ &:hover {
107
+ text-decoration: underline;
108
+ }
109
+ }
110
+
103
111
  input[type="checkbox"] {
104
112
  &:focus {
105
113
  outline: 0;
@@ -144,7 +152,7 @@ select {
144
152
 
145
153
  header {
146
154
  display: flex;
147
- width: 100%;
155
+ width: 100vw;
148
156
  padding: 16px;
149
157
  border-bottom: 1px solid var(--colorSecondaryActionBorder);
150
158
  background: var(--colorHeaderBackground);
@@ -193,7 +201,6 @@ header {
193
201
  width: 100%;
194
202
  height: 28px;
195
203
  padding: 4px 8px;
196
- border: 0;
197
204
  border: 1px solid var(--colorSecondaryActionBorder);
198
205
  border-right: 3px solid transparent;
199
206
  margin-top: 4px;
@@ -284,9 +291,14 @@ header {
284
291
  left: auto;
285
292
  padding: 20px;
286
293
  border: 1px solid var(--colorSecondaryActionBorder);
294
+ color: var(--colorText);
287
295
  border-radius: var(--radius);
288
296
  box-shadow: var(--boxShadow1);
289
297
  background: var(--colorHeaderBackground);
298
+
299
+ a {
300
+ color: var(--colorAccent);
301
+ }
290
302
 
291
303
  .GroupByMethod {
292
304
  display: flex;
@@ -298,13 +310,12 @@ header {
298
310
 
299
311
 
300
312
  main {
301
- display: grid;
313
+ display: flex;
314
+ min-width: 0;
302
315
  min-height: 0;
303
- grid-template-columns: minmax(min-content, max-content) 1fr;
304
316
 
305
317
  @media (max-width: 800px) {
306
- grid-template-columns: 100%;
307
- grid-template-rows: 1fr 1fr;
318
+ flex-direction: column;
308
319
 
309
320
  .Resizer {
310
321
  display: none;
@@ -312,21 +323,26 @@ main {
312
323
 
313
324
  .leftSide {
314
325
  min-width: 100%;
326
+ min-height: 50%;
327
+ max-height: 50%;
328
+ border: 0;
315
329
  }
316
330
  }
317
331
 
318
332
  .leftSide {
333
+ width: 50%;
319
334
  padding: 16px;
320
335
  padding-bottom: 0;
336
+ border-right: 1px solid var(--colorSecondaryActionBorder);
321
337
  overflow-y: auto;
322
338
  box-shadow: var(--boxShadow1);
323
339
  }
324
340
 
325
341
  .rightSide {
326
342
  position: relative;
327
- padding: 16px;
328
- border-left: 1px solid var(--colorSecondaryActionBorder);
329
- overflow-y: auto;
343
+ min-width: 100px;
344
+ min-height: 0;
345
+ flex: 1;
330
346
 
331
347
  .Resizer {
332
348
  position: absolute;
@@ -377,11 +393,11 @@ table {
377
393
  margin-left: 4px;
378
394
  border-radius: var(--radius);
379
395
  color: var(--colorAccent);
380
- text-decoration: none;
381
396
  word-break: break-word;
382
397
 
383
398
  &:hover {
384
399
  background: var(--colorHover);
400
+ text-decoration: none;
385
401
  }
386
402
  &.chosen {
387
403
  color: white;
@@ -559,18 +575,24 @@ table {
559
575
  margin-left: 4px;
560
576
  border-radius: var(--radius);
561
577
  color: var(--colorAccent);
562
- text-decoration: none;
563
-
564
- &:hover {
565
- text-decoration: underline;
566
- }
567
578
  }
568
579
  }
569
580
 
570
581
 
571
582
  .PayloadViewer {
583
+ display: flex;
584
+ height: 100%;
585
+ flex-direction: column;
586
+ padding-top: 16px;
587
+
588
+ h2 {
589
+ padding-left: 16px;
590
+ }
591
+
572
592
  pre {
573
- padding-top: 12px;
593
+ overflow: auto;
594
+ height: 100%;
595
+ padding: 16px;
574
596
  font-family: monospace;
575
597
 
576
598
  code {
package/src/Dashboard.js CHANGED
@@ -634,8 +634,9 @@ Resizer.onPointerDown = function (event) {
634
634
  document.body.style.cursor = 'col-resize'
635
635
  }
636
636
  Resizer.onMove = function (event) {
637
+ const MIN_LEFT_WIDTH = 380
637
638
  Resizer.raf = Resizer.raf || requestAnimationFrame(() => {
638
- state.leftSideWidth = Resizer.panelWidth - (Resizer.initialX - event.clientX)
639
+ state.leftSideWidth = Math.max(Resizer.panelWidth - (Resizer.initialX - event.clientX), MIN_LEFT_WIDTH)
639
640
  leftSideRef.current.style.width = state.leftSideWidth + 'px'
640
641
  Resizer.raf = 0
641
642
  })