diff --git a/.eslintignore b/.eslintignore index 13ba9d1..a6c75c7 100755 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ /dist/* /lab/* mock_* +/src/webapp/natives/* diff --git a/src/main/providers/twitch-chat-provider.js b/src/main/providers/twitch-chat-provider.js index c50e110..c6881d3 100755 --- a/src/main/providers/twitch-chat-provider.js +++ b/src/main/providers/twitch-chat-provider.js @@ -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) { diff --git a/src/webapp/video_view.js b/src/webapp/video_view.js index 4c1787a..eb7023a 100644 --- a/src/webapp/video_view.js +++ b/src/webapp/video_view.js @@ -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 { @@ -47,7 +47,7 @@ class VideoView extends React.Component { video: props.video_id, //collection: "", // 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); @@ -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) ); } @@ -166,19 +166,19 @@ class VideoView extends React.Component { } rangeWidgets.push( { - this.player.play(); - setTimeout(() => { - this.player.seek(rstart); - }, 50); - }} + onClick={() => { + this.player.play(); + setTimeout(() => { + this.player.seek(rstart); + }, 50); + }} > {`${secondsToTime(rstart)} - ${secondsToTime(rend)}`} {isRangePlaying && (
{secondsToTime(state.time)}
)} -
+ , ); }); if (!playbackShown) { @@ -202,7 +202,7 @@ class VideoView extends React.Component { this.setState(state => ({ ...state, filterValue: val, - })) + })); }}/> {/*