mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
eslint fix
This commit is contained in:
parent
35e8f2ce6f
commit
cc1df287be
7 changed files with 27 additions and 23 deletions
|
|
@ -1,9 +1,5 @@
|
|||
import { h } from 'preact'
|
||||
import { useState, useEffect } from 'preact/hooks'
|
||||
import {
|
||||
compressToUTF16 as encode,
|
||||
decompressFromUTF16 as decode
|
||||
} from 'lz-string'
|
||||
|
||||
import CheapGlkOte from 'cheap-glkote'
|
||||
|
||||
|
|
@ -74,8 +70,8 @@ export default function ({
|
|||
}
|
||||
|
||||
return ({
|
||||
'buffer': <TextBuffer {...props} />,
|
||||
'grid': <GridBuffer {...props} />
|
||||
buffer: <TextBuffer {...props} />,
|
||||
grid: <GridBuffer {...props} />
|
||||
})[currentWindow.type]
|
||||
}
|
||||
|
||||
|
|
@ -97,6 +93,7 @@ export default function ({
|
|||
inputType,
|
||||
windows,
|
||||
currentWindowId,
|
||||
sendMessage }} />
|
||||
sendMessage
|
||||
}} />
|
||||
</section>)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
import {
|
||||
compressToUTF16 as encode,
|
||||
decompressFromUTF16 as decode
|
||||
} from 'lz-string'
|
||||
|
||||
export const Handlers = ({
|
||||
setStatus,
|
||||
setWindows,
|
||||
|
|
@ -13,7 +18,7 @@ export const Handlers = ({
|
|||
setWindows(windows)
|
||||
},
|
||||
onUpdateInputs: data => {
|
||||
if (data.length === 0) return void null
|
||||
if (data.length === 0) return null
|
||||
|
||||
const { type, id } = data[0]
|
||||
setCurrentWindowId(id)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ function App () {
|
|||
(<PlayerView {...{
|
||||
...themeEngine,
|
||||
...params,
|
||||
singleWindow}}/>)
|
||||
singleWindow
|
||||
}} />)
|
||||
|
||||
return (
|
||||
<Router hook={useHashLocation}>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ export default function ({
|
|||
<main>
|
||||
<UrlPlayer {...{
|
||||
url: targetUrl,
|
||||
singleWindow}}/>
|
||||
singleWindow
|
||||
}} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue