New options for source views & faster rendering

This commit is contained in:
2024-01-10 17:55:07 -05:00
parent 4053d57438
commit 7affc50925
2 changed files with 62 additions and 21 deletions

View File

@@ -1,14 +1,23 @@
const pageSize = 20
const courtesyWait = 1000 * 1
const tooLongAgo = 7 * 4 // Days
const courtesyWait = 1000 * 10
const linkToIndex = false
const pageSize = 20
const printDate = date =>
(date.getMonth() + 1) + '.' + date.getDate() + '.' + date.getFullYear()
const view = {
tooLongAgo: 7 * 4, // Days
pageSize
}
const sourceView = {
pageSize
}
const feeds = {
main: {
main: true,
view,
nitter: [],
tumblr: [
'dakedres'
@@ -99,9 +108,8 @@ const sources = {
module.exports = {
feeds,
sources,
pageSize,
courtesyWait,
tooLongAgo,
linkToIndex,
sourceView,
printDate
}
}