Skip to content

Commit

Permalink
Latest vega.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Sep 28, 2019
1 parent 89bc383 commit 3268b1b
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 38 deletions.
4 changes: 4 additions & 0 deletions snakemake/report/__init__.py
Expand Up @@ -378,6 +378,10 @@ def is_text(self):
@property
def is_table(self):
return self.mime in {"text/csv", "text/tab-separated-values"}

@property
def is_vega(self):
return self.mime == "application/json" and self.path.endswith(".vl.json") or self.path.endswith(".vg.json")

@property
def icon(self):
Expand Down
6 changes: 3 additions & 3 deletions snakemake/report/report.html
Expand Up @@ -489,9 +489,9 @@ <h2 id="rules">Rules</h2>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/js/bootstrap.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega/5.4.0/vega.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega-lite/3.3.0/vega-lite.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega-embed/4.2.1/vega-embed.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega/5.6.0/vega.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega-lite/3.4.0/vega-lite.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/vega-embed/5.1.3/vega-embed.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.7.3/feather.min.js"|get_resource_as_string }}</script>
<script>{{ "https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js"|get_resource_as_string }}</script>
<script>{{ "https://raw.githubusercontent.com/eligrey/FileSaver.js/2.0.0/src/FileSaver.js"|get_resource_as_string }}</script>
Expand Down
140 changes: 105 additions & 35 deletions tests/test_report/expected-results/report.html

Large diffs are not rendered by default.

0 comments on commit 3268b1b

Please sign in to comment.