Add RSS plugin (#192)

This commit is contained in:
Simon Lecoq
2021-03-21 12:14:05 +01:00
committed by GitHub
parent 3df4159026
commit 30fb3b4a41
14 changed files with 234 additions and 2 deletions

View File

@@ -230,6 +230,18 @@
favorites:distribution(7).map((value, index, array) => ({name:faker.lorem.word(), color:faker.internet.color(), value, size:faker.random.number(1000000), x:array.slice(0, index).reduce((a, b) => a + b, 0)}))
}
}) : null),
//Languages
...(set.plugins.enabled.rss ? ({
rss:{
source:faker.lorem.words(),
description:faker.lorem.paragraph(),
link:options["rss.source"],
feed:new Array(Number(options["rss.limit"])).fill(null).map(_ => ({
title:faker.lorem.sentence(),
date:faker.date.recent()
})),
}
}) : null),
//Habits
...(set.plugins.enabled.habits ? ({
habits:{