Skip to content

Commit

Permalink
Code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
katjam committed Oct 7, 2024
1 parent 519dfc5 commit adcadf1
Show file tree
Hide file tree
Showing 12 changed files with 976 additions and 5,209 deletions.
4 changes: 2 additions & 2 deletions app/Route/About.elm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ data =


head : RouteBuilder.App Data ActionData RouteParams -> List Head.Tag
head app =
head _ =
Theme.PageTemplate.pageMetaTags
{ title = AboutTitle
, description = AboutMetaDescription
Expand All @@ -190,7 +190,7 @@ view :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared =
view app _ =
{ title = t (PageMetaTitle (t AboutTitle))
, body =
[ Theme.PageTemplate.view
Expand Down
1 change: 0 additions & 1 deletion app/Route/Events.elm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module Route.Events exposing (Model, Msg, RouteParams, route, Data, ActionData)

import BackendTask
import Browser.Dom
import Browser.Navigation
import Copy.Keys exposing (Key(..))
import Copy.Text exposing (t)
import Data.PlaceCal.Events
Expand Down
6 changes: 0 additions & 6 deletions app/Route/Events/Event_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,17 @@ module Route.Events.Event_ exposing (Model, Msg, RouteParams, route, Data, Actio
-}

import BackendTask
import BackendTask.Custom
import Browser.Dom
import Copy.Keys exposing (Key(..))
import Copy.Text exposing (t)
import Data.PlaceCal.Api
import Data.PlaceCal.Events
import Effect
import FatalError
import Head
import Json.Encode
import PagesMsg
import RouteBuilder
import Shared
import Task
import Theme.EventPage
import Theme.PageTemplate
import Theme.TransMarkdown
import View


Expand Down
4 changes: 2 additions & 2 deletions app/Route/Index.elm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ data =


head : RouteBuilder.App Data ActionData RouteParams -> List Head.Tag
head app =
head _ =
Theme.PageTemplate.pageMetaTags
{ title = SiteTitle
, description = IndexMetaDescription
Expand All @@ -65,7 +65,7 @@ view :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared =
view app _ =
{ title = t SiteTitle
, body = [ Theme.IndexPage.view app.sharedData ]
}
4 changes: 2 additions & 2 deletions app/Route/News.elm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ data =


head : RouteBuilder.App Data ActionData RouteParams -> List Head.Tag
head app =
head _ =
Theme.PageTemplate.pageMetaTags
{ title = NewsTitle
, description = NewsDescription
Expand All @@ -66,7 +66,7 @@ view :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared =
view app _ =
{ title = t (PageMetaTitle (t NewsTitle))
, body =
[ Theme.PageTemplate.view
Expand Down
4 changes: 2 additions & 2 deletions app/Route/Partners.elm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ data =


head : RouteBuilder.App Data ActionData RouteParams -> List Head.Tag
head app =
head _ =
Theme.PageTemplate.pageMetaTags
{ title = PartnersTitle
, description = PartnersMetaDescription
Expand All @@ -65,7 +65,7 @@ view :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared =
view app _ =
{ title = t (PageMetaTitle (t PartnersTitle))
, body =
[ Theme.PageTemplate.view
Expand Down
7 changes: 3 additions & 4 deletions app/Route/Partners/Partner_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module Route.Partners.Partner_ exposing (Model, Msg, RouteParams, route, Data, A
-}

import BackendTask
import BackendTask.Custom
import Browser.Dom
import Copy.Keys exposing (Key(..))
import Copy.Text exposing (t)
Expand Down Expand Up @@ -68,7 +67,7 @@ init :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> ( Model, Effect.Effect Msg )
init app shared =
init app _ =
let
urlFragment : Maybe String
urlFragment =
Expand Down Expand Up @@ -110,7 +109,7 @@ update :
-> Msg
-> Model
-> ( Model, Effect.Effect Msg )
update app shared msg model =
update app _ msg model =
let
aPartner =
Data.PlaceCal.Partners.partnerFromSlug app.sharedData.partners app.routeParams.partner
Expand Down Expand Up @@ -208,7 +207,7 @@ view :
-> Shared.Model
-> Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared model =
view app _ model =
let
aPartner =
Data.PlaceCal.Partners.partnerFromSlug app.sharedData.partners app.routeParams.partner
Expand Down
4 changes: 2 additions & 2 deletions app/Route/Privacy.elm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ data =


head : RouteBuilder.App Data ActionData RouteParams -> List Head.Tag
head app =
head _ =
Theme.PageTemplate.pageMetaTags
{ title = PrivacyTitle
, description = PrivacyMetaDescription
Expand All @@ -89,7 +89,7 @@ view :
RouteBuilder.App Data ActionData RouteParams
-> Shared.Model
-> View.View (PagesMsg.PagesMsg Msg)
view app shared =
view app _ =
{ title = t (PageMetaTitle (t PrivacyTitle))
, body =
[ Theme.TextHeavyPage.view
Expand Down
Loading

0 comments on commit adcadf1

Please sign in to comment.