This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Messages | |
open Shared | |
type Msg = | |
| EventSetChanged of string | |
| PlaybackDelayChanged of string | |
| StartPlayback | |
| PausePlayback | |
| StopPlayback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SocketServer | |
open System | |
open System.IO | |
open Microsoft.AspNetCore.Http | |
open Giraffe | |
open Elmish | |
open Elmish.Bridge | |
open Thoth.Json.Net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module WebServer | |
open System.IO | |
open Microsoft.AspNetCore.Cors.Infrastructure | |
open Giraffe | |
open Saturn | |
open Elmish.Bridge | |
open Shared | |
open SocketServer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module View | |
open Feliz | |
open Feliz.Bulma | |
open System | |
open Shared | |
open Model | |
open Messages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Update | |
open System | |
open Elmish | |
open Fable.SimpleHttp | |
open Thoth.Json | |
open Shared | |
open Model | |
open Messages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>SAFE Template</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css"/> | |
<script src="https://kit.fontawesome.com/409fb4cc7a.js" crossorigin="anonymous"></script> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module View | |
open Feliz | |
open Feliz.Bulma | |
open System | |
open Model | |
open Messages | |
let view (state : Model) dispatch = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Update | |
open System | |
open Elmish | |
open Fable.SimpleHttp | |
open Model | |
open Messages | |
let tryParseWith (tryParseFunc: string -> bool * _) = tryParseFunc >> function |