Skip to content

Commit

Permalink
ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
xurei committed Jun 15, 2021
1 parent f787f2e commit 80a7555
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/dist/*
/lab/*
mock_*
/src/webapp/natives/*
2 changes: 1 addition & 1 deletion src/main/providers/twitch-chat-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const provider = {
progress: true,
//start: argv.start,
//end: argv.end,
length: 0
length: 0,
});
storage.set(`twitch_chatlog.${video_id}`, chatlog, function(error, data) {
if (error) {
Expand Down
22 changes: 11 additions & 11 deletions src/webapp/video_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function secondsToTime(t) {
t -= minutes;
t /= 60;
const hours = t;
return `${hours}:${(minutes < 10 ? '0' : '') + minutes}:${(seconds < 10 ? '0' : '') + seconds}`
return `${hours}:${(minutes < 10 ? '0' : '') + minutes}:${(seconds < 10 ? '0' : '') + seconds}`;
}

class VideoView extends React.Component {
Expand Down Expand Up @@ -47,7 +47,7 @@ class VideoView extends React.Component {
video: props.video_id,
//collection: "<collection ID>",
// only needed if your site is also embedded on embed.example.com and othersite.example.com
parent: [ 'localhost' ]
parent: [ 'localhost' ],
};
this.player = new Embed('main-player', options);
//this.player.setVolume(0.5);
Expand Down Expand Up @@ -108,7 +108,7 @@ class VideoView extends React.Component {
const msg = chatline.message.body.toLowerCase();
const user = chatline.commenter.display_name.toLowerCase();
return (
(!state.filterValue || state.filterValue === '' || msg.indexOf(state.filterValue.toLowerCase()) !== -1)
(!state.filterValue || state.filterValue === '' || msg.indexOf(state.filterValue.toLowerCase()) !== -1)
&& (!state.userValue || state.userValue === '' || user.indexOf(state.userValue.toLowerCase()) !== -1)
);
}
Expand Down Expand Up @@ -166,19 +166,19 @@ class VideoView extends React.Component {
}
rangeWidgets.push(
<a key={range.start} href="javascript:" className={`highlight_range ${isRangePlaying ? 'active' : ''}`}
onClick={() => {
this.player.play();
setTimeout(() => {
this.player.seek(rstart);
}, 50);
}}
onClick={() => {
this.player.play();
setTimeout(() => {
this.player.seek(rstart);
}, 50);
}}
>
<span className={`playback-state`}></span>
{`${secondsToTime(rstart)} - ${secondsToTime(rend)}`}
{isRangePlaying && (
<div key="playback"><span className={`playback-state`}/>{secondsToTime(state.time)}</div>
)}
</a>
</a>,
);
});
if (!playbackShown) {
Expand All @@ -202,7 +202,7 @@ class VideoView extends React.Component {
this.setState(state => ({
...state,
filterValue: val,
}))
}));
}}/>
</div>
{/*<div>
Expand Down

0 comments on commit 80a7555

Please sign in to comment.