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:
lezi-fun committed 2026-08-09 18:12:46 +08:00
1 parent 3e9d004fb6
commit 70a198ae32
14 files changed
+160 -35

No files matched your search

+4 -1
View File
@@ -5,6 +5,7 @@ import { useEffect, useState, useCallback } from 'react';
import { API } from '@/lib/api';
import { useApp } from './AppProvider';
import ReplyList from './ReplyList';
import { Icon } from './Icons';
function avatar(username) {
return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || '匿名用户') +
@@ -65,7 +66,9 @@ export default function PostDetail({ postId }) {
<span className="post-username">{post.username || '匿名用户'}</span>
<span className="post-time">{time}</span>
{canDelete && (
<button className="btn-sm btn-danger" onClick={handleDelete}>删除</button>
<button className="btn-sm btn-danger" onClick={handleDelete}>
<Icon name="trash" size={14} /> 删除
</button>
)}
</div>
<div className="post-title" style={{ fontSize: 20, fontWeight: 700, margin: '8px 0 12px' }}>