mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
配置页添加提示
This commit is contained in:
parent
26af4b2b07
commit
07e63eea5f
@ -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" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user