diff options
Diffstat (limited to 'src/client/Msg.elm')
-rw-r--r-- | src/client/Msg.elm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/client/Msg.elm b/src/client/Msg.elm new file mode 100644 index 0000000..cf592aa --- /dev/null +++ b/src/client/Msg.elm @@ -0,0 +1,48 @@ +module Msg exposing + ( Msg(..) + ) + +import Date exposing (Date) +import Time exposing (Time) + +import Page exposing (Page) + +import Model.Init exposing (Init) +import Model.Payment exposing (PaymentId, Frequency) +import Model.Income exposing (IncomeId) +import Model.Category exposing (CategoryId) + +import Dialog +import Dialog.Model as DialogModel +import Dialog.Msg as DialogMsg + +import Tooltip + +import SignIn.Msg as SignInMsg +import LoggedIn.Msg as LoggedInMsg + +type Msg = + NoOp + | UpdatePage Page + | SignIn String + | UpdateTime Time + | GoLoggedInView Init + | UpdateSignIn SignInMsg.Msg + | UpdateLoggedIn LoggedInMsg.Msg + | GoSignInView + | SignOut + | Error String + | Dialog (Dialog.Msg DialogModel.Model DialogMsg.Msg Msg) + | Tooltip Tooltip.Msg + + | CreatePayment String Int Date CategoryId Frequency + | EditPayment PaymentId String Int Date CategoryId Frequency + | DeletePayment PaymentId + + | CreateIncome Int Date + | EditIncome IncomeId Int Date + | DeleteIncome IncomeId + + | CreateCategory String String + | EditCategory CategoryId String String + | DeleteCategory CategoryId |