A music player that connects to your cloud/distributed storage. diffuse.sh
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364module UI.Queue.Core exposing (Model, Msg(..))
import UI.DnD as DnDimport Html.Events.Extra.Mouse as Mouseimport Queue exposing (..)import Timeimport Tracks exposing (IdentifiedTrack)
-- 🌳
type alias Model = { activeItem : Maybe Item , future : List Item , ignored : List Item , past : List Item
-- , repeat : Bool , shuffle : Bool
-- , dnd : DnD.Model Int }
-- 📣
type Msg = ------------------------------------ -- Combos ------------------------------------ InjectFirstAndPlay IdentifiedTrack ------------------------------------ -- Future ------------------------------------ | InjectFirst { showNotification : Bool } (List IdentifiedTrack) | InjectLast { showNotification : Bool } (List IdentifiedTrack) | RemoveItem { index : Int, item : Item } ------------------------------------ -- Position ------------------------------------ | Rewind | Shift ------------------------------------ -- Contents ------------------------------------ | Clear | Reset | Fill Time.Posix (List IdentifiedTrack) ------------------------------------ -- Drag & Drop ------------------------------------ | DragMsg (DnD.Msg Int) ------------------------------------ -- Settings ------------------------------------ | ToggleRepeat | ToggleShuffle