From 70aaa67cfc5c21145708ba7249df91edb971f589 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 14 Feb 2021 07:53:20 +0100 Subject: [PATCH] Update frontend. --- .env.example | 1 + config/session.php | 2 +- frontend/mix-manifest.json | 14 +- .../components/dashboard/BudgetLimitRow.vue | 4 +- .../src/components/dashboard/BudgetRow.vue | 1 + .../src/components/dashboard/Calendar.vue | 19 +- .../src/components/dashboard/Dashboard.vue | 24 --- .../src/components/dashboard/MainAccount.vue | 15 +- .../components/dashboard/MainAccountChart.vue | 1 + .../components/dashboard/MainAccountList.vue | 174 +++++++++++------- .../components/dashboard/MainBillsList.vue | 41 +++-- .../src/components/dashboard/MainBudget.vue | 60 ------ .../components/dashboard/MainBudgetList.vue | 65 ++----- .../src/components/dashboard/MainCategory.vue | 60 ------ .../components/dashboard/MainCategoryList.vue | 56 +++++- .../src/components/dashboard/MainCredit.vue | 56 ------ .../components/dashboard/MainCreditList.vue | 61 +++++- .../src/components/dashboard/MainDebit.vue | 62 ------- .../components/dashboard/MainDebitList.vue | 54 +++++- .../components/dashboard/MainPiggyList.vue | 43 +++-- .../src/components/dashboard/TopBoxes.vue | 49 ++++- frontend/src/locales/bg.json | 3 + frontend/src/locales/cs.json | 3 + frontend/src/locales/de.json | 3 + frontend/src/locales/el.json | 3 + frontend/src/locales/en-gb.json | 3 + frontend/src/locales/en.json | 3 + frontend/src/locales/es.json | 3 + frontend/src/locales/fi.json | 3 + frontend/src/locales/fr.json | 3 + frontend/src/locales/hu.json | 3 + frontend/src/locales/it.json | 3 + frontend/src/locales/nb.json | 3 + frontend/src/locales/nl.json | 3 + frontend/src/locales/pl.json | 3 + frontend/src/locales/pt-br.json | 3 + frontend/src/locales/pt.json | 3 + frontend/src/locales/ro.json | 3 + frontend/src/locales/ru.json | 3 + frontend/src/locales/sk.json | 3 + frontend/src/locales/sv.json | 3 + frontend/src/locales/vi.json | 3 + frontend/src/locales/zh-cn.json | 3 + frontend/src/locales/zh-tw.json | 3 + 44 files changed, 479 insertions(+), 452 deletions(-) delete mode 100644 frontend/src/components/dashboard/MainBudget.vue delete mode 100644 frontend/src/components/dashboard/MainCategory.vue delete mode 100644 frontend/src/components/dashboard/MainCredit.vue delete mode 100644 frontend/src/components/dashboard/MainDebit.vue diff --git a/.env.example b/.env.example index bbde8fdc3d..e332ebabee 100644 --- a/.env.example +++ b/.env.example @@ -118,6 +118,7 @@ REDIS_CACHE_DB="1" COOKIE_PATH="/" COOKIE_DOMAIN= COOKIE_SECURE=false +COOKIE_SAMESITE=lax # If you want Firefly III to mail you, update these settings # For instructions, see: https://docs.firefly-iii.org/advanced-installation/email diff --git a/config/session.php b/config/session.php index 09becf087b..f3cb244e20 100644 --- a/config/session.php +++ b/config/session.php @@ -36,5 +36,5 @@ return [ 'domain' => env('COOKIE_DOMAIN', null), 'secure' => env('COOKIE_SECURE', null), 'http_only' => true, - 'same_site' => null, + 'same_site' => env('COOKIE_SAMESITE','lax'), ]; diff --git a/frontend/mix-manifest.json b/frontend/mix-manifest.json index 4cefb1e099..54e5e196b9 100644 --- a/frontend/mix-manifest.json +++ b/frontend/mix-manifest.json @@ -1,22 +1,12 @@ { - "/public/js/manifest.js": "/public/js/manifest.js", - "/public/js/manifest.js.map": "/public/js/manifest.js.map", - "/public/js/vendor.js": "/public/js/vendor.js", - "/public/js/vendor.js.map": "/public/js/vendor.js.map", "/public/js/accounts/index.js": "/public/js/accounts/index.js", - "/public/js/accounts/index.js.map": "/public/js/accounts/index.js.map", "/public/js/accounts/show.js": "/public/js/accounts/show.js", - "/public/js/accounts/show.js.map": "/public/js/accounts/show.js.map", "/public/js/dashboard.js": "/public/js/dashboard.js", "/public/css/app.css": "/public/css/app.css", - "/public/js/dashboard.js.map": "/public/js/dashboard.js.map", - "/public/css/app.css.map": "/public/css/app.css.map", "/public/js/empty.js": "/public/js/empty.js", - "/public/js/empty.js.map": "/public/js/empty.js.map", + "/public/js/manifest.js": "/public/js/manifest.js", "/public/js/new-user/index.js": "/public/js/new-user/index.js", - "/public/js/new-user/index.js.map": "/public/js/new-user/index.js.map", "/public/js/register.js": "/public/js/register.js", - "/public/js/register.js.map": "/public/js/register.js.map", "/public/js/transactions/create.js": "/public/js/transactions/create.js", - "/public/js/transactions/create.js.map": "/public/js/transactions/create.js.map" + "/public/js/vendor.js": "/public/js/vendor.js" } diff --git a/frontend/src/components/dashboard/BudgetLimitRow.vue b/frontend/src/components/dashboard/BudgetLimitRow.vue index b646c8ca31..a463dd4419 100644 --- a/frontend/src/components/dashboard/BudgetLimitRow.vue +++ b/frontend/src/components/dashboard/BudgetLimitRow.vue @@ -50,7 +50,7 @@
- + Spent {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }} of @@ -59,7 +59,7 @@
- +   Spent {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }} diff --git a/frontend/src/components/dashboard/BudgetRow.vue b/frontend/src/components/dashboard/BudgetRow.vue index 71f832551d..608252219a 100644 --- a/frontend/src/components/dashboard/BudgetRow.vue +++ b/frontend/src/components/dashboard/BudgetRow.vue @@ -18,6 +18,7 @@ - along with this program. If not, see . --> + diff --git a/frontend/src/components/dashboard/MainCreditList.vue b/frontend/src/components/dashboard/MainCreditList.vue index 6d559f3062..1dd6cbec45 100644 --- a/frontend/src/components/dashboard/MainCreditList.vue +++ b/frontend/src/components/dashboard/MainCreditList.vue @@ -23,7 +23,20 @@

