mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-15 15:49:33 +00:00
This drops fomantic-ui as css toolkit and introduces tailwindcss. With tailwind there are no predefined components, but it's very easy to create those. So customizing the look&feel is much simpler, most of the time no additional css is needed. This requires a complete rewrite of the markup + styles. Luckily all logic can be kept as is. The now old ui is not removed, it is still available by using a request header `Docspell-Ui` with a value of `1` for the old ui and `2` for the new ui. Another addition is "dev mode", where docspell serves assets with a no-cache header, to disable browser caching. This makes developing a lot easier.
43 lines
896 B
Elm
43 lines
896 B
Elm
module Comp.ItemDetail exposing
|
|
( Model
|
|
, emptyModel
|
|
, update
|
|
, view
|
|
, view2
|
|
)
|
|
|
|
import Browser.Navigation as Nav
|
|
import Comp.ItemDetail.Model exposing (Msg(..), UpdateResult)
|
|
import Comp.ItemDetail.Update
|
|
import Comp.ItemDetail.View
|
|
import Comp.ItemDetail.View2
|
|
import Data.Flags exposing (Flags)
|
|
import Data.ItemNav exposing (ItemNav)
|
|
import Data.UiSettings exposing (UiSettings)
|
|
import Html exposing (..)
|
|
import Page exposing (Page(..))
|
|
|
|
|
|
type alias Model =
|
|
Comp.ItemDetail.Model.Model
|
|
|
|
|
|
emptyModel : Model
|
|
emptyModel =
|
|
Comp.ItemDetail.Model.emptyModel
|
|
|
|
|
|
update : Nav.Key -> Flags -> ItemNav -> UiSettings -> Msg -> Model -> UpdateResult
|
|
update =
|
|
Comp.ItemDetail.Update.update
|
|
|
|
|
|
view : ItemNav -> UiSettings -> Model -> Html Msg
|
|
view =
|
|
Comp.ItemDetail.View.view
|
|
|
|
|
|
view2 : ItemNav -> UiSettings -> Model -> Html Msg
|
|
view2 =
|
|
Comp.ItemDetail.View2.view
|