diff options
author | Joris | 2017-03-26 21:10:42 +0200 |
---|---|---|
committer | Joris | 2017-03-26 21:10:42 +0200 |
commit | 1e47a7754ca38bd1a6c74765d8378caf68ce4619 (patch) | |
tree | d0d9238479dc2529a1b558bbbcde346e7e8c2935 /src/client/Msg.elm | |
parent | c0ac16a713c4e53cf6af8e72a6d5f6b8ac5d6456 (diff) |
Separate client and server watch
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 |