mirror of
https://github.com/ryannhg/elm-spa.git
synced 2024-11-22 09:44:55 +03:00
reminder to add support for nested things
This commit is contained in:
parent
377f81c79f
commit
6ddddf3187
27
example/src/Pages/Settings.elm
Normal file
27
example/src/Pages/Settings.elm
Normal file
@ -0,0 +1,27 @@
|
||||
module Pages.Settings exposing (Model, Msg)
|
||||
|
||||
import Pages.Settings.Account as Account
|
||||
import Pages.Settings.Notifications as Notifications
|
||||
import Pages.Settings.User as User
|
||||
|
||||
|
||||
|
||||
-- TODO : Export Application.layout or something for scaling this trash
|
||||
|
||||
|
||||
type Route
|
||||
= Account
|
||||
| Notifications
|
||||
| User
|
||||
|
||||
|
||||
type Model
|
||||
= AccountModel Account.Model
|
||||
| NotificationsModel Notifications.Model
|
||||
| UserModel User.Model
|
||||
|
||||
|
||||
type Msg
|
||||
= AccountMsg Account.Msg
|
||||
| NotificationsMsg Notifications.Msg
|
||||
| UserMsg User.Msg
|
9
example/src/Pages/Settings/Account.elm
Normal file
9
example/src/Pages/Settings/Account.elm
Normal file
@ -0,0 +1,9 @@
|
||||
module Pages.Settings.Account exposing (Model, Msg)
|
||||
|
||||
|
||||
type Model
|
||||
= Model
|
||||
|
||||
|
||||
type Msg
|
||||
= Msg
|
9
example/src/Pages/Settings/Notifications.elm
Normal file
9
example/src/Pages/Settings/Notifications.elm
Normal file
@ -0,0 +1,9 @@
|
||||
module Pages.Settings.Notifications exposing (Model, Msg)
|
||||
|
||||
|
||||
type Model
|
||||
= Model
|
||||
|
||||
|
||||
type Msg
|
||||
= Msg
|
9
example/src/Pages/Settings/User.elm
Normal file
9
example/src/Pages/Settings/User.elm
Normal file
@ -0,0 +1,9 @@
|
||||
module Pages.Settings.User exposing (Model, Msg)
|
||||
|
||||
|
||||
type Model
|
||||
= Model
|
||||
|
||||
|
||||
type Msg
|
||||
= Msg
|
Loading…
Reference in New Issue
Block a user