This commit is contained in:
MrDulfin 2024-12-14 22:38:10 -05:00
commit 2be2d57055
2 changed files with 18 additions and 3 deletions

View file

@ -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": {

View file

@ -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">