mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
fixes
This commit is contained in:
@@ -416,6 +416,7 @@
|
|||||||
"{{latestVersion}} is available": "{{latestVersion}} is available",
|
"{{latestVersion}} is available": "{{latestVersion}} is available",
|
||||||
"Default page edit mode": "Default page edit mode",
|
"Default page edit mode": "Default page edit mode",
|
||||||
"Choose your preferred page edit mode. Avoid accidental edits.": "Choose your preferred page edit mode. Avoid accidental edits.",
|
"Choose your preferred page edit mode. Avoid accidental edits.": "Choose your preferred page edit mode. Avoid accidental edits.",
|
||||||
|
"Choose {{format}} file": "Choose {{format}} file",
|
||||||
"Reading": "Reading",
|
"Reading": "Reading",
|
||||||
"Delete member": "Delete member",
|
"Delete member": "Delete member",
|
||||||
"Member deleted successfully": "Member deleted successfully",
|
"Member deleted successfully": "Member deleted successfully",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
.sectionHeader {
|
.sectionHeader {
|
||||||
padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
|
padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
|
||||||
font-size: var(--mantine-font-size-xs);
|
font-size: var(--mantine-font-size-xs);
|
||||||
color: light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-3));
|
color: var(--mantine-color-dimmed);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default function AppVersion() {
|
|||||||
>
|
>
|
||||||
<Indicator
|
<Indicator
|
||||||
label={t("New update")}
|
label={t("New update")}
|
||||||
color="gray"
|
color="dark"
|
||||||
inline
|
inline
|
||||||
size={16}
|
size={16}
|
||||||
position="middle-end"
|
position="middle-end"
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
import { ActionIcon, Group, Menu, Modal, Text, Tooltip } from "@mantine/core";
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
Group,
|
||||||
|
Menu,
|
||||||
|
Modal,
|
||||||
|
Text,
|
||||||
|
ThemeIcon,
|
||||||
|
Tooltip,
|
||||||
|
} from "@mantine/core";
|
||||||
import { useDisclosure } from "@mantine/hooks";
|
import { useDisclosure } from "@mantine/hooks";
|
||||||
import {
|
import {
|
||||||
IconRosetteDiscountCheckFilled,
|
IconRosetteDiscountCheckFilled,
|
||||||
@@ -98,9 +106,9 @@ export function PageVerificationBadge({
|
|||||||
withArrow
|
withArrow
|
||||||
openDelay={250}
|
openDelay={250}
|
||||||
>
|
>
|
||||||
<ActionIcon variant="subtle" color="gray">
|
<ThemeIcon variant="subtle" color="gray">
|
||||||
<IconShieldCheck size={20} stroke={1.5} />
|
<IconShieldCheck size={20} stroke={1.5} />
|
||||||
</ActionIcon>
|
</ThemeIcon>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -131,7 +139,12 @@ export function PageVerificationBadge({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : !readOnly ? (
|
) : !readOnly ? (
|
||||||
<Tooltip label={t("Set up verification")} withArrow openDelay={250}>
|
<Tooltip label={t("Set up verification")} withArrow openDelay={250}>
|
||||||
<ActionIcon variant="subtle" color="gray" onClick={open}>
|
<ActionIcon
|
||||||
|
variant="subtle"
|
||||||
|
color="gray"
|
||||||
|
aria-label={t("Set up verification")}
|
||||||
|
onClick={open}
|
||||||
|
>
|
||||||
<IconShieldCheck size={20} stroke={1.5} />
|
<IconShieldCheck size={20} stroke={1.5} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export default function PageImportModal({
|
|||||||
<Modal.Content style={{ overflow: "hidden" }}>
|
<Modal.Content style={{ overflow: "hidden" }}>
|
||||||
<Modal.Header py={0}>
|
<Modal.Header py={0}>
|
||||||
<Modal.Title fw={500}>{t("Import pages")}</Modal.Title>
|
<Modal.Title fw={500}>{t("Import pages")}</Modal.Title>
|
||||||
<Modal.CloseButton />
|
<Modal.CloseButton aria-label={t("Close")} />
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<ImportFormatSelection spaceId={spaceId} onClose={onClose} />
|
<ImportFormatSelection spaceId={spaceId} onClose={onClose} />
|
||||||
@@ -332,7 +332,15 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SimpleGrid cols={2}>
|
<SimpleGrid cols={2}>
|
||||||
<FileButton onChange={handleFileUpload} accept=".md" multiple resetRef={markdownFileRef}>
|
<FileButton
|
||||||
|
onChange={handleFileUpload}
|
||||||
|
accept=".md"
|
||||||
|
multiple
|
||||||
|
resetRef={markdownFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "Markdown" }),
|
||||||
|
}}
|
||||||
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Button
|
<Button
|
||||||
justify="start"
|
justify="start"
|
||||||
@@ -345,7 +353,15 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
)}
|
)}
|
||||||
</FileButton>
|
</FileButton>
|
||||||
|
|
||||||
<FileButton onChange={handleFileUpload} accept="text/html" multiple resetRef={htmlFileRef}>
|
<FileButton
|
||||||
|
onChange={handleFileUpload}
|
||||||
|
accept="text/html"
|
||||||
|
multiple
|
||||||
|
resetRef={htmlFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "HTML" }),
|
||||||
|
}}
|
||||||
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Button
|
<Button
|
||||||
justify="start"
|
justify="start"
|
||||||
@@ -363,6 +379,9 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
accept=".docx"
|
accept=".docx"
|
||||||
multiple
|
multiple
|
||||||
resetRef={docxFileRef}
|
resetRef={docxFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "Word (DOCX)" }),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -387,6 +406,9 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
accept=".pdf"
|
accept=".pdf"
|
||||||
multiple
|
multiple
|
||||||
resetRef={pdfFileRef}
|
resetRef={pdfFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "PDF" }),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -410,6 +432,9 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
onChange={(file) => handleZipUpload(file, "notion")}
|
onChange={(file) => handleZipUpload(file, "notion")}
|
||||||
accept="application/zip"
|
accept="application/zip"
|
||||||
resetRef={notionFileRef}
|
resetRef={notionFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "Notion" }),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Button
|
<Button
|
||||||
@@ -426,6 +451,9 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
onChange={(file) => handleZipUpload(file, "confluence")}
|
onChange={(file) => handleZipUpload(file, "confluence")}
|
||||||
accept="application/zip"
|
accept="application/zip"
|
||||||
resetRef={confluenceFileRef}
|
resetRef={confluenceFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "Confluence" }),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -463,6 +491,9 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
onChange={(file) => handleZipUpload(file, "generic")}
|
onChange={(file) => handleZipUpload(file, "generic")}
|
||||||
accept="application/zip"
|
accept="application/zip"
|
||||||
resetRef={zipFileRef}
|
resetRef={zipFileRef}
|
||||||
|
inputProps={{
|
||||||
|
"aria-label": t("Choose {{format}} file", { format: "ZIP" }),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{(props) => (
|
{(props) => (
|
||||||
<Group justify="center">
|
<Group justify="center">
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function SearchMobileControl({ onSearch }: SearchMobileControlProps) {
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
color="dark"
|
color="dark"
|
||||||
|
aria-label={t("Search")}
|
||||||
onClick={onSearch}
|
onClick={onSearch}
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
Table,
|
Table,
|
||||||
Container,
|
Container,
|
||||||
Title,
|
Title,
|
||||||
ActionIcon,
|
ThemeIcon,
|
||||||
Button,
|
Button,
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
@@ -71,13 +71,13 @@ export default function FavoritesPage() {
|
|||||||
>
|
>
|
||||||
<Group wrap="nowrap">
|
<Group wrap="nowrap">
|
||||||
{fav.page.icon || (
|
{fav.page.icon || (
|
||||||
<ActionIcon
|
<ThemeIcon
|
||||||
variant="transparent"
|
variant="transparent"
|
||||||
color="gray"
|
color="gray"
|
||||||
size={18}
|
size={18}
|
||||||
>
|
>
|
||||||
<IconFileDescription size={18} />
|
<IconFileDescription size={18} />
|
||||||
</ActionIcon>
|
</ThemeIcon>
|
||||||
)}
|
)}
|
||||||
<Text fw={500} size="md" lineClamp={1}>
|
<Text fw={500} size="md" lineClamp={1}>
|
||||||
{fav.page.title || t("Untitled")}
|
{fav.page.title || t("Untitled")}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export const mantineCssResolver: CSSVariablesResolver = (theme) => ({
|
|||||||
"--input-error-size": theme.fontSizes.sm,
|
"--input-error-size": theme.fontSizes.sm,
|
||||||
},
|
},
|
||||||
light: {
|
light: {
|
||||||
"--mantine-color-dimmed": "#6b7280",
|
"--mantine-color-dimmed": "#4b5563",
|
||||||
"--mantine-color-dark-light-color": "#4e5359",
|
"--mantine-color-dark-light-color": "#4e5359",
|
||||||
"--mantine-color-dark-light-hover": "var(--mantine-color-gray-light-hover)",
|
"--mantine-color-dark-light-hover": "var(--mantine-color-gray-light-hover)",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user