1module Shared exposing (Data, Model, Msg(..), SharedMsg(..), template)
3import BackendTask exposing (BackendTask)
4import Effect exposing (Effect)
5import Element exposing (layout)
6import FatalError exposing (FatalError)
7import Html exposing (Html)
9import Pages.PageUrl exposing (PageUrl)
10import Route exposing (Route)
11import SharedTemplate exposing (SharedTemplate)
12import UrlPath exposing (UrlPath)
13import View exposing (View)
16template : SharedTemplate Msg Model Data msg
22 , subscriptions = subscriptions
23 , onPageChange = Nothing
51 , query : Maybe String
52 , fragment : Maybe String
55 , pageUrl : Maybe PageUrl
57 -> ( Model, Effect Msg )
58init flags maybePagePath =
59 ( { showMenu = False }
64update : Msg -> Model -> ( Model, Effect Msg )
67 SharedMsg globalMsg ->
68 ( model, Effect.none )
71 ( { model | showMenu = not model.showMenu }, Effect.none )
74subscriptions : UrlPath -> Model -> Sub Msg
79data : BackendTask FatalError Data
81 BackendTask.succeed ()
93 -> { body : List (Html msg), title : String }
94view sharedData page model toMsg pageView =
95 { body = [ layout [] pageView.body ]
96 , title = pageView.title
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list