mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-26 07:45:34 +00:00
Split all source files exceeding 500 lines into smaller, focused modules:
- electron/main.ts → mainBootstrapHelpers, mainRuntimeState, mainUpdateIntegration, mainWindowControls
- electron/windows.ts → editorWindows, hudWindows, windowShared
- electron/updater.ts → updaterDialogs, updaterEventHandlers, updaterShared
- electron/preload.ts → preloadExtensionsBridge, preloadUpdateBridge
- electron/ipc/register/recording.ts → recording/ directory with focused handlers
- src/components/video-editor/VideoEditor.tsx → EditorContent, EditorHeader, EditorSidebar, EditorToolbar, hooks/
- src/components/video-editor/SettingsPanel.tsx → settings/ directory with per-section components
- src/components/video-editor/AnnotationSettingsPanel.tsx → tab components
- src/components/video-editor/ExtensionManager.tsx → extension-manager/ directory
- src/components/video-editor/VideoPlayback.tsx → videoPlaybackComponent/ directory
- src/components/video-editor/projectPersistence.ts → projectPersistence{Normalization,Paths,Regions,Shared}.ts
- src/components/video-editor/timeline/TimelineEditor.tsx → TimelineEditor/ directory
- src/components/video-editor/types.ts → focused type modules
- src/components/launch/LaunchWindow.tsx → LaunchWindow/ directory
- src/hooks/useScreenRecorder.ts → useScreenRecorder/ directory
- src/lib/exporter/audioEncoder.ts → audioEncoder/ directory
- src/lib/exporter/frameRenderer.ts → frameRenderer modules
- src/lib/exporter/modernFrameRenderer.ts → filters and lifecycle modules
- src/lib/exporter/modernVideoExporter.ts → modernVideoExporter/ directory
- src/lib/exporter/videoExporter.ts → video-exporter/ directory
- src/lib/exporter/streamingDecoder.ts → streamingDecoderHelpers.ts
- src/lib/extensions/extensionHost.ts → extensionHost{ApiFactory,QueryApi,RegistrationApi,Shared,State}.ts
- src/lib/extensions/types.ts → focused type modules
- electron/native/ScreenCaptureKitRecorder.swift → ScreenCaptureKitRecorder/ directory
- scripts/benchmark-export-queues.mjs → benchmark-export-queues/ directory
- .github/workflows/release.yml → extracted merge-macos-metadata composite action
- scripts/build-native-helpers.mjs → updated for multi-file Swift compilation
Also incorporates upstream default export quality change (good → source).
94 lines
2.8 KiB
TypeScript
94 lines
2.8 KiB
TypeScript
interface ElectronAPIProjects {
|
|
setCurrentVideoPath: (path: string) => Promise<{ success: boolean }>;
|
|
setCurrentRecordingSession: (session: {
|
|
videoPath: string;
|
|
webcamPath?: string | null;
|
|
timeOffsetMs?: number;
|
|
}) => Promise<{ success: boolean }>;
|
|
getCurrentRecordingSession: () => Promise<{
|
|
success: boolean;
|
|
session?: { videoPath: string; webcamPath?: string | null; timeOffsetMs?: number };
|
|
}>;
|
|
getCurrentVideoPath: () => Promise<{ success: boolean; path?: string }>;
|
|
clearCurrentVideoPath: () => Promise<{ success: boolean }>;
|
|
deleteRecordingFile: (filePath: string) => Promise<{ success: boolean; error?: string }>;
|
|
getLocalMediaUrl: (filePath: string) => Promise<{ success: true; url: string } | { success: false }>;
|
|
saveProjectFile: (
|
|
projectData: unknown,
|
|
suggestedName?: string,
|
|
existingProjectPath?: string,
|
|
thumbnailDataUrl?: string | null,
|
|
) => Promise<{
|
|
success: boolean;
|
|
path?: string;
|
|
message?: string;
|
|
canceled?: boolean;
|
|
error?: string;
|
|
}>;
|
|
loadProjectFile: () => Promise<{
|
|
success: boolean;
|
|
path?: string;
|
|
project?: unknown;
|
|
message?: string;
|
|
canceled?: boolean;
|
|
error?: string;
|
|
}>;
|
|
loadCurrentProjectFile: () => Promise<{
|
|
success: boolean;
|
|
path?: string;
|
|
project?: unknown;
|
|
message?: string;
|
|
canceled?: boolean;
|
|
error?: string;
|
|
}>;
|
|
getProjectsDirectory: () => Promise<{ success: boolean; path?: string; error?: string }>;
|
|
listProjectFiles: () => Promise<{
|
|
success: boolean;
|
|
projectsDir?: string | null;
|
|
entries: Array<{
|
|
path: string;
|
|
name: string;
|
|
updatedAt: number;
|
|
thumbnailPath: string | null;
|
|
isCurrent: boolean;
|
|
isInProjectsDirectory: boolean;
|
|
}>;
|
|
error?: string;
|
|
}>;
|
|
openProjectFileAtPath: (filePath: string) => Promise<{
|
|
success: boolean;
|
|
path?: string;
|
|
project?: unknown;
|
|
message?: string;
|
|
canceled?: boolean;
|
|
error?: string;
|
|
}>;
|
|
openProjectsDirectory: () => Promise<{
|
|
success: boolean;
|
|
path?: string;
|
|
message?: string;
|
|
error?: string;
|
|
}>;
|
|
getPlatform: () => Promise<string>;
|
|
revealInFolder: (filePath: string) => Promise<{ success: boolean; error?: string; message?: string }>;
|
|
openRecordingsFolder: () => Promise<{ success: boolean; error?: string; message?: string }>;
|
|
getRecordingsDirectory: () => Promise<{
|
|
success: boolean;
|
|
path: string;
|
|
isDefault: boolean;
|
|
error?: string;
|
|
}>;
|
|
chooseRecordingsDirectory: () => Promise<{
|
|
success: boolean;
|
|
canceled?: boolean;
|
|
path?: string;
|
|
isDefault?: boolean;
|
|
message?: string;
|
|
error?: string;
|
|
}>;
|
|
getShortcuts: () => Promise<Record<string, unknown> | null>;
|
|
saveShortcuts: (shortcuts: unknown) => Promise<{ success: boolean; error?: string }>;
|
|
setHasUnsavedChanges: (hasChanges: boolean) => void;
|
|
onRequestSaveBeforeClose: (callback: () => Promise<boolean>) => () => void;
|
|
getAppVersion: () => Promise<string>;
|
|
} |