mirror of
https://github.com/Dangoware/dango-music-player.git
synced 2025-04-19 18:12:54 -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": {
|
"security": {
|
||||||
"assetProtocol": {
|
"assetProtocol": {
|
||||||
"enable": true,
|
"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": {
|
"bundle": {
|
||||||
|
|
11
src/App.tsx
11
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;
|
export default App;
|
||||||
|
|
||||||
function getConfig(): any {
|
function getConfig(): any {
|
||||||
|
@ -150,8 +157,12 @@ function Song(props: SongProps) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function PlayBar() {
|
function PlayBar() {
|
||||||
let [playing, setPlaying] = useState('play');
|
let [playing, setPlaying] = useState('play');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section id="playBar" className="playBar">
|
<section id="playBar" className="playBar">
|
||||||
<div className="topHalf">
|
<div className="topHalf">
|
||||||
|
|
Loading…
Reference in a new issue