Uh oh!
There was an error while loading. Please reload this page.
New asset commands - #36
Conversation
There's no reason why we need to have JSON style input. It would make more sense to set these like you would with say environment variables in Docker (e.g. |
…ommand can be used more than once to pass multiple headers.
sergey-borovkov
commented
Dec 29, 2022
Done though without short |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Resolve Dependabot alert Screenly#36 (GHSA-7gcf-g7xr-8hxj). Lockfile-only bump within the existing ^3.8.3 range; the advisory panic is in KeyValueMap, which this crate does not use, but the alert requires >= 3.21.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
What does this PR do?
Supports
inject-jsandset-headerscommands for web assets.Inject-js allows setting JS injection code for web assets. Injected code will be executed during playback on the device once the asset is loaded.
set-headers similarly works on web assets setting values of custom HTTP headers.
Usage is a bit awkward but I did not come up with better syntax:
screenly asset set-headers 01FJVFP0QVD1E5TA70SA66AJPF --header k=v --header k2=v2Also adds
basic-authcommand that allows setting the basic auth header by accepting username and password.GitHub issue or Phabricator ticket number?
T6482
How has this been tested?
New unit tests + manual use.
Checklist before merging