mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add docs link in settings
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
import { Divider } from "@mui/joy";
|
import { Divider, List, ListItem } from "@mui/joy";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
import * as api from "@/helpers/api";
|
import * as api from "@/helpers/api";
|
||||||
import { useGlobalStore } from "@/store/module";
|
import { useGlobalStore } from "@/store/module";
|
||||||
import { useTranslate } from "@/utils/i18n";
|
import { useTranslate } from "@/utils/i18n";
|
||||||
@ -104,6 +105,17 @@ const SSOSection = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
<div className="w-full mt-8">
|
||||||
|
<p className="text-sm">{t("common.learn-more")}</p>
|
||||||
|
<List component="ul" marker="disc" size="sm">
|
||||||
|
<ListItem>
|
||||||
|
<Link className="text-sm hover:underline hover:text-blue-600" to="https://www.usememos.com/docs/get-started/keycloak">
|
||||||
|
Configuring Keycloak for Authentication
|
||||||
|
</Link>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Divider, IconButton, Radio, RadioGroup } from "@mui/joy";
|
import { Divider, IconButton, List, ListItem, Radio, RadioGroup } from "@mui/joy";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
import * as api from "@/helpers/api";
|
import * as api from "@/helpers/api";
|
||||||
import { useGlobalStore } from "@/store/module";
|
import { useGlobalStore } from "@/store/module";
|
||||||
import { useTranslate } from "@/utils/i18n";
|
import { useTranslate } from "@/utils/i18n";
|
||||||
@ -122,6 +123,24 @@ const StorageSection = () => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="w-full mt-4">
|
||||||
|
<p className="text-sm">{t("common.learn-more")}</p>
|
||||||
|
<List component="ul" marker="disc" size="sm">
|
||||||
|
<ListItem>
|
||||||
|
<Link className="text-sm hover:underline hover:text-blue-600" to="https://www.usememos.com/docs/get-started/local-storage">
|
||||||
|
Docs - Local storage
|
||||||
|
</Link>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem>
|
||||||
|
<Link
|
||||||
|
className="text-sm hover:underline hover:text-blue-600"
|
||||||
|
to="https://www.usememos.com/blog/choosing-a-storage-for-your-resource"
|
||||||
|
>
|
||||||
|
Choosing a Storage for Your Resource: Database, S3 or Local Storage?
|
||||||
|
</Link>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Button, Divider, Input, Switch, Textarea, Tooltip } from "@mui/joy";
|
import { Button, Divider, Input, Switch, Textarea, Tooltip } from "@mui/joy";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
import * as api from "@/helpers/api";
|
import * as api from "@/helpers/api";
|
||||||
import { formatBytes } from "@/helpers/utils";
|
import { formatBytes } from "@/helpers/utils";
|
||||||
import { useGlobalStore } from "@/store/module";
|
import { useGlobalStore } from "@/store/module";
|
||||||
@ -370,6 +371,16 @@ const SystemSection = () => {
|
|||||||
value={state.additionalScript}
|
value={state.additionalScript}
|
||||||
onChange={(event) => handleAdditionalScriptChanged(event.target.value)}
|
onChange={(event) => handleAdditionalScriptChanged(event.target.value)}
|
||||||
/>
|
/>
|
||||||
|
<div className="w-full">
|
||||||
|
<Link
|
||||||
|
className="text-gray-500 text-sm flex flex-row justify-start items-center mt-2 hover:underline hover:text-blue-600"
|
||||||
|
to="https://usememos.com/docs/get-started/custom-style-and-script"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{t("common.learn-more")}
|
||||||
|
<Icon.ExternalLink className="inline w-4 h-auto ml-1" />
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user