Experiment to rebuild Diffuse using web applets.
0
fork

Configure Feed

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

fix: non-supported devices fix for native fs input

+13 -5
+2 -2
src/pages/configurator/input/_applet.astro
··· 64 64 ); 65 65 66 66 const promises = Object.entries(groups).map( 67 - async ([scheme, cachedTracks]: [string, Track[]]) => { 67 + async ([scheme, cachedTracksGroup]: [string, Track[]]) => { 68 68 switch (scheme) { 69 69 case input.nativeFs.manifest.input_properties.scheme: 70 - await input.nativeFs.sendAction("list", cachedTracks); 70 + await input.nativeFs.sendAction("list", cachedTracksGroup); 71 71 return input.nativeFs.data; 72 72 73 73 default:
+10 -2
src/pages/input/native-fs/_applet.astro
··· 108 108 }; 109 109 110 110 const list = async (cachedTracks: Track[] = []) => { 111 - if (!isSupported()) return cachedTracks; 111 + if (!isSupported()) { 112 + // TODO 113 + context.data = cachedTracks; 114 + return cachedTracks; 115 + } 112 116 113 117 // Continue if supported 114 118 const handles = await fetchHandlesList(); ··· 162 166 }; 163 167 164 168 const resolve = async (fileUri: string) => { 165 - if (!isSupported()) return undefined; 169 + if (!isSupported()) { 170 + // TODO 171 + context.data = undefined; 172 + return undefined; 173 + } 166 174 167 175 const uri = URI.parse(fileUri); 168 176 if (uri.scheme !== SCHEME) return undefined;
+1 -1
src/scripts/themes/webamp/index.ts
··· 37 37 //////////////////////////////////////////// 38 38 39 39 async function makeList() { 40 - await configurator.input.sendAction("list"); 40 + await configurator.input.sendAction("list", []); 41 41 const list = configurator.input.data as Track[]; 42 42 43 43 return list.reduce(async (acc: Promise<Array<{ url: string }>>, track: Track) => {