-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[<AutoOpen>] | ||
module Ribbit.Core | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module UI.Ribbit.PlaygroundView | ||
open Ribbit | ||
open Feliz | ||
open Feliz.UseElmish | ||
|
||
type DataKey = string | ||
type Value = Text of string | Number of int | ||
type DataBank = Map<DataKey, Value> | ||
type TODO = Unit | ||
type Model = { data: DataBank; definitions: TODO } | ||
with | ||
static member fresh = { data = Map.empty; definitions = () } | ||
|
||
type Msg = TODO | ||
|
||
let init _ = Model.fresh | ||
|
||
let update msg model = model | ||
|
||
let View() = | ||
let model dispatch = React.useElmishSimple init update | ||
Html.div "RibbitPlayground: placeholder" |