From 85df7fbf23b64de808ede76b5b58c1e65451b9b2 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Wed, 4 Dec 2024 07:34:23 +0700 Subject: [PATCH] feat: change folder name landing to public --- .../audio/filter/page.tsx | 0 .../document => (public)/audio}/layout.tsx | 0 .../document/filter/page.tsx | 0 .../image => (public)/document}/layout.tsx | 0 .../image/detail/[slug]/page.tsx | 0 .../image/filter/page.tsx | 0 .../indeks => (public)/image}/layout.tsx | 0 .../indeks/detail/[slug]/page.tsx | 0 .../schedule => (public)/indeks}/layout.tsx | 0 .../{(landing) => (public)}/indeks/page.tsx | 0 .../video => (public)/schedule}/layout.tsx | 0 .../{(landing) => (public)}/schedule/page.tsx | 0 .../video/filter/page.tsx | 0 app/[locale]/(public)/video/layout.tsx | 22 +++++++++++++++++++ 14 files changed, 22 insertions(+) rename app/[locale]/{(landing) => (public)}/audio/filter/page.tsx (100%) rename app/[locale]/{(landing)/document => (public)/audio}/layout.tsx (100%) rename app/[locale]/{(landing) => (public)}/document/filter/page.tsx (100%) rename app/[locale]/{(landing)/image => (public)/document}/layout.tsx (100%) rename app/[locale]/{(landing) => (public)}/image/detail/[slug]/page.tsx (100%) rename app/[locale]/{(landing) => (public)}/image/filter/page.tsx (100%) rename app/[locale]/{(landing)/indeks => (public)/image}/layout.tsx (100%) rename app/[locale]/{(landing) => (public)}/indeks/detail/[slug]/page.tsx (100%) rename app/[locale]/{(landing)/schedule => (public)/indeks}/layout.tsx (100%) rename app/[locale]/{(landing) => (public)}/indeks/page.tsx (100%) rename app/[locale]/{(landing)/video => (public)/schedule}/layout.tsx (100%) rename app/[locale]/{(landing) => (public)}/schedule/page.tsx (100%) rename app/[locale]/{(landing) => (public)}/video/filter/page.tsx (100%) create mode 100644 app/[locale]/(public)/video/layout.tsx diff --git a/app/[locale]/(landing)/audio/filter/page.tsx b/app/[locale]/(public)/audio/filter/page.tsx similarity index 100% rename from app/[locale]/(landing)/audio/filter/page.tsx rename to app/[locale]/(public)/audio/filter/page.tsx diff --git a/app/[locale]/(landing)/document/layout.tsx b/app/[locale]/(public)/audio/layout.tsx similarity index 100% rename from app/[locale]/(landing)/document/layout.tsx rename to app/[locale]/(public)/audio/layout.tsx diff --git a/app/[locale]/(landing)/document/filter/page.tsx b/app/[locale]/(public)/document/filter/page.tsx similarity index 100% rename from app/[locale]/(landing)/document/filter/page.tsx rename to app/[locale]/(public)/document/filter/page.tsx diff --git a/app/[locale]/(landing)/image/layout.tsx b/app/[locale]/(public)/document/layout.tsx similarity index 100% rename from app/[locale]/(landing)/image/layout.tsx rename to app/[locale]/(public)/document/layout.tsx diff --git a/app/[locale]/(landing)/image/detail/[slug]/page.tsx b/app/[locale]/(public)/image/detail/[slug]/page.tsx similarity index 100% rename from app/[locale]/(landing)/image/detail/[slug]/page.tsx rename to app/[locale]/(public)/image/detail/[slug]/page.tsx diff --git a/app/[locale]/(landing)/image/filter/page.tsx b/app/[locale]/(public)/image/filter/page.tsx similarity index 100% rename from app/[locale]/(landing)/image/filter/page.tsx rename to app/[locale]/(public)/image/filter/page.tsx diff --git a/app/[locale]/(landing)/indeks/layout.tsx b/app/[locale]/(public)/image/layout.tsx similarity index 100% rename from app/[locale]/(landing)/indeks/layout.tsx rename to app/[locale]/(public)/image/layout.tsx diff --git a/app/[locale]/(landing)/indeks/detail/[slug]/page.tsx b/app/[locale]/(public)/indeks/detail/[slug]/page.tsx similarity index 100% rename from app/[locale]/(landing)/indeks/detail/[slug]/page.tsx rename to app/[locale]/(public)/indeks/detail/[slug]/page.tsx diff --git a/app/[locale]/(landing)/schedule/layout.tsx b/app/[locale]/(public)/indeks/layout.tsx similarity index 100% rename from app/[locale]/(landing)/schedule/layout.tsx rename to app/[locale]/(public)/indeks/layout.tsx diff --git a/app/[locale]/(landing)/indeks/page.tsx b/app/[locale]/(public)/indeks/page.tsx similarity index 100% rename from app/[locale]/(landing)/indeks/page.tsx rename to app/[locale]/(public)/indeks/page.tsx diff --git a/app/[locale]/(landing)/video/layout.tsx b/app/[locale]/(public)/schedule/layout.tsx similarity index 100% rename from app/[locale]/(landing)/video/layout.tsx rename to app/[locale]/(public)/schedule/layout.tsx diff --git a/app/[locale]/(landing)/schedule/page.tsx b/app/[locale]/(public)/schedule/page.tsx similarity index 100% rename from app/[locale]/(landing)/schedule/page.tsx rename to app/[locale]/(public)/schedule/page.tsx diff --git a/app/[locale]/(landing)/video/filter/page.tsx b/app/[locale]/(public)/video/filter/page.tsx similarity index 100% rename from app/[locale]/(landing)/video/filter/page.tsx rename to app/[locale]/(public)/video/filter/page.tsx diff --git a/app/[locale]/(public)/video/layout.tsx b/app/[locale]/(public)/video/layout.tsx new file mode 100644 index 00000000..ccf7f8d3 --- /dev/null +++ b/app/[locale]/(public)/video/layout.tsx @@ -0,0 +1,22 @@ +import LayoutProvider from "@/providers/layout.provider"; +import LayoutContentProvider from "@/providers/content.provider"; +import DashCodeSidebar from '@/components/partials/sidebar' +import DashCodeFooter from '@/components/partials/footer' +import ThemeCustomize from '@/components/partials/customizer' +import DashCodeHeader from '@/components/partials/header' +import { auth } from "@/lib/auth"; +import { redirect } from "@/components/navigation"; +import Navbar from "@/components/landing-page/Navbar"; +import Footer from "@/components/landing-page/Footer"; + +const layout = async ({ children }: { children: React.ReactNode }) => { + return ( + <> + + {children} +