diff --git a/MANIFEST.in b/MANIFEST.in index 9941af47a18a6..9480b5027678f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,8 @@ recursive-include panoramix/templates * recursive-include panoramix/static * +recursive-exclude panoramix/static/assets/node_modules * +recursive-include panoramix/static/assets/node_modules/font-awesome * +recursive-exclude panoramix/static/docs * +recursive-exclude tests * recursive-include panoramix/data * recursive-include panoramix/migrations * diff --git a/panoramix/assets/javascripts/dashboard.js b/panoramix/assets/javascripts/dashboard.js index 1b07df00a239d..977296a4958ca 100644 --- a/panoramix/assets/javascripts/dashboard.js +++ b/panoramix/assets/javascripts/dashboard.js @@ -9,6 +9,7 @@ require('brace/mode/css'); require('brace/theme/crimson_editor'); require('./panoramix-select2.js'); +require('../node_modules/gridster/dist/jquery.gridster.min.css'); require('../node_modules/gridster/dist/jquery.gridster.min.js'); var Dashboard = function (dashboardData) { diff --git a/panoramix/assets/javascripts/explore.js b/panoramix/assets/javascripts/explore.js index b5dc19281be03..74025c0802aa2 100644 --- a/panoramix/assets/javascripts/explore.js +++ b/panoramix/assets/javascripts/explore.js @@ -14,7 +14,6 @@ require('bootstrap'); require('./panoramix-select2.js'); require('../node_modules/bootstrap-toggle/js/bootstrap-toggle.min.js'); -require('../vendor/select2.sortable.js'); // css require('../vendor/pygments.css'); diff --git a/panoramix/assets/javascripts/featured.js b/panoramix/assets/javascripts/featured.js index 8f7b1414e4d3a..688702c894212 100644 --- a/panoramix/assets/javascripts/featured.js +++ b/panoramix/assets/javascripts/featured.js @@ -1,7 +1,9 @@ var $ = window.$ = require('jquery'); var jQuery = window.jQuery = $; +var px = require('./modules/panoramix.js'); + require('datatables'); -require('datatables-bootstrap3-plugin'); +require('../node_modules/datatables-bootstrap3-plugin/media/css/datatables-bootstrap3.css') require('bootstrap'); $(document).ready(function () { diff --git a/panoramix/assets/javascripts/modules/panoramix.js b/panoramix/assets/javascripts/modules/panoramix.js index ad64a680d232e..dff34242b4ce9 100644 --- a/panoramix/assets/javascripts/modules/panoramix.js +++ b/panoramix/assets/javascripts/modules/panoramix.js @@ -2,6 +2,8 @@ var $ = require('jquery'); var jQuery = $; var d3 = require('d3'); +require('../../stylesheets/panoramix.css'); + // vis sources var sourceMap = { area: 'nvd3_vis.js', diff --git a/panoramix/assets/javascripts/panoramix-select2.js b/panoramix/assets/javascripts/panoramix-select2.js index 6be060500f022..2118c9b55adbe 100644 --- a/panoramix/assets/javascripts/panoramix-select2.js +++ b/panoramix/assets/javascripts/panoramix-select2.js @@ -1,2 +1,5 @@ +require('../node_modules/select2/select2.css'); require('../node_modules/select2-bootstrap-css/select2-bootstrap.min.css'); +require('../node_modules/jquery-ui/themes/base/jquery-ui.css') require('select2'); +require('../vendor/select2.sortable.js'); diff --git a/panoramix/assets/stylesheets/panoramix.css b/panoramix/assets/stylesheets/panoramix.css index 6c58a1dd35655..35f2ce07331ed 100644 --- a/panoramix/assets/stylesheets/panoramix.css +++ b/panoramix/assets/stylesheets/panoramix.css @@ -220,9 +220,6 @@ img.loading { font-size: 14px; padding: 5px; } -.dashboard div.gridster { - visibility: hidden -} .dashboard div.slice_content { width: 100%; height: 100%; diff --git a/panoramix/assets/webpack.config.js b/panoramix/assets/webpack.config.js index abce0283df9d8..465a04e1c8ac8 100644 --- a/panoramix/assets/webpack.config.js +++ b/panoramix/assets/webpack.config.js @@ -30,9 +30,14 @@ var config = { include: APP_DIR, loader: "style-loader!css-loader" }, - /* for require('*.less') */ + /* for css linking images */ + { test: /\.png$/, loader: "url-loader?limit=100000" }, + { test: /\.jpg$/, loader: "file-loader" }, + { test: /\.gif$/, loader: "file-loader" }, + /* for font-awesome */ { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }, + /* for require('*.less') */ { test: /\.less$/, include: APP_DIR, diff --git a/panoramix/templates/panoramix/basic.html b/panoramix/templates/panoramix/basic.html index db0363f0e8b2a..dcd4ca8329aa2 100644 --- a/panoramix/templates/panoramix/basic.html +++ b/panoramix/templates/panoramix/basic.html @@ -7,11 +7,7 @@ {% block head_meta %}{% endblock %} {% block head_css %} - - - - - + {% endblock %} {% block head_js %} diff --git a/panoramix/templates/panoramix/dashboard.html b/panoramix/templates/panoramix/dashboard.html index 20250c582c1e9..ac34516d18c95 100644 --- a/panoramix/templates/panoramix/dashboard.html +++ b/panoramix/templates/panoramix/dashboard.html @@ -2,7 +2,6 @@ {% block head_css %} {{ super() }} - @@ -66,7 +65,7 @@

-
+ {% endblock %} -{% block head_css %} -{{ super() }} - -{% endblock %} - {% block tail_js %} {{ super() }} diff --git a/setup.py b/setup.py index 732a2247cb99e..e1a071cbc4f7d 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.7.1' +version = '0.8.0' setup( name='panoramix', @@ -9,10 +9,6 @@ "and druid.io"), version=version, packages=find_packages(), - package_data={'': [ - 'panoramix/migrations/alembic.ini', - 'panoramix/data/birth_names.csv.gz', - ]}, include_package_data=True, zip_safe=False, scripts=['panoramix/bin/panoramix'],