2nd version

This commit is contained in:
2026-04-15 17:08:17 +08:00
parent e2a2eb4666
commit cedeb8f8bc
44 changed files with 5378 additions and 346 deletions

View File

@@ -1,3 +1,4 @@
import * as React from "react"
import { Settings2 } from "lucide-react"
import type { RoleView, WorkflowConfig } from "@/App"
@@ -25,7 +26,7 @@ export function SystemSettings({
<div className="flex flex-col gap-6 p-8">
<div className="flex flex-col gap-1">
<h1 className="text-3xl font-bold tracking-tight"></h1>
<p className="text-muted-foreground"></p>
<p className="text-muted-foreground"></p>
</div>
<div className="grid gap-6 lg:grid-cols-2">
@@ -58,8 +59,8 @@ export function SystemSettings({
<Card className="border-none shadow-sm bg-white">
<CardHeader>
<CardTitle className="text-lg font-bold"></CardTitle>
<CardDescription></CardDescription>
<CardTitle className="text-lg font-bold"></CardTitle>
<CardDescription>线</CardDescription>
</CardHeader>
<CardContent className="space-y-3 text-sm">
<div className="flex items-center justify-between rounded-lg border p-3">
@@ -135,35 +136,16 @@ export function SystemSettings({
<Card className="border-none shadow-sm bg-white">
<CardHeader>
<CardTitle className="text-lg font-bold"></CardTitle>
<CardDescription></CardDescription>
<CardTitle className="text-lg font-bold"></CardTitle>
<CardDescription></CardDescription>
</CardHeader>
<CardContent className="space-y-3 text-sm">
<div className="grid gap-2">
<span className="text-muted-foreground"></span>
<div className="flex gap-2">
<Button
size="sm"
variant={workflowConfig.syncFrequency === "daily" ? "default" : "outline"}
onClick={() =>
onWorkflowConfigChange({ ...workflowConfig, syncFrequency: "daily" })
}
>
</Button>
<Button
size="sm"
variant={workflowConfig.syncFrequency === "weekly" ? "default" : "outline"}
onClick={() =>
onWorkflowConfigChange({ ...workflowConfig, syncFrequency: "weekly" })
}
>
</Button>
</div>
<span className="text-muted-foreground"></span>
<Badge variant="outline" className="w-fit"></Badge>
</div>
<div className="grid gap-2">
<span className="text-muted-foreground"></span>
<span className="text-muted-foreground"></span>
<Input
type="time"
value={workflowConfig.syncExecutionTime}
@@ -176,7 +158,7 @@ export function SystemSettings({
/>
</div>
<div className="grid gap-2">
<span className="text-muted-foreground"></span>
<span className="text-muted-foreground"></span>
<Input
type="number"
min={0}
@@ -191,7 +173,7 @@ export function SystemSettings({
/>
</div>
<div className="flex items-center justify-between rounded-lg border p-3">
<span></span>
<span></span>
<Button
size="sm"
variant={workflowConfig.manualConfirmSync ? "default" : "outline"}
@@ -206,11 +188,53 @@ export function SystemSettings({
</Button>
</div>
<p className="text-xs text-muted-foreground">
</p>
</CardContent>
</Card>
<Card className="border-none shadow-sm bg-white">
<CardHeader>
<CardTitle className="text-lg font-bold">访</CardTitle>
<CardDescription></CardDescription>
</CardHeader>
<CardContent className="space-y-3 text-sm">
<div className="grid gap-2">
<span className="text-muted-foreground">访</span>
<Input defaultValue="https://portal.audi-private-cloud.example" />
</div>
<div className="grid gap-2">
<span className="text-muted-foreground"></span>
<Input defaultValue="按角色开通账号,最小权限访问" />
</div>
<div className="flex items-center justify-between rounded-lg border p-3">
<span></span>
<Badge variant="outline" className="bg-emerald-50 text-emerald-700 border-emerald-200"></Badge>
</div>
</CardContent>
</Card>
<Card className="border-none shadow-sm bg-white">
<CardHeader>
<CardTitle className="text-lg font-bold"></CardTitle>
<CardDescription> Audi </CardDescription>
</CardHeader>
<CardContent className="space-y-3 text-sm">
<div className="flex items-center justify-between rounded-lg border p-3">
<span></span>
<Badge variant="outline" className="bg-emerald-50 text-emerald-700 border-emerald-200"></Badge>
</div>
<div className="flex items-center justify-between rounded-lg border p-3">
<span></span>
<Badge variant="outline" className="bg-emerald-50 text-emerald-700 border-emerald-200"></Badge>
</div>
<div className="flex items-center justify-between rounded-lg border p-3">
<span></span>
<Badge variant="outline" className="bg-emerald-50 text-emerald-700 border-emerald-200"></Badge>
</div>
</CardContent>
</Card>
<Card className="border-none shadow-sm bg-white">
<CardHeader>
<CardTitle className="text-lg font-bold"></CardTitle>