Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning up the static folder #41

Merged
merged 2 commits into from
Oct 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
11 changes: 3 additions & 8 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 All @@ -16,9 +16,7 @@
{% block content_fluid %}
<div class="dashboard">
<div class="title">
<div class="row">
<div class="col-md-1 text-left"></div>
<div class="col-md-10 text-middle">
<div class="text-middle">
<h2>
{{ dashboard.dashboard_title }}
<div class="btn-group pull-right" role="group" >
Expand All @@ -31,9 +29,6 @@ <h2>
</div>
</h2>
</div>
<div class="col-md-1 text-right">
</div>
</div>
</div>
<div class="gridster content_fluid">
<ul>
Expand Down Expand Up @@ -83,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