mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Initial application stub
This commit is contained in:
15
modules/webapp/src/main/elm/Page/Home/Data.elm
Normal file
15
modules/webapp/src/main/elm/Page/Home/Data.elm
Normal file
@ -0,0 +1,15 @@
|
||||
module Page.Home.Data exposing (..)
|
||||
|
||||
import Http
|
||||
|
||||
type alias Model =
|
||||
{
|
||||
}
|
||||
|
||||
emptyModel: Model
|
||||
emptyModel =
|
||||
{
|
||||
}
|
||||
|
||||
type Msg
|
||||
= Dummy
|
9
modules/webapp/src/main/elm/Page/Home/Update.elm
Normal file
9
modules/webapp/src/main/elm/Page/Home/Update.elm
Normal file
@ -0,0 +1,9 @@
|
||||
module Page.Home.Update exposing (update)
|
||||
|
||||
import Api
|
||||
import Data.Flags exposing (Flags)
|
||||
import Page.Home.Data exposing (..)
|
||||
|
||||
update: Flags -> Msg -> Model -> (Model, Cmd Msg)
|
||||
update flags msg model =
|
||||
(model, Cmd.none)
|
23
modules/webapp/src/main/elm/Page/Home/View.elm
Normal file
23
modules/webapp/src/main/elm/Page/Home/View.elm
Normal file
@ -0,0 +1,23 @@
|
||||
module Page.Home.View exposing (view)
|
||||
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (..)
|
||||
import Html.Events exposing (onClick)
|
||||
|
||||
import Page exposing (Page(..))
|
||||
import Page.Home.Data exposing (..)
|
||||
import Data.Flags
|
||||
|
||||
view: Model -> Html Msg
|
||||
view model =
|
||||
div [class "home-page ui fluid grid"]
|
||||
[div [class "three wide column"]
|
||||
[h3 [][text "Menu"]
|
||||
]
|
||||
,div [class "seven wide column", style "border-left" "1px solid"]
|
||||
[h3 [][text "List"]
|
||||
]
|
||||
,div [class "six wide column", style "border-left" "1px solid", style "height" "100vh"]
|
||||
[h3 [][text "DocView"]
|
||||
]
|
||||
]
|
Reference in New Issue
Block a user