From b827c93171a4c8d3e574bfdc2c02812cde78c59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 29 Feb 2024 08:41:53 +0100 Subject: [PATCH 1/3] middleware: added exception for webworker source file --- middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 867b6fb..afb06a9 100644 --- a/middleware.ts +++ b/middleware.ts @@ -43,7 +43,8 @@ export default async function middleware(req: NextRequest) { export const config = { // for these paths middleware will not be called + // `pdf.worker.min.mjs` is a web worker code used by pdf.js matcher: [ - '/((?!api|_next/static|_next/image|.*\\.png$|.*\\.webm$).*)', + '/((?!api|_next/static|_next/image|.*\\.png$|pdf.worker.min.mjs$|.*\\.webm$).*)', ], }; \ No newline at end of file From f2832d9f108684d8d56c67a0e75a60032b61177c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 29 Feb 2024 08:54:06 +0100 Subject: [PATCH 2/3] fixed
in translations --- messages/en.json | 2 +- messages/hr.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/messages/en.json b/messages/en.json index 0f49e52..481c573 100644 --- a/messages/en.json +++ b/messages/en.json @@ -68,7 +68,7 @@ "bill-name-placeholder": "Bill name", "paid-checkbox": "Paid", "payed-amount": "Amount", - "barcode-disclaimer": "After scanning the code make sure the information is correct.
We are not liable in case of an incorrect payment.", + "barcode-disclaimer": "After scanning the code make sure the information is correct.

We are not liable in case of an incorrect payment.", "notes-placeholder": "Notes", "save-button": "Save", "cancel-button": "Cancel", diff --git a/messages/hr.json b/messages/hr.json index 4936344..08bfae6 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -68,7 +68,7 @@ "bill-name-placeholder": "Ime računa", "paid-checkbox": "Plaćeno", "payed-amount": "Iznos", - "barcode-disclaimer": "Nakon skeniranja bar koda obavezni provjeri jesu li svi podaci ispravni.
Ne snosimo odgovornost za slučaj pogrešno provedene uplate.", + "barcode-disclaimer": "Nakon skeniranja bar koda obavezni provjeri jesu li svi podaci ispravni.

Ne snosimo odgovornost za slučaj pogrešno provedene uplate.", "notes-placeholder": "Bilješke", "save-button": "Spremi", "cancel-button": "Odbaci", From 78f8d1e1c3257d225db9179c74a577b069700e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 29 Feb 2024 08:55:38 +0100 Subject: [PATCH 3/3] BugFix: barcodes were not reset while copying to another month --- app/lib/actions/monthActions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/actions/monthActions.ts b/app/lib/actions/monthActions.ts index 03dcea8..b8fc6b4 100644 --- a/app/lib/actions/monthActions.ts +++ b/app/lib/actions/monthActions.ts @@ -52,7 +52,8 @@ export const addMonth = withUser(async (user:AuthenticatedUser, { year, month }: paid: false, attachment: null, notes: null, - payedAmount: null + payedAmount: null, + barcodeImage: undefined, } as Bill }) } as BillingLocation);