mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 04:43:03 +03:00
Fix review errors.
This commit is contained in:
parent
b876f06139
commit
c25f18610c
@ -87,9 +87,6 @@ config =
|
||||
, "src/Pages/Http.elm" -- reports incorrect unused custom type constructor
|
||||
, "src/DataSource/ServerRequest.elm" -- temporarily removed from exposed modules for alpha serverless
|
||||
]
|
||||
|> Rule.ignoreErrorsForDirectories
|
||||
[ "src/ElmHtml"
|
||||
]
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -98,6 +95,7 @@ config =
|
||||
rule
|
||||
|> Rule.ignoreErrorsForDirectories
|
||||
[ "src/ElmHtml"
|
||||
, "src/Test"
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
module HtmlPrinter exposing (htmlToString)
|
||||
|
||||
import Html exposing (Html)
|
||||
import Html.Events
|
||||
import Json.Decode as Decode
|
||||
import Json.Encode
|
||||
import Test.Html.Internal.ElmHtml.InternalTypes exposing (decodeElmHtml)
|
||||
|
@ -91,6 +91,7 @@ cliApplication config =
|
||||
site =
|
||||
getSiteConfig config
|
||||
|
||||
getSiteConfig : ProgramConfig userMsg userModel (Maybe route) siteData pageData sharedData -> SiteConfig siteData
|
||||
getSiteConfig fullConfig =
|
||||
case fullConfig.site of
|
||||
Just mySite ->
|
||||
|
@ -20,6 +20,7 @@ import Pages.Internal.Platform.ToJsPayload as ToJsPayload
|
||||
import Pages.Internal.StaticHttpBody as StaticHttpBody
|
||||
import Pages.Manifest as Manifest
|
||||
import Pages.ProgramConfig exposing (ProgramConfig)
|
||||
import Pages.SiteConfig exposing (SiteConfig)
|
||||
import Pages.StaticHttp.Request as Request
|
||||
import Path
|
||||
import ProgramTest exposing (ProgramTest)
|
||||
@ -1124,6 +1125,7 @@ startLowLevel apiRoutes staticHttpCache pages =
|
||||
|> ProgramTest.start (flags (Encode.encode 0 encodedFlags))
|
||||
|
||||
|
||||
site : SiteConfig ()
|
||||
site =
|
||||
{ data = DataSource.succeed ()
|
||||
, canonicalUrl = "canonical-site-url"
|
||||
|
Loading…
Reference in New Issue
Block a user