diff --git a/front/app/api/revalidate/route.ts b/front/app/api/revalidate/route.ts index c3d0aa71..3ca5eec1 100644 --- a/front/app/api/revalidate/route.ts +++ b/front/app/api/revalidate/route.ts @@ -6,7 +6,7 @@ export async function GET(request: NextRequest) { revalidateTag(tag); return NextResponse.json( - { revalidated: true, now: Date.now() }, + { revalidated: true, now: Date.now(), tag }, { status: 200, headers: { diff --git a/front/app/editor/course/[courseid]/activity/[activityid]/edit/loading.tsx b/front/app/editor/course/[courseid]/activity/[activityid]/edit/loading.tsx index b3fd3bc3..3f902486 100644 --- a/front/app/editor/course/[courseid]/activity/[activityid]/edit/loading.tsx +++ b/front/app/editor/course/[courseid]/activity/[activityid]/edit/loading.tsx @@ -1,4 +1,4 @@ -import PageLoading from "@components/Pages/PageLoading"; +import PageLoading from "@components/Objects/Loaders/PageLoading"; export default function Loading() { // Or a custom loading skeleton component diff --git a/front/app/editor/course/[courseid]/activity/[activityid]/edit/page.tsx b/front/app/editor/course/[courseid]/activity/[activityid]/edit/page.tsx index 2be18fae..37c19000 100644 --- a/front/app/editor/course/[courseid]/activity/[activityid]/edit/page.tsx +++ b/front/app/editor/course/[courseid]/activity/[activityid]/edit/page.tsx @@ -1,7 +1,7 @@ import { default as React, } from "react"; import { useRouter } from "next/navigation"; import AuthProvider from "@components/Security/AuthProvider"; -import EditorWrapper from "@components/Editor/EditorWrapper"; +import EditorWrapper from "@components/Objects/Editor/EditorWrapper"; import { getAPIUrl } from "@services/config/config"; import { swrFetcher } from "@services/utils/ts/requests"; import { getOrganizationContextInfo } from "@services/organizations/orgs"; diff --git a/front/app/layout.tsx b/front/app/layout.tsx index dfad1471..84c73f3a 100644 --- a/front/app/layout.tsx +++ b/front/app/layout.tsx @@ -1,6 +1,6 @@ "use client"; import "../styles/globals.css"; -import StyledComponentsRegistry from "../components/UI/libs/styled-registry"; +import StyledComponentsRegistry from "../components/Utils/libs/styled-registry"; import { motion } from "framer-motion"; export default function RootLayout({ children }: { children: React.ReactNode }) { diff --git a/front/app/organizations/new/page.tsx b/front/app/organizations/new/page.tsx index d80467e0..df43c47b 100644 --- a/front/app/organizations/new/page.tsx +++ b/front/app/organizations/new/page.tsx @@ -1,6 +1,5 @@ "use client"; import React from "react"; -import { Title } from "../../../components/UI/Elements/Styles/Title"; import { createNewOrganization } from "../../../services/organizations/orgs"; const Organizations = () => { @@ -35,7 +34,7 @@ const Organizations = () => { return (
Failed to load
} diff --git a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/error.tsx b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/error.tsx index 9e4c3efb..8bac23db 100644 --- a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/error.tsx +++ b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/error.tsx @@ -1,6 +1,6 @@ 'use client'; // Error components must be Client Components -import ErrorUI from '@components/UI/Error/Error'; +import ErrorUI from '@components/StyledElements/Error/Error'; import { useEffect } from 'react'; export default function Error({ diff --git a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/loading.tsx b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/loading.tsx index 9a7cafe9..ec352ab7 100644 --- a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/loading.tsx +++ b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/loading.tsx @@ -1,4 +1,4 @@ -import PageLoading from "@components/Pages/PageLoading"; +import PageLoading from "@components/Objects/Loaders/PageLoading"; export default function Loading() { return ( diff --git a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/page.tsx b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/page.tsx index 7a79fa23..f96b7734 100644 --- a/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/page.tsx +++ b/front/app/orgs/[orgslug]/(withmenu)/collection/[collectionid]/page.tsx @@ -1,3 +1,4 @@ +import GeneralWrapperStyled from "@components/StyledElements/Wrappers/GeneralWrapper"; import { getBackendUrl, getUriWithOrg } from "@services/config/config"; import { getCollectionByIdWithAuthHeader } from "@services/courses/collections"; import { getOrganizationContextInfo } from "@services/organizations/orgs"; @@ -38,7 +39,7 @@ const CollectionPage = async (params : any) => { } - return{JSON.stringify(activity, null, 2)}
- Course
-Course
+Chapter : {getChapterName(activity.chapter_id)}
+Course
-Course
+{course.course.description}
- +{course.learnings == ![] ? "no data" : course.learnings}
-Edit Course {" "}
+ + +Save
+ +Failed to load
} +