From 1cd4d02701defb3e675713c4b29efd51a85de6cc Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 20 Mar 2013 16:37:23 +0100 Subject: [PATCH] Renamed html into static. --- src/static.py | 29 ------------------ src/{html => static}/index.html | 0 src/{html => static}/js/accounts.js | 0 src/{html => static}/js/entries.js | 0 src/{html => static}/js/months.js | 0 .../templates/account_edit.html | 0 .../templates/account_new.html | 0 .../templates/account_remove.html | 0 .../templates/entry_remove.html | 0 .../third-party/angular/angular-strap.js | 0 .../third-party/angular/angular-strap.min.js | 0 .../angular/angular-ui-bootstrap.js | 0 .../third-party/angular/angular.js | 0 .../third-party/angular/angular.min.js | 0 .../bootstrap/css/bootstrap-responsive.css | 0 .../css/bootstrap-responsive.min.css | 0 .../third-party/bootstrap/css/bootstrap.css | 0 .../bootstrap/css/bootstrap.min.css | 0 .../img/glyphicons-halflings-white.png | Bin .../bootstrap/img/glyphicons-halflings.png | Bin .../third-party/bootstrap/js/bootstrap.js | 0 .../third-party/bootstrap/js/bootstrap.min.js | 0 src/{html => static}/third-party/d3/d3.js | 0 src/{html => static}/third-party/d3/d3.min.js | 0 .../third-party/datepicker/css/datepicker.css | 0 .../datepicker/js/bootstrap-datepicker.js | 0 .../third-party/jquery/jquery.js | 0 .../third-party/jquery/jquery.min.js | 0 .../third-party/nv.d3/nv.d3.css | 0 .../third-party/nv.d3/nv.d3.js | 0 .../third-party/nv.d3/nv.d3.min.js | 0 31 files changed, 29 deletions(-) delete mode 100644 src/static.py rename src/{html => static}/index.html (100%) rename src/{html => static}/js/accounts.js (100%) rename src/{html => static}/js/entries.js (100%) rename src/{html => static}/js/months.js (100%) rename src/{html => static}/templates/account_edit.html (100%) rename src/{html => static}/templates/account_new.html (100%) rename src/{html => static}/templates/account_remove.html (100%) rename src/{html => static}/templates/entry_remove.html (100%) rename src/{html => static}/third-party/angular/angular-strap.js (100%) rename src/{html => static}/third-party/angular/angular-strap.min.js (100%) rename src/{html => static}/third-party/angular/angular-ui-bootstrap.js (100%) rename src/{html => static}/third-party/angular/angular.js (100%) rename src/{html => static}/third-party/angular/angular.min.js (100%) rename src/{html => static}/third-party/bootstrap/css/bootstrap-responsive.css (100%) rename src/{html => static}/third-party/bootstrap/css/bootstrap-responsive.min.css (100%) rename src/{html => static}/third-party/bootstrap/css/bootstrap.css (100%) rename src/{html => static}/third-party/bootstrap/css/bootstrap.min.css (100%) rename src/{html => static}/third-party/bootstrap/img/glyphicons-halflings-white.png (100%) rename src/{html => static}/third-party/bootstrap/img/glyphicons-halflings.png (100%) rename src/{html => static}/third-party/bootstrap/js/bootstrap.js (100%) rename src/{html => static}/third-party/bootstrap/js/bootstrap.min.js (100%) rename src/{html => static}/third-party/d3/d3.js (100%) rename src/{html => static}/third-party/d3/d3.min.js (100%) rename src/{html => static}/third-party/datepicker/css/datepicker.css (100%) rename src/{html => static}/third-party/datepicker/js/bootstrap-datepicker.js (100%) rename src/{html => static}/third-party/jquery/jquery.js (100%) rename src/{html => static}/third-party/jquery/jquery.min.js (100%) rename src/{html => static}/third-party/nv.d3/nv.d3.css (100%) rename src/{html => static}/third-party/nv.d3/nv.d3.js (100%) rename src/{html => static}/third-party/nv.d3/nv.d3.min.js (100%) 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