Remove unecessary bunyan, add back lodash
This commit is contained in:
parent
02c5195d9c
commit
d5823d78cf
2 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
import template from 'lodash.template'
|
import _ from 'lodash'
|
||||||
|
|
||||||
export const active = { }
|
export const active = { }
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ function getSocket(ctx, all) {
|
||||||
* Display a specific graphic content
|
* Display a specific graphic content
|
||||||
*/
|
*/
|
||||||
export async function display(ctx, data) {
|
export async function display(ctx, data) {
|
||||||
let compiled = template(data.graphic.settings.html)
|
let compiled = _.template(data.graphic.settings.html)
|
||||||
let html = compiled(data.data)
|
let html = compiled(data.data)
|
||||||
|
|
||||||
// let old = await Content.getSingle(data.graphic.name)
|
// let old = await Content.getSingle(data.graphic.name)
|
||||||
|
@ -68,7 +68,7 @@ function generateDisplayText(item) {
|
||||||
// return `${item.data.text} - ${item.data.finished}`
|
// return `${item.data.text} - ${item.data.finished}`
|
||||||
// }
|
// }
|
||||||
try {
|
try {
|
||||||
return template(item.graphic.settings.main)(item.data)
|
return _.template(item.graphic.settings.main)(item.data)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return `Error creating display: ${e.message}`
|
return `Error creating display: ${e.message}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,10 +34,9 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/nfp-projects/caspar-sup#readme",
|
"homepage": "https://github.com/nfp-projects/caspar-sup#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bunyan": "^1.8.12",
|
|
||||||
"bunyan-lite": "^1.0.1",
|
"bunyan-lite": "^1.0.1",
|
||||||
"casparcg-connection": "4.9.0",
|
"casparcg-connection": "4.9.0",
|
||||||
"lodash.template": "^4.5.0",
|
"lodash": "^4.5.0",
|
||||||
"lowdb": "^1.0.0",
|
"lowdb": "^1.0.0",
|
||||||
"nconf": "^0.9.1",
|
"nconf": "^0.9.1",
|
||||||
"node-static": "^0.7.11",
|
"node-static": "^0.7.11",
|
||||||
|
|
Loading…
Reference in a new issue