From 6ac2efb817e285b2083b841e7d44cd5073f893d0 Mon Sep 17 00:00:00 2001 From: cade Date: Tue, 2 Jul 2024 10:42:59 -0700 Subject: [PATCH] refactor directory structure and loading states --- .../(auth)/authenticate/route.ts | 0 .../(auth)/change-password/page.tsx | 0 .../(auth)/confirmation-sent/page.tsx | 0 .../forgot-password/email-sent}/loading.tsx | 0 .../forgot-password/email-sent/page.tsx | 0 .../(auth)/forgot-password/page.tsx | 0 app/(pages)/{(public) => }/(auth)/layout.tsx | 0 .../{(public) => }/(auth)/sign-in/page.tsx | 0 .../{(public) => }/(auth)/sign-up/page.tsx | 0 .../[subjectId]/@modal/(lg)/template.tsx | 12 ---------- .../share/[subjectId]/@modal/(md)/layout.tsx | 5 ----- .../[subjectId]/@modal/[...default]/page.tsx | 3 --- .../share/[subjectId]/@modal/default.tsx | 3 --- .../(public)/share/[subjectId]/default.tsx | 3 --- .../inputs/layout.tsx | 0 .../inputs/loading.tsx | 0 .../{(private) => (with-nav)}/inputs/page.tsx | 0 .../{(private) => (with-nav)}/layout.tsx | 4 +--- .../(group)/events => (with-nav)}/loading.tsx | 0 .../notifications/[tab]/page.tsx | 0 .../notifications/layout.tsx | 0 .../notifications}/loading.tsx | 0 .../subjects/(list)/@archived}/loading.tsx | 0 .../subjects/(list)}/@archived/page.tsx | 0 .../subjects/(list)}/layout.tsx | 0 .../subjects/(list)}/loading.tsx | 0 .../subjects/(list)}/page.tsx | 0 .../(subject)}/events/page.tsx | 0 .../(subject)}/insights/page.tsx | 0 .../(subject-loading)/(subject)}/layout.tsx | 0 .../(subject-loading)/(subject)}/loading.tsx | 0 .../[subjectId]/(subject-loading)}/layout.tsx | 0 .../(subject-loading)}/loading.tsx | 0 .../subjects/[subjectId]/events.csv/route.ts | 0 .../[subjectId]/join/[shareCode]/page.tsx | 0 .../templates/layout.tsx | 0 .../templates/loading.tsx | 0 .../templates/page.tsx | 0 .../template.tsx => @modal/(lg)/layout.tsx} | 4 ++-- .../edit => @modal/(lg)}/loading.tsx | 0 .../insights/[insightId]/loading.tsx | 0 .../insights/[insightId]/page.tsx | 0 .../insights/[insightId]/edit}/loading.tsx | 0 .../insights/[insightId]/edit/page.tsx | 0 .../insights/[insightId]}/loading.tsx | 0 .../[subjectId]/insights/[insightId]/page.tsx | 0 .../[subjectId]/insights/create}/loading.tsx | 0 .../[subjectId]/insights/create/page.tsx | 0 .../@modal/(md)/account/[tab]/loading.tsx | 0 .../@modal/(md)/account/[tab]/page.tsx | 0 .../@modal/(md)/account/layout.tsx | 0 .../(md)/inputs/[inputId]}/loading.tsx | 0 .../@modal/(md)/inputs/[inputId]/page.tsx | 0 .../create/from-input/[inputId]}/loading.tsx | 0 .../create/from-input/[inputId]/page.tsx | 0 .../(md)/inputs/create}/loading.tsx | 0 .../@modal/(md)/inputs/create/page.tsx | 0 .../template.tsx => @modal/(md)/layout.tsx} | 6 ++--- .../[eventTypeId] => @modal/(md)}/loading.tsx | 0 .../[subjectId]/events/[eventId]}/loading.tsx | 0 .../[subjectId]}/events/[eventId]/page.tsx | 0 .../sessions/[sessionId]}/loading.tsx | 0 .../[missionId]/sessions/[sessionId]/page.tsx | 0 .../[missionId]/sessions/loading.tsx | 0 .../[missionId]/sessions/page.tsx | 0 .../subjects/[subjectId]}/edit/loading.tsx | 0 .../(md)/subjects/[subjectId]/edit/page.tsx | 0 .../[eventTypeId]}/edit/loading.tsx | 0 .../event-types/[eventTypeId]/edit/page.tsx | 0 .../event-types/[eventTypeId]}/loading.tsx | 0 .../event-types/[eventTypeId]/page.tsx | 0 .../event-types/create}/loading.tsx | 0 .../[subjectId]/event-types/create/page.tsx | 0 .../[subjectId]/events/[eventId]}/loading.tsx | 0 .../[subjectId]/events/[eventId]/page.tsx | 0 .../[missionId]/edit}/loading.tsx | 0 .../training-plans/[missionId]/edit/page.tsx | 0 .../sessions/[sessionId]/edit}/loading.tsx | 0 .../sessions/[sessionId]/edit/page.tsx | 0 .../sessions/[sessionId]}/loading.tsx | 0 .../[missionId]/sessions/[sessionId]/page.tsx | 0 .../from-session/[sessionId]}/loading.tsx | 0 .../[order]/from-session/[sessionId]/page.tsx | 0 .../sessions/create/[order]}/loading.tsx | 0 .../sessions/create/[order]/page.tsx | 0 .../[missionId]/sessions}/loading.tsx | 0 .../[missionId]/sessions/page.tsx | 0 .../training-plans/create}/loading.tsx | 0 .../training-plans/create/page.tsx | 0 .../(md)/subjects/create}/loading.tsx | 0 .../@modal/(md)/subjects/create/page.tsx | 0 .../(md)/templates/[templateId]}/loading.tsx | 0 .../(md)/templates/[templateId]/page.tsx | 0 .../from-event-type/[eventTypeId]/loading.tsx | 5 +++++ .../from-event-type/[eventTypeId]/page.tsx | 0 .../@modal/(md)/templates/create/loading.tsx | 5 +++++ .../@modal/(md)/templates/create/page.tsx | 0 .../@modal/[...default]/page.tsx | 0 .../{(private) => }/@modal/default.tsx | 0 app/(pages)/{(private) => }/default.tsx | 0 app/(pages)/layout.tsx | 22 +++++++++---------- .../(group)/(group)/events => }/loading.tsx | 0 .../(subject)}/events/page.tsx | 0 .../(subject)}/insights/page.tsx | 0 .../(subject-loading)/(subject)}/layout.tsx | 0 .../(subject-loading)/(subject)}/loading.tsx | 0 .../[subjectId]/(subject-loading)}/layout.tsx | 0 .../(subject-loading)}/loading.tsx | 0 .../share/[subjectId]/events.csv/route.tsx | 0 .../share/[subjectId]/layout.tsx | 8 +------ app/(pages)/share/[subjectId]/loading.tsx | 5 +++++ 111 files changed, 31 insertions(+), 54 deletions(-) rename app/(pages)/{(public) => }/(auth)/authenticate/route.ts (100%) rename app/(pages)/{(public) => }/(auth)/change-password/page.tsx (100%) rename app/(pages)/{(public) => }/(auth)/confirmation-sent/page.tsx (100%) rename app/(pages)/{(private)/subjects/(group)/@archived => (auth)/forgot-password/email-sent}/loading.tsx (100%) rename app/(pages)/{(public) => }/(auth)/forgot-password/email-sent/page.tsx (100%) rename app/(pages)/{(public) => }/(auth)/forgot-password/page.tsx (100%) rename app/(pages)/{(public) => }/(auth)/layout.tsx (100%) rename app/(pages)/{(public) => }/(auth)/sign-in/page.tsx (100%) rename app/(pages)/{(public) => }/(auth)/sign-up/page.tsx (100%) delete mode 100644 app/(pages)/(public)/share/[subjectId]/@modal/(lg)/template.tsx delete mode 100644 app/(pages)/(public)/share/[subjectId]/@modal/(md)/layout.tsx delete mode 100644 app/(pages)/(public)/share/[subjectId]/@modal/[...default]/page.tsx delete mode 100644 app/(pages)/(public)/share/[subjectId]/@modal/default.tsx delete mode 100644 app/(pages)/(public)/share/[subjectId]/default.tsx rename app/(pages)/{(private) => (with-nav)}/inputs/layout.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/inputs/loading.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/inputs/page.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/layout.tsx (95%) rename app/(pages)/{(private)/subjects/[subjectId]/(group)/(group)/events => (with-nav)}/loading.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/notifications/[tab]/page.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/notifications/layout.tsx (100%) rename app/(pages)/{(private)/notifications/[tab] => (with-nav)/notifications}/loading.tsx (100%) rename app/(pages)/{(public)/(auth)/forgot-password/email-sent => (with-nav)/subjects/(list)/@archived}/loading.tsx (100%) rename app/(pages)/{(private)/subjects/(group) => (with-nav)/subjects/(list)}/@archived/page.tsx (100%) rename app/(pages)/{(private)/subjects/(group) => (with-nav)/subjects/(list)}/layout.tsx (100%) rename app/(pages)/{(private)/subjects/(group) => (with-nav)/subjects/(list)}/loading.tsx (100%) rename app/(pages)/{(private)/subjects/(group) => (with-nav)/subjects/(list)}/page.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group)/(group) => (with-nav)/subjects/[subjectId]/(subject-loading)/(subject)}/events/page.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group)/(group) => (with-nav)/subjects/[subjectId]/(subject-loading)/(subject)}/insights/page.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group)/(group) => (with-nav)/subjects/[subjectId]/(subject-loading)/(subject)}/layout.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group)/(group)/insights => (with-nav)/subjects/[subjectId]/(subject-loading)/(subject)}/loading.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group) => (with-nav)/subjects/[subjectId]/(subject-loading)}/layout.tsx (100%) rename app/(pages)/{(private)/subjects/[subjectId]/(group) => (with-nav)/subjects/[subjectId]/(subject-loading)}/loading.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/subjects/[subjectId]/events.csv/route.ts (100%) rename app/(pages)/{(private) => (with-nav)}/subjects/[subjectId]/join/[shareCode]/page.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/templates/layout.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/templates/loading.tsx (100%) rename app/(pages)/{(private) => (with-nav)}/templates/page.tsx (100%) rename app/(pages)/{(private)/@modal/(lg)/template.tsx => @modal/(lg)/layout.tsx} (72%) rename app/(pages)/{(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit => @modal/(lg)}/loading.tsx (100%) rename app/(pages)/{(private)/@modal/(lg)/subjects => @modal/(lg)/share}/[subjectId]/insights/[insightId]/loading.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(lg) => @modal/(lg)/share/[subjectId]}/insights/[insightId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(lg)/subjects/[subjectId]/insights/create => @modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/inputs/[inputId] => @modal/(lg)/subjects/[subjectId]/insights/[insightId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/inputs/create/from-input/[inputId] => @modal/(lg)/subjects/[subjectId]/insights/create}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(lg)/subjects/[subjectId]/insights/create/page.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/account/[tab]/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/account/[tab]/page.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/account/layout.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/inputs/create => @modal/(md)/inputs/[inputId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/inputs/[inputId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/edit => @modal/(md)/inputs/create/from-input/[inputId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/inputs/create/from-input/[inputId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit => @modal/(md)/inputs/create}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/inputs/create/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/template.tsx => @modal/(md)/layout.tsx} (54%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId] => @modal/(md)}/loading.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/event-types/create => @modal/(md)/share/[subjectId]/events/[eventId]}/loading.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(md) => @modal/(md)/share/[subjectId]}/events/[eventId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/events/[eventId] => @modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/[sessionId]}/loading.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(md) => @modal/(md)/share/[subjectId]}/training-plans/[missionId]/sessions/[sessionId]/page.tsx (100%) rename app/(pages)/{(public) => @modal/(md)}/share/[subjectId]/training-plans/[missionId]/sessions/loading.tsx (100%) rename app/(pages)/{(public) => @modal/(md)}/share/[subjectId]/training-plans/[missionId]/sessions/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId] => @modal/(md)/subjects/[subjectId]}/edit/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/edit/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId] => @modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]}/edit/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId] => @modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId] => @modal/(md)/subjects/[subjectId]/event-types/create}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/event-types/create/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order] => @modal/(md)/subjects/[subjectId]/events/[eventId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/events/[eventId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/[subjectId]/training-plans/create => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/subjects/create => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/templates/[templateId] => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/templates/create/from-event-type/[eventTypeId] => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/page.tsx (100%) rename app/(pages)/{(private)/@modal/(md)/templates/create => @modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/page.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(lg)/insights/[insightId] => @modal/(md)/subjects/[subjectId]/training-plans/create}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/[subjectId]/training-plans/create/page.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(md)/events/[eventId] => @modal/(md)/subjects/create}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/subjects/create/page.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/@modal/(md)/training-plans/[missionId]/sessions/[sessionId] => @modal/(md)/templates/[templateId]}/loading.tsx (100%) rename app/(pages)/{(private) => }/@modal/(md)/templates/[templateId]/page.tsx (100%) create mode 100644 app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx rename app/(pages)/{(private) => }/@modal/(md)/templates/create/from-event-type/[eventTypeId]/page.tsx (100%) create mode 100644 app/(pages)/@modal/(md)/templates/create/loading.tsx rename app/(pages)/{(private) => }/@modal/(md)/templates/create/page.tsx (100%) rename app/(pages)/{(private) => }/@modal/[...default]/page.tsx (100%) rename app/(pages)/{(private) => }/@modal/default.tsx (100%) rename app/(pages)/{(private) => }/default.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group)/(group)/events => }/loading.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group)/(group) => share/[subjectId]/(subject-loading)/(subject)}/events/page.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group)/(group) => share/[subjectId]/(subject-loading)/(subject)}/insights/page.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group)/(group) => share/[subjectId]/(subject-loading)/(subject)}/layout.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group)/(group)/insights => share/[subjectId]/(subject-loading)/(subject)}/loading.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group) => share/[subjectId]/(subject-loading)}/layout.tsx (100%) rename app/(pages)/{(public)/share/[subjectId]/(group) => share/[subjectId]/(subject-loading)}/loading.tsx (100%) rename app/(pages)/{(public) => }/share/[subjectId]/events.csv/route.tsx (100%) rename app/(pages)/{(public) => }/share/[subjectId]/layout.tsx (94%) create mode 100644 app/(pages)/share/[subjectId]/loading.tsx diff --git a/app/(pages)/(public)/(auth)/authenticate/route.ts b/app/(pages)/(auth)/authenticate/route.ts similarity index 100% rename from app/(pages)/(public)/(auth)/authenticate/route.ts rename to app/(pages)/(auth)/authenticate/route.ts diff --git a/app/(pages)/(public)/(auth)/change-password/page.tsx b/app/(pages)/(auth)/change-password/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/change-password/page.tsx rename to app/(pages)/(auth)/change-password/page.tsx diff --git a/app/(pages)/(public)/(auth)/confirmation-sent/page.tsx b/app/(pages)/(auth)/confirmation-sent/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/confirmation-sent/page.tsx rename to app/(pages)/(auth)/confirmation-sent/page.tsx diff --git a/app/(pages)/(private)/subjects/(group)/@archived/loading.tsx b/app/(pages)/(auth)/forgot-password/email-sent/loading.tsx similarity index 100% rename from app/(pages)/(private)/subjects/(group)/@archived/loading.tsx rename to app/(pages)/(auth)/forgot-password/email-sent/loading.tsx diff --git a/app/(pages)/(public)/(auth)/forgot-password/email-sent/page.tsx b/app/(pages)/(auth)/forgot-password/email-sent/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/forgot-password/email-sent/page.tsx rename to app/(pages)/(auth)/forgot-password/email-sent/page.tsx diff --git a/app/(pages)/(public)/(auth)/forgot-password/page.tsx b/app/(pages)/(auth)/forgot-password/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/forgot-password/page.tsx rename to app/(pages)/(auth)/forgot-password/page.tsx diff --git a/app/(pages)/(public)/(auth)/layout.tsx b/app/(pages)/(auth)/layout.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/layout.tsx rename to app/(pages)/(auth)/layout.tsx diff --git a/app/(pages)/(public)/(auth)/sign-in/page.tsx b/app/(pages)/(auth)/sign-in/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/sign-in/page.tsx rename to app/(pages)/(auth)/sign-in/page.tsx diff --git a/app/(pages)/(public)/(auth)/sign-up/page.tsx b/app/(pages)/(auth)/sign-up/page.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/sign-up/page.tsx rename to app/(pages)/(auth)/sign-up/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(lg)/template.tsx b/app/(pages)/(public)/share/[subjectId]/@modal/(lg)/template.tsx deleted file mode 100644 index b6ffeff1..00000000 --- a/app/(pages)/(public)/share/[subjectId]/@modal/(lg)/template.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import PageModal from '@/_components/page-modal'; -import { ReactNode } from 'react'; - -interface LayoutProps { - children: ReactNode; -} - -const Template = ({ children }: LayoutProps) => ( - {children} -); - -export default Template; diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/layout.tsx b/app/(pages)/(public)/share/[subjectId]/@modal/(md)/layout.tsx deleted file mode 100644 index 2bae46a7..00000000 --- a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/layout.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import PageModal from '@/_components/page-modal'; - -const Layout = PageModal; - -export default Layout; diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/[...default]/page.tsx b/app/(pages)/(public)/share/[subjectId]/@modal/[...default]/page.tsx deleted file mode 100644 index c2a317bf..00000000 --- a/app/(pages)/(public)/share/[subjectId]/@modal/[...default]/page.tsx +++ /dev/null @@ -1,3 +0,0 @@ -const Page = () => null; - -export default Page; diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/default.tsx b/app/(pages)/(public)/share/[subjectId]/@modal/default.tsx deleted file mode 100644 index 79f2366c..00000000 --- a/app/(pages)/(public)/share/[subjectId]/@modal/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -const Default = () => null; - -export default Default; diff --git a/app/(pages)/(public)/share/[subjectId]/default.tsx b/app/(pages)/(public)/share/[subjectId]/default.tsx deleted file mode 100644 index 79f2366c..00000000 --- a/app/(pages)/(public)/share/[subjectId]/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -const Default = () => null; - -export default Default; diff --git a/app/(pages)/(private)/inputs/layout.tsx b/app/(pages)/(with-nav)/inputs/layout.tsx similarity index 100% rename from app/(pages)/(private)/inputs/layout.tsx rename to app/(pages)/(with-nav)/inputs/layout.tsx diff --git a/app/(pages)/(private)/inputs/loading.tsx b/app/(pages)/(with-nav)/inputs/loading.tsx similarity index 100% rename from app/(pages)/(private)/inputs/loading.tsx rename to app/(pages)/(with-nav)/inputs/loading.tsx diff --git a/app/(pages)/(private)/inputs/page.tsx b/app/(pages)/(with-nav)/inputs/page.tsx similarity index 100% rename from app/(pages)/(private)/inputs/page.tsx rename to app/(pages)/(with-nav)/inputs/page.tsx diff --git a/app/(pages)/(private)/layout.tsx b/app/(pages)/(with-nav)/layout.tsx similarity index 95% rename from app/(pages)/(private)/layout.tsx rename to app/(pages)/(with-nav)/layout.tsx index 9766ff2c..bfb225a8 100644 --- a/app/(pages)/(private)/layout.tsx +++ b/app/(pages)/(with-nav)/layout.tsx @@ -9,10 +9,9 @@ import { ReactNode } from 'react'; interface LayoutProps { children: ReactNode; - modal: ReactNode; } -const Layout = async ({ children, modal }: LayoutProps) => { +const Layout = async ({ children }: LayoutProps) => { const [{ count }, user] = await Promise.all([ countNotifications(), getCurrentUser(), @@ -67,7 +66,6 @@ const Layout = async ({ children, modal }: LayoutProps) => { )} {children} - {modal} ); }; diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/events/loading.tsx b/app/(pages)/(with-nav)/loading.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/events/loading.tsx rename to app/(pages)/(with-nav)/loading.tsx diff --git a/app/(pages)/(private)/notifications/[tab]/page.tsx b/app/(pages)/(with-nav)/notifications/[tab]/page.tsx similarity index 100% rename from app/(pages)/(private)/notifications/[tab]/page.tsx rename to app/(pages)/(with-nav)/notifications/[tab]/page.tsx diff --git a/app/(pages)/(private)/notifications/layout.tsx b/app/(pages)/(with-nav)/notifications/layout.tsx similarity index 100% rename from app/(pages)/(private)/notifications/layout.tsx rename to app/(pages)/(with-nav)/notifications/layout.tsx diff --git a/app/(pages)/(private)/notifications/[tab]/loading.tsx b/app/(pages)/(with-nav)/notifications/loading.tsx similarity index 100% rename from app/(pages)/(private)/notifications/[tab]/loading.tsx rename to app/(pages)/(with-nav)/notifications/loading.tsx diff --git a/app/(pages)/(public)/(auth)/forgot-password/email-sent/loading.tsx b/app/(pages)/(with-nav)/subjects/(list)/@archived/loading.tsx similarity index 100% rename from app/(pages)/(public)/(auth)/forgot-password/email-sent/loading.tsx rename to app/(pages)/(with-nav)/subjects/(list)/@archived/loading.tsx diff --git a/app/(pages)/(private)/subjects/(group)/@archived/page.tsx b/app/(pages)/(with-nav)/subjects/(list)/@archived/page.tsx similarity index 100% rename from app/(pages)/(private)/subjects/(group)/@archived/page.tsx rename to app/(pages)/(with-nav)/subjects/(list)/@archived/page.tsx diff --git a/app/(pages)/(private)/subjects/(group)/layout.tsx b/app/(pages)/(with-nav)/subjects/(list)/layout.tsx similarity index 100% rename from app/(pages)/(private)/subjects/(group)/layout.tsx rename to app/(pages)/(with-nav)/subjects/(list)/layout.tsx diff --git a/app/(pages)/(private)/subjects/(group)/loading.tsx b/app/(pages)/(with-nav)/subjects/(list)/loading.tsx similarity index 100% rename from app/(pages)/(private)/subjects/(group)/loading.tsx rename to app/(pages)/(with-nav)/subjects/(list)/loading.tsx diff --git a/app/(pages)/(private)/subjects/(group)/page.tsx b/app/(pages)/(with-nav)/subjects/(list)/page.tsx similarity index 100% rename from app/(pages)/(private)/subjects/(group)/page.tsx rename to app/(pages)/(with-nav)/subjects/(list)/page.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/events/page.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/events/page.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/events/page.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/events/page.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/insights/page.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/insights/page.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/insights/page.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/insights/page.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/layout.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/layout.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/layout.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/layout.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/insights/loading.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/loading.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/(group)/insights/loading.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/(subject)/loading.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/layout.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/layout.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/layout.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/layout.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/(group)/loading.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/loading.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/(group)/loading.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/(subject-loading)/loading.tsx diff --git a/app/(pages)/(private)/subjects/[subjectId]/events.csv/route.ts b/app/(pages)/(with-nav)/subjects/[subjectId]/events.csv/route.ts similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/events.csv/route.ts rename to app/(pages)/(with-nav)/subjects/[subjectId]/events.csv/route.ts diff --git a/app/(pages)/(private)/subjects/[subjectId]/join/[shareCode]/page.tsx b/app/(pages)/(with-nav)/subjects/[subjectId]/join/[shareCode]/page.tsx similarity index 100% rename from app/(pages)/(private)/subjects/[subjectId]/join/[shareCode]/page.tsx rename to app/(pages)/(with-nav)/subjects/[subjectId]/join/[shareCode]/page.tsx diff --git a/app/(pages)/(private)/templates/layout.tsx b/app/(pages)/(with-nav)/templates/layout.tsx similarity index 100% rename from app/(pages)/(private)/templates/layout.tsx rename to app/(pages)/(with-nav)/templates/layout.tsx diff --git a/app/(pages)/(private)/templates/loading.tsx b/app/(pages)/(with-nav)/templates/loading.tsx similarity index 100% rename from app/(pages)/(private)/templates/loading.tsx rename to app/(pages)/(with-nav)/templates/loading.tsx diff --git a/app/(pages)/(private)/templates/page.tsx b/app/(pages)/(with-nav)/templates/page.tsx similarity index 100% rename from app/(pages)/(private)/templates/page.tsx rename to app/(pages)/(with-nav)/templates/page.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/template.tsx b/app/(pages)/@modal/(lg)/layout.tsx similarity index 72% rename from app/(pages)/(private)/@modal/(lg)/template.tsx rename to app/(pages)/@modal/(lg)/layout.tsx index b6ffeff1..a156e4b8 100644 --- a/app/(pages)/(private)/@modal/(lg)/template.tsx +++ b/app/(pages)/@modal/(lg)/layout.tsx @@ -5,8 +5,8 @@ interface LayoutProps { children: ReactNode; } -const Template = ({ children }: LayoutProps) => ( +const Layout = ({ children }: LayoutProps) => ( {children} ); -export default Template; +export default Layout; diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/loading.tsx b/app/(pages)/@modal/(lg)/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/loading.tsx rename to app/(pages)/@modal/(lg)/loading.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/loading.tsx b/app/(pages)/@modal/(lg)/share/[subjectId]/insights/[insightId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/loading.tsx rename to app/(pages)/@modal/(lg)/share/[subjectId]/insights/[insightId]/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(lg)/insights/[insightId]/page.tsx b/app/(pages)/@modal/(lg)/share/[subjectId]/insights/[insightId]/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(lg)/insights/[insightId]/page.tsx rename to app/(pages)/@modal/(lg)/share/[subjectId]/insights/[insightId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/create/loading.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/create/loading.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/loading.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/page.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/page.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/edit/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/[inputId]/loading.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/[inputId]/loading.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/page.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/page.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/[insightId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/create/from-input/[inputId]/loading.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/create/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/create/from-input/[inputId]/loading.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/create/loading.tsx diff --git a/app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/create/page.tsx b/app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(lg)/subjects/[subjectId]/insights/create/page.tsx rename to app/(pages)/@modal/(lg)/subjects/[subjectId]/insights/create/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/account/[tab]/loading.tsx b/app/(pages)/@modal/(md)/account/[tab]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/account/[tab]/loading.tsx rename to app/(pages)/@modal/(md)/account/[tab]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/account/[tab]/page.tsx b/app/(pages)/@modal/(md)/account/[tab]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/account/[tab]/page.tsx rename to app/(pages)/@modal/(md)/account/[tab]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/account/layout.tsx b/app/(pages)/@modal/(md)/account/layout.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/account/layout.tsx rename to app/(pages)/@modal/(md)/account/layout.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/create/loading.tsx b/app/(pages)/@modal/(md)/inputs/[inputId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/create/loading.tsx rename to app/(pages)/@modal/(md)/inputs/[inputId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/[inputId]/page.tsx b/app/(pages)/@modal/(md)/inputs/[inputId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/[inputId]/page.tsx rename to app/(pages)/@modal/(md)/inputs/[inputId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/edit/loading.tsx b/app/(pages)/@modal/(md)/inputs/create/from-input/[inputId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/edit/loading.tsx rename to app/(pages)/@modal/(md)/inputs/create/from-input/[inputId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/create/from-input/[inputId]/page.tsx b/app/(pages)/@modal/(md)/inputs/create/from-input/[inputId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/create/from-input/[inputId]/page.tsx rename to app/(pages)/@modal/(md)/inputs/create/from-input/[inputId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/loading.tsx b/app/(pages)/@modal/(md)/inputs/create/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/loading.tsx rename to app/(pages)/@modal/(md)/inputs/create/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/inputs/create/page.tsx b/app/(pages)/@modal/(md)/inputs/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/inputs/create/page.tsx rename to app/(pages)/@modal/(md)/inputs/create/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/template.tsx b/app/(pages)/@modal/(md)/layout.tsx similarity index 54% rename from app/(pages)/(private)/@modal/(md)/template.tsx rename to app/(pages)/@modal/(md)/layout.tsx index 59b69c6b..0223f33a 100644 --- a/app/(pages)/(private)/@modal/(md)/template.tsx +++ b/app/(pages)/@modal/(md)/layout.tsx @@ -5,8 +5,6 @@ interface LayoutProps { children: ReactNode; } -const Template = ({ children }: LayoutProps) => ( - {children} -); +const Layout = ({ children }: LayoutProps) => {children}; -export default Template; +export default Layout; diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/loading.tsx b/app/(pages)/@modal/(md)/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/loading.tsx rename to app/(pages)/@modal/(md)/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/create/loading.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/events/[eventId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/create/loading.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/events/[eventId]/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/events/[eventId]/page.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/events/[eventId]/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(md)/events/[eventId]/page.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/events/[eventId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/events/[eventId]/loading.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/events/[eventId]/loading.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/training-plans/[missionId]/sessions/[sessionId]/page.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(md)/training-plans/[missionId]/sessions/[sessionId]/page.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/training-plans/[missionId]/sessions/loading.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/training-plans/[missionId]/sessions/loading.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/training-plans/[missionId]/sessions/page.tsx b/app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/training-plans/[missionId]/sessions/page.tsx rename to app/(pages)/@modal/(md)/share/[subjectId]/training-plans/[missionId]/sessions/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/edit/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/edit/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/edit/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/edit/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/edit/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/edit/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/edit/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/[eventTypeId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/create/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/create/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/create/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/event-types/create/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/event-types/create/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/events/[eventId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/events/[eventId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/events/[eventId]/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/events/[eventId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/events/[eventId]/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/events/[eventId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/edit/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/create/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/create/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/edit/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/create/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/create/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/[sessionId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/templates/[templateId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/[templateId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/from-session/[sessionId]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/create/[order]/page.tsx diff --git a/app/(pages)/(private)/@modal/(md)/templates/create/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/loading.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/create/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/[missionId]/sessions/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(lg)/insights/[insightId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/create/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(lg)/insights/[insightId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/create/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/create/page.tsx b/app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/[subjectId]/training-plans/create/page.tsx rename to app/(pages)/@modal/(md)/subjects/[subjectId]/training-plans/create/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/events/[eventId]/loading.tsx b/app/(pages)/@modal/(md)/subjects/create/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(md)/events/[eventId]/loading.tsx rename to app/(pages)/@modal/(md)/subjects/create/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/subjects/create/page.tsx b/app/(pages)/@modal/(md)/subjects/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/subjects/create/page.tsx rename to app/(pages)/@modal/(md)/subjects/create/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/@modal/(md)/training-plans/[missionId]/sessions/[sessionId]/loading.tsx b/app/(pages)/@modal/(md)/templates/[templateId]/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/@modal/(md)/training-plans/[missionId]/sessions/[sessionId]/loading.tsx rename to app/(pages)/@modal/(md)/templates/[templateId]/loading.tsx diff --git a/app/(pages)/(private)/@modal/(md)/templates/[templateId]/page.tsx b/app/(pages)/@modal/(md)/templates/[templateId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/[templateId]/page.tsx rename to app/(pages)/@modal/(md)/templates/[templateId]/page.tsx diff --git a/app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx b/app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx new file mode 100644 index 00000000..e3d948d8 --- /dev/null +++ b/app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/loading.tsx @@ -0,0 +1,5 @@ +import PageModalLoading from '@/_components/page-modal-loading'; + +const Loading = PageModalLoading; + +export default Loading; diff --git a/app/(pages)/(private)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/page.tsx b/app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/page.tsx rename to app/(pages)/@modal/(md)/templates/create/from-event-type/[eventTypeId]/page.tsx diff --git a/app/(pages)/@modal/(md)/templates/create/loading.tsx b/app/(pages)/@modal/(md)/templates/create/loading.tsx new file mode 100644 index 00000000..e3d948d8 --- /dev/null +++ b/app/(pages)/@modal/(md)/templates/create/loading.tsx @@ -0,0 +1,5 @@ +import PageModalLoading from '@/_components/page-modal-loading'; + +const Loading = PageModalLoading; + +export default Loading; diff --git a/app/(pages)/(private)/@modal/(md)/templates/create/page.tsx b/app/(pages)/@modal/(md)/templates/create/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/(md)/templates/create/page.tsx rename to app/(pages)/@modal/(md)/templates/create/page.tsx diff --git a/app/(pages)/(private)/@modal/[...default]/page.tsx b/app/(pages)/@modal/[...default]/page.tsx similarity index 100% rename from app/(pages)/(private)/@modal/[...default]/page.tsx rename to app/(pages)/@modal/[...default]/page.tsx diff --git a/app/(pages)/(private)/@modal/default.tsx b/app/(pages)/@modal/default.tsx similarity index 100% rename from app/(pages)/(private)/@modal/default.tsx rename to app/(pages)/@modal/default.tsx diff --git a/app/(pages)/(private)/default.tsx b/app/(pages)/default.tsx similarity index 100% rename from app/(pages)/(private)/default.tsx rename to app/(pages)/default.tsx diff --git a/app/(pages)/layout.tsx b/app/(pages)/layout.tsx index ff6e3dd7..8730b006 100644 --- a/app/(pages)/layout.tsx +++ b/app/(pages)/layout.tsx @@ -5,16 +5,8 @@ import { ReactNode } from 'react'; import { twMerge } from 'tailwind-merge'; import '../../tailwind.css'; -const figtree = Figtree({ subsets: ['latin'], variable: '--font-body' }); - -const inconsolata = Inconsolata({ - subsets: ['latin'], - variable: '--font-mono', -}); - -interface LayoutProps { - children: ReactNode; -} +const sans = Figtree({ subsets: ['latin'], variable: '--font-body' }); +const mono = Inconsolata({ subsets: ['latin'], variable: '--font-mono' }); export const metadata = { description: @@ -32,10 +24,16 @@ export const viewport: Viewport = { width: 'device-width', }; -const Layout = ({ children }: LayoutProps) => ( - +interface LayoutProps { + children: ReactNode; + modal: ReactNode; +} + +const Layout = ({ children, modal }: LayoutProps) => ( + {children} + {modal} diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/(group)/events/loading.tsx b/app/(pages)/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/(group)/events/loading.tsx rename to app/(pages)/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/(group)/events/page.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/(subject)/events/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/(group)/events/page.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/(subject)/events/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/(group)/insights/page.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/(subject)/insights/page.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/(group)/insights/page.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/(subject)/insights/page.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/(group)/layout.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/(subject)/layout.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/(group)/layout.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/(subject)/layout.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/(group)/insights/loading.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/(subject)/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/(group)/insights/loading.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/(subject)/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/layout.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/layout.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/layout.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/layout.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/(group)/loading.tsx b/app/(pages)/share/[subjectId]/(subject-loading)/loading.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/(group)/loading.tsx rename to app/(pages)/share/[subjectId]/(subject-loading)/loading.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/events.csv/route.tsx b/app/(pages)/share/[subjectId]/events.csv/route.tsx similarity index 100% rename from app/(pages)/(public)/share/[subjectId]/events.csv/route.tsx rename to app/(pages)/share/[subjectId]/events.csv/route.tsx diff --git a/app/(pages)/(public)/share/[subjectId]/layout.tsx b/app/(pages)/share/[subjectId]/layout.tsx similarity index 94% rename from app/(pages)/(public)/share/[subjectId]/layout.tsx rename to app/(pages)/share/[subjectId]/layout.tsx index d1c6fd5d..8dbced09 100644 --- a/app/(pages)/(public)/share/[subjectId]/layout.tsx +++ b/app/(pages)/share/[subjectId]/layout.tsx @@ -6,15 +6,10 @@ import { ReactNode } from 'react'; interface LayoutProps { children: ReactNode; - modal: ReactNode; params: { subjectId: string }; } -const Layout = async ({ - children, - modal, - params: { subjectId }, -}: LayoutProps) => { +const Layout = async ({ children, params: { subjectId } }: LayoutProps) => { const [{ data: subject }, user] = await Promise.all([ getSubject(subjectId), getCurrentUser(), @@ -67,7 +62,6 @@ const Layout = async ({
{children}
- {modal} ); }; diff --git a/app/(pages)/share/[subjectId]/loading.tsx b/app/(pages)/share/[subjectId]/loading.tsx new file mode 100644 index 00000000..a626e9fb --- /dev/null +++ b/app/(pages)/share/[subjectId]/loading.tsx @@ -0,0 +1,5 @@ +import Spinner from '@/_components/spinner'; + +const Loading = () => ; + +export default Loading;