From 6605b87c5c779dff03f5819da67ee29a5c069eb4 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 5 Aug 2022 16:54:53 +0200 Subject: [PATCH] new settings page finished --- cookbook/helper/context_processors.py | 1 + cookbook/static/themes/tandoor.min.css | 6 +- cookbook/templates/base.html | 3 +- cookbook/templates/settings.html | 271 +++--------------- cookbook/templates/shoppinglist_template.html | 1 + cookbook/templates/user_settings.html | 1 + cookbook/urls.py | 2 +- cookbook/views/views.py | 84 +----- vue/src/apps/SettingsView/SettingsView.vue | 109 ++++--- .../ShoppingListView/ShoppingListView.vue | 206 +------------ .../Settings/APISettingsComponent.vue | 72 ++++- .../Settings/AccountSettingsComponent.vue | 31 +- .../Settings/CosmeticSettingsComponent.vue | 105 ++++--- .../Settings/MealPlanSettingsComponent.vue | 19 +- .../Settings/SearchSettingsComponent.vue | 51 ++-- .../Settings/ShoppingSettingsComponent.vue | 108 +++++-- vue/src/locales/en.json | 30 ++ 17 files changed, 446 insertions(+), 654 deletions(-) diff --git a/cookbook/helper/context_processors.py b/cookbook/helper/context_processors.py index 449ccbf5..30e704c1 100644 --- a/cookbook/helper/context_processors.py +++ b/cookbook/helper/context_processors.py @@ -10,4 +10,5 @@ def context_settings(request): 'TERMS_URL': settings.TERMS_URL, 'PRIVACY_URL': settings.PRIVACY_URL, 'IMPRINT_URL': settings.IMPRINT_URL, + 'SHOPPING_MIN_AUTOSYNC_INTERVAL': settings.SHOPPING_MIN_AUTOSYNC_INTERVAL, } diff --git a/cookbook/static/themes/tandoor.min.css b/cookbook/static/themes/tandoor.min.css index 6b49a5f0..af19696b 100644 --- a/cookbook/static/themes/tandoor.min.css +++ b/cookbook/static/themes/tandoor.min.css @@ -6113,9 +6113,11 @@ a.close.disabled { .align-text-top { vertical-align: text-top !important } - +/*! + * technically the wrong color but not used anywhere besides nav and this way changing nav color is supported + */ .bg-primary { - background-color: #b98766 !important + background-color: rgb(221, 191, 134) !important; } a.bg-primary:focus, a.bg-primary:hover, button.bg-primary:focus, button.bg-primary:hover { diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index 1e36e630..09f89174 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -69,7 +69,7 @@ -