diff --git a/src/static.py b/src/static.py deleted file mode 100644 index a76d3d5..0000000 --- a/src/static.py +++ /dev/null @@ -1,29 +0,0 @@ -""" - This file is part of Accountant. - - Accountant is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Foobar is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with Accountant. If not, see . -""" -from app import app - -from flask import send_from_directory - -@app.route('/') -def index(): - return send_from_directory("html", "index.html") - -@app.route('//') -def static(path, filename): - return send_from_directory("html/%s" % path, filename) - - diff --git a/src/html/index.html b/src/static/index.html similarity index 100% rename from src/html/index.html rename to src/static/index.html diff --git a/src/html/js/accounts.js b/src/static/js/accounts.js similarity index 100% rename from src/html/js/accounts.js rename to src/static/js/accounts.js diff --git a/src/html/js/entries.js b/src/static/js/entries.js similarity index 100% rename from src/html/js/entries.js rename to src/static/js/entries.js diff --git a/src/html/js/months.js b/src/static/js/months.js similarity index 100% rename from src/html/js/months.js rename to src/static/js/months.js diff --git a/src/html/templates/account_edit.html b/src/static/templates/account_edit.html similarity index 100% rename from src/html/templates/account_edit.html rename to src/static/templates/account_edit.html diff --git a/src/html/templates/account_new.html b/src/static/templates/account_new.html similarity index 100% rename from src/html/templates/account_new.html rename to src/static/templates/account_new.html diff --git a/src/html/templates/account_remove.html b/src/static/templates/account_remove.html similarity index 100% rename from src/html/templates/account_remove.html rename to src/static/templates/account_remove.html diff --git a/src/html/templates/entry_remove.html b/src/static/templates/entry_remove.html similarity index 100% rename from src/html/templates/entry_remove.html rename to src/static/templates/entry_remove.html diff --git a/src/html/third-party/angular/angular-strap.js b/src/static/third-party/angular/angular-strap.js similarity index 100% rename from src/html/third-party/angular/angular-strap.js rename to src/static/third-party/angular/angular-strap.js diff --git a/src/html/third-party/angular/angular-strap.min.js b/src/static/third-party/angular/angular-strap.min.js similarity index 100% rename from src/html/third-party/angular/angular-strap.min.js rename to src/static/third-party/angular/angular-strap.min.js diff --git a/src/html/third-party/angular/angular-ui-bootstrap.js b/src/static/third-party/angular/angular-ui-bootstrap.js similarity index 100% rename from src/html/third-party/angular/angular-ui-bootstrap.js rename to src/static/third-party/angular/angular-ui-bootstrap.js diff --git a/src/html/third-party/angular/angular.js b/src/static/third-party/angular/angular.js similarity index 100% rename from src/html/third-party/angular/angular.js rename to src/static/third-party/angular/angular.js diff --git a/src/html/third-party/angular/angular.min.js b/src/static/third-party/angular/angular.min.js similarity index 100% rename from src/html/third-party/angular/angular.min.js rename to src/static/third-party/angular/angular.min.js diff --git a/src/html/third-party/bootstrap/css/bootstrap-responsive.css b/src/static/third-party/bootstrap/css/bootstrap-responsive.css similarity index 100% rename from src/html/third-party/bootstrap/css/bootstrap-responsive.css rename to src/static/third-party/bootstrap/css/bootstrap-responsive.css diff --git a/src/html/third-party/bootstrap/css/bootstrap-responsive.min.css b/src/static/third-party/bootstrap/css/bootstrap-responsive.min.css similarity index 100% rename from src/html/third-party/bootstrap/css/bootstrap-responsive.min.css rename to src/static/third-party/bootstrap/css/bootstrap-responsive.min.css diff --git a/src/html/third-party/bootstrap/css/bootstrap.css b/src/static/third-party/bootstrap/css/bootstrap.css similarity index 100% rename from src/html/third-party/bootstrap/css/bootstrap.css rename to src/static/third-party/bootstrap/css/bootstrap.css diff --git a/src/html/third-party/bootstrap/css/bootstrap.min.css b/src/static/third-party/bootstrap/css/bootstrap.min.css similarity index 100% rename from src/html/third-party/bootstrap/css/bootstrap.min.css rename to src/static/third-party/bootstrap/css/bootstrap.min.css diff --git a/src/html/third-party/bootstrap/img/glyphicons-halflings-white.png b/src/static/third-party/bootstrap/img/glyphicons-halflings-white.png similarity index 100% rename from src/html/third-party/bootstrap/img/glyphicons-halflings-white.png rename to src/static/third-party/bootstrap/img/glyphicons-halflings-white.png diff --git a/src/html/third-party/bootstrap/img/glyphicons-halflings.png b/src/static/third-party/bootstrap/img/glyphicons-halflings.png similarity index 100% rename from src/html/third-party/bootstrap/img/glyphicons-halflings.png rename to src/static/third-party/bootstrap/img/glyphicons-halflings.png diff --git a/src/html/third-party/bootstrap/js/bootstrap.js b/src/static/third-party/bootstrap/js/bootstrap.js similarity index 100% rename from src/html/third-party/bootstrap/js/bootstrap.js rename to src/static/third-party/bootstrap/js/bootstrap.js diff --git a/src/html/third-party/bootstrap/js/bootstrap.min.js b/src/static/third-party/bootstrap/js/bootstrap.min.js similarity index 100% rename from src/html/third-party/bootstrap/js/bootstrap.min.js rename to src/static/third-party/bootstrap/js/bootstrap.min.js diff --git a/src/html/third-party/d3/d3.js b/src/static/third-party/d3/d3.js similarity index 100% rename from src/html/third-party/d3/d3.js rename to src/static/third-party/d3/d3.js diff --git a/src/html/third-party/d3/d3.min.js b/src/static/third-party/d3/d3.min.js similarity index 100% rename from src/html/third-party/d3/d3.min.js rename to src/static/third-party/d3/d3.min.js diff --git a/src/html/third-party/datepicker/css/datepicker.css b/src/static/third-party/datepicker/css/datepicker.css similarity index 100% rename from src/html/third-party/datepicker/css/datepicker.css rename to src/static/third-party/datepicker/css/datepicker.css diff --git a/src/html/third-party/datepicker/js/bootstrap-datepicker.js b/src/static/third-party/datepicker/js/bootstrap-datepicker.js similarity index 100% rename from src/html/third-party/datepicker/js/bootstrap-datepicker.js rename to src/static/third-party/datepicker/js/bootstrap-datepicker.js diff --git a/src/html/third-party/jquery/jquery.js b/src/static/third-party/jquery/jquery.js similarity index 100% rename from src/html/third-party/jquery/jquery.js rename to src/static/third-party/jquery/jquery.js diff --git a/src/html/third-party/jquery/jquery.min.js b/src/static/third-party/jquery/jquery.min.js similarity index 100% rename from src/html/third-party/jquery/jquery.min.js rename to src/static/third-party/jquery/jquery.min.js diff --git a/src/html/third-party/nv.d3/nv.d3.css b/src/static/third-party/nv.d3/nv.d3.css similarity index 100% rename from src/html/third-party/nv.d3/nv.d3.css rename to src/static/third-party/nv.d3/nv.d3.css diff --git a/src/html/third-party/nv.d3/nv.d3.js b/src/static/third-party/nv.d3/nv.d3.js similarity index 100% rename from src/html/third-party/nv.d3/nv.d3.js rename to src/static/third-party/nv.d3/nv.d3.js diff --git a/src/html/third-party/nv.d3/nv.d3.min.js b/src/static/third-party/nv.d3/nv.d3.min.js similarity index 100% rename from src/html/third-party/nv.d3/nv.d3.min.js rename to src/static/third-party/nv.d3/nv.d3.min.js