fix: 修复管理端前端 lint 与构建问题

- 收敛 easyflow-ui-admin 的 lint、格式和类型问题

- 修正 demo 页面与管理端前端构建失败点

- 验证 pnpm lint 与 pnpm build 均已通过
This commit is contained in:
2026-04-05 21:39:13 +08:00
parent bb72e19c84
commit 7e7c236c2a
240 changed files with 5151 additions and 4701 deletions

View File

@@ -442,8 +442,8 @@ function closeDetail() {
.chat-history-page__filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
align-items: center;
}
.chat-history-page__filter-control {
@@ -471,26 +471,26 @@ function closeDetail() {
.chat-history-page__content {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
min-height: 0;
}
.chat-history-page__table-shell {
min-height: 0;
flex: 1;
min-height: 0;
overflow: hidden;
border: 1px solid hsl(var(--glass-border) / 0.42);
border-radius: 24px;
background: linear-gradient(
180deg,
hsl(var(--glass-border) / 0.28) 0%,
hsl(var(--glass-tint) / 0.4) 14%,
hsl(var(--surface-panel) / 0.94) 100%
hsl(var(--glass-border) / 28%) 0%,
hsl(var(--glass-tint) / 40%) 14%,
hsl(var(--surface-panel) / 94%) 100%
);
border: 1px solid hsl(var(--glass-border) / 42%);
border-radius: 24px;
box-shadow:
inset 0 1px 0 hsl(var(--glass-border) / 0.54),
0 24px 42px -36px hsl(var(--foreground) / 0.16);
inset 0 1px 0 hsl(var(--glass-border) / 54%),
0 24px 42px -36px hsl(var(--foreground) / 16%);
}
.chat-history-page__table {
@@ -500,30 +500,30 @@ function closeDetail() {
.chat-history-page__session-cell {
display: flex;
min-width: 0;
flex-direction: column;
gap: 6px;
min-width: 0;
padding: 2px 0;
}
.chat-history-page__session-title {
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
font-weight: 600;
color: hsl(var(--text-strong));
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-history-page__session-preview {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 1;
font-size: 12px;
line-height: 1.5;
color: hsl(var(--text-muted));
word-break: break-word;
overflow-wrap: anywhere;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.chat-history-page__assistant-chip {
@@ -532,15 +532,15 @@ function closeDetail() {
max-width: 100%;
min-height: 28px;
padding: 0 12px;
border: 1px solid hsl(var(--glass-border) / 0.48);
border-radius: 999px;
background: hsl(var(--glass-tint) / 0.76);
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
font-weight: 600;
color: hsl(var(--nav-item-active-foreground));
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: hsl(var(--glass-tint) / 76%);
border: 1px solid hsl(var(--glass-border) / 48%);
border-radius: 999px;
}
.chat-history-page__user-cell,
@@ -551,15 +551,15 @@ function closeDetail() {
.chat-history-page__count-pill {
display: inline-flex;
min-width: 42px;
align-items: center;
justify-content: center;
min-width: 42px;
padding: 4px 10px;
border-radius: 999px;
background: hsl(var(--surface-contrast-soft) / 0.88);
font-size: 12px;
font-weight: 600;
color: hsl(var(--text-strong));
background: hsl(var(--surface-contrast-soft) / 88%);
border-radius: 999px;
}
.chat-history-page__detail-action {
@@ -568,10 +568,10 @@ function closeDetail() {
.chat-history-page__empty {
display: flex;
min-height: 360px;
flex: 1;
align-items: center;
justify-content: center;
min-height: 360px;
}
.chat-history-page__pagination {
@@ -599,27 +599,27 @@ function closeDetail() {
.chat-history-page__content :deep(.el-table th.el-table__cell) {
height: 48px;
background: hsl(var(--surface-contrast-soft) / 0.54);
border-bottom-color: hsl(var(--divider-faint) / 0.28);
font-size: 12px;
font-weight: 600;
color: hsl(var(--text-muted));
background: hsl(var(--surface-contrast-soft) / 54%);
border-bottom-color: hsl(var(--divider-faint) / 28%);
}
.chat-history-page__content :deep(.el-table td.el-table__cell) {
padding: 14px 0;
background: transparent;
border-bottom-color: hsl(var(--divider-faint) / 0.22);
border-bottom-color: hsl(var(--divider-faint) / 22%);
}
.chat-history-page__content
:deep(.el-table__body tr:hover > td.el-table__cell) {
background: hsl(var(--primary) / 0.04);
background: hsl(var(--primary) / 4%);
}
.chat-history-page__content
:deep(.el-table__body tr.current-row > td.el-table__cell) {
background: hsl(var(--primary) / 0.08);
background: hsl(var(--primary) / 8%);
}
@media (max-width: 1024px) {