editor improvements

* add callout, youtube embed, image, video, table, detail, math
* fix attachments module
* other fixes
This commit is contained in:
Philipinho
2024-06-20 14:57:00 +01:00
parent c7925739cb
commit 1f4bd129a8
74 changed files with 5205 additions and 381 deletions

View File

@ -3,6 +3,7 @@ import { useEffect } from "react";
import { usePageQuery } from "@/features/page/queries/page-query";
import { buildPageUrl } from "@/features/page/page.utils.ts";
import { extractPageSlugId } from "@/lib";
import { Error404 } from "@/components/ui/error-404.tsx";
export default function PageRedirect() {
const { pageSlug } = useParams();
@ -20,6 +21,10 @@ export default function PageRedirect() {
}
}, [page]);
if (isError) {
return <Error404 />;
}
if (pageIsLoading) {
return <></>;
}

View File

@ -42,7 +42,7 @@ export default function Page() {
page && (
<div>
<Helmet>
<title>{`${page?.icon || ""} ${page.title || "untitled"}`}</title>
<title>{`${page?.icon || ""} ${page?.title || "untitled"}`}</title>
</Helmet>
<PageHeader