Add config_display option to support regular and large renders (#310)
This commit is contained in:
@@ -26,7 +26,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
|
||||
//Initialization
|
||||
const pending = []
|
||||
const {queries} = conf
|
||||
const data = {animated:true, base:{}, config:{}, errors:[], plugins:{}, computed:{}}
|
||||
const data = {animated:true, large:false, base:{}, config:{}, errors:[], plugins:{}, computed:{}}
|
||||
const imports = {
|
||||
plugins:Plugins,
|
||||
templates:Templates,
|
||||
|
||||
@@ -51,9 +51,11 @@
|
||||
return await ejs.render(partial, data, { async: true, rmWhitespace: true })
|
||||
},
|
||||
//Meta-data
|
||||
meta: { version: set.version, author: "lowlighter" },
|
||||
meta: { version: set.version, author: "lowlighter", generated:new Date().toGMTString().replace(/GMT$/g, "").trim() },
|
||||
//Animated
|
||||
animated: false,
|
||||
//Display size
|
||||
large: set.config.display === "large",
|
||||
//Config
|
||||
config: set.config,
|
||||
//Base elements
|
||||
|
||||
Reference in New Issue
Block a user