importmap_mocha-rails 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/importmap_mocha/engine.rb +9 -0
- data/lib/importmap_mocha/version.rb +1 -1
- data/vendor/javascripts/@mswjs--interceptors--presets--browser.js +305 -173
- data/vendor/javascripts/@mswjs--interceptors.js +8 -0
- data/vendor/javascripts/chai.js +120 -132
- data/vendor/javascripts/mocha.js +402 -310
- data/vendor/stylesheets/mocha.css +54 -17
- metadata +2 -3
- data/vendor/javascripts/mocha.js.map +0 -1
@@ -22,6 +22,9 @@
|
|
22
22
|
--mocha-stats-color: #888;
|
23
23
|
--mocha-stats-em-color: #000;
|
24
24
|
--mocha-stats-hover-color: #eee;
|
25
|
+
--mocha-progress-ring-color: #eee;
|
26
|
+
--mocha-progress-ring-highlight-color: #9f9f9f;
|
27
|
+
--mocha-progress-text-color: #000;
|
25
28
|
--mocha-error-color: #c00;
|
26
29
|
|
27
30
|
--mocha-code-comment: #ddd;
|
@@ -54,6 +57,9 @@
|
|
54
57
|
--mocha-stats-color: #aaa;
|
55
58
|
--mocha-stats-em-color: #fff;
|
56
59
|
--mocha-stats-hover-color: #444;
|
60
|
+
--mocha-progress-ring-color: #444;
|
61
|
+
--mocha-progress-ring-highlight-color: #888;
|
62
|
+
--mocha-progress-text-color: #fff;
|
57
63
|
--mocha-error-color: #f44;
|
58
64
|
|
59
65
|
--mocha-code-comment: #ddd;
|
@@ -325,6 +331,10 @@ body {
|
|
325
331
|
}
|
326
332
|
|
327
333
|
#mocha-stats {
|
334
|
+
--ring-container-size: 40px;
|
335
|
+
--ring-size: 39px;
|
336
|
+
--ring-radius: calc(var(--ring-size) / 2);
|
337
|
+
|
328
338
|
position: fixed;
|
329
339
|
top: 15px;
|
330
340
|
right: 10px;
|
@@ -334,20 +344,52 @@ body {
|
|
334
344
|
z-index: 1;
|
335
345
|
}
|
336
346
|
|
337
|
-
#mocha-stats .progress {
|
347
|
+
#mocha-stats .progress-contain {
|
338
348
|
float: right;
|
339
|
-
padding
|
349
|
+
padding: 0;
|
350
|
+
}
|
351
|
+
|
352
|
+
#mocha-stats :is(.progress-element, .progress-text) {
|
353
|
+
width: var(--ring-container-size);
|
354
|
+
display: block;
|
355
|
+
top: 12px;
|
356
|
+
position: absolute;
|
357
|
+
}
|
358
|
+
|
359
|
+
#mocha-stats .progress-element {
|
360
|
+
visibility: hidden;
|
361
|
+
height: calc(var(--ring-container-size) / 2);
|
362
|
+
}
|
363
|
+
|
364
|
+
#mocha-stats .progress-text {
|
365
|
+
text-align: center;
|
366
|
+
text-overflow: clip;
|
367
|
+
overflow: hidden;
|
368
|
+
color: var(--mocha-stats-em-color);
|
369
|
+
font-size: 11px;
|
370
|
+
}
|
340
371
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
-
|
348
|
-
-
|
349
|
-
|
350
|
-
|
372
|
+
#mocha-stats .progress-ring {
|
373
|
+
width: var(--ring-container-size);
|
374
|
+
height: var(--ring-container-size);
|
375
|
+
}
|
376
|
+
|
377
|
+
#mocha-stats :is(.ring-flatlight, .ring-highlight) {
|
378
|
+
--stroke-thickness: 1.65px;
|
379
|
+
--center: calc(var(--ring-container-size) / 2);
|
380
|
+
cx: var(--center);
|
381
|
+
cy: var(--center);
|
382
|
+
r: calc(var(--ring-radius) - calc(var(--stroke-thickness) / 2));
|
383
|
+
fill: hsla(0, 0%, 0%, 0);
|
384
|
+
stroke-width: var(--stroke-thickness);
|
385
|
+
}
|
386
|
+
|
387
|
+
#mocha-stats .ring-flatlight {
|
388
|
+
stroke: var(--mocha-progress-ring-color);
|
389
|
+
}
|
390
|
+
|
391
|
+
#mocha-stats .ring-highlight {
|
392
|
+
stroke: var(--mocha-progress-ring-highlight-color);
|
351
393
|
}
|
352
394
|
|
353
395
|
#mocha-stats em {
|
@@ -370,11 +412,6 @@ body {
|
|
370
412
|
padding-top: 11px;
|
371
413
|
}
|
372
414
|
|
373
|
-
#mocha-stats canvas {
|
374
|
-
width: 40px;
|
375
|
-
height: 40px;
|
376
|
-
}
|
377
|
-
|
378
415
|
#mocha code .comment { color: var(--mocha-code-comment); }
|
379
416
|
#mocha code .init { color: var(--mocha-code-init); }
|
380
417
|
#mocha code .string { color: var(--mocha-code-string); }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: importmap_mocha-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -65,7 +65,6 @@ files:
|
|
65
65
|
- vendor/javascripts/chai.js
|
66
66
|
- vendor/javascripts/is-node-process.js
|
67
67
|
- vendor/javascripts/mocha.js
|
68
|
-
- vendor/javascripts/mocha.js.map
|
69
68
|
- vendor/javascripts/outvariant.js
|
70
69
|
- vendor/javascripts/strict-event-emitter.js
|
71
70
|
- vendor/stylesheets/mocha.css
|