Share - WIP

This commit is contained in:
Philipinho
2025-04-15 12:45:26 +01:00
parent 8dff3e2240
commit 418e61614c
32 changed files with 820 additions and 52 deletions

View File

@ -0,0 +1,21 @@
import SettingsTitle from "@/components/settings/settings-title.tsx";
import { Helmet } from "react-helmet-async";
import { getAppName } from "@/lib/config.ts";
import { useTranslation } from "react-i18next";
import ShareList from "@/features/share/components/share-list.tsx";
export default function Shares() {
const { t } = useTranslation();
return (
<>
<Helmet>
<title>
{t("Shares")} - {getAppName()}
</title>
</Helmet>
<SettingsTitle title={t("Shares")} />
<ShareList />
</>
);
}

View File

@ -2,7 +2,7 @@ import { useParams } from "react-router-dom";
import { Helmet } from "react-helmet-async";
import { useTranslation } from "react-i18next";
import { useShareQuery } from "@/features/share/queries/share-query.ts";
import { Affix, Button, Container } from "@mantine/core";
import { Container } from "@mantine/core";
import React from "react";
import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx";
import { extractPageSlugId } from "@/lib";
@ -36,17 +36,13 @@ export default function SingleSharedPage() {
<title>{`${page?.icon || ""} ${page?.title || t("untitled")}`}</title>
</Helmet>
<Container size={900} pt={50}>
<Container size={900}>
<ReadonlyPageEditor
key={page.id}
title={page.title}
content={page.content}
/>
</Container>
<Affix position={{ bottom: 20, right: 20 }}>
<Button variant="default">Powered by Docmost</Button>
</Affix>
</div>
);
}