mirror of
https://github.com/usememos/memos.git
synced 2025-12-16 13:48:41 +08:00
chore: tweak links
This commit is contained in:
parent
01c6aca788
commit
cf29684882
8 changed files with 5 additions and 54 deletions
|
|
@ -117,7 +117,7 @@ function CreateShortcutDialog({ open, onOpenChange, shortcut: initialShortcut, o
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
className="text-primary hover:underline"
|
className="text-primary hover:underline"
|
||||||
href="https://www.usememos.com/docs/getting-started/shortcuts"
|
href="https://www.usememos.com/docs/guides/shortcuts"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
@ -127,7 +127,7 @@ function CreateShortcutDialog({ open, onOpenChange, shortcut: initialShortcut, o
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
className="text-primary hover:underline"
|
className="text-primary hover:underline"
|
||||||
href="https://www.usememos.com/docs/getting-started/shortcuts#how-to-write-a-filter"
|
href="https://www.usememos.com/docs/guides/shortcuts#how-to-write-a-filter"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ const MarkdownMenu = (props: Props) => {
|
||||||
<div className="px-2 -mt-1">
|
<div className="px-2 -mt-1">
|
||||||
<a
|
<a
|
||||||
className="text-xs text-primary hover:underline"
|
className="text-xs text-primary hover:underline"
|
||||||
href="https://www.usememos.com/docs/getting-started/content-syntax"
|
href="https://www.usememos.com/docs/guides/content-syntax"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ const AccessTokenSection = () => {
|
||||||
<div className="sm:flex-auto space-y-1">
|
<div className="sm:flex-auto space-y-1">
|
||||||
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
|
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
|
||||||
{t("setting.access-token-section.title")}
|
{t("setting.access-token-section.title")}
|
||||||
<LearnMore className="ml-2" url="https://usememos.com/docs/security/access-tokens" />
|
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-muted-foreground">{t("setting.access-token-section.description")}</p>
|
<p className="text-sm text-muted-foreground">{t("setting.access-token-section.description")}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { MoreVerticalIcon } from "lucide-react";
|
import { MoreVerticalIcon } from "lucide-react";
|
||||||
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 { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
|
|
@ -60,7 +59,7 @@ const SSOSection = () => {
|
||||||
<div className="w-full flex flex-row justify-between items-center gap-1">
|
<div className="w-full flex flex-row justify-between items-center gap-1">
|
||||||
<div className="flex flex-row items-center gap-1">
|
<div className="flex flex-row items-center gap-1">
|
||||||
<span className="font-mono text-muted-foreground">{t("setting.sso-section.sso-list")}</span>
|
<span className="font-mono text-muted-foreground">{t("setting.sso-section.sso-list")}</span>
|
||||||
<LearnMore url="https://www.usememos.com/docs/advanced-settings/sso" />
|
<LearnMore url="https://www.usememos.com/docs/configuration/authentication" />
|
||||||
</div>
|
</div>
|
||||||
<Button color="primary" onClick={handleCreateIdentityProvider}>
|
<Button color="primary" onClick={handleCreateIdentityProvider}>
|
||||||
{t("common.create")}
|
{t("common.create")}
|
||||||
|
|
@ -99,16 +98,6 @@ const SSOSection = () => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="w-full mt-4">
|
|
||||||
<p className="text-sm">{t("common.learn-more")}:</p>
|
|
||||||
<ul className="list-disc list-inside text-sm ml-4">
|
|
||||||
<li>
|
|
||||||
<Link className="text-sm text-primary hover:underline" to="https://www.usememos.com/docs/advanced-settings/sso" target="_blank">
|
|
||||||
{t("setting.sso-section.single-sign-on")}
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<CreateIdentityProviderDialog
|
<CreateIdentityProviderDialog
|
||||||
open={isCreateDialogOpen}
|
open={isCreateDialogOpen}
|
||||||
onOpenChange={setIsCreateDialogOpen}
|
onOpenChange={setIsCreateDialogOpen}
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,10 @@ import { HelpCircleIcon } from "lucide-react";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import React, { useEffect, useMemo, useState } from "react";
|
import React, { useEffect, useMemo, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
import { Link } from "react-router-dom";
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||||
import { Separator } from "@/components/ui/separator";
|
|
||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
|
||||||
import { workspaceStore } from "@/store";
|
import { workspaceStore } from "@/store";
|
||||||
|
|
@ -247,30 +245,6 @@ const StorageSection = observer(() => {
|
||||||
{t("common.save")}
|
{t("common.save")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<Separator className="my-2" />
|
|
||||||
<div className="w-full mt-4">
|
|
||||||
<p className="text-sm">{t("common.learn-more")}:</p>
|
|
||||||
<ul className="text-sm list-disc ml-4 space-y-1">
|
|
||||||
<li>
|
|
||||||
<Link
|
|
||||||
className="text-sm text-primary hover:underline"
|
|
||||||
to="https://www.usememos.com/docs/advanced-settings/local-storage"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Docs - Local storage
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<Link
|
|
||||||
className="text-sm text-primary hover:underline"
|
|
||||||
to="https://www.usememos.com/blog/choosing-a-storage-for-your-resource"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Choosing a Storage for Your Resource: Database, S3 or Local Storage?
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ const UserSessionsSection = () => {
|
||||||
<div className="sm:flex-auto space-y-1">
|
<div className="sm:flex-auto space-y-1">
|
||||||
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
|
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
|
||||||
{t("setting.user-sessions-section.title")}
|
{t("setting.user-sessions-section.title")}
|
||||||
<LearnMore className="ml-2" url="https://usememos.com/docs/security/sessions" />
|
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-muted-foreground">{t("setting.user-sessions-section.description")}</p>
|
<p className="text-sm text-muted-foreground">{t("setting.user-sessions-section.description")}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ const WebhookSection = () => {
|
||||||
<div className="w-full mt-2">
|
<div className="w-full mt-2">
|
||||||
<Link
|
<Link
|
||||||
className="text-muted-foreground text-sm inline-flex flex-row justify-start items-center hover:underline hover:text-primary"
|
className="text-muted-foreground text-sm inline-flex flex-row justify-start items-center hover:underline hover:text-primary"
|
||||||
to="https://usememos.com/docs/advanced-settings/webhook"
|
to="https://www.usememos.com/docs/integrations/webhooks"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{t("common.learn-more")}
|
{t("common.learn-more")}
|
||||||
|
|
|
||||||
|
|
@ -110,16 +110,6 @@ const WorkspaceSection = observer(() => {
|
||||||
value={workspaceGeneralSetting.additionalScript}
|
value={workspaceGeneralSetting.additionalScript}
|
||||||
onChange={(event) => updatePartialSetting({ additionalScript: event.target.value })}
|
onChange={(event) => updatePartialSetting({ additionalScript: event.target.value })}
|
||||||
/>
|
/>
|
||||||
<div className="w-full">
|
|
||||||
<Link
|
|
||||||
className="text-muted-foreground text-sm flex flex-row justify-start items-center hover:underline hover:text-primary"
|
|
||||||
to="https://usememos.com/docs/advanced-settings/custom-style-and-script"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
{t("common.learn-more")}
|
|
||||||
<ExternalLinkIcon className="inline w-4 h-auto ml-1" />
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
<div className="w-full flex flex-row justify-between items-center">
|
<div className="w-full flex flex-row justify-between items-center">
|
||||||
<span>{t("setting.workspace-section.disallow-user-registration")}</span>
|
<span>{t("setting.workspace-section.disallow-user-registration")}</span>
|
||||||
<Switch
|
<Switch
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue