Feat plugin stock (#196)
This commit is contained in:
@@ -230,7 +230,7 @@
|
||||
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
|
||||
//RSS
|
||||
...(set.plugins.enabled.rss ? ({
|
||||
rss:{
|
||||
source:faker.lorem.words(),
|
||||
@@ -242,6 +242,20 @@
|
||||
})),
|
||||
}
|
||||
}) : null),
|
||||
//Stock price
|
||||
...(set.plugins.enabled.stock ? ({
|
||||
stock:{
|
||||
chart:"(stock chart is not displayed in placeholder)",
|
||||
currency:"USD",
|
||||
price:faker.random.number(10000)/100,
|
||||
previous:faker.random.number(10000)/100,
|
||||
get delta() { return this.price-this.previous },
|
||||
symbol:options["stock.symbol"],
|
||||
company:faker.company.companyName(),
|
||||
interval:options["stock.interval"],
|
||||
duration:options["stock.duration"],
|
||||
}
|
||||
}) : null),
|
||||
//Habits
|
||||
...(set.plugins.enabled.habits ? ({
|
||||
habits:{
|
||||
|
||||
Reference in New Issue
Block a user