New options for source views & faster rendering
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user