Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #56 from Zaid-Ajaj/master
Browse files Browse the repository at this point in the history
Calculator sample, demo and docs
  • Loading branch information
MangelMaxime committed Jan 31, 2017
2 parents 41ea94f + baa262f commit 04f5dd6
Show file tree
Hide file tree
Showing 14 changed files with 690 additions and 1 deletion.
Empty file added docs/npm-debug.log.624783864
Empty file.
1 change: 1 addition & 0 deletions docs/package.json
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "node build.js",
"build-dev": "node build.js dev",
"dev": "concurrently \"npm run serve\" \"npm run watch\"",
"serve": "http-server . -c-1 -s",
"setup": "node setup.js",
Expand Down
1 change: 1 addition & 0 deletions docs/src/App.fs
Expand Up @@ -189,6 +189,7 @@ module Main =
runM (NavigateTo (Sample SampleApi.Counter)) (pStaticStr "/sample/counter" |> (drop >> _end))
runM (NavigateTo (Sample SampleApi.HelloWorld)) (pStaticStr "/sample/hello-world" |> (drop >> _end))
runM (NavigateTo (Sample SampleApi.NestedCounter)) (pStaticStr "/sample/nested-counter" |> (drop >> _end))
runM (NavigateTo (Sample SampleApi.Calculator)) (pStaticStr "/sample/calculator" |> (drop >> _end))
runM (NavigateTo About) (pStaticStr "/about" |> (drop >> _end))
]

Expand Down
2 changes: 2 additions & 0 deletions docs/src/Common.fs
Expand Up @@ -25,6 +25,7 @@ module Common =
| Counter
| HelloWorld
| NestedCounter
| Calculator

type Route
= Index
Expand All @@ -45,6 +46,7 @@ module Common =
| SampleApi.Counter -> Some "/sample/counter"
| SampleApi.HelloWorld -> Some "/sample/hello-world"
| SampleApi.NestedCounter -> Some "/sample/nested-counter"
| SampleApi.Calculator -> Some "/sample/calculator"
| About -> Some "/about"

let voidLinkAction<'T> : Attribute<'T> = property "href" "javascript:void(0)"
Expand Down

0 comments on commit 04f5dd6

Please sign in to comment.