mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
28
templates/website/frontend/src/Ports.elm
Executable file
28
templates/website/frontend/src/Ports.elm
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue