mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-11-22 20:01:19 +03:00
dont expose them nasty types tho
This commit is contained in:
parent
fd9c1e00e9
commit
caf9a8cf49
@ -4,7 +4,7 @@ module Generated.Pages exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Element exposing (Element)
|
||||
import Generated.Route as Route exposing (Route)
|
||||
import Global
|
||||
|
@ -4,7 +4,7 @@ module Pages.Counter exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
import Html.Events as Events
|
||||
|
||||
@ -19,7 +19,6 @@ type Msg
|
||||
| Decrement
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.sandbox
|
||||
{ title = always "Counter"
|
||||
|
@ -4,7 +4,7 @@ module Pages.Index exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.static
|
||||
{ title = "Homepage"
|
||||
|
@ -4,7 +4,7 @@ module Pages.NotFound exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.static
|
||||
{ title = "Page not found"
|
||||
|
@ -4,7 +4,7 @@ module Pages.Random exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
import Html.Attributes as Attr
|
||||
import Html.Events as Events
|
||||
@ -22,7 +22,6 @@ type Msg
|
||||
| CatResponded (Result Http.Error String)
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.element
|
||||
{ title = always "Random"
|
||||
|
@ -4,7 +4,7 @@ module Pages.Settings.Account exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.static
|
||||
{ title = "Account Settings"
|
||||
|
@ -4,7 +4,7 @@ module Pages.Settings.Notifications exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.static
|
||||
{ title = "Notification Settings"
|
||||
|
@ -4,7 +4,7 @@ module Pages.Settings.User exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.static
|
||||
{ title = "User Settings"
|
||||
|
@ -4,7 +4,7 @@ module Pages.SignIn exposing
|
||||
, page
|
||||
)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Generated.Route as Route
|
||||
import Global
|
||||
import Html exposing (..)
|
||||
@ -29,7 +29,6 @@ type Field
|
||||
| Password
|
||||
|
||||
|
||||
page : Page () Model Msg (Html Msg) a b c Global.Model Global.Msg d e
|
||||
page =
|
||||
Page.component
|
||||
{ title = title
|
||||
|
@ -1,6 +1,6 @@
|
||||
module Pages.Users.Slug exposing (Model, Msg, page)
|
||||
|
||||
import Application.Page as Page exposing (Page)
|
||||
import Application.Page as Page
|
||||
import Html exposing (..)
|
||||
|
||||
|
||||
@ -12,7 +12,6 @@ type alias Msg =
|
||||
Never
|
||||
|
||||
|
||||
page : Page String Model Msg (Html Msg) a b c d e f g
|
||||
page =
|
||||
Page.sandbox
|
||||
{ title = title
|
||||
|
@ -1,6 +1,5 @@
|
||||
module Application.Page exposing
|
||||
( Page
|
||||
, Static, static
|
||||
( Static, static
|
||||
, Sandbox, sandbox
|
||||
, Element, element
|
||||
, Component, component
|
||||
@ -8,14 +7,7 @@ module Application.Page exposing
|
||||
, recipe, keep
|
||||
)
|
||||
|
||||
{-|
|
||||
|
||||
|
||||
# Pages
|
||||
|
||||
@docs Page
|
||||
|
||||
Each page can be as simple or complex as you need:
|
||||
{-| Each page can be as simple or complex as you need:
|
||||
|
||||
1. [Static](#static) - for rendering a simple view
|
||||
|
||||
@ -356,15 +348,7 @@ type alias Component pageRoute pageModel pageMsg globalModel globalMsg htmlPageM
|
||||
}
|
||||
|
||||
|
||||
{-|
|
||||
|
||||
Page.component
|
||||
{ title = title
|
||||
, init = init
|
||||
, update = update
|
||||
, view = view
|
||||
, subscriptions = subscriptions
|
||||
}
|
||||
{-| Create an `component` page from a record. [Here's an example](https://github.com/ryannhg/elm-spa/examples/html/src/Pages/SignIn.elm)
|
||||
|
||||
-}
|
||||
component :
|
||||
|
Loading…
Reference in New Issue
Block a user