1module Shared exposing (Data, Model, Msg(..), SharedMsg(..), template)
3import BackendTask exposing (BackendTask)
4import Effect exposing (Effect)
5import Element exposing (..)
6import Element.Background as Background
7import FatalError exposing (FatalError)
8import Html exposing (Html)
9import Html.Attributes as Attributes
11import Pages.PageUrl exposing (PageUrl)
12import Route exposing (Route)
13import SharedTemplate exposing (SharedTemplate)
14import UrlPath exposing (UrlPath)
15import View exposing (View)
18template : SharedTemplate Msg Model Data msg
24 , subscriptions = subscriptions
25 , onPageChange = Nothing
53 , query : Maybe String
54 , fragment : Maybe String
57 , pageUrl : Maybe PageUrl
59 -> ( Model, Effect Msg )
60init flags maybePagePath =
61 ( { showMenu = False }
66update : Msg -> Model -> ( Model, Effect Msg )
69 SharedMsg globalMsg ->
70 ( model, Effect.none )
73 ( { model | showMenu = not model.showMenu }, Effect.none )
76subscriptions : UrlPath -> Model -> Sub Msg
81data : BackendTask FatalError Data
83 BackendTask.succeed ()
95 -> { body : List (Html msg), title : String }
96view sharedData page model toMsg pageView =
100 [ Attributes.src "https://mc.yandex.ru/watch/99382050"
101 , Attributes.style "position" "absolute"
102 , Attributes.style "left" "-9999px;"
107 , layout [ Background.color (rgb255 243 243 243) ] pageView.body
109 , 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