• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

caleb531 / flip-book / 10499286139

21 Aug 2024 11:59PM UTC coverage: 25.53% (-2.0%) from 27.541%
10499286139

push

github

caleb531
Convert components to JSX

72 of 100 branches covered (72.0%)

Branch coverage included in aggregate %.

0 of 743 new or added lines in 22 files covered. (0.0%)

54 existing lines in 21 files now uncovered.

386 of 1694 relevant lines covered (22.79%)

6.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/scripts/components/export-gif.jsx
NEW
1
import clsx from "clsx";
×
NEW
2
import ControlComponent from "./control.jsx";
×
NEW
3
import ProgressBarComponent from "./progress-bar.jsx";
×
4

5
class ExportGifComponent {
×
NEW
6
  view({
×
NEW
7
    attrs: {
×
NEW
8
      isExportingGif,
×
NEW
9
      exportProgress,
×
NEW
10
      isGifExportFinished,
×
NEW
11
      exportedImageUrl,
×
NEW
12
      abort,
×
NEW
13
    },
×
NEW
14
  }) {
×
NEW
15
    return (
×
NEW
16
      <div
×
NEW
17
        className={clsx("export-gif-screen", {
×
NEW
18
          visible: isExportingGif || isGifExportFinished,
×
NEW
19
        })}
×
20
      >
NEW
21
        <ControlComponent
×
NEW
22
          id="close-export-gif-overlay"
×
NEW
23
          title={isGifExportFinished ? "Close overlay" : "Abort GIF export"}
×
NEW
24
          icon="close"
×
NEW
25
          action={() => abort()}
×
NEW
26
        />
×
NEW
27
        <div className="export-gif-overlay" />
×
NEW
28
        <div className="export-gif-heading">
×
NEW
29
          {exportedImageUrl ? "GIF Generated!" : "Generating GIF..."}
×
NEW
30
        </div>
×
NEW
31
        <p className="export-gif-message">
×
NEW
32
          {exportedImageUrl
×
NEW
33
            ? 'Right-click the image and choose "Save Image As..." to download.'
×
NEW
34
            : ""}
×
NEW
35
        </p>
×
NEW
36
        {exportedImageUrl ? (
×
NEW
37
          <img
×
NEW
38
            className="exported-image"
×
NEW
39
            src={exportedImageUrl}
×
NEW
40
            alt="Exported GIF"
×
NEW
41
          />
×
42
        ) : (
NEW
43
          <ProgressBarComponent progress={exportProgress} />
×
44
        )}
NEW
45
      </div>
×
46
    );
UNCOV
47
  }
×
UNCOV
48
}
×
49

50
export default ExportGifComponent;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc