@midscene/visualizer 0.2.2 → 0.2.3-beta-20240815085544.0
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/dist/es/assets/logo-plain.0f78df8a.png +0 -0
- package/dist/es/component/blackboard.js +32 -104
- package/dist/es/component/detail-panel.css +6 -0
- package/dist/es/component/detail-panel.js +1 -1
- package/dist/es/component/misc.js +29 -0
- package/dist/es/component/panel-title.css +5 -3
- package/dist/es/component/panel-title.js +6 -2
- package/dist/es/component/sidebar.css +1 -11
- package/dist/es/component/sidebar.js +5 -47
- package/dist/es/component/store.js +18 -20
- package/dist/es/index.css +42 -0
- package/dist/es/index.js +160 -34
- package/dist/es/utils.js +1 -1
- package/dist/index.css +445 -0
- package/dist/index.js +1 -0
- package/dist/lib/assets/logo-plain.0f78df8a.png +0 -0
- package/dist/lib/component/blackboard.js +32 -104
- package/dist/lib/component/detail-panel.css +6 -0
- package/dist/lib/component/detail-panel.js +1 -1
- package/dist/lib/component/misc.js +23 -0
- package/dist/lib/component/panel-title.css +5 -3
- package/dist/lib/component/panel-title.js +5 -1
- package/dist/lib/component/sidebar.css +1 -11
- package/dist/lib/component/sidebar.js +3 -37
- package/dist/lib/component/store.js +31 -23
- package/dist/lib/index.css +42 -0
- package/dist/lib/index.js +159 -33
- package/dist/lib/utils.js +1 -1
- package/dist/report/demo.html +5449 -0
- package/dist/report/index.css +445 -0
- package/dist/report/index.html +479 -0
- package/dist/report/index.js +1 -0
- package/dist/report/multi.html +24279 -0
- package/dist/types/component/misc.d.ts +1 -0
- package/dist/types/component/panel-title.d.ts +1 -0
- package/dist/types/component/sidebar.d.ts +0 -1
- package/dist/types/component/store.d.ts +7 -6
- package/dist/types/index.d.ts +11 -3
- package/html/tpl.html +29 -0
- package/package.json +20 -11
- package/dist/es/component/assets/logo-plain.js +0 -128
- package/dist/es/component/assets/logo-plain2.js +0 -128
- package/dist/es/demo-dump.json +0 -1
- package/dist/lib/component/assets/logo-plain.js +0 -156
- package/dist/lib/component/assets/logo-plain2.js +0 -156
- package/dist/lib/demo-dump.json +0 -1
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
/* src/index.less */
|
|
2
|
+
html,
|
|
3
|
+
body {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
line-height: 1;
|
|
7
|
+
}
|
|
8
|
+
.rspress-nav {
|
|
9
|
+
transition: 0.2s;
|
|
10
|
+
}
|
|
11
|
+
:root {
|
|
12
|
+
--modern-sidebar-width: 0 !important;
|
|
13
|
+
--modern-aside-width: 0 !important;
|
|
14
|
+
--modern-preview-padding: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
.modern-doc-layout,
|
|
17
|
+
.modern-doc {
|
|
18
|
+
width: 100% !important;
|
|
19
|
+
margin: 0 !important;
|
|
20
|
+
padding: 0 !important;
|
|
21
|
+
height: 100vh;
|
|
22
|
+
}
|
|
23
|
+
.modern-sidebar,
|
|
24
|
+
header.w-full {
|
|
25
|
+
display: none !important;
|
|
26
|
+
}
|
|
27
|
+
.modern-doc-container {
|
|
28
|
+
padding: 0 !important;
|
|
29
|
+
}
|
|
30
|
+
footer.mt-8 {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
.page-container {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
height: 100%;
|
|
37
|
+
color: #3b3b3b;
|
|
38
|
+
font-family:
|
|
39
|
+
-apple-system,
|
|
40
|
+
BlinkMacSystemFont,
|
|
41
|
+
"Segoe UI",
|
|
42
|
+
"Noto Sans",
|
|
43
|
+
Helvetica,
|
|
44
|
+
Arial,
|
|
45
|
+
sans-serif,
|
|
46
|
+
"Apple Color Emoji",
|
|
47
|
+
"Segoe UI Emoji";
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
border-top: 1px solid #E5E5E5;
|
|
50
|
+
border-bottom: 1px solid #E5E5E5;
|
|
51
|
+
font-synthesis: style;
|
|
52
|
+
text-rendering: optimizelegibility;
|
|
53
|
+
-webkit-font-smoothing: antialiased;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
}
|
|
56
|
+
.page-container blockquote,
|
|
57
|
+
.page-container dl,
|
|
58
|
+
.page-container dd,
|
|
59
|
+
.page-container h1,
|
|
60
|
+
.page-container h2,
|
|
61
|
+
.page-container h3,
|
|
62
|
+
.page-container h4,
|
|
63
|
+
.page-container h5,
|
|
64
|
+
.page-container h6,
|
|
65
|
+
.page-container hr,
|
|
66
|
+
.page-container figure,
|
|
67
|
+
.page-container p,
|
|
68
|
+
.page-container pre {
|
|
69
|
+
margin: 0;
|
|
70
|
+
}
|
|
71
|
+
.page-nav {
|
|
72
|
+
height: 30px;
|
|
73
|
+
padding: 10px;
|
|
74
|
+
border-bottom: 1px solid #E5E5E5;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
}
|
|
78
|
+
.page-nav .logo img {
|
|
79
|
+
height: 20px;
|
|
80
|
+
line-height: 30px;
|
|
81
|
+
vertical-align: baseline;
|
|
82
|
+
vertical-align: -webkit-baseline-middle;
|
|
83
|
+
}
|
|
84
|
+
.page-nav .playwright-case-selector {
|
|
85
|
+
margin-left: 20px;
|
|
86
|
+
line-height: 30px;
|
|
87
|
+
width: 320px;
|
|
88
|
+
}
|
|
89
|
+
.cost-str {
|
|
90
|
+
color: #777;
|
|
91
|
+
}
|
|
92
|
+
.ant-layout {
|
|
93
|
+
flex-grow: 1;
|
|
94
|
+
height: 100%;
|
|
95
|
+
}
|
|
96
|
+
.main-right {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
}
|
|
103
|
+
.main-right .main-content {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: row;
|
|
106
|
+
flex-grow: 1;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
background: #FFF;
|
|
109
|
+
}
|
|
110
|
+
.main-right.uploader-wrapper {
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
margin: auto;
|
|
113
|
+
max-width: 800px;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
}
|
|
117
|
+
.main-right.uploader-wrapper .uploader {
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
.main-right.uploader-wrapper .demo-loader {
|
|
121
|
+
width: 100%;
|
|
122
|
+
text-align: center;
|
|
123
|
+
margin-top: 10px;
|
|
124
|
+
}
|
|
125
|
+
.main-right .main-canvas-container {
|
|
126
|
+
flex-grow: 1;
|
|
127
|
+
height: 100%;
|
|
128
|
+
background: #ffffff;
|
|
129
|
+
overflow-x: hidden;
|
|
130
|
+
overflow-y: scroll;
|
|
131
|
+
border-left: 1px solid #E5E5E5;
|
|
132
|
+
}
|
|
133
|
+
.main-right .main-side {
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
overflow-y: scroll;
|
|
136
|
+
height: 100%;
|
|
137
|
+
}
|
|
138
|
+
.main-right .json-content {
|
|
139
|
+
word-wrap: break-word;
|
|
140
|
+
white-space: pre-wrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* src/component/detail-side.less */
|
|
144
|
+
.detail-side h2 {
|
|
145
|
+
padding-top: 0;
|
|
146
|
+
margin-top: 0;
|
|
147
|
+
margin-bottom: 4px;
|
|
148
|
+
}
|
|
149
|
+
.detail-side .ant-tag {
|
|
150
|
+
margin-top: 2px;
|
|
151
|
+
}
|
|
152
|
+
.detail-side .meta-kv {
|
|
153
|
+
padding: 10px 10px calc(10px + 4px);
|
|
154
|
+
}
|
|
155
|
+
.detail-side .meta-kv .meta {
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
padding: 2px 0;
|
|
158
|
+
width: 100%;
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: row;
|
|
161
|
+
line-height: 1.5;
|
|
162
|
+
}
|
|
163
|
+
.detail-side .meta-kv .meta .meta-key {
|
|
164
|
+
width: 100px;
|
|
165
|
+
text-align: right;
|
|
166
|
+
padding-right: 16px;
|
|
167
|
+
}
|
|
168
|
+
.detail-side .meta-kv .meta .meta-value {
|
|
169
|
+
flex: 1 1;
|
|
170
|
+
}
|
|
171
|
+
.detail-side .item-list {
|
|
172
|
+
padding: 10px 10px;
|
|
173
|
+
cursor: default;
|
|
174
|
+
margin-bottom: 10px;
|
|
175
|
+
}
|
|
176
|
+
.detail-side .item-list .item {
|
|
177
|
+
padding: 16px 10px 10px;
|
|
178
|
+
transition: 0.1s;
|
|
179
|
+
border: 1px solid #DDD;
|
|
180
|
+
border-radius: 5px;
|
|
181
|
+
margin-bottom: 10px;
|
|
182
|
+
position: relative;
|
|
183
|
+
}
|
|
184
|
+
.detail-side .item-list .item.item-lite {
|
|
185
|
+
border: none;
|
|
186
|
+
padding: 0;
|
|
187
|
+
}
|
|
188
|
+
.detail-side .item-list .item-highlight {
|
|
189
|
+
color: #FFF;
|
|
190
|
+
}
|
|
191
|
+
.detail-side .item-list .item-highlight .subtitle {
|
|
192
|
+
color: #CCC;
|
|
193
|
+
}
|
|
194
|
+
.detail-side .item-list .item-extra {
|
|
195
|
+
position: absolute;
|
|
196
|
+
right: 10px;
|
|
197
|
+
top: 10px;
|
|
198
|
+
color: #777;
|
|
199
|
+
}
|
|
200
|
+
.detail-side .item-list .title-right-padding {
|
|
201
|
+
padding-right: 15px;
|
|
202
|
+
}
|
|
203
|
+
.detail-side .item-list .title {
|
|
204
|
+
font-size: 18px;
|
|
205
|
+
font-weight: bold;
|
|
206
|
+
margin-bottom: 5px;
|
|
207
|
+
}
|
|
208
|
+
.detail-side .item-list .title .title-tag {
|
|
209
|
+
display: inline-block;
|
|
210
|
+
margin-left: 6px;
|
|
211
|
+
color: #777;
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
line-height: 18px;
|
|
214
|
+
}
|
|
215
|
+
.detail-side .item-list .subtitle {
|
|
216
|
+
font-weight: normal;
|
|
217
|
+
font-size: 14px;
|
|
218
|
+
color: #777;
|
|
219
|
+
}
|
|
220
|
+
.detail-side .item-list .description {
|
|
221
|
+
margin-top: 5px;
|
|
222
|
+
}
|
|
223
|
+
.detail-side .item-list .description-content {
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
margin-top: 10px;
|
|
226
|
+
white-space: break-spaces;
|
|
227
|
+
word-wrap: break-word;
|
|
228
|
+
margin: 0;
|
|
229
|
+
}
|
|
230
|
+
.detail-side .item-list .element-button:hover {
|
|
231
|
+
color: #fff;
|
|
232
|
+
background: #F9483E;
|
|
233
|
+
}
|
|
234
|
+
.detail-side .item-list .section-button:hover {
|
|
235
|
+
color: #fff;
|
|
236
|
+
background: #01204E;
|
|
237
|
+
}
|
|
238
|
+
.detail-side pre {
|
|
239
|
+
text-wrap: balance;
|
|
240
|
+
}
|
|
241
|
+
.detail-side .item-list-space-up {
|
|
242
|
+
margin-top: 10px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* src/component/panel-title.less */
|
|
246
|
+
.panel-title {
|
|
247
|
+
background: #F8F8F8;
|
|
248
|
+
border-top: 1px solid #E5E5E5;
|
|
249
|
+
border-bottom: 1px solid #E5E5E5;
|
|
250
|
+
margin-top: -1px;
|
|
251
|
+
padding: 2px 10px;
|
|
252
|
+
}
|
|
253
|
+
.panel-title .task-list-name {
|
|
254
|
+
font-weight: bold;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* src/component/sidebar.less */
|
|
258
|
+
.side-bar {
|
|
259
|
+
display: flex;
|
|
260
|
+
flex-direction: column;
|
|
261
|
+
justify-content: space-between;
|
|
262
|
+
width: 100%;
|
|
263
|
+
height: 100%;
|
|
264
|
+
border-right: 1px solid #E5E5E5;
|
|
265
|
+
overflow: auto;
|
|
266
|
+
background: #F8F8F8;
|
|
267
|
+
box-sizing: border-box;
|
|
268
|
+
}
|
|
269
|
+
.side-bar .task-meta-section {
|
|
270
|
+
margin-top: 6px;
|
|
271
|
+
}
|
|
272
|
+
.side-bar .task-meta {
|
|
273
|
+
color: #777;
|
|
274
|
+
font-weight: normal;
|
|
275
|
+
padding-left: 10px;
|
|
276
|
+
}
|
|
277
|
+
.side-bar .side-seperator {
|
|
278
|
+
border-top: 1px solid none;
|
|
279
|
+
}
|
|
280
|
+
.side-bar .side-seperator.side-seperator-line {
|
|
281
|
+
border-top: 1px solid #E5E5E5;
|
|
282
|
+
}
|
|
283
|
+
.side-bar .side-seperator.side-seperator-space-up {
|
|
284
|
+
margin-top: 10px;
|
|
285
|
+
}
|
|
286
|
+
.side-bar .side-seperator.side-seperator-space-down {
|
|
287
|
+
margin-bottom: 10px;
|
|
288
|
+
}
|
|
289
|
+
.side-bar .side-sub-title {
|
|
290
|
+
padding: 0 10px;
|
|
291
|
+
margin-bottom: 6px;
|
|
292
|
+
}
|
|
293
|
+
.side-bar .name-status {
|
|
294
|
+
font-size: 12px;
|
|
295
|
+
display: inline-block;
|
|
296
|
+
margin-right: 6px;
|
|
297
|
+
}
|
|
298
|
+
.side-bar .side-item {
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
transition: 0.1s;
|
|
301
|
+
padding: 2px 0;
|
|
302
|
+
}
|
|
303
|
+
.side-bar .side-item:hover {
|
|
304
|
+
background: #dcdcdc80;
|
|
305
|
+
}
|
|
306
|
+
.side-bar .side-item.selected {
|
|
307
|
+
background: #bfc4da80;
|
|
308
|
+
}
|
|
309
|
+
.side-bar .side-item .side-item-content {
|
|
310
|
+
padding: 0 10px 0 calc(10px + 18px);
|
|
311
|
+
}
|
|
312
|
+
.side-bar .side-item-name {
|
|
313
|
+
padding: 0 10px 0 calc(10px + 18px);
|
|
314
|
+
position: relative;
|
|
315
|
+
display: flex;
|
|
316
|
+
justify-content: space-between;
|
|
317
|
+
}
|
|
318
|
+
.side-bar .side-item-name .status-icon {
|
|
319
|
+
position: absolute;
|
|
320
|
+
left: 10px;
|
|
321
|
+
display: inline-block;
|
|
322
|
+
color: #AAA;
|
|
323
|
+
font-size: 12px;
|
|
324
|
+
line-height: 10px;
|
|
325
|
+
top: 50%;
|
|
326
|
+
margin-top: -5px;
|
|
327
|
+
}
|
|
328
|
+
.side-bar .side-item-name .status-text {
|
|
329
|
+
color: #777;
|
|
330
|
+
}
|
|
331
|
+
.side-bar .bottom-controls {
|
|
332
|
+
padding: 10px 10px;
|
|
333
|
+
text-align: left;
|
|
334
|
+
text-align: center;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* src/component/detail-panel.less */
|
|
338
|
+
.detail-panel {
|
|
339
|
+
display: flex;
|
|
340
|
+
flex-direction: column;
|
|
341
|
+
height: 100%;
|
|
342
|
+
padding: 10px;
|
|
343
|
+
background: #FFF;
|
|
344
|
+
}
|
|
345
|
+
.detail-panel .ant-segmented {
|
|
346
|
+
padding: 0;
|
|
347
|
+
}
|
|
348
|
+
.detail-panel .view-switcher {
|
|
349
|
+
margin-bottom: 10px;
|
|
350
|
+
flex-shrink: 0;
|
|
351
|
+
}
|
|
352
|
+
.detail-panel .detail-content {
|
|
353
|
+
box-sizing: border-box;
|
|
354
|
+
justify-content: center;
|
|
355
|
+
flex-direction: column;
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-grow: 1;
|
|
358
|
+
}
|
|
359
|
+
.detail-panel .blackboard {
|
|
360
|
+
margin: 0 auto;
|
|
361
|
+
}
|
|
362
|
+
.detail-panel .screenshot-item-wrapper {
|
|
363
|
+
display: flex;
|
|
364
|
+
flex-wrap: wrap;
|
|
365
|
+
justify-content: space-around;
|
|
366
|
+
align-items: center;
|
|
367
|
+
}
|
|
368
|
+
.detail-panel .screenshot-item {
|
|
369
|
+
margin-bottom: 10px;
|
|
370
|
+
}
|
|
371
|
+
.detail-panel .screenshot-item .screenshot-item-title {
|
|
372
|
+
margin-bottom: 5px;
|
|
373
|
+
}
|
|
374
|
+
.detail-panel .screenshot-item img {
|
|
375
|
+
border: 1px solid #888;
|
|
376
|
+
max-width: 100%;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* src/component/blackboard.less */
|
|
380
|
+
.blackboard .footer {
|
|
381
|
+
color: #aaa;
|
|
382
|
+
}
|
|
383
|
+
.blackboard ul {
|
|
384
|
+
padding-left: 0px;
|
|
385
|
+
}
|
|
386
|
+
.blackboard li {
|
|
387
|
+
list-style: none;
|
|
388
|
+
}
|
|
389
|
+
.blackboard .bottom-tip {
|
|
390
|
+
height: 30px;
|
|
391
|
+
}
|
|
392
|
+
.blackboard .bottom-tip-item {
|
|
393
|
+
max-width: 500px;
|
|
394
|
+
color: #AAA;
|
|
395
|
+
text-overflow: ellipsis;
|
|
396
|
+
word-wrap: break-word;
|
|
397
|
+
}
|
|
398
|
+
.blackboard-filter {
|
|
399
|
+
margin: 10px 0;
|
|
400
|
+
}
|
|
401
|
+
.blackboard-main-content canvas {
|
|
402
|
+
width: 100%;
|
|
403
|
+
border: 1px solid #888;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* src/component/global-hover-preview.less */
|
|
407
|
+
.global-hover-preview {
|
|
408
|
+
position: fixed;
|
|
409
|
+
display: block;
|
|
410
|
+
max-width: 400px;
|
|
411
|
+
max-height: 400px;
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
z-index: 10;
|
|
414
|
+
text-align: center;
|
|
415
|
+
border: 1px solid #E5E5E5;
|
|
416
|
+
box-sizing: border-box;
|
|
417
|
+
background: #F8F8F8;
|
|
418
|
+
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.2);
|
|
419
|
+
}
|
|
420
|
+
.global-hover-preview img {
|
|
421
|
+
max-width: 400px;
|
|
422
|
+
max-height: 400px;
|
|
423
|
+
width: auto;
|
|
424
|
+
height: auto;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* src/component/timeline.less */
|
|
428
|
+
.timeline-wrapper {
|
|
429
|
+
flex-basis: 110px;
|
|
430
|
+
flex-grow: 0;
|
|
431
|
+
flex-shrink: 0;
|
|
432
|
+
width: 100%;
|
|
433
|
+
height: 100%;
|
|
434
|
+
border-bottom: 1px solid #E5E5E5;
|
|
435
|
+
position: relative;
|
|
436
|
+
box-sizing: border-box;
|
|
437
|
+
}
|
|
438
|
+
.timeline-wrapper .timeline-canvas-wrapper {
|
|
439
|
+
width: 100%;
|
|
440
|
+
height: 100%;
|
|
441
|
+
}
|
|
442
|
+
.timeline-wrapper canvas {
|
|
443
|
+
width: 100%;
|
|
444
|
+
height: 100%;
|
|
445
|
+
}
|