1module Shared exposing (Data, Model, Msg(..), SharedMsg(..), template)
3import Browser.Navigation
5import Element exposing (..)
6import Element.Background as Background
7import Element.Font as Font
8import Html exposing (Html)
10import Pages.PageUrl exposing (PageUrl)
11import Path exposing (Path)
12import Route exposing (Route)
13import SharedTemplate exposing (SharedTemplate)
14import View exposing (View)
17template : SharedTemplate Msg Model Data msg
23 , subscriptions = subscriptions
24 , onPageChange = Just OnPageChange
31 , query : Maybe String
32 , fragment : Maybe String
50 Maybe Browser.Navigation.Key
56 , query : Maybe String
57 , fragment : Maybe String
60 , pageUrl : Maybe PageUrl
63init navigationKey flags maybePagePath =
69update : Msg -> Model -> ( Model, Cmd Msg )
75 SharedMsg globalMsg ->
79subscriptions : Path -> Model -> Sub Msg
84data : DataSource.DataSource Data
98 -> { body : Html msg, title : String }
99view sharedData page model toMsg pageView =
103 , Background.color (rgb 0 0 0)
104 , Font.color (rgb 0 1 0)
107 (image [ height (px 700), alignRight ]
108 { src = "x230.png", description = "Exploded Thinkpad X230" }
111 (el [ width (maximum 800 fill), centerX ] pageView.body)
112 , 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