Skip to content

Commit

Permalink
move Debug page to separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
pjurewicz committed Mar 20, 2024
1 parent 4f692b2 commit 99cf19a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ruby_event_store-browser/elm/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Layout
import LinkedTimezones exposing (mapLinkedTimeZone)
import Page.ShowEvent
import Page.ShowStream
import Page.Debug
import Route
import Task
import Time
Expand Down Expand Up @@ -270,7 +271,11 @@ viewPage page selectedTime =
( Just title, Html.map GotShowEventMsg content )

Debug ->
( Just "Debug", text "to be filled with some helpful content" )
let
content =
Page.Debug.view
in
( Just "Debug", content )

NotFound ->
( Nothing, Layout.viewNotFound )
7 changes: 7 additions & 0 deletions ruby_event_store-browser/elm/src/Page/Debug.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Page.Debug exposing (..)

import Html exposing (..)

view: Html a
view =
text "to be filled with some helpful content"

0 comments on commit 99cf19a

Please sign in to comment.