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

Add bower support #440

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "adagios/media/external"
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ MANIFEST
dist
adagios.conf
*.mo

adagios/media/external
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ clean:
-rm -rf deb-build/
-rm -rf docs/*.1
-rm -f etc/version
-rm -rf adagios/media/external/*

clean_hard:
-rm -rf $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/adagios
Expand All @@ -40,8 +41,11 @@ clean_hard:
clean_hardest: clean_rpms


install: build manpage
$(PYTHON) setup.py install -f
install: build manpage frontend-deps
$(python) setup.py install -f

frontend-deps:
bower install

install_hard: clean_hard install

Expand Down
4 changes: 4 additions & 0 deletions README.bower
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Not bower dependencies:
* html5shim (is used by bootstrap and dynamically downloaded from a CDN)
* jqplot (not properly bowerized yet)
* DT_bootstrap.{css,js} (upstream has changed and doesn't ship these files anymore
2 changes: 1 addition & 1 deletion adagios/bi/templates/business_process_standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

if (my_element.childElementCount == 0) {
var spinner = document.createElement( 'img');
spinner.setAttribute("src", "{% url "media" path="external/select2/spinner.gif" %}");
spinner.setAttribute("src", "{% url "media" path="external/select2/select2-spinner.gif" %}");
my_element.appendChild( spinner );
var url = '{% url "bi.views.graphs_json" bp.name %}';
$.getJSON(url)
Expand Down
2 changes: 1 addition & 1 deletion adagios/bi/templates/business_process_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

if (my_element.childElementCount == 0) {
var spinner = document.createElement( 'img');
spinner.setAttribute("src", "{% url "media" path="external/select2/spinner.gif" %}");
spinner.setAttribute("src", "{% url "media" path="external/select2/select2-spinner.gif" %}");
my_element.appendChild( spinner );
var url = '{{ graphs_url }}';
$.getJSON(url)
Expand Down
2 changes: 1 addition & 1 deletion adagios/contrib/lib/dashboards/raymii.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h3>{% trans "Acknowledged Minor Issues" %}</h3>
<script src="{% url "media" path="js/adagios.js" %}"></script>
<script src="{% url "media" path="js/adagios_status.js" %}"></script>

<script src="{% url "media" path="external/datepicker/js/bootstrap-datepicker.js" %}"></script>
<script src="{% url "media" path="external/bootstrap-datepicker/js/bootstrap-datepicker.js" %}"></script>


<script type="text/javascript" xmlns="http://www.w3.org/1999/html">
Expand Down
6 changes: 4 additions & 2 deletions adagios/media/css/import_contrib.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import url(glyph-free.css);
@import url(../external/datatables/css/jquery.dataTables.css);
@import url(../external/datatables/media/css/jquery.dataTables.css);
@import url(../external/datatables/DT_bootstrap.css);
@import url(../external/select2/select2.css);
@import url(../external/datepicker/css/datepicker.css);
@import url(../external/select2/select2-bootstrap.css);
@import url(../external/bootstrap-datepicker/css/datepicker.css);
@import url(../external/datatable/css/datatable-bootstrap.min.css);
7 changes: 0 additions & 7 deletions adagios/media/external/bootstrap/COPYRIGHT

This file was deleted.

176 changes: 0 additions & 176 deletions adagios/media/external/bootstrap/LICENSE

This file was deleted.

Loading