Skip to content

Commit

Permalink
chore: run prettier on webui files
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Aug 23, 2024
1 parent cc27d04 commit ae20e2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-pigs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deemix-webui": patch
---

Format webui files
5 changes: 4 additions & 1 deletion webui/src/components/downloads/QueueItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ export default {
return `https://deezer.com/album/${this.queueItem.id}`;
case "playlist":
if (this.queueItem.id.endsWith("_top_track"))
return `https://www.deezer.com/artist/${this.queueItem.id.slice(0, -10)}/top_track`;
return `https://www.deezer.com/artist/${this.queueItem.id.slice(
0,
-10
)}/top_track`;
return `https://deezer.com/playlist/${this.queueItem.id}`;
case "spotify_playlist":
return `https://open.spotify.com/playlist/${this.queueItem.id}`;
Expand Down
4 changes: 3 additions & 1 deletion webui/src/data/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,7 @@ export function formatTitle(track) {
track.trackTitleVersion &&
!track.trackTitle.includes(track.trackTitleVersion);

return `${track.trackTitle}${hasTitleVersion ? ` ${track.trackTitleVersion}` : ""}`;
return `${track.trackTitle}${
hasTitleVersion ? ` ${track.trackTitleVersion}` : ""
}`;
}

0 comments on commit ae20e2a

Please sign in to comment.