refactor: 移除所有录制功能代码
- 删除录制相关页面组件(RecordReplayPage、ReplayListPage、ReplayPlayerPage) - 删除录制工具文件(recordEventsDb、recordUtils、useRecorder、tabUtils) - 清理 background.ts 和 content.ts 中的录制代码 - 更新 App.tsx 移除录制路由 - 清理 messages.tsx 中的消息定义 - 删除 types.tsx 中的录制状态 - 移除 package.json 中的 rrweb 相关依赖 - 更新 wxt.config.ts 移除 offscreen、downloads 权限 - 删除 offscreen 目录 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
// App.js
|
||||
import { HashRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import TimestampPage from './pages/TimestampPage';
|
||||
import RecordReplayPage from './pages/RecordReplayPage';
|
||||
import TestPage from './pages/TestPage';
|
||||
import ReplayListPage from './pages/ReplayListPage';
|
||||
import ReplayPlayerPage from './pages/ReplayPlayerPage';
|
||||
import Navbar from '../../components/Navbar';
|
||||
import RoutePersistence from '../../components/RoutePersistence';
|
||||
import './App.css';
|
||||
@@ -13,8 +10,6 @@ import './App.css';
|
||||
const navItems = [
|
||||
{ path: '/test', label: '测试页面', element: <TestPage /> },
|
||||
{ path: '/', label: '时间戳', element: <TimestampPage /> },
|
||||
{ path: '/record-replay', label: '录制', element: <RecordReplayPage /> },
|
||||
{ path: '/replay-list', label: '历史回放', element: <ReplayListPage /> },
|
||||
];
|
||||
|
||||
function App() {
|
||||
@@ -28,7 +23,6 @@ function App() {
|
||||
{navItems.map((item) => (
|
||||
<Route key={item.path} path={item.path} element={item.element} />
|
||||
))}
|
||||
<Route path="/replay/:id" element={<ReplayPlayerPage />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</Router>
|
||||
|
||||
Reference in New Issue
Block a user