forked from Keelrleek/SoulStream
dj sets + lyrics: a mix that names its own tracks, and words pulled off the separated voice
This commit is contained in:
1 parent
4efe85b6bf
commit
1dd8573808
41 files changed
+9288
-647
No files matched your search
@@ -59,6 +59,7 @@ const ROOTS = new Set([
|
||||
"library",
|
||||
"downloads",
|
||||
"settings",
|
||||
"playlists",
|
||||
"catalog",
|
||||
]);
|
||||
|
||||
@@ -248,6 +249,18 @@ export function trail() {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
// A playlist sits under the Playlists shelf the same way. The shelf is a
|
||||
// root, so when the page was reached through it the origin crumb already
|
||||
// says Playlists; this branch covers the direct arrivals (a pinned
|
||||
// playlist in the sidebar) by borrowing the shelf from history or
|
||||
// synthesising it.
|
||||
if (here.view === "playlist" && nav.origin?.view !== "playlists") {
|
||||
const known = [...nav.stack].reverse().find((e) => e.view === "playlists");
|
||||
crumbs.push(
|
||||
known ?? { view: "playlists", label: "Playlists", glyph: "playlist", key: "playlists" },
|
||||
);
|
||||
}
|
||||
crumbs.push(here);
|
||||
return crumbs;
|
||||
}
|
||||
Reference in new issue
Block a user