upgrade nextjs to version 16
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-05 10:27:11 +08:00
parent af1b445072
commit 467232457a
6 changed files with 436 additions and 144 deletions

View File

@@ -1,4 +1,4 @@
import { useState, useRef, forwardRef, useEffect, useCallback } from "react";
import { useState, useRef, forwardRef, useEffect } from "react";
import SubtitleDisplay from "./SubtitleDisplay";
import LightButton from "@/components/buttons/LightButton";
import { getIndex, parseSrt, getNearistIndex } from "../subtitle";
@@ -31,7 +31,7 @@ const VideoPanel = forwardRef<HTMLVideoElement, VideoPanelProps>(
},
});
const togglePlayPause = useCallback(() => {
const togglePlayPause = () => {
if (!videoUrl) return;
const video = videoRef.current;
@@ -42,7 +42,7 @@ const VideoPanel = forwardRef<HTMLVideoElement, VideoPanelProps>(
video.pause();
}
setIsPlaying(!video.paused);
}, [videoRef, videoUrl]);
}
useEffect(() => {
const handleKeyDownEvent = (e: globalThis.KeyboardEvent) => {