Cleaning up the static folder

This commit is contained in:
Maxime Beauchemin
2015-10-04 19:36:38 -07:00
parent c9b7c5daa8
commit 2bb299225a
21 changed files with 22 additions and 15 deletions

View File

@@ -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
@@ -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

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -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 %}
@@ -78,7 +78,7 @@
{% 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>

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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()
@@ -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',
]
@@ -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',
]
@@ -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 = [