mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 05:13:24 +03:00
Rename internal module.
This commit is contained in:
parent
89ea8b67fb
commit
43948c6b39
2
elm.json
2
elm.json
@ -26,7 +26,7 @@
|
||||
"Pages.Internal.Platform",
|
||||
"Pages.Internal.Platform.Cli",
|
||||
"Router",
|
||||
"RoutePattern",
|
||||
"Pages.Internal.RoutePattern",
|
||||
"NotFoundReason"
|
||||
],
|
||||
"elm-version": "0.19.0 <= v < 0.20.0",
|
||||
|
@ -53,7 +53,7 @@ import Head
|
||||
import NotFoundReason exposing (NotFoundReason)
|
||||
import Pages.PageUrl exposing (PageUrl)
|
||||
import Path exposing (Path)
|
||||
import RoutePattern exposing (RoutePattern)
|
||||
import Pages.Internal.RoutePattern exposing (RoutePattern)
|
||||
import Shared
|
||||
import View exposing (View)
|
||||
|
||||
|
@ -61,7 +61,7 @@ import Html exposing (Html)
|
||||
import NotFoundReason
|
||||
import Pages.PageUrl exposing (PageUrl)
|
||||
import Path exposing (Path)
|
||||
import RoutePattern
|
||||
import Pages.Internal.RoutePattern
|
||||
import Url
|
||||
import DataSource exposing (DataSource)
|
||||
import QueryParams
|
||||
|
@ -9,8 +9,8 @@ module NotFoundReason exposing (codec, ModuleContext, NotFoundReason(..), Payloa
|
||||
import Codec exposing (Codec)
|
||||
import Html exposing (Html)
|
||||
import Html.Attributes as Attr
|
||||
import Pages.Internal.RoutePattern exposing (RoutePattern)
|
||||
import Path exposing (Path)
|
||||
import RoutePattern exposing (RoutePattern)
|
||||
|
||||
|
||||
{-| -}
|
||||
@ -73,7 +73,7 @@ document pathPatterns payload =
|
||||
[ Attr.style "list-style" "inside"
|
||||
]
|
||||
[ route
|
||||
|> RoutePattern.view
|
||||
|> Pages.Internal.RoutePattern.view
|
||||
]
|
||||
)
|
||||
)
|
||||
@ -93,7 +93,7 @@ document pathPatterns payload =
|
||||
, Html.br [] []
|
||||
, Html.br [] []
|
||||
, Html.code []
|
||||
[ RoutePattern.view moduleContext.routePattern
|
||||
[ Pages.Internal.RoutePattern.view moduleContext.routePattern
|
||||
]
|
||||
, Html.br [] []
|
||||
, Html.br [] []
|
||||
@ -228,7 +228,7 @@ moduleContextCodec : Codec ModuleContext
|
||||
moduleContextCodec =
|
||||
Codec.object ModuleContext
|
||||
|> Codec.field "moduleName" .moduleName (Codec.list Codec.string)
|
||||
|> Codec.field "routePattern" .routePattern RoutePattern.codec
|
||||
|> Codec.field "routePattern" .routePattern Pages.Internal.RoutePattern.codec
|
||||
|> Codec.field "matchedRouteParams" .matchedRouteParams recordCodec
|
||||
|> Codec.buildObject
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module RoutePattern exposing (Ending(..), RoutePattern, Segment(..), codec, view)
|
||||
module Pages.Internal.RoutePattern exposing (Ending(..), RoutePattern, Segment(..), codec, view)
|
||||
|
||||
{-| Exposed for internal use only (used in generated code).
|
||||
|
@ -9,10 +9,10 @@ import Json.Decode as Decode
|
||||
import Json.Encode
|
||||
import NotFoundReason exposing (NotFoundReason)
|
||||
import Pages.Flags
|
||||
import Pages.Internal.RoutePattern exposing (RoutePattern)
|
||||
import Pages.PageUrl exposing (PageUrl)
|
||||
import Pages.SiteConfig exposing (SiteConfig)
|
||||
import Path exposing (Path)
|
||||
import RoutePattern exposing (RoutePattern)
|
||||
import Url exposing (Url)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user