chore: add TG link & descriptions

This commit is contained in:
wonfen 2024-06-29 04:55:43 +08:00
parent 83b25920ea
commit 24f9573c05
5 changed files with 28 additions and 4 deletions

View File

@ -246,6 +246,9 @@
"Open Dev Tools": "Open Dev Tools",
"Exit": "Exit",
"Verge Version": "Verge Version",
"TG Channel": "Telegram Channel",
"Doc": "Docs",
"Source Code": "Source Code",
"ReadOnly": "ReadOnly",
"ReadOnlyMessage": "Cannot edit in read-only editor",

View File

@ -251,6 +251,9 @@
"Open Dev Tools": "باز کردن ابزارهای توسعه‌دهنده",
"Exit": "خروج",
"Verge Version": "نسخه Verge",
"TG Channel": "کانال تلگرام",
"Doc": "سند",
"Source Code": "کد منبع",
"ReadOnly": "فقط خواندنی",
"ReadOnlyMessage": "نمی‌توان در ویرایشگر فقط خواندنی ویرایش کرد",

View File

@ -251,6 +251,9 @@
"Open Dev Tools": "Открыть инструменты разработчика",
"Exit": "Выход",
"Verge Version": "Версия Verge",
"TG Channel": "Канал Telegram",
"Doc": "документ",
"Source Code": "Исходный код",
"ReadOnly": "Только для чтения",
"ReadOnlyMessage": "Невозможно редактировать в режиме только для чтения",

View File

@ -251,6 +251,9 @@
"Open Dev Tools": "打开开发者工具",
"Exit": "退出",
"Verge Version": "Verge 版本",
"TG Channel": "Telegram 频道",
"Doc": "文档",
"Source Code": "源代码",
"ReadOnly": "只读",
"ReadOnlyMessage": "无法在只读模式下编辑",

View File

@ -2,7 +2,7 @@ import { Box, ButtonGroup, Grid, IconButton } from "@mui/material";
import { useLockFn } from "ahooks";
import { useTranslation } from "react-i18next";
import { BasePage, Notice } from "@/components/base";
import { GitHub, HelpOutlineSharp } from "@mui/icons-material";
import { GitHub, HelpOutlineSharp, Telegram } from "@mui/icons-material";
import { openWebUrl } from "@/services/cmds";
import SettingVerge from "@/components/setting/setting-verge";
import SettingClash from "@/components/setting/setting-clash";
@ -21,7 +21,11 @@ const SettingPage = () => {
});
const toGithubDoc = useLockFn(() => {
return openWebUrl("https://clash-verge-rev.github.io/guide/log.html");
return openWebUrl("https://clash-verge-rev.github.io/index.html");
});
const toTelegramChannel = useLockFn(() => {
return openWebUrl("https://t.me/clash_verge_re");
});
const mode = useThemeMode();
@ -35,7 +39,15 @@ const SettingPage = () => {
<IconButton
size="medium"
color="inherit"
title="@clash-verge-rev/clash-verge-rev.github.io"
title={t("TG Channel")}
onClick={toTelegramChannel}
>
<Telegram fontSize="inherit" />
</IconButton>
<IconButton
size="medium"
color="inherit"
title={t("Doc")}
onClick={toGithubDoc}
>
<HelpOutlineSharp fontSize="inherit" />
@ -43,7 +55,7 @@ const SettingPage = () => {
<IconButton
size="medium"
color="inherit"
title="@clash-verge-rev/clash-verge-rev"
title={t("Source Code")}
onClick={toGithubRepo}
>
<GitHub fontSize="inherit" />