mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
29 lines
475 B
Elm
29 lines
475 B
Elm
|
|
port module Ports exposing
|
||
|
|
( assetsLoaded
|
||
|
|
, checkAssetsLoaded
|
||
|
|
, copyToClipboard
|
||
|
|
, loadTheme
|
||
|
|
, saveTheme
|
||
|
|
, sendToLocalStorage
|
||
|
|
)
|
||
|
|
|
||
|
|
import Json.Encode as Encode
|
||
|
|
|
||
|
|
|
||
|
|
port sendToLocalStorage : { key : String, value : Encode.Value } -> Cmd msg
|
||
|
|
|
||
|
|
|
||
|
|
port copyToClipboard : String -> Cmd msg
|
||
|
|
|
||
|
|
|
||
|
|
port saveTheme : String -> Cmd msg
|
||
|
|
|
||
|
|
|
||
|
|
port loadTheme : (String -> msg) -> Sub msg
|
||
|
|
|
||
|
|
|
||
|
|
port checkAssetsLoaded : () -> Cmd msg
|
||
|
|
|
||
|
|
|
||
|
|
port assetsLoaded : (() -> msg) -> Sub msg
|