From b4e9446cf6d9256f842b936a8f9c7c941d742547 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 21 Jun 2025 16:12:44 -0300 Subject: [PATCH] chore: update tailwind to v4 As is customary in the JS world EVERYTHING must break with each major version --- .../account_groups/fragments/list.html | 4 +- app/templates/accounts/fragments/list.html | 4 +- .../calendar_view/fragments/list.html | 28 +- .../calendar_view/pages/calendar.html | 6 +- app/templates/categories/fragments/list.html | 4 +- .../common/fragments/month_year_picker.html | 2 +- app/templates/cotton/amount/display.html | 4 +- app/templates/cotton/components/fab.html | 28 +- .../cotton/components/fab_menu_button.html | 2 +- app/templates/cotton/msg/empty.html | 4 +- app/templates/cotton/transaction/item.html | 36 +- .../cotton/transaction/small_item.html | 18 +- app/templates/cotton/ui/account_card.html | 38 +- app/templates/cotton/ui/card.html | 4 +- app/templates/cotton/ui/currency_card.html | 36 +- .../ui/deleted_transactions_action_bar.html | 42 +- app/templates/cotton/ui/help_icon.html | 2 +- app/templates/cotton/ui/info_card.html | 6 +- .../cotton/ui/percentage_distribution.html | 8 +- .../cotton/ui/transactions_action_bar.html | 50 +- app/templates/currencies/fragments/list.html | 4 +- .../dca/fragments/strategy/details.html | 14 +- .../dca/fragments/strategy/list.html | 10 +- app/templates/entities/fragments/list.html | 4 +- .../exchange_rates/fragments/list.html | 4 +- .../exchange_rates/fragments/table.html | 10 +- .../fragments/list.html | 4 +- .../fragments/table.html | 10 +- .../import_app/fragments/profiles/add.html | 2 +- .../import_app/fragments/profiles/list.html | 4 +- .../import_app/fragments/runs/list.html | 24 +- .../import_app/fragments/runs/log.html | 2 +- app/templates/includes/navbar.html | 2 +- app/templates/includes/navbar/user_menu.html | 2 +- app/templates/includes/placeholders.html | 24 +- app/templates/includes/styles.html | 1 - app/templates/includes/tools/calculator.html | 24 +- .../insights/fragments/emergency_fund.html | 16 +- app/templates/insights/fragments/sankey.html | 2 +- app/templates/insights/pages/index.html | 22 +- .../installment_plans/fragments/list.html | 4 +- .../installment_plans/fragments/table.html | 4 +- .../currency_converter.html | 10 +- .../mini_tools/unit_price_calculator.html | 8 +- .../monthly_overview/fragments/list.html | 2 +- .../fragments/monthly_summary.html | 16 +- .../monthly_overview/pages/overview.html | 10 +- app/templates/net_worth/net_worth.html | 14 +- .../fragments/create_menu.html | 2 +- .../quick_transactions/fragments/list.html | 2 +- .../quick_transactions/pages/index.html | 4 +- .../fragments/list.html | 4 +- .../fragments/table.html | 4 +- app/templates/rules/fragments/list.html | 10 +- .../fragments/transaction_rule/view.html | 14 +- app/templates/tags/fragments/list.html | 4 +- .../transactions/fragments/list_all.html | 12 +- .../transactions/pages/transactions.html | 6 +- app/templates/transactions/pages/trash.html | 2 +- app/templates/users/fragments/list.html | 4 +- app/templates/users/generic/play_sounds.html | 2 +- app/templates/users/generic/show_amounts.html | 2 +- .../pages/overview_by_account.html | 6 +- .../pages/overview_by_currency.html | 6 +- frontend/package-lock.json | 5182 ++++++++++------- frontend/package.json | 7 +- frontend/postcss.config.js | 11 +- frontend/src/styles/_tailwind.scss | 3 - frontend/src/styles/style.scss | 2 +- frontend/src/styles/tailwind.css | 2 + frontend/tailwind.config.js | 24 - 71 files changed, 3264 insertions(+), 2630 deletions(-) delete mode 100644 frontend/src/styles/_tailwind.scss create mode 100644 frontend/src/styles/tailwind.css delete mode 100644 frontend/tailwind.config.js diff --git a/app/templates/account_groups/fragments/list.html b/app/templates/account_groups/fragments/list.html index 9bf1b31..adc7a78 100644 --- a/app/templates/account_groups/fragments/list.html +++ b/app/templates/account_groups/fragments/list.html @@ -1,9 +1,9 @@ {% load i18n %}
-
+
{% spaceless %}
{% translate 'Account Groups' %} - -
+
{% spaceless %}
{% translate 'Accounts' %} - -
+
{% translate 'MON' %}
@@ -25,44 +25,44 @@ {% translate 'SUN' %}
-
+
{% for date in dates %} {% if date %} -
-
-
{{ date.date|date:"l"|lower }}
+
+
{{ date.date|date:"l"|lower }}
{{ date.day }}
{% for transaction in date.transactions %} {% if transaction.is_paid %} {% if transaction.type == "IN" and not transaction.account.is_asset %} - + {% elif transaction.type == "IN" and transaction.account.is_asset %} - + {% elif transaction.type == "EX" and not transaction.account.is_asset %} - + {% elif transaction.type == "EX" and transaction.account.is_asset %} - + {% endif %} {% else %} {% if transaction.type == "IN" and not transaction.account.is_asset %} - + {% elif transaction.type == "IN" and transaction.account.is_asset %} - + {% elif transaction.type == "EX" and not transaction.account.is_asset %} - + {% elif transaction.type == "EX" and transaction.account.is_asset %} - + {% endif %} {% endif %} {% endfor %}
{% else %} -
+
{% endif %} {% endfor %}
diff --git a/app/templates/calendar_view/pages/calendar.html b/app/templates/calendar_view/pages/calendar.html index 5f8e01a..b3db3e3 100644 --- a/app/templates/calendar_view/pages/calendar.html +++ b/app/templates/calendar_view/pages/calendar.html @@ -17,7 +17,7 @@
{# Date picker#}
-
+ -
{{ month|month_name }} {{ year }}
-
+
-
+
{% spaceless %}
{% translate 'Categories' %} -
-
+
-
+
-
+
{% trans "Flat Total" %}
-