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

caleb531 / flip-book / 14319012505

07 Apr 2025 08:38PM UTC coverage: 24.97% (-0.03%) from 25.0%
14319012505

push

github

caleb531
Patch vite vulnerability (CVE-2025-31486)

72 of 100 branches covered (72.0%)

Branch coverage included in aggregate %.

0 of 4 new or added lines in 1 file covered. (0.0%)

350 of 1590 relevant lines covered (22.01%)

9.1 hits per line

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

0.0
/scripts/components/app.jsx
1
import m from 'mithril';
×
2
import App from '../models/app.js';
×
3
import UpdateNotificationComponent from './update-notification.jsx';
×
4
import AppHeaderComponent from './app-header.jsx';
×
5
import StoryComponent from './story.jsx';
×
6
import StorageUpgraderComponent from './storage-upgrader.jsx';
×
7

8
class AppComponent {
×
9
  oninit() {
×
10
    App.restore().then((app) => {
×
11
      this.app = app;
×
12
      m.redraw();
×
13
    });
×
14
  }
×
15

16
  oncreate({ dom }) {
×
17
    dom.focus();
×
18
  }
×
19

20
  async navigateFramesViaKeyboard(event) {
×
21
    let story = await this.app.selectedStory;
×
22
    if (event.key === 'ArrowLeft' && !story.playing) {
×
23
      story.selectPreviousFrame();
×
24
      await story.save();
×
25
    } else if (event.key === 'ArrowRight' && !story.playing) {
×
26
      story.selectNextFrame();
×
27
      await story.save();
×
28
    } else if (event.key === ' ') {
×
29
      event.preventDefault();
×
30
      if (story.playing) {
×
31
        story.pause();
×
32
      } else {
×
33
        story.play(() => m.redraw());
×
34
      }
×
35
    } else {
×
36
      event.redraw = false;
×
37
    }
×
38
  }
×
39

40
  view() {
×
41
    return (
×
42
      <div
×
43
        className="app"
×
44
        tabIndex="-1"
×
45
        onkeydown={(event) => this.navigateFramesViaKeyboard(event)}
×
46
      >
47
        {/* The UpdateNotificationComponent manages its own visibility */}
48
        <UpdateNotificationComponent />
×
49
        <StorageUpgraderComponent />
×
50
        {this.app?.selectedStory ? (
×
NEW
51
          <>
×
NEW
52
            <AppHeaderComponent />
×
NEW
53
            <StoryComponent app={this.app} story={this.app.selectedStory} />
×
NEW
54
          </>
×
55
        ) : null}
×
56
      </div>
×
57
    );
58
  }
×
59
}
×
60

61
export default AppComponent;
×
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