Commit 471e681a authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Add SRI for vega scripts

parent 9b3fe216
<!DOCTYPE html>
<title>GWCelery task times</title>
<div id="vis"></div>
<script src="https://cdn.jsdelivr.net/npm/vega"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/5.7.0/vega.min.js" integrity="sha256-PQIT4+snOH5mk7iwAQGYticYRaX7bB29LquVUQ0dfnY=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/3.4.0/vega-lite.min.js" integrity="sha256-ro+FWr16NboXJ5rSwInNli1P16ObUXnWUJMgKc8KnHI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/5.1.3/vega-embed.min.js" integrity="sha256-UbNbFcw0lpFXNoOZFgV/0jmJyVuSdnXgzzNfePpjNYA=" crossorigin="anonymous"></script>
<script type="text/javascript">
(async() => {
const resp = await fetch('/flower/api/tasks');
const json = await resp.json();
const data = Object.values(json);
const spec = {
$schema: 'https://vega.github.io/schema/vega-lite/v4.0.json',
$schema: 'https://vega.github.io/schema/vega-lite/v3.4.json',
width: 600,
title: 'gwcelery task times',
data: {values: data},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment