系统管理页面添加github信息
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
RefreshCw,
|
RefreshCw,
|
||||||
Wifi,
|
Wifi,
|
||||||
} from "lucide-react"
|
} from "lucide-react"
|
||||||
|
import { Github } from "@lobehub/icons"
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
type Update = any
|
type Update = any
|
||||||
import { useLocale, useTranslations } from "next-intl"
|
import { useLocale, useTranslations } from "next-intl"
|
||||||
@@ -28,6 +29,7 @@ import {
|
|||||||
updateSystemLanguageSettings,
|
updateSystemLanguageSettings,
|
||||||
updateSystemProxySettings,
|
updateSystemProxySettings,
|
||||||
} from "@/lib/api"
|
} from "@/lib/api"
|
||||||
|
import { openUrl } from "@/lib/platform"
|
||||||
import type { AppLocale } from "@/lib/types"
|
import type { AppLocale } from "@/lib/types"
|
||||||
import {
|
import {
|
||||||
checkAppUpdate,
|
checkAppUpdate,
|
||||||
@@ -299,7 +301,16 @@ export function SystemNetworkSettings() {
|
|||||||
<div className="h-full overflow-auto">
|
<div className="h-full overflow-auto">
|
||||||
<div className="w-full space-y-4">
|
<div className="w-full space-y-4">
|
||||||
<section className="space-y-1">
|
<section className="space-y-1">
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
<h1 className="text-sm font-semibold">{t("sectionTitle")}</h1>
|
<h1 className="text-sm font-semibold">{t("sectionTitle")}</h1>
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
className="size-5 rounded-full"
|
||||||
|
onClick={() => openUrl("https://github.com/xintaofei/codeg")}
|
||||||
|
>
|
||||||
|
<Github className="size-5" />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
{t("sectionDescription")}
|
{t("sectionDescription")}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user