mockaton 7.5.1 → 7.5.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": "A deterministic server-side for developing and testing frontend clients",
4
4
  "type": "module",
5
- "version": "7.5.1",
5
+ "version": "7.5.2",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
package/src/Dashboard.css CHANGED
@@ -10,7 +10,7 @@
10
10
  --colorHeaderBackground: #eee;
11
11
  --colorComboBoxBackground: #fafafa;
12
12
  --colorComboBoxHeaderBackground: #fff;
13
- --colorDisabled: #222;
13
+ --colorDisabled: #555;
14
14
  --colorHover: #dfefff;
15
15
  --colorLabel: #666;
16
16
  --colorLightRed: #ffe4ee;
@@ -27,7 +27,7 @@
27
27
  --colorHeaderBackground: #090909;
28
28
  --colorComboBoxBackground: #252525;
29
29
  --colorComboBoxHeaderBackground: #222;
30
- --colorDisabled: #aaa;
30
+ --colorDisabled: #bbb;
31
31
  --colorHover: #023661;
32
32
  --colorLabel: #aaa;
33
33
  --colorLightRed: #ffe4ee;
@@ -70,9 +70,7 @@ select {
70
70
  background: var(--colorHover);
71
71
  }
72
72
  &:disabled {
73
- background: transparent;
74
73
  cursor: not-allowed;
75
- color: var(--colorDisabled);
76
74
  }
77
75
  }
78
76
 
@@ -86,7 +84,7 @@ menu {
86
84
  align-items: flex-end;
87
85
  padding: 20px 16px;
88
86
  background: var(--colorHeaderBackground);
89
- box-shadow: var(--boxShadow1);
87
+ border-bottom: 1px solid rgba(127, 127, 127, 0.17);
90
88
  gap: 16px;
91
89
 
92
90
  img {
@@ -150,7 +148,7 @@ main {
150
148
  }
151
149
 
152
150
  tr {
153
- border-bottom: 2px solid transparent;
151
+ border-top: 1px solid transparent;
154
152
  }
155
153
  }
156
154
  }
@@ -215,6 +213,13 @@ main {
215
213
  &.status4xx {
216
214
  background: var(--color4xxBackground);
217
215
  }
216
+ &:disabled {
217
+ appearance: none;
218
+ background: transparent;
219
+ cursor: default;
220
+ color: var(--colorDisabled);
221
+ opacity: 1;
222
+ }
218
223
  }
219
224
 
220
225
  .DelayToggler {
package/src/Dashboard.js CHANGED
@@ -93,18 +93,22 @@ function CookieSelector({ list }) {
93
93
  }
94
94
 
95
95
  function BulkSelector({ comments }) {
96
+ const disabled = !comments.length
97
+ const list = disabled
98
+ ? []
99
+ : [Strings.select_one].concat(comments)
96
100
  return (
97
101
  r('label', null,
98
102
  r('span', null, Strings.bulk_select_by_comment),
99
103
  r('select', {
100
104
  autocomplete: 'off',
101
- disabled: comments.length <= 1,
105
+ disabled,
102
106
  onChange() {
103
107
  mockaton.bulkSelectByComment(this.value)
104
108
  .then(init)
105
109
  .catch(console.error)
106
110
  }
107
- }, [Strings.select_one].concat(comments).map(item =>
111
+ }, list.map(item =>
108
112
  r('option', {
109
113
  value: item
110
114
  }, item)))))
@@ -2,8 +2,8 @@
2
2
  <svg version="1.1" viewBox="0 0 570 100" xmlns="http://www.w3.org/2000/svg">
3
3
  <style>
4
4
  :root { --color: #000000; }
5
- @media (prefers-color-scheme: light) { :root { --color: #000000 } }
6
- @media (prefers-color-scheme: dark) { :root { --color: #fff } }
5
+ @media (prefers-color-scheme: light) { :root { --color: #444 } }
6
+ @media (prefers-color-scheme: dark) { :root { --color: #eee } }
7
7
  path { fill: var(--color) }
8
8
  </style>
9
9
  <path