mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
69 lines
900 B
Elm
69 lines
900 B
Elm
![]() |
module Pages.Services.Nix exposing (Model, Msg, page)
|
||
|
|
||
|
import Effect exposing (Effect)
|
||
|
import Route exposing (Route)
|
||
|
import Html
|
||
|
import Page exposing (Page)
|
||
|
import Shared
|
||
|
import View exposing (View)
|
||
|
|
||
|
|
||
|
page : Shared.Model -> Route () -> Page Model Msg
|
||
|
page shared route =
|
||
|
Page.new
|
||
|
{ init = init
|
||
|
, update = update
|
||
|
, subscriptions = subscriptions
|
||
|
, view = view
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
-- INIT
|
||
|
|
||
|
|
||
|
type alias Model =
|
||
|
{}
|
||
|
|
||
|
|
||
|
init : () -> ( Model, Effect Msg )
|
||
|
init () =
|
||
|
( {}
|
||
|
, Effect.none
|
||
|
)
|
||
|
|
||
|
|
||
|
|
||
|
-- UPDATE
|
||
|
|
||
|
|
||
|
type Msg
|
||
|
= NoOp
|
||
|
|
||
|
|
||
|
update : Msg -> Model -> ( Model, Effect Msg )
|
||
|
update msg model =
|
||
|
case msg of
|
||
|
NoOp ->
|
||
|
( model
|
||
|
, Effect.none
|
||
|
)
|
||
|
|
||
|
|
||
|
|
||
|
-- SUBSCRIPTIONS
|
||
|
|
||
|
|
||
|
subscriptions : Model -> Sub Msg
|
||
|
subscriptions model =
|
||
|
Sub.none
|
||
|
|
||
|
|
||
|
|
||
|
-- VIEW
|
||
|
|
||
|
|
||
|
view : Model -> View Msg
|
||
|
view model =
|
||
|
View.fromString "Pages.Services.Nix"
|