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
+2 -1
View File
@@ -49,7 +49,7 @@ const TIMESTAMP_UNITS = [
export function TimestampToDatetime() {
/** @type {[string, function]} 输入的时间戳值 */
const [timestampValue, setTimestampValue] = useState(Date.now());
const [timestampValue, setTimestampValue] = useState(() => Date.now());
/** @type {[string, function]} 转换结果 */
const [timestampResult, setTimestampResult] = useState('');
@@ -87,6 +87,7 @@ export function TimestampToDatetime() {
const result = formatWithZone(numericValue, selectedZone, unit);
setTimestampResult(result);
} catch (err) {
console.error('转换时间戳出错:', err);
setError('转换失败,请检查输入格式');
setTimestampResult('');
}