Initial frontend import

This commit is contained in:
TerryM
2026-05-16 00:18:22 +08:00
commit 9c54ffec76
99 changed files with 14992 additions and 0 deletions

6
src/video.ts Normal file
View File

@@ -0,0 +1,6 @@
/** Path looks like a video file (upload or URL path). */
export function isLikelyVideoPath(path: string | undefined | null): boolean {
if (!path) return false;
const p = path.split("?")[0].toLowerCase();
return /\.(mp4|webm|mov|m4v|mkv|ogv|avi)(\/)?$/i.test(p);
}