File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 cache-dependency-path : web/package-lock.json
2727
2828 - run : npm ci
29+ - run : npm run lint
2930 # - run: npm test #TODO add tests
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface ApiSettingsResult {
1010
1111const ApiPage = ( ) => {
1212 const { locale } = useContext ( LocaleContext )
13- const [ response , setResponse ] = useState < ApiSettingsResult [ ] > ( )
13+ const [ response ] = useState < ApiSettingsResult [ ] > ( )
1414
1515 // const refreshStatus = () => {
1616 // fetch(`/api/admin/status`, {
Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ const Player = (props: PlayerProps) => {
3939 const [ streamState , setStreamState ] = useState < "Loading" | "Playing" | "Offline" | "Error" > ( "Loading" ) ;
4040 const [ videoOverlayVisible , setVideoOverlayVisible ] = useState < boolean > ( false )
4141
42- const [ resetCounter , setResetCounter ] = useState ( 0 )
43-
4442 const clickDelay = 250 ;
4543 const videoRef = useRef < HTMLVideoElement > ( null ) ;
4644 const layerEndpointRef = useRef < string > ( '' ) ;
@@ -142,8 +140,6 @@ const Player = (props: PlayerProps) => {
142140 player ?. addEventListener ( 'mouseleave' , ( ) => handleOverlayTimer ( false ) )
143141
144142 peerConnectionConfig . onStreamRestart = ( ) => {
145- setResetCounter ( ( prev ) => prev + 1 )
146-
147143 PeerConnectionSetup ( peerConnectionConfig )
148144 . then ( ( peerConnection ) => {
149145 window . addEventListener ( "beforeunload" , ( ) => peerConnection . close ( ) )
Original file line number Diff line number Diff line change 1- export default function toBase64Utf8 ( input : string | undefined ) : string {
1+ export default function toBase64Utf8 ( input : string | null | undefined ) : string {
22 const utf8Bytes = new TextEncoder ( ) . encode ( input ?? "" )
33 const binary = Array . from ( utf8Bytes ) . map ( b => String . fromCharCode ( b ) ) . join ( '' )
44
You can’t perform that action at this time.
0 commit comments