From ba0934e8cd0ab76863b90c4d3bdea169d31c1e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Fri, 16 Feb 2024 15:51:26 +0100 Subject: [PATCH] moved all the pages into [locale] --- .../bill/[id]/add/not-found.tsx | 0 app/{ => [locale]}/bill/[id]/add/page.tsx | 0 .../bill/[id]/delete/not-found.tsx | 0 app/{ => [locale]}/bill/[id]/delete/page.tsx | 0 .../bill/[id]/edit/not-found.tsx | 0 app/{ => [locale]}/bill/[id]/edit/page.tsx | 0 app/{ => [locale]}/layout.tsx | 0 app/{ => [locale]}/login/page.tsx | 0 app/{ => [locale]}/page.tsx | 0 app/{ => [locale]}/policy/page.tsx | 0 app/{ => [locale]}/terms/page.tsx | 0 app/location/[id]/add/LocationAddPage.tsx | 6 ------ app/location/[id]/add/page.tsx | 11 ----------- .../[id]/delete/LocationDeletePage.tsx | 14 -------------- app/location/[id]/delete/not-found.tsx | 6 ------ app/location/[id]/delete/page.tsx | 19 ------------------- app/location/[id]/edit/LocationEditPage.tsx | 16 ---------------- app/location/[id]/edit/not-found.tsx | 6 ------ app/location/[id]/edit/page.tsx | 15 --------------- 19 files changed, 93 deletions(-) rename app/{ => [locale]}/bill/[id]/add/not-found.tsx (100%) rename app/{ => [locale]}/bill/[id]/add/page.tsx (100%) rename app/{ => [locale]}/bill/[id]/delete/not-found.tsx (100%) rename app/{ => [locale]}/bill/[id]/delete/page.tsx (100%) rename app/{ => [locale]}/bill/[id]/edit/not-found.tsx (100%) rename app/{ => [locale]}/bill/[id]/edit/page.tsx (100%) rename app/{ => [locale]}/layout.tsx (100%) rename app/{ => [locale]}/login/page.tsx (100%) rename app/{ => [locale]}/page.tsx (100%) rename app/{ => [locale]}/policy/page.tsx (100%) rename app/{ => [locale]}/terms/page.tsx (100%) delete mode 100644 app/location/[id]/add/LocationAddPage.tsx delete mode 100644 app/location/[id]/add/page.tsx delete mode 100644 app/location/[id]/delete/LocationDeletePage.tsx delete mode 100644 app/location/[id]/delete/not-found.tsx delete mode 100644 app/location/[id]/delete/page.tsx delete mode 100644 app/location/[id]/edit/LocationEditPage.tsx delete mode 100644 app/location/[id]/edit/not-found.tsx delete mode 100644 app/location/[id]/edit/page.tsx diff --git a/app/bill/[id]/add/not-found.tsx b/app/[locale]/bill/[id]/add/not-found.tsx similarity index 100% rename from app/bill/[id]/add/not-found.tsx rename to app/[locale]/bill/[id]/add/not-found.tsx diff --git a/app/bill/[id]/add/page.tsx b/app/[locale]/bill/[id]/add/page.tsx similarity index 100% rename from app/bill/[id]/add/page.tsx rename to app/[locale]/bill/[id]/add/page.tsx diff --git a/app/bill/[id]/delete/not-found.tsx b/app/[locale]/bill/[id]/delete/not-found.tsx similarity index 100% rename from app/bill/[id]/delete/not-found.tsx rename to app/[locale]/bill/[id]/delete/not-found.tsx diff --git a/app/bill/[id]/delete/page.tsx b/app/[locale]/bill/[id]/delete/page.tsx similarity index 100% rename from app/bill/[id]/delete/page.tsx rename to app/[locale]/bill/[id]/delete/page.tsx diff --git a/app/bill/[id]/edit/not-found.tsx b/app/[locale]/bill/[id]/edit/not-found.tsx similarity index 100% rename from app/bill/[id]/edit/not-found.tsx rename to app/[locale]/bill/[id]/edit/not-found.tsx diff --git a/app/bill/[id]/edit/page.tsx b/app/[locale]/bill/[id]/edit/page.tsx similarity index 100% rename from app/bill/[id]/edit/page.tsx rename to app/[locale]/bill/[id]/edit/page.tsx diff --git a/app/layout.tsx b/app/[locale]/layout.tsx similarity index 100% rename from app/layout.tsx rename to app/[locale]/layout.tsx diff --git a/app/login/page.tsx b/app/[locale]/login/page.tsx similarity index 100% rename from app/login/page.tsx rename to app/[locale]/login/page.tsx diff --git a/app/page.tsx b/app/[locale]/page.tsx similarity index 100% rename from app/page.tsx rename to app/[locale]/page.tsx diff --git a/app/policy/page.tsx b/app/[locale]/policy/page.tsx similarity index 100% rename from app/policy/page.tsx rename to app/[locale]/policy/page.tsx diff --git a/app/terms/page.tsx b/app/[locale]/terms/page.tsx similarity index 100% rename from app/terms/page.tsx rename to app/[locale]/terms/page.tsx diff --git a/app/location/[id]/add/LocationAddPage.tsx b/app/location/[id]/add/LocationAddPage.tsx deleted file mode 100644 index 9556980..0000000 --- a/app/location/[id]/add/LocationAddPage.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import { LocationEditForm } from '@/app/ui/LocationEditForm'; -import { YearMonth } from '@/app/lib/db-types'; - -export default async function LocationAddPage({ yearMonth }: { yearMonth:YearMonth }) { - return (); -} \ No newline at end of file diff --git a/app/location/[id]/add/page.tsx b/app/location/[id]/add/page.tsx deleted file mode 100644 index 3f032fc..0000000 --- a/app/location/[id]/add/page.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { parseYearMonth } from '@/app/lib/format'; -import LocationAddPage from './LocationAddPage'; -import { Main } from '@/app/ui/Main'; - -export default async function Page({ params:{ id } }: { params: { id:string } }) { - return ( -
- -
- ); -} \ No newline at end of file diff --git a/app/location/[id]/delete/LocationDeletePage.tsx b/app/location/[id]/delete/LocationDeletePage.tsx deleted file mode 100644 index 7377733..0000000 --- a/app/location/[id]/delete/LocationDeletePage.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { notFound } from 'next/navigation'; -import { fetchLocationById } from '@/app/lib/actions/locationActions'; -import { LocationDeleteForm } from '@/app/ui/LocationDeleteForm'; - -export const LocationDeletePage = async ({ locationId }: { locationId:string }) => { - - const location = await fetchLocationById(locationId); - - if (!location) { - return(notFound()); - } - - return (); -} \ No newline at end of file diff --git a/app/location/[id]/delete/not-found.tsx b/app/location/[id]/delete/not-found.tsx deleted file mode 100644 index 1587224..0000000 --- a/app/location/[id]/delete/not-found.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import { NotFoundPage } from '@/app/ui/NotFoundPage'; - -const BillingLocationNotFound = () => -; - -export default BillingLocationNotFound; \ No newline at end of file diff --git a/app/location/[id]/delete/page.tsx b/app/location/[id]/delete/page.tsx deleted file mode 100644 index 40c7b8e..0000000 --- a/app/location/[id]/delete/page.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { notFound } from 'next/navigation'; -import { fetchLocationById } from '@/app/lib/actions/locationActions'; -import { LocationDeleteForm } from '@/app/ui/LocationDeleteForm'; -import { Main } from '@/app/ui/Main'; - -export default async function Page({ params:{ id } }: { params: { id:string } }) { - - const location = await fetchLocationById(id); - - if (!location) { - return(notFound()); - } - - return ( -
- -
- ); -} \ No newline at end of file diff --git a/app/location/[id]/edit/LocationEditPage.tsx b/app/location/[id]/edit/LocationEditPage.tsx deleted file mode 100644 index 505f634..0000000 --- a/app/location/[id]/edit/LocationEditPage.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { notFound } from 'next/navigation'; -import { LocationEditForm } from '@/app/ui/LocationEditForm'; -import { fetchLocationById } from '@/app/lib/actions/locationActions'; - -export default async function LocationEditPage({ locationId }: { locationId:string }) { - - const location = await fetchLocationById(locationId); - - if (!location) { - return(notFound()); - } - - const result = ; - - return (result); -} \ No newline at end of file diff --git a/app/location/[id]/edit/not-found.tsx b/app/location/[id]/edit/not-found.tsx deleted file mode 100644 index 54c9f60..0000000 --- a/app/location/[id]/edit/not-found.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import { NotFoundPage } from '@/app/ui/NotFoundPage'; - -const BillingLocationNotFound = () => -; - -export default BillingLocationNotFound; \ No newline at end of file diff --git a/app/location/[id]/edit/page.tsx b/app/location/[id]/edit/page.tsx deleted file mode 100644 index 251f944..0000000 --- a/app/location/[id]/edit/page.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { Suspense } from 'react'; -import LocationEditPage from './LocationEditPage'; -import { Main } from '@/app/ui/Main'; -import { LocationEditFormSkeleton } from '@/app/ui/LocationEditForm'; - -export default async function Page({ params:{ id } }: { params: { id:string } }) { - - return ( -
- }> - - -
- ); -} \ No newline at end of file