{{ $t('firefly.revenue_accounts') }}

-
+ +
+
+ +
+
+ +
+
+ +
+
+ +
@@ -53,28 +66,57 @@ - - diff --git a/frontend/src/components/dashboard/MainDebitList.vue b/frontend/src/components/dashboard/MainDebitList.vue index 1c1ee0ef4d..6bb9de0e9d 100644 --- a/frontend/src/components/dashboard/MainDebitList.vue +++ b/frontend/src/components/dashboard/MainDebitList.vue @@ -23,7 +23,20 @@

{{ $t('firefly.expense_accounts') }}

-
+ +
+
+ +
+
+ +
+
+ +
+
+ +
@@ -53,26 +66,55 @@ diff --git a/frontend/src/components/dashboard/TopBoxes.vue b/frontend/src/components/dashboard/TopBoxes.vue index 1f72c8243f..33d6b6238f 100644 --- a/frontend/src/components/dashboard/TopBoxes.vue +++ b/frontend/src/components/dashboard/TopBoxes.vue @@ -25,7 +25,9 @@
- {{ $t("firefly.balance") }} + {{ $t("firefly.balance") }} + + {{ balance.value_parsed }} @@ -48,8 +50,9 @@
- {{ $t('firefly.bills_to_pay') }} - + {{ $t('firefly.bills_to_pay') }} + + {{ balance.value_parsed }} @@ -72,8 +75,9 @@
- {{ $t('firefly.left_to_spend') }} - + {{ $t('firefly.left_to_spend') }} + + {{ left.value_parsed }} @@ -97,7 +101,9 @@
- {{ $t('firefly.net_worth') }} + {{ $t('firefly.net_worth') }} + + {{ nw.value_parsed }}
@@ -117,6 +123,9 @@