Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384port module Brain.Ports exposing (..)
import Alienimport Json.Encode as Jsonimport Sources.Processing exposing (ContextForTags, ContextForTagsSync)
-- 📣
port downloadTracks : Json.Value -> Cmd msg
port removeTracksFromCache : Json.Value -> Cmd msg
port requestSearch : String -> Cmd msg
port requestTags : ContextForTags -> Cmd msg
port storeTracksInCache : Json.Value -> Cmd msg
port syncTags : ContextForTagsSync -> Cmd msg
port toUI : Alien.Event -> Cmd msg
port updateSearchIndex : Json.Value -> Cmd msg
-- 📣 ░░ USER LAYER SERVICES
port deconstructRemoteStorage : () -> Cmd msg
port provideArtworkTrackUrls : Json.Value -> Cmd msg
port requestDropbox : Alien.Event -> Cmd msg
port requestIpfs : Alien.Event -> Cmd msg
port requestRemoteStorage : Alien.Event -> Cmd msg
port toDropbox : Alien.Event -> Cmd msg
port toIpfs : Alien.Event -> Cmd msg
port toRemoteStorage : Alien.Event -> Cmd msg
-- 📰
port fromAlien : (Alien.Event -> msg) -> Sub msg
port makeArtworkTrackUrls : (Json.Value -> msg) -> Sub msg
port receiveSearchResults : (List String -> msg) -> Sub msg
port refreshedAccessToken : (Json.Value -> msg) -> Sub msg
port receiveTags : (ContextForTags -> msg) -> Sub msg
port replaceTags : (ContextForTagsSync -> msg) -> Sub msg