Rename internal module.

This commit is contained in:
Dillon Kearns 2021-07-30 15:08:30 -07:00
parent 89ea8b67fb
commit 43948c6b39
6 changed files with 9 additions and 9 deletions

View File

@ -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",

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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).

View File

@ -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)