1import { fetchEventSource } from "/fetch-event-source.js"
3const uid = `${Math.floor(Date.now() / 1000)}-${Math.random()}`;
5function searchForInit(obj) {
10 if (obj.hasOwnProperty(key)) {
11 const result = searchForInit(obj[key]);
20let app = searchForInit(Elm)({ node: document.getElementById("elm"), flags: { uid } });
22app.ports.createEventSource.subscribe((url) => {
23 fetchEventSource(url, {
25 Accept: 'application/x-urb-jam',
26 "x-channel-format": 'application/x-urb-jam',
27 "content-type": 'application/x-urb-jam'
29 credentials: 'include',
30 responseTimeout: 25000,
34 app.ports.onEventSourceMessage.send({ message: ev.data });
38 app.ports.onEventSourceMessage.send({ error: err });
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