A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

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

chore: more constituent clean up

+27 -30
+18 -18
src/common/constituents/foundation.js
··· 26 26 27 27 /* Some predefined activity groups */ 28 28 assemblage: { 29 - addItemsToQueue, 30 29 playAudioFromQueue, 30 + queueManagement, 31 31 searchThroughCollection, 32 32 }, 33 33 ··· 57 57 58 58 // 📦️ 59 59 60 - function addItemsToQueue() { 60 + function playAudioFromQueue() { 61 + const base = queueManagement(); 62 + 63 + return { 64 + ...base, 65 + engine: { 66 + ...base.engine, 67 + audio: audio(), 68 + }, 69 + orchestrator: { 70 + ...base.orchestrator, 71 + queueAudio: queueAudio(), 72 + }, 73 + }; 74 + } 75 + 76 + function queueManagement() { 61 77 return { 62 78 engine: { 63 79 queue: queue(), ··· 71 87 }, 72 88 processor: { 73 89 metadata: metadata(), 74 - }, 75 - }; 76 - } 77 - 78 - function playAudioFromQueue() { 79 - const base = addItemsToQueue(); 80 - 81 - return { 82 - ...base, 83 - engine: { 84 - ...base.engine, 85 - audio: audio(), 86 - }, 87 - orchestrator: { 88 - ...base.orchestrator, 89 - queueAudio: queueAudio(), 90 90 }, 91 91 }; 92 92 }
+8 -11
src/themes/loader/constituent/index.vto
··· 88 88 </span> 89 89 </p> 90 90 <p> 91 - Add dependencies for: 91 + Add element assemblage: 92 92 </p> 93 93 <form> 94 94 <select> 95 - <button> 96 - <selectedcontent></selectedcontent> 97 - </button> 98 - <option>Playing audio</option> 99 - <option>Adding items to the queue</option> 100 - <option>Browsing collection</option> 95 + <option>Play audio from queue</option> 96 + <option>Queue management</option> 97 + <option>Search through collection</option> 101 98 </select> 102 99 </form> 103 100 <p> ··· 148 145 </p> 149 146 <ul style="margin-bottom: 0;"> 150 147 <li> 151 - <span>Add items to the queue</span> 148 + <span>Play audio from the queue</span> 152 149 <div class="list-description"> 153 - <code>foundation.assemblage.addItemsToQueue()</code> 150 + <code>foundation.assemblage.playAudioFromQueue()</code> 154 151 </div> 155 152 </li> 156 153 <li> 157 - <span>Play audio from the queue</span> 154 + <span>Queue management</span> 158 155 <div class="list-description"> 159 - <code>foundation.assemblage.playAudioFromQueue()</code> 156 + <code>foundation.assemblage.queueManagement()</code> 160 157 </div> 161 158 </li> 162 159 <li>
+1 -1
src/themes/webamp/browser/index.js
··· 1 1 import foundation from "@common/constituents/foundation.js"; 2 2 import BrowserElement from "@themes/webamp/browser/element.js"; 3 3 4 - const que = foundation.assemblage.addItemsToQueue(); 4 + const que = foundation.assemblage.queueManagement(); 5 5 const sea = foundation.assemblage.searchThroughCollection(); 6 6 7 7 const el = new BrowserElement();