配置页添加提示

This commit is contained in:
wood chen 2025-03-12 19:11:58 +08:00
parent 26af4b2b07
commit 07e63eea5f

View File

@ -25,7 +25,7 @@ import {
} from "@/components/ui/dialog" } from "@/components/ui/dialog"
import { Switch } from "@/components/ui/switch" import { Switch } from "@/components/ui/switch"
import { Slider } from "@/components/ui/slider" import { Slider } from "@/components/ui/slider"
import { Plus, Trash2, Edit, Save, Download, Upload } from "lucide-react" import { Plus, Trash2, Edit, Save, Download, Upload, Info } from "lucide-react"
import { import {
AlertDialog, AlertDialog,
AlertDialogAction, AlertDialogAction,
@ -35,6 +35,7 @@ import {
AlertDialogFooter, AlertDialogFooter,
AlertDialogHeader, AlertDialogHeader,
AlertDialogTitle, AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/alert-dialog" } from "@/components/ui/alert-dialog"
interface PathMapping { interface PathMapping {
@ -573,6 +574,15 @@ export default function ConfigPage() {
<Card> <Card>
<CardHeader className="flex flex-row items-center justify-between"> <CardHeader className="flex flex-row items-center justify-between">
<CardTitle>Proxy Go配置</CardTitle> <CardTitle>Proxy Go配置</CardTitle>
<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="outline">
<Info className="w-4 h-4 mr-2" />
</Button>
</AlertDialogTrigger>
<AlertDialogContent></AlertDialogContent>
</AlertDialog>
<div className="flex space-x-2"> <div className="flex space-x-2">
<Button onClick={exportConfig} variant="outline"> <Button onClick={exportConfig} variant="outline">
<Download className="w-4 h-4 mr-2" /> <Download className="w-4 h-4 mr-2" />