diff --git a/README.md b/README.md index 4cf33d1..03eaee3 100644 --- a/README.md +++ b/README.md @@ -7,27 +7,33 @@ Although it's quite usable, it's not quite ready for use yet. I'm working on get Assuming you won't look at those broken buttons twice, here are some screenshots of the current state of the app: ### 1. The folder page + ![](./images/1.png) This pages allows you to navigate through your music folders the same way you would on your computer. It doesn't show the directories without playable files. At this point, only FLAC and MP3 files are supported. (For experimenting purposes only, other formats will be added before the stable release) ### 2. The Album page + ![](./images/3.png) This page shows the album details including tracks, album artist, featured artists and Last FM album bio. The UI may look a bit rough but it will do for now. ### 3. The Playlists list page + ![](./images/4.png) This page lists all the playlists you have created. More features will be added to this page in the future. These "might" include Folders, Search, etc. ### 4. The Playlist page + ![](./images/2.png) This page shows the details of the playlist. It includes the playlist name, description, and the songs in the playlist. You can update your playlist details from this page. ### A little narration + The app features two sidebars. The one on the left and one on the right. The left sidebar is the classic navigation bar while the right sidebar acts as a quick access menu. The queue and the global search components are fixed here. Although they might switch to other locations in the future, the current position will work for now. Here are some other functional features already implemented: + - Track context menu - Global search (😅 buggy as fuck) - Basic playback controls @@ -36,7 +42,9 @@ Here are some other functional features already implemented: There may be a few more, but I can't remember them at the moment. ### Dev Setup + I'm working on this section. I'll be adding instructions soon. Please check back later! ### Contributing + The app runs on Python, Vue, Flask, MongoDB and Nginx. If you want to contribute, please open an issue or pull request. Your contribution is highly valued. diff --git a/server/app/api/playlist.py b/server/app/api/playlist.py index ab49269..ad568df 100644 --- a/server/app/api/playlist.py +++ b/server/app/api/playlist.py @@ -2,6 +2,7 @@ Contains all the playlist routes. """ from datetime import datetime + from app import api from app import exceptions from app import instances @@ -20,7 +21,8 @@ TrackExistsInPlaylist = exceptions.TrackExistsInPlaylist @playlist_bp.route("/playlists", methods=["GET"]) def get_all_playlists(): playlists = [ - serializer.Playlist(p, construct_last_updated=False) for p in api.PLAYLISTS + serializer.Playlist(p, construct_last_updated=False) + for p in api.PLAYLISTS ] playlists.sort( key=lambda p: datetime.strptime(p.lastUpdated, "%Y-%m-%d %H:%M:%S"), diff --git a/server/app/lib/playlistlib.py b/server/app/lib/playlistlib.py index 355ef9a..aa2b9fa 100644 --- a/server/app/lib/playlistlib.py +++ b/server/app/lib/playlistlib.py @@ -1,7 +1,6 @@ """ This library contains all the functions related to playlists. """ - import os import random import string diff --git a/server/app/serializer.py b/server/app/serializer.py index b148b9a..37874fa 100644 --- a/server/app/serializer.py +++ b/server/app/serializer.py @@ -1,5 +1,6 @@ from dataclasses import dataclass from datetime import datetime + from app import models @@ -61,7 +62,9 @@ class Playlist: description: str count: int = 0 - def __init__(self, p: models.Playlist, construct_last_updated: bool = True) -> None: + def __init__(self, + p: models.Playlist, + construct_last_updated: bool = True) -> None: self.playlistid = p.playlistid self.name = p.name self.image = p.image diff --git a/server/roadmap.md b/server/roadmap.md index 48d48b0..895a641 100644 --- a/server/roadmap.md +++ b/server/roadmap.md @@ -8,7 +8,9 @@ - [ ] Compress thumbnails # Features + + ## Needed features + - [ ] Adding songs to queue - [ ] Add keyboard shortcuts @@ -19,6 +21,7 @@ - [ ] Playing song radio ## Future features + - [ ] Toggle shuffle - [ ] Toggle repeat - [ ] Suggest similar artists diff --git a/src/composables/enums.ts b/src/composables/enums.ts index 5eabdc7..a69ebda 100644 --- a/src/composables/enums.ts +++ b/src/composables/enums.ts @@ -22,4 +22,4 @@ export enum ContextSrc { PHeader = "PHeader", Track = "Track", AHeader = "AHeader", -} \ No newline at end of file +} diff --git a/src/composables/perks.js b/src/composables/perks.js index b51b7be..8ab4319 100644 --- a/src/composables/perks.js +++ b/src/composables/perks.js @@ -150,7 +150,7 @@ function formatSeconds(seconds) { } } -export function getCurrentDate(){ +export function getCurrentDate() { const date = new Date(); const yyyy = date.getFullYear(); @@ -169,5 +169,5 @@ export default { focusCurrent, formatSeconds, getElem, - getCurrentDate + getCurrentDate, };