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
@@ -3,6 +3,7 @@
|
||||
// 侧边栏:社区统计 + 友情链接
|
||||
import { useEffect, useState } from 'react';
|
||||
import { API } from '@/lib/api';
|
||||
import { Icon } from './Icons';
|
||||
|
||||
export default function Sidebar() {
|
||||
const [stats, setStats] = useState({ posts: 0, users: 0, topics: 0, online: 0 });
|
||||
@@ -16,14 +17,18 @@ export default function Sidebar() {
|
||||
return (
|
||||
<aside id="sidebar">
|
||||
<div className="stats-box">
|
||||
<h4>社区统计</h4>
|
||||
<h4>
|
||||
<Icon name="book" size={14} /> 社区统计
|
||||
</h4>
|
||||
<div className="stat-item"><span>主题</span><span>{stats.topics || 0}</span></div>
|
||||
<div className="stat-item"><span>帖子</span><span>{stats.posts || 0}</span></div>
|
||||
<div className="stat-item"><span>用户</span><span>{stats.users || 0}</span></div>
|
||||
<div className="stat-item"><span>在线</span><span>{stats.online || 0}</span></div>
|
||||
</div>
|
||||
<div className="links-box">
|
||||
<h4>友情链接</h4>
|
||||
<h4>
|
||||
<Icon name="link" size={14} /> 友情链接
|
||||
</h4>
|
||||
<ul id="friendlyLinks">
|
||||
{links.length === 0 ? (
|
||||
<li style={{ color: '#94a3b8', fontSize: 13 }}>暂无链接</li>
|
||||
|
||||
Reference in new issue
Block a user