mirror of
https://github.com/Dangoware/dango-music-player.git
synced 2025-04-19 10:02:53 -05:00
Merge branch 'main' of https://github.com/Dangoware/dango-music-player
This commit is contained in:
commit
2be2d57055
2 changed files with 18 additions and 3 deletions
|
@ -20,9 +20,13 @@
|
|||
"security": {
|
||||
"assetProtocol": {
|
||||
"enable": true,
|
||||
"scope": { "allow": ["asset://localhost*"] }
|
||||
"scope": { "allow": ["asset://localhost*", "http://localhost*"] }
|
||||
},
|
||||
"csp": "default-src 'self'; img-src 'self'; asset: asset://localhost/*"
|
||||
"csp": {
|
||||
"default-src": "'self' customprotocol: asset:",
|
||||
"connect-src": "ipc: http://ipc.localhost",
|
||||
"img-src": "'self' asset: http://asset.localhost blob: data:"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
|
13
src/App.tsx
13
src/App.tsx
|
@ -59,6 +59,13 @@ function App() {
|
|||
);
|
||||
}
|
||||
|
||||
interface L {
|
||||
uuid: number,
|
||||
}
|
||||
function LI({uuid}: L) {
|
||||
return ( <img src={convertFileSrc("abc") + "?" + uuid } id="nowPlayingArtwork" alt="Some Image" key={uuid} /> )
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
function getConfig(): any {
|
||||
|
@ -150,8 +157,12 @@ function Song(props: SongProps) {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
function PlayBar() {
|
||||
let [playing, setPlaying] = useState('play');
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<section id="playBar" className="playBar">
|
||||
<div className="topHalf">
|
||||
|
@ -210,4 +221,4 @@ interface CurrentArtProps {
|
|||
}
|
||||
function CurrentArt({uuid}: CurrentArtProps) {
|
||||
return <img src={convertFileSrc("abc") + "?" + uuid } id="nowPlayingArtwork" alt="Now Playing Artwork" key={uuid} />
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue