mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 22:26:16 +03:00
Update examples and tests.
This commit is contained in:
parent
c1fb9c3436
commit
bbe33d4b52
@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
|
||||
|
||||
config : SiteConfig Data
|
||||
config =
|
||||
\routes ->
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
|
||||
|
||||
type alias Data =
|
||||
|
@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
|
||||
|
||||
config : SiteConfig Data
|
||||
config =
|
||||
\routes ->
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
|
||||
|
||||
type alias Data =
|
||||
|
2
examples/routing/package-lock.json
generated
2
examples/routing/package-lock.json
generated
@ -16,7 +16,7 @@
|
||||
}
|
||||
},
|
||||
"../..": {
|
||||
"version": "1.5.5",
|
||||
"version": "2.0.1",
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
|
@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
|
||||
|
||||
config : SiteConfig Data
|
||||
config =
|
||||
\routes ->
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
, manifest = manifest
|
||||
, head = head
|
||||
}
|
||||
|
||||
|
||||
type alias Data =
|
||||
|
@ -1044,12 +1044,11 @@ startLowLevel apiRoutes staticHttpCache pages =
|
||||
Nothing ->
|
||||
Debug.todo <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
|
||||
, site =
|
||||
\_ ->
|
||||
{ data = DataSource.succeed ()
|
||||
, canonicalUrl = "canonical-site-url"
|
||||
, manifest = \_ -> manifest
|
||||
, head = \_ -> []
|
||||
}
|
||||
{ data = DataSource.succeed ()
|
||||
, canonicalUrl = "canonical-site-url"
|
||||
, manifest = \_ -> manifest
|
||||
, head = \_ -> []
|
||||
}
|
||||
, view =
|
||||
\page _ ->
|
||||
let
|
||||
@ -1197,12 +1196,11 @@ startWithRoutes pageToLoad staticRoutes staticHttpCache pages =
|
||||
Nothing ->
|
||||
DataSource.fail <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
|
||||
, site =
|
||||
\_ ->
|
||||
{ data = DataSource.succeed ()
|
||||
, canonicalUrl = "canonical-site-url"
|
||||
, manifest = \_ -> manifest
|
||||
, head = \_ -> []
|
||||
}
|
||||
{ data = DataSource.succeed ()
|
||||
, canonicalUrl = "canonical-site-url"
|
||||
, manifest = \_ -> manifest
|
||||
, head = \_ -> []
|
||||
}
|
||||
, view =
|
||||
\page _ ->
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user