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

Configure Feed

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

Show the amount of tracks you have

+19 -10
+1
CHANGELOG.md
··· 6 6 - **Automatically prepend `_dnslink.` when using a domain name with an IPFS source** 7 7 - Explain more things in the UI and on the about page 8 8 - Improve onboarding 9 + - Show the amount of tracks you have 9 10 - Show time and duration of the current track after hovering over the progress bar for a while 10 11 - Slightly improved tap/click events on tracks 11 12 - Smaller javascript files, ie. improved load tim
+5 -1
src/Applications/UI.elm
··· 2002 2002 |> Html.map Reply 2003 2003 2004 2004 Page.Sources subPage -> 2005 + let 2006 + amountOfTracks = 2007 + List.length model.tracks.collection.untouched 2008 + in 2005 2009 model.sources 2006 - |> Lazy.lazy2 Sources.view subPage 2010 + |> Lazy.lazy3 Sources.view { amountOfTracks = amountOfTracks } subPage 2007 2011 |> Html.map SourcesMsg 2008 2012 ] 2009 2013
+13 -9
src/Applications/UI/Sources.elm
··· 253 253 -- 🗺 254 254 255 255 256 - view : Sources.Page -> Model -> Html Msg 257 - view page model = 256 + view : { amountOfTracks : Int } -> Sources.Page -> Model -> Html Msg 257 + view { amountOfTracks } page model = 258 258 UI.Kit.receptacle 259 259 { scrolling = True } 260 260 (case page of 261 261 Index -> 262 - index model 262 + index amountOfTracks model 263 263 264 264 Edit sourceId -> 265 265 List.map (Html.map FormMsg) (Form.edit model.form) ··· 279 279 -- INDEX 280 280 281 281 282 - index : Model -> List (Html Msg) 283 - index model = 282 + index : Int -> Model -> List (Html Msg) 283 + index amountOfTracks model = 284 284 [ ----------------------------------------- 285 285 -- Navigation 286 286 ----------------------------------------- ··· 331 331 332 332 -- Intro 333 333 -------- 334 - , intro 334 + , intro amountOfTracks 335 335 336 336 -- List 337 337 ------- ··· 373 373 ] 374 374 375 375 376 - intro : Html Msg 377 - intro = 376 + intro : Int -> Html Msg 377 + intro amountOfTracks = 378 378 [ text "A source is a place where your music is stored." 379 379 , lineBreak 380 380 , text "By connecting a source, the application will scan it and keep a list of all the music in it." 381 381 , lineBreak 382 - , text "It will not copy anything." 382 + , text "You currently have " 383 + , text (String.fromInt amountOfTracks) 384 + , text " " 385 + , text (ifThenElse (amountOfTracks == 1) "track" "tracks") 386 + , text " in your collection." 383 387 ] 384 388 |> raw 385 389 |> UI.Kit.intro