restructure the code, learning from spa-example-app

This commit is contained in:
2019-11-10 23:18:19 +01:00
parent eb29c5a24f
commit 5725d81236
7 changed files with 609 additions and 549 deletions

12
src/Session.elm Normal file
View File

@@ -0,0 +1,12 @@
module Session exposing (..)
import Browser.Navigation as Nav
type User
= Player Int
| Admin
type Model
= LoggedIn Nav.Key User
| LoggedOut Nav.Key