lint fixes

This commit is contained in:
Nolan Lawson 2018-02-11 09:37:13 -08:00
parent 9411490780
commit 5adc975bef
11 changed files with 34 additions and 32 deletions

View File

@ -24,5 +24,5 @@ module.exports = [
{id: 'fa-thumb-tack', src: 'node_modules/font-awesome-svg-png/white/svg/thumb-tack.svg', title: 'Thumbtack'},
{id: 'fa-bars', src: 'node_modules/font-awesome-svg-png/white/svg/bars.svg', title: 'List'},
{id: 'fa-volume-off', src: 'node_modules/font-awesome-svg-png/white/svg/volume-off.svg', title: 'Volume off'},
{id: 'fa-ban', src: 'node_modules/font-awesome-svg-png/white/svg/ban.svg', title: 'Ban'},
{id: 'fa-ban', src: 'node_modules/font-awesome-svg-png/white/svg/ban.svg', title: 'Ban'}
]

View File

@ -78,6 +78,9 @@
"URLSearchParams",
"IntersectionObserver",
"URL",
"Event",
"history",
"performance",
"self",
"caches",
"__routes__",

View File

@ -89,9 +89,9 @@ async function getStatusTimeline (instanceName, timeline, maxId, limit) {
// Status threads are a special case - these are in forward chronological order
// and we fetch them all at once instead of paginating.
let isStatusThread = timeline.startsWith('status/')
let getReq = isStatusThread ?
timelineStore.getAll(createKeyRangeForStatusThread(timeline)) :
timelineStore.getAll(createTimelineKeyRange(timeline, maxId), limit)
let getReq = isStatusThread
? timelineStore.getAll(createKeyRangeForStatusThread(timeline))
: timelineStore.getAll(createTimelineKeyRange(timeline, maxId), limit)
getReq.onsuccess = e => {
let timelineResults = e.target.result

View File

@ -3,7 +3,6 @@ function computeForTimeline(store, key) {
store.compute(key, ['currentTimelineData'], (currentTimelineData) => currentTimelineData[key])
}
export function timelineComputations (store) {
store.compute('currentTimelineData', ['currentInstance', 'currentTimeline', 'timelines'],
(currentInstance, currentTimeline, timelines) => {