refactor: 重构 TopBar 组件并更新项目结构
- 删除原有的 TopBar 组件,重构为布局组件并移动至 layout/ 目录。 - 更新相关文档,反映 TopBar 组件的新位置。 - 引入新的 useTopBar 钩子以管理 TopBar 的状态和逻辑。 - 添加 TopBar 组件的单元测试,确保功能正常。
This commit is contained in:
@@ -16,11 +16,11 @@ WXT 框架要求的扩展生命周期入口点,对应 Chrome Extension 的各
|
||||
|
||||
Popup 弹窗页面(点击扩展图标弹出)。
|
||||
|
||||
| 文件 | 用途 |
|
||||
| ------------ | ------------------------------------------------------------------------------ |
|
||||
| `index.html` | HTML 入口 |
|
||||
| `main.tsx` | React 挂载点 |
|
||||
| `App.tsx` | 根组件,组装 `RouterProvider` + `TopBar` + `ErrorBoundary` + `RouterContainer` |
|
||||
| 文件 | 用途 |
|
||||
| ------------ | ------------------------------------------------------------------------------------- |
|
||||
| `index.html` | HTML 入口 |
|
||||
| `main.tsx` | React 挂载点 |
|
||||
| `App.tsx` | 根组件,组装 `RouterProvider` + `layout/TopBar` + `ErrorBoundary` + `RouterContainer` |
|
||||
|
||||
### sidepanel/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user