Skip to content

Commit

Permalink
Format using elm-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jecaro committed May 23, 2020
1 parent 9a0426e commit 8a95c5d
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 38 deletions.
8 changes: 7 additions & 1 deletion frontend/src/Api/Month/Extended.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module Api.Month.Extended exposing (fromDate, next, previous, toHumanString, toString)
module Api.Month.Extended exposing
( fromDate
, next
, previous
, toHumanString
, toString
)

import Api
import Date
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Api/OffDayType/Extended.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Api.OffDayType.Extended exposing (fromString, toString)

import Api
import Api


toString : Api.OffDayType -> String
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Api/TimeInDay/Extended.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Api.TimeInDay.Extended exposing (fromString, toString)

import Api
import Api


toString : Api.TimeInDay -> String
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/Common.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ module Common exposing
, viewNavBar
)

import Date
import Date
import Html exposing (Html, a, article, br, div, nav, p, text)
import Html.Attributes exposing (class, href)
import Html.Extra exposing (nothing)
import Http
import Http
import Http.Extended as Http
import Json.Decode as Decode
import List
import RemoteData
import String
import List
import RemoteData
import String


dateUrl : Date.Date -> String
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Date/Extended.elm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Date.Extended exposing (decoder, encode, toStringWithWeekday)

import Date
import Date
import Json.Decode
import Json.Encode

Expand Down
26 changes: 13 additions & 13 deletions frontend/src/HalfDayWidget.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ module HalfDayWidget exposing
)

import Api
import Api.OffDayType.Extended as OffDayType
import Api.Office.Extended as Office
import Api.TimeInDay.Extended as TimeInDay
import Api.TimeOfDay as TimeOfDay
import Api.OffDayType.Extended as OffDayType
import Api.Office.Extended as Office
import Api.TimeInDay.Extended as TimeInDay
import Api.TimeOfDay as TimeOfDay
import Browser.Dom as Dom
import Common
import Date
import Common
import Date
import Html
exposing
( Attribute
Expand Down Expand Up @@ -45,15 +45,15 @@ import Html.Attributes
import Html.Events exposing (onBlur, onClick, onDoubleClick, onInput)
import Html.Events.Extended exposing (onEnter)
import Html.Extra exposing (nothing, viewIf)
import Http
import List
import Http
import List
import Maybe.Extra as Maybe
import RemoteData
import RemoteData
import Request
import Result
import String
import Task
import Time
import Result
import String
import Task
import Time



Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Html/Events/Extended.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Html.Events.Extended exposing (onEnter)

import Html
import Html
import Html.Events as Events
import Json.Decode as Decode exposing (fail, map2, succeed)

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Http/Extended.elm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Http.Extended exposing (errorToString)

import Http
import Http


errorToString : Http.Error -> String
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/Main.elm
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module Main exposing (main)

import Api
import Browser
import Browser
import Browser.Navigation as Navigation
import Date
import Date
import Html
import Html.Extra exposing (nothing)
import Page.Day as PD
import Page.Month as PM
import Page.Projects as PP
import Page.Projects as PP
import Platform.Cmd as Cmd
import Platform.Sub as Sub
import RemoteData
import Request
import Result
import Url
import RemoteData
import Request
import Result
import Url
import Url.Parser as Parser


Expand Down
8 changes: 4 additions & 4 deletions frontend/src/Page/Day.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ module Page.Day exposing
)

import Api
import Browser
import Browser
import Browser.Events as Events
import Common
import Date
import Common
import Date
import Date.Extended as Date
import HalfDayWidget as HDW
import Html exposing (Html, a, div, section, text)
import Html.Attributes exposing (class, href)
import Task
import Task



Expand Down
10 changes: 9 additions & 1 deletion frontend/src/Page/Projects.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
module Page.Projects exposing (Model, Msg, init, projectsModified, subscriptions, update, view)
module Page.Projects exposing
( Model
, Msg
, init
, projectsModified
, subscriptions
, update
, view
)

import Api
import Browser
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Request.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ module Request exposing
, getProjects
, renameProject
, setArrived
, setOffType
, setLeft
, setNotes
, setOffType
, setOffice
, setProject
)

import Api
import Api.HalfDay as HalfDay exposing (decoder)
import Api.OffDayType as OffDayType exposing (encoder)
import Api.Month.Extended as Month exposing (toString)
import Api.MonthWithDays as MonthWithDays exposing (decoder)
import Api.OffDayType as OffDayType exposing (encoder)
import Api.Project as Project exposing (decoder)
import Api.RenameArgs as RenameArgs exposing (decoder)
import Api.TimeInDay.Extended as TimeInDay exposing (toString)
Expand Down

0 comments on commit 8a95c5d

Please sign in to comment.