Skip to content

Commit

Permalink
Cleaning up the static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 5, 2015
1 parent c9b7c5d commit 2bb2992
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 15 deletions.
7 changes: 6 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
List of TODO items for Panoramix

## Improvments
* Reintroduce query and stopwatch
* [druid] Allow for post aggregations (ratios!)
* [sql] find a way to manage time granularity
* [sql] support arbitrary expression as column
Expand All @@ -11,6 +10,12 @@ List of TODO items for Panoramix
* csv export out of table view
* in/notin filters autocomplete

## Better Javascript enables
* Async on Druidify! in exploration page
* Async form reload onchange of viz_type dropdown
* Reintroduce query and stopwatch
* Fix resize / refresh

## New Features
* Annotations layers
* Add a per-datasource permission
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions panoramix/templates/panoramix/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% for css in dashboard.css_files %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename=css) }}">
{% endfor %}
<link rel="stylesheet" href="{{ url_for('static', filename="jquery.gridster.min.css") }}">
<link rel="stylesheet" href="{{ url_for('static', filename="lib/gridster/jquery.gridster.min.css") }}">
{% for slice in dashboard.slices %}
{% set viz = slice.viz %}
{% import viz.template as viz_macros %}
Expand Down Expand Up @@ -78,7 +78,7 @@ <h2>
{% for js in dashboard.js_files %}
<script src="{{ url_for('static', filename=js) }}"></script>
{% endfor %}
<script src="/static/jquery.gridster.with-extras.min.js"></script>
<script src="/static/lib/gridster/jquery.gridster.with-extras.min.js"></script>
<script>
$(document).ready(initializeDashboardView);
</script>
Expand Down
2 changes: 1 addition & 1 deletion panoramix/templates/panoramix/viz_bignumber.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro viz_html(viz) %}
<div id="{{ viz.token }}" class="viz_bignumber" style="height: 100%;">
<img src="{{ url_for("static", filename="loading.gif") }}" class="loading">
<img src="{{ url_for("static", filename="img/loading.gif") }}" class="loading">
</div>
{% endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion panoramix/templates/panoramix/viz_nvd3.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro viz_html(viz) %}
<div id="{{ viz.token }}" style="height:100%; width: 100%">
<img src="{{ url_for("static", filename="loading.gif") }}" class="loading">
<img src="{{ url_for("static", filename="img/loading.gif") }}" class="loading">
<div class="chart with-3d-shadow with-transitions" style="height:100%; width: 100%"></div>
</div>
{% endmacro %}
Expand Down
2 changes: 1 addition & 1 deletion panoramix/templates/panoramix/viz_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</table>
{% else %}
<div id="{{ viz.token }}" style="display: none;overflow: auto; height: 100%;"></div>
<img src="{{ url_for("static", filename="loading.gif") }}" class="loading">
<img src="{{ url_for("static", filename="img/loading.gif") }}" class="loading">
{% endif %}
{% endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion panoramix/templates/panoramix/viz_word_cloud.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro viz_html(viz) %}
<div id="{{ viz.token }}" style="height: 100%;">
<img src="{{ url_for("static", filename="loading.gif") }}" class="loading">
<img src="{{ url_for("static", filename="img/loading.gif") }}" class="loading">
</div>
{% endmacro %}

Expand Down
18 changes: 10 additions & 8 deletions panoramix/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ class TableViz(BaseViz):
verbose_name = "Table View"
template = 'panoramix/viz_table.html'
form_fields = BaseViz.form_fields + ['row_limit']
css_files = ['dataTables.bootstrap.css']
js_files = ['jquery.dataTables.min.js', 'dataTables.bootstrap.js']
css_files = ['lib/dataTables/dataTables.bootstrap.css']
js_files = [
'lib/dataTables/jquery.dataTables.min.js',
'lib/dataTables/dataTables.bootstrap.js']

def query_obj(self):
d = super(TableViz, self).query_obj()
Expand Down Expand Up @@ -236,8 +238,8 @@ class WordCloudViz(BaseViz):
'rotation',
]
js_files = [
'd3.min.js',
'd3.layout.cloud.js',
'lib/d3.min.js',
'lib/d3.layout.cloud.js',
'widgets/viz_wordcloud.js',
]

Expand All @@ -262,12 +264,12 @@ class NVD3Viz(BaseViz):
verbose_name = "Base NVD3 Viz"
template = 'panoramix/viz_nvd3.html'
js_files = [
'd3.min.js',
'nv.d3.min.js',
'lib/d3.min.js',
'lib/nvd3/nv.d3.min.js',
'widgets/viz_nvd3.js',
]
css_files = [
'nv.d3.css',
'lib/nvd3/nv.d3.css',
'widgets/viz_nvd3.css',
]

Expand Down Expand Up @@ -340,7 +342,7 @@ class BigNumberViz(BaseViz):
verbose_name = "Big Number"
template = 'panoramix/viz_bignumber.html'
js_files = [
'd3.min.js',
'lib/d3.min.js',
'widgets/viz_bignumber.js',
]
css_files = [
Expand Down

0 comments on commit 2bb2992

Please sign in to comment.