diff --git a/README.md b/README.md index c00d50c..9295f9f 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,4 @@ See the `CONTRIBUTING.md` file for more infos. * [Kresus](https://framagit.org/bnjbvr/kresus) which gave me part of the original idea (at least proved me such software based on scraping can achieve a high quality level :) +* Current favicon is from [Wikipedia](https://commons.wikimedia.org/wiki/File:Home_Icon.svg) diff --git a/flatisfy/web/app.py b/flatisfy/web/app.py index 220d426..a14022f 100644 --- a/flatisfy/web/app.py +++ b/flatisfy/web/app.py @@ -83,9 +83,15 @@ def get_app(config): app.route("/", "GET", lambda: _serve_static_file("index.html")) # Static files + app.route("/favicon.ico", "GET", + lambda: _serve_static_file("favicon.ico")) app.route( "/assets/", "GET", lambda filename: _serve_static_file("/assets/{}".format(filename)) ) + app.route( + "/img/", "GET", + lambda filename: _serve_static_file("/img/{}".format(filename)) + ) return app diff --git a/flatisfy/web/js_src/components/flatstable.vue b/flatisfy/web/js_src/components/flatstable.vue index 6eb03d1..a5078af 100644 --- a/flatisfy/web/js_src/components/flatstable.vue +++ b/flatisfy/web/js_src/components/flatstable.vue @@ -6,28 +6,28 @@ {{ $t("flatsDetails.Title") }} - + {{ $t("common.sort" + capitalize(sortOrder)) }} {{ $t("flatsDetails.Area") }} - + {{ $t("common.sort" + capitalize(sortOrder)) }} {{ $t("flatsDetails.Rooms") }} - + {{ $t("common.sort" + capitalize(sortOrder)) }} {{ $t("flatsDetails.Cost") }} - + {{ $t("common.sort" + capitalize(sortOrder)) }} {{ $t("common.Actions") }} @@ -78,6 +78,8 @@ @@ -143,4 +146,13 @@ button { .pointer { cursor: pointer; } + +.sr-only { + position:absolute; + left:-10000px; + top:auto; + width:1px; + height:1px; + overflow:hidden; +} diff --git a/flatisfy/web/js_src/i18n/en/index.js b/flatisfy/web/js_src/i18n/en/index.js index 5aa0603..369fd32 100644 --- a/flatisfy/web/js_src/i18n/en/index.js +++ b/flatisfy/web/js_src/i18n/en/index.js @@ -8,7 +8,9 @@ export default { 'Restore': 'Restore', 'External_link': 'External link', 'Follow': 'Follow', - 'Close': 'Close' + 'Close': 'Close', + "sortUp": 'Sort in ascending order', + "sortDown": 'Sort in descending order' }, home: { 'new_available_flats': 'New available flats' diff --git a/flatisfy/web/static/favicon.ico b/flatisfy/web/static/favicon.ico new file mode 100644 index 0000000..abfdb29 Binary files /dev/null and b/flatisfy/web/static/favicon.ico differ diff --git a/flatisfy/web/static/img/favicon-114.png b/flatisfy/web/static/img/favicon-114.png new file mode 100644 index 0000000..4cf9f47 Binary files /dev/null and b/flatisfy/web/static/img/favicon-114.png differ diff --git a/flatisfy/web/static/img/favicon-120.png b/flatisfy/web/static/img/favicon-120.png new file mode 100644 index 0000000..6469bab Binary files /dev/null and b/flatisfy/web/static/img/favicon-120.png differ diff --git a/flatisfy/web/static/img/favicon-144.png b/flatisfy/web/static/img/favicon-144.png new file mode 100644 index 0000000..7180155 Binary files /dev/null and b/flatisfy/web/static/img/favicon-144.png differ diff --git a/flatisfy/web/static/img/favicon-150.png b/flatisfy/web/static/img/favicon-150.png new file mode 100644 index 0000000..9db9663 Binary files /dev/null and b/flatisfy/web/static/img/favicon-150.png differ diff --git a/flatisfy/web/static/img/favicon-152.png b/flatisfy/web/static/img/favicon-152.png new file mode 100644 index 0000000..e06797d Binary files /dev/null and b/flatisfy/web/static/img/favicon-152.png differ diff --git a/flatisfy/web/static/img/favicon-16.png b/flatisfy/web/static/img/favicon-16.png new file mode 100644 index 0000000..83f0398 Binary files /dev/null and b/flatisfy/web/static/img/favicon-16.png differ diff --git a/flatisfy/web/static/img/favicon-160.png b/flatisfy/web/static/img/favicon-160.png new file mode 100644 index 0000000..64efdc9 Binary files /dev/null and b/flatisfy/web/static/img/favicon-160.png differ diff --git a/flatisfy/web/static/img/favicon-180.png b/flatisfy/web/static/img/favicon-180.png new file mode 100644 index 0000000..888bc23 Binary files /dev/null and b/flatisfy/web/static/img/favicon-180.png differ diff --git a/flatisfy/web/static/img/favicon-192.png b/flatisfy/web/static/img/favicon-192.png new file mode 100644 index 0000000..bc2579c Binary files /dev/null and b/flatisfy/web/static/img/favicon-192.png differ diff --git a/flatisfy/web/static/img/favicon-310.png b/flatisfy/web/static/img/favicon-310.png new file mode 100644 index 0000000..929d98e Binary files /dev/null and b/flatisfy/web/static/img/favicon-310.png differ diff --git a/flatisfy/web/static/img/favicon-32.png b/flatisfy/web/static/img/favicon-32.png new file mode 100644 index 0000000..aa4d32c Binary files /dev/null and b/flatisfy/web/static/img/favicon-32.png differ diff --git a/flatisfy/web/static/img/favicon-57.png b/flatisfy/web/static/img/favicon-57.png new file mode 100644 index 0000000..1c23d2a Binary files /dev/null and b/flatisfy/web/static/img/favicon-57.png differ diff --git a/flatisfy/web/static/img/favicon-60.png b/flatisfy/web/static/img/favicon-60.png new file mode 100644 index 0000000..d8c4229 Binary files /dev/null and b/flatisfy/web/static/img/favicon-60.png differ diff --git a/flatisfy/web/static/img/favicon-64.png b/flatisfy/web/static/img/favicon-64.png new file mode 100644 index 0000000..52a1753 Binary files /dev/null and b/flatisfy/web/static/img/favicon-64.png differ diff --git a/flatisfy/web/static/img/favicon-70.png b/flatisfy/web/static/img/favicon-70.png new file mode 100644 index 0000000..23da33f Binary files /dev/null and b/flatisfy/web/static/img/favicon-70.png differ diff --git a/flatisfy/web/static/img/favicon-72.png b/flatisfy/web/static/img/favicon-72.png new file mode 100644 index 0000000..0adc72a Binary files /dev/null and b/flatisfy/web/static/img/favicon-72.png differ diff --git a/flatisfy/web/static/img/favicon-76.png b/flatisfy/web/static/img/favicon-76.png new file mode 100644 index 0000000..8e4e2fa Binary files /dev/null and b/flatisfy/web/static/img/favicon-76.png differ diff --git a/flatisfy/web/static/img/favicon-96.png b/flatisfy/web/static/img/favicon-96.png new file mode 100644 index 0000000..8e5316c Binary files /dev/null and b/flatisfy/web/static/img/favicon-96.png differ diff --git a/flatisfy/web/static/index.html b/flatisfy/web/static/index.html index fcaab73..a965826 100644 --- a/flatisfy/web/static/index.html +++ b/flatisfy/web/static/index.html @@ -4,6 +4,23 @@ Flatisfy + + + + + + + + + + + + + + + + +