lint fixes
This commit is contained in:
parent
9411490780
commit
5adc975bef
|
@ -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-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-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-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'}
|
||||||
]
|
]
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
"URLSearchParams",
|
"URLSearchParams",
|
||||||
"IntersectionObserver",
|
"IntersectionObserver",
|
||||||
"URL",
|
"URL",
|
||||||
|
"Event",
|
||||||
|
"history",
|
||||||
|
"performance",
|
||||||
"self",
|
"self",
|
||||||
"caches",
|
"caches",
|
||||||
"__routes__",
|
"__routes__",
|
||||||
|
|
|
@ -89,9 +89,9 @@ async function getStatusTimeline (instanceName, timeline, maxId, limit) {
|
||||||
// Status threads are a special case - these are in forward chronological order
|
// Status threads are a special case - these are in forward chronological order
|
||||||
// and we fetch them all at once instead of paginating.
|
// and we fetch them all at once instead of paginating.
|
||||||
let isStatusThread = timeline.startsWith('status/')
|
let isStatusThread = timeline.startsWith('status/')
|
||||||
let getReq = isStatusThread ?
|
let getReq = isStatusThread
|
||||||
timelineStore.getAll(createKeyRangeForStatusThread(timeline)) :
|
? timelineStore.getAll(createKeyRangeForStatusThread(timeline))
|
||||||
timelineStore.getAll(createTimelineKeyRange(timeline, maxId), limit)
|
: timelineStore.getAll(createTimelineKeyRange(timeline, maxId), limit)
|
||||||
|
|
||||||
getReq.onsuccess = e => {
|
getReq.onsuccess = e => {
|
||||||
let timelineResults = e.target.result
|
let timelineResults = e.target.result
|
||||||
|
|
|
@ -3,7 +3,6 @@ function computeForTimeline(store, key) {
|
||||||
store.compute(key, ['currentTimelineData'], (currentTimelineData) => currentTimelineData[key])
|
store.compute(key, ['currentTimelineData'], (currentTimelineData) => currentTimelineData[key])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function timelineComputations (store) {
|
export function timelineComputations (store) {
|
||||||
store.compute('currentTimelineData', ['currentInstance', 'currentTimeline', 'timelines'],
|
store.compute('currentTimelineData', ['currentInstance', 'currentTimeline', 'timelines'],
|
||||||
(currentInstance, currentTimeline, timelines) => {
|
(currentInstance, currentTimeline, timelines) => {
|
||||||
|
|
Loading…
Reference in New Issue