Experiment to rebuild Diffuse using web applets.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: update pilot theme

+5 -4
+5 -4
src/scripts/theme/pilot/index.ts
··· 20 20 21 21 const _orchestrator = { 22 22 input: await applet("../../orchestrator/input-cache"), 23 - queue: await applet("../../orchestrator/queue-audio"), 23 + queueAudio: await applet("../../orchestrator/queue-audio"), 24 + queueTracks: await applet("../../orchestrator/queue-tracks"), 24 25 }; 25 26 26 27 const ui = { ··· 37 38 38 39 reactive( 39 40 engine.audio, 40 - (data) => data.items[engine.queue.data.now?.id ?? Infinity]?.isPlaying ?? false, 41 + (data) => 42 + data.isPlaying && (data.items[engine.queue.data.now?.id ?? Infinity]?.isPlaying ?? false), 41 43 (isPlaying) => ui.audio.sendAction("modifyIsPlaying", isPlaying), 42 44 ); 43 45 ··· 57 59 (data) => data.isPlaying, 58 60 async (isPlaying, setter) => { 59 61 const audioId = engine.queue.data.now?.id; 60 - const volume = engine.audio.data.volume; 61 62 62 63 // Automatically start playing something if nothing is playing yet. 63 64 if (!audioId) { ··· 74 75 75 76 // Otherwise just control the audio 76 77 if (isPlaying) { 77 - engine.audio.sendAction("play", { audioId, volume }); 78 + engine.audio.sendAction("play", { audioId }); 78 79 } else { 79 80 engine.audio.sendAction("pause", { audioId }); 80 81 }