From 37b1b8750d728d11d95fb64fe5f26f9278555354 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 18 Oct 2016 12:22:12 +0200 Subject: added bower in the postdeployment of the app --- .bowerrc | 3 +++ bower.json | 17 +++++++++++++++++ package.json | 4 +++- requirements.txt | 1 - src/web/templates/admin/dashboard.html | 15 ++++++++++++++- src/web/templates/layout.html | 8 ++++++-- 6 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 .bowerrc create mode 100644 bower.json diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..52b95c90 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory" : "src/web/static/bower_components" +} diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..cf816f65 --- /dev/null +++ b/bower.json @@ -0,0 +1,17 @@ +{ + "name": "newspipe", + "version": "0.0.0", + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "datatables.net": "^1.10.12", + "datatables.net-dt": "^1.10.12", + "datatables.net-bs": "^1.10.12" + } +} diff --git a/package.json b/package.json index b31c2383..c446a5d5 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "main": "src/web/js/app.js", "dependencies": { "bootstrap": "^3.3.7", + "bower": "^1.7.9", "classnames": "^2.2.5", "flux": "^2.1.1", "jquery": "^3.1.1", @@ -36,7 +37,8 @@ }, "scripts": { "start": "watchify -o src/web/static/js/bundle.min.js -v -d src/web/js/app.js", - "build": "browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > src/web/static/js/bundle.min.js" + "build": "browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > src/web/static/js/bundle.min.js", + "postinstall": "./node_modules/bower/bin/bower install" }, "browserify": { "transform": [ diff --git a/requirements.txt b/requirements.txt index ecefbb0a..2610d002 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,6 @@ feedparser==5.2.1 beautifulsoup4==4.5.1 lxml==3.6.4 opml==0.5 -psycopg2==2.6.2 SQLAlchemy==1.1.1 alembic==0.8.8 Flask==0.11.1 diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html index 0d45118d..58b48fa1 100644 --- a/src/web/templates/admin/dashboard.html +++ b/src/web/templates/admin/dashboard.html @@ -5,7 +5,7 @@ {% block content %}

{{ _('Registered users') }}

- +
@@ -56,4 +56,17 @@ {{ form.submit(class_="btn btn-default") }} + {% endblock %} diff --git a/src/web/templates/layout.html b/src/web/templates/layout.html index 3e44c4eb..3dc1ff71 100644 --- a/src/web/templates/layout.html +++ b/src/web/templates/layout.html @@ -14,6 +14,12 @@ + + + + + + {% endblock %} @@ -132,8 +138,6 @@ - - -- cgit
#