Fix elm-analyse issues

This commit is contained in:
Eike Kettner
2020-01-29 20:56:14 +01:00
parent bfd5bdb0c2
commit c504a3df42
33 changed files with 42 additions and 54 deletions

View File

@ -13,7 +13,7 @@ import Comp.PasswordInput
import Data.Flags exposing (Flags)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onClick, onInput)
import Html.Events exposing (onClick)
import Http
import Util.Http

View File

@ -16,7 +16,7 @@ module Comp.DatePicker exposing
import Date exposing (Date)
import DatePicker exposing (DateEvent, DatePicker, Settings)
import Html exposing (Html)
import Time exposing (Month(..), Posix, Zone, utc)
import Time exposing (Month(..), utc)
type alias Msg =

View File

@ -278,15 +278,6 @@ selectActive model =
model
clearActive : Model a -> Model a
clearActive model =
{ model | available = List.map (\e -> { e | active = False }) model.available }
-- TODO enhance update function to return this info
isDropdownChangeMsg : Msg a -> Bool
isDropdownChangeMsg cm =
case cm of

View File

@ -149,8 +149,8 @@ view values model =
]
[ text model.input
]
, renderMenu model
]
++ [ renderMenu model ]
)

View File

@ -9,7 +9,7 @@ module Comp.EmailSettingsManage exposing
import Api
import Api.Model.BasicResult exposing (BasicResult)
import Api.Model.EmailSettings exposing (EmailSettings)
import Api.Model.EmailSettings
import Api.Model.EmailSettingsList exposing (EmailSettingsList)
import Comp.EmailSettingsForm
import Comp.EmailSettingsTable

View File

@ -44,7 +44,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetEquipment t ->
( { model | equipment = t, name = t.name }, Cmd.none )

View File

@ -33,7 +33,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetEquipments list ->
( { model | equips = list, selected = Nothing }, Cmd.none )

View File

@ -818,7 +818,7 @@ update key flags next msg model =
in
( { model | sentMails = sm }, Cmd.none )
SentMailsResp (Err err) ->
SentMailsResp (Err _) ->
( model, Cmd.none )

View File

@ -65,7 +65,7 @@ openAllGroups model =
update : Flags -> Msg -> Model -> ( Model, Cmd Msg, Maybe ItemLight )
update flags msg model =
update _ msg model =
case msg of
SetResults list ->
let
@ -209,7 +209,7 @@ renderItemTable model items =
renderItemLine : Model -> ItemLight -> Html Msg
renderItemLine model item =
renderItemLine _ item =
let
dirIcon =
i [ class (Data.Direction.iconFromMaybe item.direction) ] []

View File

@ -108,7 +108,7 @@ update flags msg model =
ConnMsg m ->
let
( cm, _ ) =
--TODO dropdown doesn't use cmd!!
-- dropdown doesn't use cmd!!
Comp.Dropdown.update m model.connectionModel
in
( { model | connectionModel = cm }, Cmd.none, FormNone )

View File

@ -35,7 +35,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetOrgs list ->
( { model | equips = list, selected = Nothing }, Cmd.none )

View File

@ -35,7 +35,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetPersons list ->
( { model | equips = list, selected = Nothing }, Cmd.none )

View File

@ -1,4 +1,12 @@
module Comp.SentMails exposing (..)
module Comp.SentMails exposing
( Model
, Msg
, init
, initMails
, isEmpty
, update
, view
)
import Api.Model.SentMail exposing (SentMail)
import Html exposing (..)

View File

@ -58,7 +58,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg, Maybe CollectiveSettings )
update flags msg model =
update _ msg model =
case msg of
LangDropdownMsg m ->
let

View File

@ -74,7 +74,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetSource t ->
let

View File

@ -34,7 +34,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetSources list ->
( { model | sources = list, selected = Nothing }, Cmd.none )

View File

@ -47,7 +47,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetTag t ->
( { model | tag = t, name = t.name, category = t.category }, Cmd.none )

View File

@ -33,7 +33,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetTags list ->
( { model | tags = list, selected = Nothing }, Cmd.none )

View File

@ -91,7 +91,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetUser t ->
let

View File

@ -34,7 +34,7 @@ type Msg
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
update flags msg model =
update _ msg model =
case msg of
SetUsers list ->
( { model | users = list, selected = Nothing }, Cmd.none )