From 7058f0c8c245dab5ee3441f3d9193a8898acd530 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 28 Oct 2023 14:56:08 +0800 Subject: [PATCH] chore: add docs link in settings --- web/src/components/Settings/SSOSection.tsx | 14 ++++++++++++- .../components/Settings/StorageSection.tsx | 21 ++++++++++++++++++- web/src/components/Settings/SystemSection.tsx | 11 ++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/web/src/components/Settings/SSOSection.tsx b/web/src/components/Settings/SSOSection.tsx index 2909bb525..8d8639c3e 100644 --- a/web/src/components/Settings/SSOSection.tsx +++ b/web/src/components/Settings/SSOSection.tsx @@ -1,6 +1,7 @@ -import { Divider } from "@mui/joy"; +import { Divider, List, ListItem } from "@mui/joy"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; +import { Link } from "react-router-dom"; import * as api from "@/helpers/api"; import { useGlobalStore } from "@/store/module"; import { useTranslate } from "@/utils/i18n"; @@ -104,6 +105,17 @@ const SSOSection = () => { ))} + +
+

{t("common.learn-more")}

+ + + + Configuring Keycloak for Authentication + + + +
); }; diff --git a/web/src/components/Settings/StorageSection.tsx b/web/src/components/Settings/StorageSection.tsx index 2471b952c..019b0a3c5 100644 --- a/web/src/components/Settings/StorageSection.tsx +++ b/web/src/components/Settings/StorageSection.tsx @@ -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 { toast } from "react-hot-toast"; +import { Link } from "react-router-dom"; import * as api from "@/helpers/api"; import { useGlobalStore } from "@/store/module"; import { useTranslate } from "@/utils/i18n"; @@ -122,6 +123,24 @@ const StorageSection = () => { ))} +
+

{t("common.learn-more")}

+ + + + Docs - Local storage + + + + + Choosing a Storage for Your Resource: Database, S3 or Local Storage? + + + +
); }; diff --git a/web/src/components/Settings/SystemSection.tsx b/web/src/components/Settings/SystemSection.tsx index 83694eb94..6a005cff6 100644 --- a/web/src/components/Settings/SystemSection.tsx +++ b/web/src/components/Settings/SystemSection.tsx @@ -1,6 +1,7 @@ import { Button, Divider, Input, Switch, Textarea, Tooltip } from "@mui/joy"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; +import { Link } from "react-router-dom"; import * as api from "@/helpers/api"; import { formatBytes } from "@/helpers/utils"; import { useGlobalStore } from "@/store/module"; @@ -370,6 +371,16 @@ const SystemSection = () => { value={state.additionalScript} onChange={(event) => handleAdditionalScriptChanged(event.target.value)} /> +
+ + {t("common.learn-more")} + + +
); };