GhiVideo 소스 복제 — v4 작업 시작 기준

기존 GhiVideo 저장소 HEAD의 트래킹 소스 362개 파일을 복제.
(node_modules·storage·빌드 산출물·대용량 미디어는 .gitignore 규칙대로 제외)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 14:32:51 +09:00
co-authored by Claude Fable 5
commit d38b842e8d
362 changed files with 46358 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"name": "@abcvideo/shared",
"version": "1.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "tsc --watch"
}
}
+1
View File
@@ -0,0 +1 @@
export * from './types';
+75
View File
@@ -0,0 +1,75 @@
// Video source types
export type VideoSourceType = 'local' | 'server';
export type HlsConversionStatus = 'idle' | 'converting' | 'done' | 'error';
export interface VideoMeta {
videoId: string;
filename: string;
size: number;
duration: number;
fps: number;
width: number;
height: number;
codec: string;
hlsStatus: HlsConversionStatus;
createdAt: string;
}
// Annotation types
export type AnnotationType = 'subtitle' | 'memo';
export interface AnnotationPosition {
x: number; // 0-100 percentage
y: number; // 0-100 percentage
}
export interface AnnotationSize {
width: number; // 0-100 percentage
height: number; // 0-100 percentage
}
export interface AnnotationStyle {
fontSize?: number;
color?: string;
backgroundColor?: string;
}
export interface Annotation {
id: string;
videoId: string;
type: AnnotationType;
timeStart: number; // seconds (float)
timeEnd: number; // seconds (float)
text: string;
position: AnnotationPosition;
size: AnnotationSize;
style: AnnotationStyle;
createdAt: string;
updatedAt: string;
}
export type CreateAnnotationInput = Omit<Annotation, 'id' | 'createdAt' | 'updatedAt'>;
export type UpdateAnnotationInput = Partial<Omit<Annotation, 'id' | 'videoId' | 'createdAt'>>;
// API response types
export interface ApiResponse<T> {
data?: T;
error?: string;
}
export interface HlsProgressEvent {
videoId: string;
percent: number;
time: number;
status: HlsConversionStatus;
}
// Upload types
export interface UploadStatus {
uploadId: string;
filename: string;
size: number;
uploadedBytes: number;
status: 'uploading' | 'complete' | 'error';
}
+14
View File
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
"declaration": true,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}