From ddbe3de33b91ebc6f46e165150dfd4693f859143 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 7 Nov 2022 18:59:28 -0600 Subject: [PATCH] remove catalog feature no one uses --- files/assets/css/catalog.css | 70 ---------------------------------- files/assets/css/main.css | 7 ---- files/assets/sitemap.xml | 5 --- files/routes/front.py | 2 - files/templates/home.html | 12 +----- files/templates/html_head.html | 4 -- 6 files changed, 1 insertion(+), 99 deletions(-) delete mode 100644 files/assets/css/catalog.css diff --git a/files/assets/css/catalog.css b/files/assets/css/catalog.css deleted file mode 100644 index 60964d344..000000000 --- a/files/assets/css/catalog.css +++ /dev/null @@ -1,70 +0,0 @@ -#posts { - display: grid; - grid-template: auto / auto auto auto; -} - -@media (min-width: 1668px) { - #frontpage .post-img { - height:105px; - width:150px; - } - - #frontpage .post-title { - font-size: 18px; - } - - #frontpage .post-meta, .post-actions button, .post-actions a { - font-size:14px; - } -} - -@media (max-width: 960px) { - #posts { - display: grid; - grid-template: auto / auto auto; - } -} - -@media (max-width: 768px) { - #posts { - display: grid; - grid-template: auto / auto; - } -} - -#frontpage .sidebar { - display:none !important; -} - -#frontpage .container { - max-width: 1750px; -} - -#frontpage .voting.d-md-flex { - display: none !important; -} - -#frontpage .voting.d-md-none { - display: block !important; -} - -#frontpage .card-footer { - display: block !important; -} - -#frontpage .post-actions.d-md-block { - display: none !important; -} - -#fronpage.card { - padding: 0.5rem !important; -} - -#frontpage .modal.d-md-none.show { - display: inline-block !important; - max-width: 30rem; -} - -#frontpage .fa-expand-alt { - display:none; -} diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 2d705ec8e..f05401848 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -3276,13 +3276,6 @@ small, .small { display: block; } -.catalog .voting .arrow-up, -.catalog .voting .arrow-down -{ - display: inline-block; -} - - .box-shadow-bottom { box-shadow: inset 0 -0.1px 0 var(--gray-400); } diff --git a/files/assets/sitemap.xml b/files/assets/sitemap.xml index 87d13bab9..95e1905a1 100644 --- a/files/assets/sitemap.xml +++ b/files/assets/sitemap.xml @@ -120,11 +120,6 @@ 2022-06-10T23:42:26+00:00 0.80 - - https://rdrama.net/logged_out/catalog?sort=hot&t=day&ccmode=false - 2022-06-10T23:42:26+00:00 - 0.80 - https://rdrama.net/logged_out?sort=hot&t=hour&ccmode=false 2022-06-10T23:42:26+00:00 diff --git a/files/routes/front.py b/files/routes/front.py index 5cc4a97af..33750449a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -7,11 +7,9 @@ from files.classes.submission import Submission from files.helpers.awards import award_timers @app.get("/") -@app.get("/catalog") @app.get("/h/") @app.get("/s/") @app.get("/logged_out") -@app.get("/logged_out/catalog") @app.get("/logged_out/h/") @app.get("/logged_out/s/") @limiter.limit("3/second;30/minute;5000/hour;10000/day") diff --git a/files/templates/home.html b/files/templates/home.html index f8bcce5c5..7cdf01e26 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -66,12 +66,6 @@ {% block navbar %}
- {% if request.path=='/catalog' %} - Catalog - {% else %} - Catalog - {% endif %} - {% if pins %} {% set pcolor = "primary" %} {% else %} @@ -148,13 +142,9 @@ {% block content %}
- -
- +
- {% include "submission_listing.html" %} -
diff --git a/files/templates/html_head.html b/files/templates/html_head.html index a90dca6c7..8ea6d4f5d 100644 --- a/files/templates/html_head.html +++ b/files/templates/html_head.html @@ -112,10 +112,6 @@ {% endif %} - {% if request.path.endswith('/catalog') %} - - {% endif %} - {% if sub and sub.css and not request.path.endswith('settings') and not request.values.get('nocss') %} {% endif %}