Skip to content

Commit 9d814dc

Browse files
Finish update targets (#150)
* Add hooks suffix to ButtonsReact, CatGifsHaogen, and CatGifsReact * Regenerate readme
1 parent 67d28c3 commit 9d814dc

File tree

22 files changed

+24
-24
lines changed

22 files changed

+24
-24
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ Running a web-compatible recipe:
8181
| | :heavy_check_mark: | [BookHalogenHooks](recipes/BookHalogenHooks) | A Halogen port of the ["HTTP - Book" Elm Example](https://elm-lang.org/examples). |
8282
| | :heavy_check_mark: | [BookReactHooks](recipes/BookReactHooks) | A React port of the ["HTTP - Book" Elm Example](https://elm-lang.org/examples/book). |
8383
| | :heavy_check_mark: | [ButtonsHalogenHooks](recipes/ButtonsHalogenHooks) | A Halogen port of the ["User Input - Buttons" Elm Example](https://elm-lang.org/examples). |
84-
| | :heavy_check_mark: | [ButtonsReact](recipes/ButtonsReact) | A React port of the ["User Input - Buttons" Elm Example](https://elm-lang.org/examples/buttons). |
84+
| | :heavy_check_mark: | [ButtonsReactHooks](recipes/ButtonsReactHooks) | A React port of the ["User Input - Buttons" Elm Example](https://elm-lang.org/examples/buttons). |
8585
| | :heavy_check_mark: | [CardsHalogenHooks](recipes/CardsHalogenHooks) | A Halogen port of the ["Random - Cards" Elm Example](https://elm-lang.org/examples/cards). |
8686
| | :heavy_check_mark: | [CardsReactHooks](recipes/CardsReactHooks) | A React port of the ["Random - Cards" Elm Example](https://elm-lang.org/examples/cards). |
87-
| | :heavy_check_mark: | [CatGifsHalogen](recipes/CatGifsHalogen) | A Halogen port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples). |
88-
| | :heavy_check_mark: | [CatGifsReact](recipes/CatGifsReact) | A React port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples/cat-gifs). |
87+
| | :heavy_check_mark: | [CatGifsHalogenHooks](recipes/CatGifsHalogenHooks) | A Halogen port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples). |
88+
| | :heavy_check_mark: | [CatGifsReactHooks](recipes/CatGifsReactHooks) | A React port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples/cat-gifs). |
8989
| :heavy_check_mark: | | [DiceCLI](recipes/DiceCLI) | This recipe shows how to create an interactive command line prompt that repeatedly generates a random number between 1 and 6. |
9090
| :heavy_check_mark: | :heavy_check_mark: | [DiceLog](recipes/DiceLog) | This recipe shows how to log a random integer between 1 and 6 (representing a roll of a die) in either the node.js or web browser console. |
9191
| | :heavy_check_mark: | [FindDomElementJs](recipes/FindDomElementJs) | This recipe shows how to find elements in the DOM by using query selectors. |

recipes/ButtonsReact/web/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

recipes/ButtonsReact/README.md renamed to recipes/ButtonsReactHooks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ButtonsReact
1+
# ButtonsReactHooks
22

33
A React port of the ["User Input - Buttons" Elm Example](https://elm-lang.org/examples/buttons).
44

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{ name = "ButtonsReact"
1+
{ name = "ButtonsReactHooks"
22
, dependencies =
33
[ "console"
44
, "effect"
55
, "psci-support"
66
, "react-basic-hooks"
77
]
88
, packages = ../../packages.dhall
9-
, sources = [ "recipes/ButtonsReact/src/**/*.purs" ]
9+
, sources = [ "recipes/ButtonsReactHooks/src/**/*.purs" ]
1010
}

recipes/ButtonsReact/src/Main.purs renamed to recipes/ButtonsReactHooks/src/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ButtonsReact.Main where
1+
module ButtonsReactHooks.Main where
22

33
import Prelude
44
import Data.Maybe (Maybe(..))

recipes/CatGifsReact/web/index.html renamed to recipes/ButtonsReactHooks/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8" />
5-
<title>CatGifsReact</title>
5+
<title>ButtonsReactHooks</title>
66
</head>
77

88
<body>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
require("../../../output/ButtonsReactHooks.Main/index.js").main();

recipes/CatGifsHalogen/web/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)