feat(admin): Add version API endpoint and refactor admin/moderation layouts
- Create new `/api/version` endpoint to retrieve git commit count and hash information - Simplify admin page layout by removing unnecessary nested divs and card wrapper - Refactor moderation page tab navigation with improved button styling using btn-sm and btn-primary classes - Consolidate padding and styling in moderation page for cleaner component structure - Add word-break and overflow-wrap styles to report content display for better text handling - Improve responsive design by adding minWidth: 0 to flex containers in report cards - Streamline conditional rendering in admin settings to reduce DOM nesting depth
This commit is contained in:
@@ -233,12 +233,10 @@ export default function AdminPage() {
|
||||
<h1 style={{ fontSize: '18px', fontWeight: 600 }}>Admin Settings</h1>
|
||||
</header>
|
||||
|
||||
<div style={{ padding: '16px' }}>
|
||||
<div className="card" style={{ padding: '24px' }}>
|
||||
{loading ? (
|
||||
<div style={{ padding: '48px', textAlign: 'center', color: 'var(--foreground-tertiary)' }}>Loading settings...</div>
|
||||
) : (
|
||||
<div style={{ display: 'grid', gap: '16px', maxWidth: '600px' }}>
|
||||
{loading ? (
|
||||
<div style={{ padding: '48px', textAlign: 'center', color: 'var(--foreground-tertiary)' }}>Loading settings...</div>
|
||||
) : (
|
||||
<div style={{ display: 'grid', gap: '16px', maxWidth: '600px', padding: '16px' }}>
|
||||
<div>
|
||||
<label style={{ fontSize: '13px', fontWeight: 500, marginBottom: '4px', display: 'block' }}>Node Name</label>
|
||||
<input
|
||||
@@ -532,8 +530,6 @@ export default function AdminPage() {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user