mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-22 12:13:43 +08:00
refactor: Remove player-specific dependencies, setup script, keyboard shortcuts, and project documentation.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Following Liquid Glass design system principles
|
||||
*/
|
||||
|
||||
export interface LatencyInfo {
|
||||
interface LatencyInfo {
|
||||
value: number;
|
||||
label: string;
|
||||
color: string;
|
||||
@@ -41,13 +41,13 @@ export function getLatencyInfo(latency: number): LatencyInfo {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Format latency for display
|
||||
* @param latency - Response time in milliseconds
|
||||
* @returns Formatted string in milliseconds (e.g., "345ms", "1240ms")
|
||||
*/
|
||||
export function formatLatency(latency: number): string {
|
||||
function formatLatency(latency: number): string {
|
||||
return `${latency}ms`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export async function processSearchStream({
|
||||
|
||||
timeoutId = setTimeout(() => {
|
||||
if (!isCompleted) {
|
||||
console.log('Search timeout: No progress for 3 seconds, auto-completing');
|
||||
|
||||
isCompleted = true;
|
||||
onComplete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user