From 43948c6b39ba6113058e7a4f005fc175e81599db Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Fri, 30 Jul 2021 15:08:30 -0700 Subject: [PATCH] Rename internal module. --- elm.json | 2 +- generator/src/Page.elm | 2 +- generator/src/generate-template-module-connector.js | 2 +- src/NotFoundReason.elm | 8 ++++---- src/{ => Pages/Internal}/RoutePattern.elm | 2 +- src/Pages/ProgramConfig.elm | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename src/{ => Pages/Internal}/RoutePattern.elm (96%) diff --git a/elm.json b/elm.json index 300e778a..daec3b0c 100644 --- a/elm.json +++ b/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", diff --git a/generator/src/Page.elm b/generator/src/Page.elm index 3cac2852..d5659b38 100644 --- a/generator/src/Page.elm +++ b/generator/src/Page.elm @@ -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) diff --git a/generator/src/generate-template-module-connector.js b/generator/src/generate-template-module-connector.js index 177a2ea6..6cbd1e02 100644 --- a/generator/src/generate-template-module-connector.js +++ b/generator/src/generate-template-module-connector.js @@ -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 diff --git a/src/NotFoundReason.elm b/src/NotFoundReason.elm index 046747f7..f30fb84d 100644 --- a/src/NotFoundReason.elm +++ b/src/NotFoundReason.elm @@ -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 diff --git a/src/RoutePattern.elm b/src/Pages/Internal/RoutePattern.elm similarity index 96% rename from src/RoutePattern.elm rename to src/Pages/Internal/RoutePattern.elm index 20a8193b..fb077f97 100644 --- a/src/RoutePattern.elm +++ b/src/Pages/Internal/RoutePattern.elm @@ -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). diff --git a/src/Pages/ProgramConfig.elm b/src/Pages/ProgramConfig.elm index f2f3297f..858dd89d 100644 --- a/src/Pages/ProgramConfig.elm +++ b/src/Pages/ProgramConfig.elm @@ -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)