feat(app/metrics): add extras_js support (#798)

This commit is contained in:
Simon Lecoq
2022-01-21 05:16:19 +01:00
committed by GitHub
parent ce19ceb715
commit 4571a89b57
4 changed files with 33 additions and 6 deletions

View File

@@ -175,6 +175,19 @@ inputs:
type: string
default: ""
extras_js:
extras: yes
description: |
Extra JavaScript
Custom JavaScript that will be executed during puppeteer rendering.
Useful to avoid creating a new template just to tweak some content.
Note that is it executed within puppeteer context and **not** *metrics* context.
It is run after transformations and optimizations, but just before resizing.
type: string
default: ""
config_timezone:
description: |
Timezone for dates