mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-27 05:44:17 +03:00
Remove some more hardcoding.
This commit is contained in:
parent
3983c06006
commit
8978187ca6
@ -29,23 +29,18 @@ type alias Model =
|
||||
|
||||
|
||||
type TemplateModel
|
||||
= ModelBlogPost Template.BlogPost.Model
|
||||
| ModelShowcase Template.Showcase.Model
|
||||
| ModelPage Template.Page.Model
|
||||
| ModelDocumentation Template.Documentation.Model
|
||||
| ModelBlogIndex Template.BlogIndex.Model
|
||||
= ${templates.map(name => `Model${name} Template.${name}.Model\n`).join(" | ")}
|
||||
|
||||
|
||||
type Msg
|
||||
= MsgBlogPost Template.BlogPost.Msg
|
||||
| MsgBlogIndex Template.BlogIndex.Msg
|
||||
| MsgGlobal Global.Msg
|
||||
= MsgGlobal Global.Msg
|
||||
| OnPageChange
|
||||
{ path : PagePath Pages.PathKey
|
||||
, query : Maybe String
|
||||
, fragment : Maybe String
|
||||
, metadata : Metadata
|
||||
}
|
||||
| ${templates.map(name => `Msg${name} Template.${name}.Msg\n`).join(" | ")}
|
||||
|
||||
|
||||
type alias View =
|
||||
|
@ -143,23 +143,28 @@ type alias Model =
|
||||
|
||||
|
||||
type TemplateModel
|
||||
= ModelBlogPost Template.BlogPost.Model
|
||||
| ModelShowcase Template.Showcase.Model
|
||||
| ModelPage Template.Page.Model
|
||||
= ModelBlogIndex Template.BlogIndex.Model
|
||||
| ModelBlogPost Template.BlogPost.Model
|
||||
| ModelDocumentation Template.Documentation.Model
|
||||
| ModelBlogIndex Template.BlogIndex.Model
|
||||
| ModelPage Template.Page.Model
|
||||
| ModelShowcase Template.Showcase.Model
|
||||
|
||||
|
||||
|
||||
type Msg
|
||||
= MsgBlogPost Template.BlogPost.Msg
|
||||
| MsgBlogIndex Template.BlogIndex.Msg
|
||||
| MsgGlobal Global.Msg
|
||||
= MsgGlobal Global.Msg
|
||||
| OnPageChange
|
||||
{ path : PagePath Pages.PathKey
|
||||
, query : Maybe String
|
||||
, fragment : Maybe String
|
||||
, metadata : Metadata
|
||||
}
|
||||
| MsgBlogIndex Template.BlogIndex.Msg
|
||||
| MsgBlogPost Template.BlogPost.Msg
|
||||
| MsgDocumentation Template.Documentation.Msg
|
||||
| MsgPage Template.Page.Msg
|
||||
| MsgShowcase Template.Showcase.Msg
|
||||
|
||||
|
||||
|
||||
type alias View =
|
||||
|
Loading…
Reference in New Issue
Block a user