refactor(ui): change serverVersion field localtion

This commit is contained in:
ReaJason
2026-01-18 23:49:41 +08:00
parent 9620076443
commit 33753844a7
11 changed files with 154 additions and 122 deletions
@@ -2,7 +2,7 @@ import { FileTextIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { shouldHidden } from "@/lib/utils";
import { notNeedUrlPattern } from "@/lib/utils";
import {
type AntSwordShellToolConfig,
type BehinderShellToolConfig,
@@ -45,7 +45,7 @@ export function BasicInfo({
label={t("mainConfig.shellMountType")}
text={generateResult?.shellConfig.shellType}
/>
{!shouldHidden(generateResult?.shellConfig?.shellType) && (
{!notNeedUrlPattern(generateResult?.shellConfig?.shellType) && (
<CopyableField
label={t("mainConfig.urlPattern")}
text={generateResult?.injectorConfig.urlPattern}