完善论坛配置与发帖体验:TipTap 富文本、图片上传、修订历史、Feed 排序与后台参数管理。

同步更新 README 与 ROADMAP,反映最新功能与开发状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
freefire
2026-06-16 04:11:38 +08:00
parent 1d273066b0
commit b451703642
73 changed files with 1943 additions and 752 deletions

View File

@@ -2988,10 +2988,10 @@ a.waline-comment-author:hover { color: var(--j13-green); }
display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
color: var(--j13-green); background: none; border: none; cursor: pointer;
}
.admin-body { display: flex; min-height: calc(100vh - 56px); }
.admin-body { display: flex; height: calc(100vh - 56px); overflow: hidden; }
.admin-sidebar {
width: 200px; flex-shrink: 0; padding: 16px 10px; border-right: 1px solid var(--j13-border);
background: hsl(var(--card));
background: hsl(var(--card)); overflow-y: auto;
}
.admin-nav-item {
display: flex; align-items: center; gap: 8px; width: 100%;
@@ -3000,7 +3000,7 @@ a.waline-comment-author:hover { color: var(--j13-green); }
}
.admin-nav-item:hover { background: var(--j13-green-bg); color: var(--j13-green); }
.admin-nav-item.active { background: var(--j13-green-bg); color: var(--j13-green); font-weight: 600; }
.admin-main { flex: 1; padding: 24px; overflow: auto; }
.admin-main { flex: 1; min-width: 0; min-height: 0; padding: 24px; overflow-y: auto; }
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.admin-page-head p { font-size: 13px; color: hsl(var(--muted-foreground)); }
@@ -3015,13 +3015,14 @@ a.waline-comment-author:hover { color: var(--j13-green); }
.admin-stat-label { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.admin-card {
border: 1px solid var(--j13-border); border-radius: 10px; background: hsl(var(--card));
overflow: hidden; margin-bottom: 16px;
margin-bottom: 16px;
}
.admin-card-body { padding: 16px 20px 20px; }
.admin-card-head {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px; border-bottom: 1px solid var(--j13-border); font-weight: 600; font-size: 14px;
}
.admin-card-desc { padding: 12px 16px 0; font-size: 13px; color: hsl(var(--muted-foreground)); }
.admin-card-desc { padding: 12px 16px 0; font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.admin-card .admin-card-desc + button { margin: 12px 16px 16px; }
.admin-form-row {
display: flex;
@@ -3032,6 +3033,189 @@ a.waline-comment-author:hover { color: var(--j13-green); }
font-size: 13px;
}
.admin-form-row label { color: hsl(var(--muted-foreground)); white-space: nowrap; }
/* ========== 系统设置页 ========== */
.admin-settings-page {
max-width: 880px;
padding-bottom: 24px;
}
.admin-settings-tabs {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 20px;
padding-bottom: 0;
border-bottom: 1px solid var(--j13-border);
}
.admin-settings-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
margin-bottom: -1px;
border: none;
border-bottom: 2px solid transparent;
background: none;
font-size: 13px;
font-weight: 500;
color: hsl(var(--muted-foreground));
cursor: pointer;
transition: color .15s, border-color .15s;
}
.admin-settings-tab:hover { color: hsl(var(--foreground)); }
.admin-settings-tab.active {
color: var(--j13-green);
border-bottom-color: var(--j13-green);
}
.admin-settings-panel { display: flex; flex-direction: column; gap: 0; }
.admin-settings-card { margin-bottom: 0; }
.admin-settings-card-badge {
font-size: 12px;
font-weight: 500;
color: hsl(var(--muted-foreground));
padding: 2px 8px;
border-radius: 999px;
background: hsl(var(--muted) / 0.45);
}
.admin-settings-sections { display: flex; flex-direction: column; gap: 20px; }
.admin-settings-section-head h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 2px;
}
.admin-settings-section-head p {
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.45;
margin-bottom: 10px;
}
.admin-settings-table {
border: 1px solid var(--j13-border);
border-radius: 8px;
overflow: hidden;
background: hsl(var(--background));
}
.admin-settings-row {
display: grid;
grid-template-columns: 140px 140px 1fr;
align-items: center;
gap: 8px 16px;
padding: 10px 14px;
border-bottom: 1px solid var(--j13-border);
font-size: 13px;
}
.admin-settings-row:last-child { border-bottom: none; }
.admin-settings-row-label {
color: hsl(var(--foreground));
font-weight: 500;
}
.admin-settings-row-input {
display: flex;
align-items: center;
gap: 8px;
}
.admin-settings-input {
width: 88px;
height: 32px;
padding-top: 0;
padding-bottom: 0;
}
.admin-settings-unit {
font-size: 12px;
color: hsl(var(--muted-foreground));
white-space: nowrap;
}
.admin-settings-row-hint {
font-size: 12px;
color: hsl(var(--muted-foreground));
}
.admin-settings-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 16px;
padding: 14px 16px;
border: 1px solid var(--j13-border);
border-radius: 10px;
background: hsl(var(--card));
}
.admin-settings-bar p {
margin: 0;
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.45;
max-width: 420px;
}
.admin-settings-filter-body { display: flex; flex-direction: column; gap: 12px; }
.admin-settings-filter-tip {
margin: 0;
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.5;
}
.admin-settings-filter-tip code,
.admin-settings-backup-name code {
font-size: 11px;
background: hsl(var(--muted));
padding: 1px 5px;
border-radius: 4px;
}
.admin-settings-filter-textarea {
min-height: 320px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 13px;
line-height: 1.55;
resize: vertical;
}
.admin-settings-info { display: flex; flex-direction: column; gap: 0; }
.admin-settings-info-row {
display: grid;
grid-template-columns: 88px 1fr;
gap: 12px 16px;
padding: 10px 0;
border-bottom: 1px solid var(--j13-border);
font-size: 13px;
}
.admin-settings-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.admin-settings-info-row:first-child { padding-top: 0; }
.admin-settings-info-row dt { color: hsl(var(--muted-foreground)); }
.admin-settings-info-row dd { margin: 0; word-break: break-all; }
.admin-settings-info-row dd code {
font-size: 12px;
background: hsl(var(--muted));
padding: 2px 6px;
border-radius: 4px;
}
.admin-settings-backup-body {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.admin-settings-backup-body > p {
margin: 0;
font-size: 13px;
color: hsl(var(--muted-foreground));
line-height: 1.5;
}
.admin-settings-backup-name { font-size: 12px !important; }
@media (max-width: 640px) {
.admin-settings-row {
grid-template-columns: 1fr;
gap: 6px;
padding: 12px 14px;
}
.admin-settings-row-hint { padding-left: 0; }
.admin-settings-bar {
flex-direction: column;
align-items: stretch;
}
.admin-settings-bar p { max-width: none; }
.admin-settings-info-row { grid-template-columns: 1fr; gap: 4px; }
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--j13-border); }
.admin-table th { font-weight: 600; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.3); }