alpha
Login
or
Join now
tokono.ma
/
diffuse-applets
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Experiment to rebuild Diffuse using web applets.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
chore: update pilot theme
author
Steven Vandevelde
date
1 year ago
(Jun 15, 2025, 5:33 PM +0200)
commit
3aea1b00
3aea1b00489266a56691be59bb310269144ee686
parent
63ed2ae5
63ed2ae58e924a24fd7370504b58668c72af121d
+5
-4
1 changed file
Expand all
Collapse all
Unified
Split
src
scripts
theme
pilot
index.ts
+5
-4
src/scripts/theme/pilot/index.ts
Reviewed
···
20
20
21
21
const _orchestrator = {
22
22
input: await applet("../../orchestrator/input-cache"),
23
23
-
queue: await applet("../../orchestrator/queue-audio"),
23
23
+
queueAudio: await applet("../../orchestrator/queue-audio"),
24
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
40
-
(data) => data.items[engine.queue.data.now?.id ?? Infinity]?.isPlaying ?? false,
41
41
+
(data) =>
42
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
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
77
-
engine.audio.sendAction("play", { audioId, volume });
78
78
+
engine.audio.sendAction("play", { audioId });
78
79
} else {
79
80
engine.audio.sendAction("pause", { audioId });
80
81
}