Make stuff work better.
This commit is contained in:
@@ -3,6 +3,7 @@ module Main (..) where
|
|||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
import StartApp.Simple as StartApp
|
import StartApp.Simple as StartApp
|
||||||
|
import Signal exposing (Address)
|
||||||
|
|
||||||
|
|
||||||
main =
|
main =
|
||||||
@@ -63,7 +64,7 @@ initialModel =
|
|||||||
|
|
||||||
|
|
||||||
view : Address Action -> Model -> Html
|
view : Address Action -> Model -> Html
|
||||||
view model =
|
view address model =
|
||||||
div
|
div
|
||||||
[ class "content" ]
|
[ class "content" ]
|
||||||
[ header
|
[ header
|
||||||
@@ -82,6 +83,17 @@ viewSearchResult result =
|
|||||||
li
|
li
|
||||||
[]
|
[]
|
||||||
[ span [ class "star-count" ] [ text (toString result.stars) ]
|
[ span [ class "star-count" ] [ text (toString result.stars) ]
|
||||||
-- TODO replace the following with a link that opens in a new window!
|
-- TODO replace the following with a link to the appropriate GitHub repo.
|
||||||
, text result.name
|
, text result.name
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
type alias Action =
|
||||||
|
{ actionType : String
|
||||||
|
, payload : Int
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
update : Action -> Model -> Model
|
||||||
|
update action model =
|
||||||
|
model
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
height: 36px;
|
||||||
background-color: rgb(96, 181, 204);
|
background-color: rgb(96, 181, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user