android-midscene-automation 0.1.21 → 0.1.23
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/CHANGELOG.md +58 -128
- package/FAQ.md +91 -0
- package/README.md +71 -229
- package/USAGE.md +11 -100
- package/bin/android-midscene-automation.js +4 -0
- package/package.json +36 -20
- package/server/appium-recorder/appium-runner.ts +43 -6
- package/server/appium-recorder/repository.ts +1 -0
- package/server/appium-recorder/routes.ts +14 -1
- package/server/http-api.ts +8 -4
- package/server/model-tester.ts +22 -6
- package/src/App.vue +4 -1
- package/src/api.ts +3 -1
- package/src/appium-recorder/AppiumPage.vue +175 -87
- package/src/appium-recorder/api.ts +4 -0
- package/src/appium-recorder/components/FlowCanvas.vue +201 -0
- package/src/appium-recorder/components/FlowNodeCard.vue +264 -0
- package/src/appium-recorder/components/FlowRoundedEdge.vue +67 -0
- package/src/appium-recorder/components/NestedConditionBranches.vue +24 -29
- package/src/appium-recorder/components/RecordedSteps.vue +119 -1457
- package/src/appium-recorder/flow-graph.ts +709 -0
- package/src/appium-recorder/flow-labels.ts +81 -0
- package/src/appium-recorder/types.ts +1 -0
- package/src/components/device/DevicePreviewPanel.vue +4 -1
- package/src/main.ts +3 -0
- package/src/style.css +387 -38
- package/src/ui-refresh.css +619 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ui-primary: #fed73b;
|
|
3
|
+
--ui-primary-hover: #ffe166;
|
|
4
|
+
--ui-primary-active: #e5b900;
|
|
5
|
+
--ui-success: #52c41a;
|
|
6
|
+
--ui-warning: #faad14;
|
|
7
|
+
--ui-danger: #ff4d4f;
|
|
8
|
+
--ui-text: #1f2937;
|
|
9
|
+
--ui-text-secondary: #6b7280;
|
|
10
|
+
--ui-text-muted: #9ca3af;
|
|
11
|
+
--ui-border: #ededed;
|
|
12
|
+
--ui-border-strong: #dedede;
|
|
13
|
+
--ui-bg: #f5f5f5;
|
|
14
|
+
--ui-bg-soft: #fafafa;
|
|
15
|
+
--ui-surface: #fff;
|
|
16
|
+
--ui-radius: 8px;
|
|
17
|
+
--ui-radius-control: 6px;
|
|
18
|
+
--ui-shadow-popover: 0 8px 24px rgba(15, 23, 42, 0.1);
|
|
19
|
+
|
|
20
|
+
--el-color-primary: var(--ui-primary);
|
|
21
|
+
--el-color-primary-light-3: #ffe575;
|
|
22
|
+
--el-color-primary-light-5: #ffeb9d;
|
|
23
|
+
--el-color-primary-light-7: #fff2c4;
|
|
24
|
+
--el-color-primary-light-8: #fff6d8;
|
|
25
|
+
--el-color-primary-light-9: #fffaeb;
|
|
26
|
+
--el-color-primary-dark-2: var(--ui-primary-active);
|
|
27
|
+
--el-color-success: var(--ui-success);
|
|
28
|
+
--el-color-warning: var(--ui-warning);
|
|
29
|
+
--el-color-danger: var(--ui-danger);
|
|
30
|
+
--el-text-color-primary: var(--ui-text);
|
|
31
|
+
--el-text-color-regular: #4b5563;
|
|
32
|
+
--el-text-color-secondary: var(--ui-text-secondary);
|
|
33
|
+
--el-text-color-placeholder: var(--ui-text-muted);
|
|
34
|
+
--el-border-color: var(--ui-border-strong);
|
|
35
|
+
--el-border-color-light: var(--ui-border);
|
|
36
|
+
--el-border-color-lighter: #edf0f3;
|
|
37
|
+
--el-fill-color-light: #f6f8fb;
|
|
38
|
+
--el-fill-color-lighter: #fafbfc;
|
|
39
|
+
--el-bg-color-page: var(--ui-bg);
|
|
40
|
+
--el-border-radius-base: var(--ui-radius-control);
|
|
41
|
+
--el-border-radius-small: 4px;
|
|
42
|
+
--el-box-shadow-light: var(--ui-shadow-popover);
|
|
43
|
+
color: var(--ui-text);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
body {
|
|
47
|
+
background: var(--ui-bg);
|
|
48
|
+
color: var(--ui-text);
|
|
49
|
+
letter-spacing: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
::selection {
|
|
53
|
+
background: #fff0a8;
|
|
54
|
+
color: #342a00;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.layout {
|
|
58
|
+
grid-template-columns: 216px minmax(0, 1fr);
|
|
59
|
+
background: var(--ui-bg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.layout-sidebar {
|
|
63
|
+
border-right: 1px solid var(--ui-border);
|
|
64
|
+
background: #fff;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.layout-sidebar__top {
|
|
68
|
+
height: 64px;
|
|
69
|
+
border-bottom-color: var(--ui-border);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.layout-sidebar__logo {
|
|
73
|
+
width: 38px;
|
|
74
|
+
height: 38px;
|
|
75
|
+
border-radius: var(--ui-radius);
|
|
76
|
+
background: var(--ui-primary);
|
|
77
|
+
box-shadow: none;
|
|
78
|
+
color: #1f1f1f;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.layout-menu.el-menu {
|
|
83
|
+
--el-menu-bg-color: #fff;
|
|
84
|
+
--el-menu-text-color: #4b5563;
|
|
85
|
+
--el-menu-hover-bg-color: #fafafa;
|
|
86
|
+
--el-menu-active-color: #1f2937;
|
|
87
|
+
padding: 10px 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.layout-menu .el-menu-item,
|
|
91
|
+
.layout-menu .el-sub-menu__title {
|
|
92
|
+
height: 44px;
|
|
93
|
+
margin: 2px 0;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
line-height: 44px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.layout-menu .el-menu-item.is-active {
|
|
99
|
+
background: #fff9df;
|
|
100
|
+
box-shadow: 3px 0 0 var(--ui-primary) inset;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.layout-menu .el-sub-menu .el-menu-item {
|
|
105
|
+
min-width: 0;
|
|
106
|
+
padding-left: 48px !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.layout-main {
|
|
110
|
+
grid-template-rows: 64px minmax(0, 1fr);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.layout-header {
|
|
114
|
+
height: 64px;
|
|
115
|
+
padding: 0 24px;
|
|
116
|
+
border-bottom-color: var(--ui-border);
|
|
117
|
+
background: rgba(255, 255, 255, 0.96);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.layout-header__title {
|
|
121
|
+
color: var(--ui-text);
|
|
122
|
+
font-size: 18px;
|
|
123
|
+
font-weight: 650;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.layout-header__actions {
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.page-body {
|
|
132
|
+
padding: 20px 24px 24px;
|
|
133
|
+
scrollbar-gutter: stable;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.page-body:not(.page-body--appium) > .generator-page,
|
|
137
|
+
.page-body:not(.page-body--appium) > .config-page,
|
|
138
|
+
.page-body:not(.page-body--appium) > .automation-layout {
|
|
139
|
+
width: 100%;
|
|
140
|
+
margin: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.page-alert,
|
|
144
|
+
.page-section {
|
|
145
|
+
margin-bottom: 16px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.el-card {
|
|
149
|
+
border-color: var(--ui-border);
|
|
150
|
+
border-radius: var(--ui-radius);
|
|
151
|
+
background: var(--ui-surface);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.el-card__header {
|
|
155
|
+
min-height: 54px;
|
|
156
|
+
padding: 15px 18px;
|
|
157
|
+
border-bottom-color: var(--ui-border);
|
|
158
|
+
color: var(--ui-text);
|
|
159
|
+
font-size: 15px;
|
|
160
|
+
font-weight: 650;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.el-card__body {
|
|
164
|
+
padding: 18px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.el-button {
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
letter-spacing: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.el-button:not(.is-circle) {
|
|
173
|
+
min-height: 32px;
|
|
174
|
+
padding-right: 14px;
|
|
175
|
+
padding-left: 14px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.el-button--primary:not(.is-disabled) {
|
|
179
|
+
--el-button-text-color: #1f1f1f;
|
|
180
|
+
--el-button-hover-text-color: #1f1f1f;
|
|
181
|
+
--el-button-active-text-color: #1f1f1f;
|
|
182
|
+
box-shadow: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.layout-header .el-button--primary.is-disabled,
|
|
186
|
+
.generator-page .el-button--primary.is-disabled,
|
|
187
|
+
.appium-header-actions .el-button--primary.is-disabled {
|
|
188
|
+
--el-button-disabled-text-color: #9ca3af;
|
|
189
|
+
--el-button-disabled-bg-color: #f3f4f6;
|
|
190
|
+
--el-button-disabled-border-color: #e5e7eb;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.el-button--danger:not(.is-disabled) {
|
|
194
|
+
box-shadow: 0 2px 5px rgba(255, 77, 79, 0.12);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.el-input__wrapper,
|
|
198
|
+
.el-select__wrapper,
|
|
199
|
+
.el-textarea__inner,
|
|
200
|
+
.el-input-number .el-input__wrapper {
|
|
201
|
+
border-radius: var(--ui-radius-control);
|
|
202
|
+
box-shadow: 0 0 0 1px var(--ui-border-strong) inset;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.el-input__wrapper:hover,
|
|
206
|
+
.el-select__wrapper:hover,
|
|
207
|
+
.el-textarea__inner:hover {
|
|
208
|
+
box-shadow: 0 0 0 1px #e8c32f inset;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.el-form-item__label {
|
|
212
|
+
color: #374151;
|
|
213
|
+
font-size: 13px;
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.el-dialog {
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
border: 1px solid var(--ui-border);
|
|
220
|
+
border-radius: var(--ui-radius);
|
|
221
|
+
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.el-dialog__header {
|
|
225
|
+
padding: 18px 20px 14px;
|
|
226
|
+
border-bottom: 1px solid var(--ui-border);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.el-dialog__title {
|
|
230
|
+
color: var(--ui-text);
|
|
231
|
+
font-size: 16px;
|
|
232
|
+
font-weight: 650;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.el-dialog__body {
|
|
236
|
+
padding: 20px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.el-dialog__footer {
|
|
240
|
+
padding: 12px 20px 18px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.el-message-box {
|
|
244
|
+
border: 1px solid var(--ui-border);
|
|
245
|
+
border-radius: var(--ui-radius);
|
|
246
|
+
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.el-tabs__item {
|
|
250
|
+
color: var(--ui-text-secondary);
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.el-tabs__item.is-active {
|
|
255
|
+
color: var(--ui-text);
|
|
256
|
+
font-weight: 600;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.el-alert {
|
|
260
|
+
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
261
|
+
border-radius: var(--ui-radius-control);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.el-tag {
|
|
265
|
+
border-radius: 4px;
|
|
266
|
+
font-weight: 500;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.el-empty__description p {
|
|
270
|
+
color: var(--ui-text-muted);
|
|
271
|
+
font-size: 13px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.el-select-dropdown,
|
|
275
|
+
.el-dropdown__popper,
|
|
276
|
+
.el-picker__popper,
|
|
277
|
+
.el-popover.el-popper,
|
|
278
|
+
.el-tooltip__popper {
|
|
279
|
+
border-radius: var(--ui-radius-control);
|
|
280
|
+
box-shadow: var(--ui-shadow-popover);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.subnav {
|
|
284
|
+
display: inline-flex;
|
|
285
|
+
width: fit-content;
|
|
286
|
+
padding: 4px;
|
|
287
|
+
border: 1px solid var(--ui-border);
|
|
288
|
+
border-radius: var(--ui-radius);
|
|
289
|
+
background: #eef1f5;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.subnav__item {
|
|
293
|
+
min-height: 32px;
|
|
294
|
+
padding: 6px 14px;
|
|
295
|
+
border: 0;
|
|
296
|
+
border-radius: 5px;
|
|
297
|
+
background: transparent;
|
|
298
|
+
color: var(--ui-text-secondary);
|
|
299
|
+
font-size: 13px;
|
|
300
|
+
font-weight: 500;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.subnav__item:hover {
|
|
304
|
+
color: var(--ui-text);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.subnav__item--active {
|
|
308
|
+
border: 0;
|
|
309
|
+
background: var(--ui-surface);
|
|
310
|
+
color: #1f2937;
|
|
311
|
+
box-shadow:
|
|
312
|
+
0 1px 4px rgba(15, 23, 42, 0.08),
|
|
313
|
+
0 2px 0 var(--ui-primary);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.page-grid,
|
|
317
|
+
.config-grid,
|
|
318
|
+
.generator-page--ai {
|
|
319
|
+
gap: 16px;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.panel-header {
|
|
323
|
+
min-width: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.panel-header > span,
|
|
327
|
+
.panel-header__title {
|
|
328
|
+
color: var(--ui-text);
|
|
329
|
+
font-weight: 650;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.panel-header__actions {
|
|
333
|
+
align-items: center;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.config-model-grid {
|
|
337
|
+
gap: 20px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.config-model-grid > section {
|
|
341
|
+
min-width: 0;
|
|
342
|
+
padding: 16px;
|
|
343
|
+
border: 1px solid var(--ui-border);
|
|
344
|
+
border-radius: var(--ui-radius-control);
|
|
345
|
+
background: var(--ui-bg-soft);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.model-usage-chart {
|
|
349
|
+
border-top-color: var(--ui-border);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.model-usage-chart__svg {
|
|
353
|
+
border-color: var(--ui-border);
|
|
354
|
+
background: #fbfcfe;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.model-usage-chart__record {
|
|
358
|
+
border: 1px solid transparent;
|
|
359
|
+
background: var(--ui-bg-soft);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.model-usage-chart__record:not(.model-usage-chart__record--head):hover {
|
|
363
|
+
border-color: #f2d768;
|
|
364
|
+
background: #fffdf2;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.model-usage-chart__record--head {
|
|
368
|
+
background: #eef1f5;
|
|
369
|
+
color: #374151;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.app-preset-row,
|
|
373
|
+
.script-row,
|
|
374
|
+
.step-item {
|
|
375
|
+
border-color: var(--ui-border);
|
|
376
|
+
border-radius: var(--ui-radius-control);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.app-preset-row:hover,
|
|
380
|
+
.script-row:hover {
|
|
381
|
+
border-color: #efd467;
|
|
382
|
+
background: #fffdf4;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.method-guide {
|
|
386
|
+
border-color: #f0dc8a;
|
|
387
|
+
background: #fffbed;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.method-guide__summary {
|
|
391
|
+
color: #594b12;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.step-item {
|
|
395
|
+
background: var(--ui-bg-soft);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.code-block,
|
|
399
|
+
.terminal-block,
|
|
400
|
+
.generator-code-editor .el-textarea__inner,
|
|
401
|
+
.code-dialog__editor .el-textarea__inner {
|
|
402
|
+
background: #111827;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.automation-layout,
|
|
406
|
+
.automation-stage {
|
|
407
|
+
gap: 16px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.script-row--active {
|
|
411
|
+
border-color: #e7c63f;
|
|
412
|
+
background: #fff9df;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.execution-output {
|
|
416
|
+
border-color: var(--ui-border);
|
|
417
|
+
border-radius: var(--ui-radius-control);
|
|
418
|
+
background: var(--ui-surface);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.execution-log__output {
|
|
422
|
+
border-radius: var(--ui-radius-control);
|
|
423
|
+
background: #111827;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.device-preview {
|
|
427
|
+
border-radius: var(--ui-radius-control);
|
|
428
|
+
background: #0f172a;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.device-preview--empty {
|
|
432
|
+
border: 1px dashed var(--ui-border-strong);
|
|
433
|
+
background: #fafafa;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.device-action-button {
|
|
437
|
+
border-radius: var(--ui-radius-control);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.device-action-button:hover {
|
|
441
|
+
background: #fff8d6;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.appium-header-actions {
|
|
445
|
+
top: 0;
|
|
446
|
+
right: 24px;
|
|
447
|
+
height: 64px;
|
|
448
|
+
gap: 8px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.appium-recorder-page {
|
|
452
|
+
gap: 16px;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.appium-recorder-layout {
|
|
456
|
+
gap: 16px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.appium-workbench-tabs > .el-tabs__header {
|
|
460
|
+
padding: 0 18px;
|
|
461
|
+
background: #fbfcfe;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.appium-workbench {
|
|
465
|
+
gap: 18px;
|
|
466
|
+
padding: 18px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.appium-workbench__section h3 {
|
|
470
|
+
color: var(--ui-text);
|
|
471
|
+
font-size: 15px;
|
|
472
|
+
font-weight: 650;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.appium-tree .el-tree-node__content {
|
|
476
|
+
min-height: 30px;
|
|
477
|
+
border-radius: 4px;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.appium-tree .el-tree-node__content:hover {
|
|
481
|
+
background: #fffbed;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.appium-tree .el-tree-node.is-current > .el-tree-node__content {
|
|
485
|
+
background: #fff6cf;
|
|
486
|
+
color: #6b5700;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.appium-current-activity {
|
|
490
|
+
border-top-color: var(--ui-border);
|
|
491
|
+
background: #fbfcfe;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.appium-current-activity > span {
|
|
495
|
+
color: var(--ui-text-secondary);
|
|
496
|
+
font-weight: 500;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.appium-side-form {
|
|
500
|
+
gap: 10px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.appium-script-list__item {
|
|
504
|
+
border-color: var(--ui-border);
|
|
505
|
+
border-radius: var(--ui-radius-control);
|
|
506
|
+
background: var(--ui-surface);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.appium-script-list__item:hover {
|
|
510
|
+
border-color: #efd467;
|
|
511
|
+
background: #fffdf4;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.appium-script-list__item--active {
|
|
515
|
+
border-color: #e7c63f;
|
|
516
|
+
background: #fff9df;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.appium-replay-fab .el-button {
|
|
520
|
+
box-shadow: 0 8px 24px rgba(181, 145, 0, 0.24);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.appium-replay-output--dialog {
|
|
524
|
+
border-radius: var(--ui-radius-control);
|
|
525
|
+
background: #111827;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* Keep the Appium flow editor on its original Element Plus theme. */
|
|
529
|
+
.appium-recorded-steps-panel,
|
|
530
|
+
.appium-flow-dialog,
|
|
531
|
+
.appium-action-dropdown {
|
|
532
|
+
--el-color-primary: #409eff;
|
|
533
|
+
--el-color-primary-light-3: #79bbff;
|
|
534
|
+
--el-color-primary-light-5: #a0cfff;
|
|
535
|
+
--el-color-primary-light-7: #c6e2ff;
|
|
536
|
+
--el-color-primary-light-8: #d9ecff;
|
|
537
|
+
--el-color-primary-light-9: #ecf5ff;
|
|
538
|
+
--el-color-primary-dark-2: #337ecc;
|
|
539
|
+
--el-color-success: #67c23a;
|
|
540
|
+
--el-color-warning: #e6a23c;
|
|
541
|
+
--el-color-danger: #f56c6c;
|
|
542
|
+
--el-text-color-primary: #303133;
|
|
543
|
+
--el-text-color-regular: #606266;
|
|
544
|
+
--el-text-color-secondary: #909399;
|
|
545
|
+
--el-text-color-placeholder: #a8abb2;
|
|
546
|
+
--el-border-color: #dcdfe6;
|
|
547
|
+
--el-border-color-light: #e4e7ed;
|
|
548
|
+
--el-border-color-lighter: #ebeef5;
|
|
549
|
+
--el-fill-color-light: #f5f7fa;
|
|
550
|
+
--el-fill-color-lighter: #fafafa;
|
|
551
|
+
--el-border-radius-base: 4px;
|
|
552
|
+
--el-border-radius-small: 2px;
|
|
553
|
+
color: #303133;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.appium-flow-dialog.el-dialog {
|
|
557
|
+
overflow: visible;
|
|
558
|
+
padding: 16px;
|
|
559
|
+
border: 0;
|
|
560
|
+
border-radius: 4px;
|
|
561
|
+
box-shadow: var(--el-box-shadow);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.appium-flow-dialog .el-dialog__header {
|
|
565
|
+
padding: 0 0 16px;
|
|
566
|
+
border-bottom: 0;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.appium-flow-dialog .el-dialog__title {
|
|
570
|
+
font-size: var(--el-dialog-title-font-size);
|
|
571
|
+
font-weight: 400;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.appium-flow-dialog .el-dialog__body {
|
|
575
|
+
padding: 8px 0 0;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.appium-flow-dialog .el-dialog__footer {
|
|
579
|
+
padding: 16px 0 0;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.appium-recorded-steps-panel .el-button,
|
|
583
|
+
.appium-flow-dialog .el-button {
|
|
584
|
+
--el-button-disabled-text-color: #a8abb2;
|
|
585
|
+
font-weight: 400;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.appium-recorded-steps-panel .el-form-item__label,
|
|
589
|
+
.appium-flow-dialog .el-form-item__label {
|
|
590
|
+
color: #606266;
|
|
591
|
+
font-size: 14px;
|
|
592
|
+
font-weight: 400;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.appium-recorded-steps-panel .el-button:not(.is-circle),
|
|
596
|
+
.appium-flow-dialog .el-button:not(.is-circle) {
|
|
597
|
+
min-height: var(--el-component-size, 32px);
|
|
598
|
+
padding-right: 15px;
|
|
599
|
+
padding-left: 15px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.appium-recorded-steps-panel .el-button--primary:not(.is-disabled),
|
|
603
|
+
.appium-flow-dialog .el-button--primary:not(.is-disabled) {
|
|
604
|
+
--el-button-text-color: #fff;
|
|
605
|
+
--el-button-hover-text-color: #fff;
|
|
606
|
+
--el-button-active-text-color: #fff;
|
|
607
|
+
box-shadow: none;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@media (max-width: 1440px) {
|
|
611
|
+
.layout {
|
|
612
|
+
grid-template-columns: 200px minmax(0, 1fr);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.page-body {
|
|
616
|
+
padding-right: 18px;
|
|
617
|
+
padding-left: 18px;
|
|
618
|
+
}
|
|
619
|
+
}
|