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.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970module UI.Syncing.Common exposing (..)
import Chunky exposing (..)import Htmlimport Svgimport UI.Svg.Elementsimport UI.Syncing.Types exposing (..)import UI.Types exposing (Msg(..))import User.Layer exposing (Method, dropboxMethod, remoteStorageMethod)
-- 🚀
startDropbox : MsgstartDropbox = SyncingMsg (TriggerExternalAuth dropboxMethod "")
startIpfs : MsgstartIpfs = SyncingMsg PingIpfs
startRemoteStorage : MsgstartRemoteStorage = { icon = \size _ -> Svg.map never (UI.Svg.Elements.remoteStorageLogo size) , placeholder = "example@5apps.com" , question = { question = "What's your user address?" , info = [ Html.text "The format is " , inline [] [ Html.text "username@server.domain" ] ] } , value = "" } |> AskForInput remoteStorageMethod |> SyncingMsg
-- 🛠
extractMethod : State -> Maybe MethodextractMethod state = case state of Synced method -> Just method
Syncing { method } -> Just method
InputScreen method _ -> Just method
NewEncryptionKeyScreen method _ -> Just method
UpdateEncryptionKeyScreen method _ -> Just method
NotSynced -> Nothing