feat: update package.json to remove lint-staged, add eslint configuration and dependencies

feat: add state management for recording in RecordeReplayPage component

refactor: remove bridge and storage services as they are no longer needed

chore: update tsconfig.json for improved type checking and module resolution

fix: update downloadHtml function to use eventWithTime type and improve formatting

fix: add error logging in formatWithZone function for better debugging
This commit is contained in:
雨霖铃
2026-01-31 18:00:01 +08:00
parent 88a612f9cf
commit 4213e70697
18 changed files with 3437 additions and 135 deletions
+5 -3
View File
@@ -21,7 +21,7 @@ const CopyButton = ({
return () => clearTimeout(timer);
}, [status]);
const performCopy = async () => {
const performCopy = useCallback(async () => {
if (!text) {
console.warn('没有提供要复制的文本');
return false;
@@ -38,7 +38,9 @@ const CopyButton = ({
return false;
}
}
};
return false;
}, [text]);
const handleClick = useCallback(async () => {
setStatus('copying');
@@ -50,7 +52,7 @@ const CopyButton = ({
console.error('复制时出错:', error);
setStatus('error');
}
}, [text]);
}, [performCopy]);
// 根据状态计算当前显示的文本
const currentText =