feat(app): 添加图片采集器功能并修复粘贴问题

- 集成 dexie 和 dexie-react-hooks 实现本地数据库存储
- 创建 TestPage 组件实现图片粘贴采集功能
- 修复重复粘贴问题,添加事件监听器清理机制
- 修复删除按钮触发增加的事件冒泡问题
- 为电子木鱼页面添加顶部边距样式
- 更新导航项标签为中文显示
- 添加图片网格展示和删除功能
This commit is contained in:
雨霖铃
2026-01-08 21:49:39 +08:00
parent 3ee28a91e0
commit 7079334562
6 changed files with 143 additions and 1 deletions
+3 -1
View File
@@ -4,13 +4,15 @@ import TimestampPage from './pages/TimestampPage';
import ElectronicWoodenFishPage from "./pages/ElectronicWoodenFishPage";
import TodoListPage from "./pages/TodoListPage";
import './App.css';
import TestPage from "./pages/TestPage";
// 导航项配置数组,便于后续添加
// 为了测试折叠功能,我们添加更多导航项
const navItems = [
{path: '/', label: 'Timestamp', element: <TimestampPage/>},
{path: '/', label: '时间戳', element: <TimestampPage/>},
{path: '/dzmy', label: '电子木鱼', element: <ElectronicWoodenFishPage/>},
{path: '/todo', label: '待办', element: <TodoListPage/>},
{path: '/test', label: '测试', element: <TestPage/>}
];
function App() {