• 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/story-editor.jsx
NEW
1
import clsx from "clsx";
×
NEW
2
import FrameComponent from "./frame.jsx";
×
NEW
3
import DrawingAreaComponent from "./drawing-area.jsx";
×
NEW
4
import StoryControlsComponent from "./story-controls.jsx";
×
5

6
class StoryEditorComponent {
×
NEW
7
  view({ attrs: { story } }) {
×
NEW
8
    return (
×
NEW
9
      <div className={clsx("story-editor", { "story-playing": story.playing })}>
×
NEW
10
        <div className="story-stage">
×
NEW
11
          {story.selectedFrameIndex > 0 && story.numPreviousFramesToShow > 0
×
NEW
12
            ? story
×
NEW
13
                .getPreviousFramesToShow()
×
NEW
14
                .map((previousFrame, p, previousFramesToShow) => {
×
NEW
15
                  return (
×
NEW
16
                    <FrameComponent
×
NEW
17
                      className={`previous-frame previous-frame-${previousFramesToShow.length - p}`}
×
NEW
18
                      key={`previous-frame-${previousFrame.temporaryId}`}
×
NEW
19
                      frame={previousFrame}
×
NEW
20
                    />
×
21
                  );
NEW
22
                })
×
NEW
23
            : null}
×
NEW
24
          <DrawingAreaComponent
×
NEW
25
            className="selected-frame"
×
NEW
26
            story={story}
×
NEW
27
            frame={story.getSelectedFrame()}
×
NEW
28
            drawingEnabled={!story.playing}
×
NEW
29
          />
×
NEW
30
        </div>
×
NEW
31
        <StoryControlsComponent story={story} />
×
NEW
32
      </div>
×
33
    );
UNCOV
34
  }
×
UNCOV
35
}
×
36

37
export default StoryEditorComponent;
×
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