3function Hallway (sites) {
6 this.el = document.createElement('div')
8 this.install = function (host) {
9 host.appendChild(this.el)
14 this.start = function () {
15 this.el.innerHTML = 'hello'
17 // this.fetch('https://wiki.xxiivv.com/twtxt.txt')
20 this.refresh = function () {
26 this.findFeeds = function () {
27 console.log('Finding feeds..')
28 for (const id in sites) {
29 const site = sites[id]
30 if (site.feed && site.author) {
31 feeds[site.author] = { path: site.feed }
34 console.log(`Found ${Object.keys(feeds).length} feeds.`)
37 this.fetchFeeds = function () {
38 console.log(`Fetching ${Object.keys(feeds).length} feeds..`)
39 for (const id in feeds) {
40 this.fetchFeed(id, feeds[id])
44 this.fetchFeed = function (id, feed) {
45 console.log(`Fetching ${id}(${feed.path})..`)
46 Promise.all([ fetch(feed.path).then(x => x.text()) ]).then(([content]) => {
47 feeds[id].content = content
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