mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 19:12:36 +10:00
* Share - WIP * - public attachment links - WIP * WIP * WIP * Share - WIP * WIP * WIP * include userRole in space object * WIP * Server render shared page meta tags * disable user select * Close Navbar on outside click on mobile * update shared page spaceId * WIP * fix * close sidebar on click * close sidebar * defaults * update copy * Store share key in lowercase * refactor page breadcrumbs * Change copy * add link ref * open link button * add meta og:title * add twitter tags * WIP * make shares/info endpoint public * fix * * add /p/ segment to share urls * minore fixes * change mobile breadcrumb icon
32 lines
885 B
TypeScript
32 lines
885 B
TypeScript
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";
|
|
import { Alert, Text } from "@mantine/core";
|
|
import { IconInfoCircle } from "@tabler/icons-react";
|
|
import React from "react";
|
|
|
|
export default function Shares() {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>
|
|
{t("Public sharing")} - {getAppName()}
|
|
</title>
|
|
</Helmet>
|
|
<SettingsTitle title={t("Public sharing")} />
|
|
|
|
<Alert variant="light" color="blue" icon={<IconInfoCircle />}>
|
|
{t(
|
|
"Publicly shared pages from spaces you are a member of will appear here",
|
|
)}
|
|
</Alert>
|
|
|
|
<ShareList />
|
|
</>
|
|
);
|
|
}
|