whistle.mock-plugins 1.2.0-beta.9 → 1.2.1-beta.1
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/VERSION.md +13 -6
- package/app/public/js/index.js +1 -1
- package/app/public/js/index.js.LICENSE.txt +13 -2
- package/package.json +3 -1
- package/ui/src/components/interface-management/DataManagementModal.js +110 -0
- package/ui/src/components/interface-management/ResponseContentEditor.js +59 -1
- package/ui/src/pages/InterfaceManagement.js +153 -76
- package/ui/src/pages/InterfaceManagementV2.js +155 -78
- package/ui/src/pages/MockDataV2.js +6 -134
- package/ui/src/styles/mock-data.css +0 -139
|
@@ -121,118 +121,6 @@
|
|
|
121
121
|
min-height: 300px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
/* 视图切换按钮样式 */
|
|
125
|
-
.view-toggle-controls {
|
|
126
|
-
display: flex;
|
|
127
|
-
justify-content: flex-end;
|
|
128
|
-
align-items: center;
|
|
129
|
-
height: 100%;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.view-toggle-button {
|
|
133
|
-
border-radius: 4px;
|
|
134
|
-
border: 1px solid #e8e8e8;
|
|
135
|
-
background: #fafafa;
|
|
136
|
-
transition: all 0.3s;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.view-toggle-button:hover {
|
|
140
|
-
border-color: #1890ff;
|
|
141
|
-
color: #1890ff;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* 列表视图样式 */
|
|
145
|
-
.feature-list-view {
|
|
146
|
-
display: flex;
|
|
147
|
-
flex-direction: column;
|
|
148
|
-
gap: 16px;
|
|
149
|
-
min-height: 300px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.feature-list-item {
|
|
153
|
-
display: flex;
|
|
154
|
-
justify-content: space-between;
|
|
155
|
-
align-items: center;
|
|
156
|
-
padding: 16px 20px;
|
|
157
|
-
border-radius: 8px;
|
|
158
|
-
border: 1px solid #f0f0f0;
|
|
159
|
-
background: #ffffff;
|
|
160
|
-
transition: all 0.3s;
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
position: relative;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.feature-list-item:hover {
|
|
166
|
-
border-color: #d9d9d9;
|
|
167
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
|
|
168
|
-
transform: translateY(-2px);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.feature-list-item.inactive-feature {
|
|
172
|
-
opacity: 0.7;
|
|
173
|
-
background-color: #fafafa;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.feature-list-content {
|
|
177
|
-
flex: 1;
|
|
178
|
-
display: flex;
|
|
179
|
-
flex-direction: column;
|
|
180
|
-
gap: 8px;
|
|
181
|
-
overflow: hidden;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.feature-list-main {
|
|
185
|
-
display: flex;
|
|
186
|
-
flex-direction: column;
|
|
187
|
-
gap: 4px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.feature-list-name {
|
|
191
|
-
display: flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
gap: 12px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.feature-list-name h3 {
|
|
197
|
-
margin: 0;
|
|
198
|
-
font-size: 16px;
|
|
199
|
-
font-weight: 600;
|
|
200
|
-
color: #1890ff;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.feature-list-description {
|
|
204
|
-
color: #666;
|
|
205
|
-
font-size: 14px;
|
|
206
|
-
max-width: 80%;
|
|
207
|
-
overflow: hidden;
|
|
208
|
-
white-space: nowrap;
|
|
209
|
-
text-overflow: ellipsis;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.feature-list-meta {
|
|
213
|
-
display: flex;
|
|
214
|
-
justify-content: space-between;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.feature-list-stats {
|
|
218
|
-
display: flex;
|
|
219
|
-
gap: 16px;
|
|
220
|
-
color: #8c8c8c;
|
|
221
|
-
font-size: 13px;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.feature-list-stats span {
|
|
225
|
-
display: flex;
|
|
226
|
-
align-items: center;
|
|
227
|
-
gap: 4px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.feature-list-actions {
|
|
231
|
-
display: flex;
|
|
232
|
-
align-items: center;
|
|
233
|
-
gap: 8px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
124
|
.feature-card {
|
|
237
125
|
position: relative;
|
|
238
126
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
@@ -1151,33 +1039,6 @@ input:checked + .slider:before {
|
|
|
1151
1039
|
height: auto;
|
|
1152
1040
|
}
|
|
1153
1041
|
|
|
1154
|
-
.feature-list-item {
|
|
1155
|
-
flex-direction: column;
|
|
1156
|
-
align-items: flex-start;
|
|
1157
|
-
gap: 16px;
|
|
1158
|
-
padding: 16px;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
.feature-list-content {
|
|
1162
|
-
width: 100%;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
.feature-list-description {
|
|
1166
|
-
max-width: 100%;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
.feature-list-actions {
|
|
1170
|
-
width: 100%;
|
|
1171
|
-
justify-content: flex-end;
|
|
1172
|
-
border-top: 1px solid #f0f0f0;
|
|
1173
|
-
padding-top: 12px;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
.view-toggle-controls {
|
|
1177
|
-
justify-content: flex-start;
|
|
1178
|
-
margin-top: 12px;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
1042
|
.form-actions {
|
|
1182
1043
|
flex-direction: column;
|
|
1183
1044
|
}
|