fix: restore original Feather icons across UI
- Add components/Icons.js with SVG paths extracted verbatim from the original index.html (14 unique icons) - Restore icons on navbar menu, sidebar, feed actions, post/reply, modals, admin tabs and settings - Replaces emoji placeholders from the initial migration
This commit is contained in:
1 parent
3e9d004fb6
commit
70a198ae32
14 files changed
+160
-35
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
// 管理后台:5 个 tab
|
||||
import { useState } from 'react';
|
||||
import { Icon } from './Icons';
|
||||
import AdminReports from './admin/AdminReports';
|
||||
import AdminUsers from './admin/AdminUsers';
|
||||
import AdminLogs from './admin/AdminLogs';
|
||||
@@ -9,11 +10,11 @@ import AdminLinks from './admin/AdminLinks';
|
||||
import AdminForumSettings from './admin/AdminForumSettings';
|
||||
|
||||
const TABS = [
|
||||
{ key: 'reports', label: '举报' },
|
||||
{ key: 'users', label: '用户' },
|
||||
{ key: 'logs', label: '日志' },
|
||||
{ key: 'links', label: '友链' },
|
||||
{ key: 'settings', label: '论坛设置' },
|
||||
{ key: 'reports', label: '举报', icon: 'shieldAlert' },
|
||||
{ key: 'users', label: '用户', icon: 'users' },
|
||||
{ key: 'logs', label: '日志', icon: 'file' },
|
||||
{ key: 'links', label: '友链', icon: 'link' },
|
||||
{ key: 'settings', label: '论坛设置', icon: 'settings' },
|
||||
];
|
||||
|
||||
export default function AdminPage() {
|
||||
@@ -22,7 +23,7 @@ export default function AdminPage() {
|
||||
return (
|
||||
<div className="page-slide active">
|
||||
<div className="page-header" style={{ maxWidth: 900, margin: '0 auto', width: '100%' }}>
|
||||
<h2>管理后台</h2>
|
||||
<h2><Icon name="shieldAlert" size={20} /> 管理后台</h2>
|
||||
</div>
|
||||
<div className="admin-tabs" style={{ maxWidth: 900, margin: '0 auto', width: '100%' }}>
|
||||
{TABS.map((t) => (
|
||||
@@ -31,7 +32,7 @@ export default function AdminPage() {
|
||||
className={'admin-tab' + (tab === t.key ? ' active' : '')}
|
||||
onClick={() => setTab(t.key)}
|
||||
>
|
||||
{t.label}
|
||||
<Icon name={t.icon} size={14} /> {t.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user