fix(ui): [UI7-2] 统一全局 Design Tokens,移除冗余字体,修复异常色值引用
这个提交包含在:
@@ -137,10 +137,10 @@ export function AuditLogsPage() {
|
||||
|
||||
<section className="card-std space-y-4">
|
||||
<div className="grid gap-3 md:grid-cols-3">
|
||||
<label className="text-sm text-slate-700">
|
||||
<label className="text-sm text-zinc-700">
|
||||
Action
|
||||
<input
|
||||
className="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2"
|
||||
className="mt-1 w-full rounded-lg border border-zinc-300 px-3 py-2"
|
||||
onChange={(event) => {
|
||||
setPage(1);
|
||||
setActionFilter(event.target.value.trim());
|
||||
@@ -150,10 +150,10 @@ export function AuditLogsPage() {
|
||||
/>
|
||||
</label>
|
||||
|
||||
<label className="text-sm text-slate-700">
|
||||
<label className="text-sm text-zinc-700">
|
||||
Target Type
|
||||
<input
|
||||
className="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2"
|
||||
className="mt-1 w-full rounded-lg border border-zinc-300 px-3 py-2"
|
||||
onChange={(event) => {
|
||||
setPage(1);
|
||||
setTargetTypeFilter(event.target.value.trim());
|
||||
@@ -163,9 +163,9 @@ export function AuditLogsPage() {
|
||||
/>
|
||||
</label>
|
||||
|
||||
<div className="text-sm text-slate-700">
|
||||
<div className="text-sm text-zinc-700">
|
||||
结果统计
|
||||
<div className="mt-1 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-slate-900">
|
||||
<div className="mt-1 rounded-lg border border-zinc-200 bg-zinc-50 px-3 py-2 text-zinc-900">
|
||||
共 {data?.total ?? 0} 条
|
||||
</div>
|
||||
</div>
|
||||
@@ -177,9 +177,9 @@ export function AuditLogsPage() {
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
<div className="overflow-x-auto rounded-lg border border-slate-200">
|
||||
<div className="overflow-x-auto rounded-lg border border-zinc-200">
|
||||
<table className="min-w-full text-left text-sm">
|
||||
<thead className="bg-slate-50 text-slate-600">
|
||||
<thead className="bg-zinc-50 text-zinc-600">
|
||||
<tr>
|
||||
<th className="px-3 py-2">时间</th>
|
||||
<th className="px-3 py-2">Action</th>
|
||||
@@ -199,12 +199,12 @@ export function AuditLogsPage() {
|
||||
|
||||
{!loading && data?.items?.length ? (
|
||||
data.items.map((item) => (
|
||||
<tr className="border-t border-slate-100" key={item.id}>
|
||||
<tr className="border-t border-zinc-100" key={item.id}>
|
||||
<td className="px-3 py-2">{new Date(item.createdAt).toLocaleString()}</td>
|
||||
<td className="px-3 py-2">{item.action}</td>
|
||||
<td className="px-3 py-2">
|
||||
<div>{item.actorName || item.actorId}</div>
|
||||
<div className="text-xs text-slate-500">{item.actorEmail}</div>
|
||||
<div className="text-xs text-zinc-500">{item.actorEmail}</div>
|
||||
</td>
|
||||
<td className="px-3 py-2">
|
||||
{item.targetType}
|
||||
@@ -217,7 +217,7 @@ export function AuditLogsPage() {
|
||||
|
||||
{!loading && !(data?.items?.length ?? 0) ? (
|
||||
<tr>
|
||||
<td className="px-3 py-3 text-slate-500" colSpan={5}>
|
||||
<td className="px-3 py-3 text-zinc-500" colSpan={5}>
|
||||
暂无数据
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
在新工单中引用
屏蔽一个用户