From 8545d95070890edfcf76b788ee023f9d510c302d Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 12 Jul 2025 12:48:31 +0200 Subject: [PATCH] refactor: add FPS and remove turbopack (yes, fuck you turbopack) --- apps/web/package.json | 2 +- apps/web/src/components/editor-header.tsx | 15 +++++++- .../src/components/editor/preview-panel.tsx | 13 ++++++- .../editor/properties-panel/index.tsx | 36 +++++++++++++++++- .../src/components/editor/timeline-track.tsx | 37 +++++++++++++----- apps/web/src/components/editor/timeline.tsx | 17 ++++----- apps/web/src/constants/timeline-constants.ts | 28 ++++++++++++++ apps/web/src/hooks/use-timeline-playhead.ts | 8 +++- apps/web/src/lib/media-processing.ts | 38 +++++++++++++------ apps/web/src/lib/time.ts | 8 +++- apps/web/src/stores/media-store.ts | 1 + apps/web/src/stores/project-store.ts | 23 +++++++++++ apps/web/src/stores/timeline-store.ts | 10 ++++- apps/web/src/types/project.ts | 1 + 14 files changed, 197 insertions(+), 40 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 27c0771..fabe44f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -4,7 +4,7 @@ "private": true, "packageManager": "bun@1.2.17", "scripts": { - "dev": "next dev --turbopack", + "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint", diff --git a/apps/web/src/components/editor-header.tsx b/apps/web/src/components/editor-header.tsx index 666ddae..c4081c7 100644 --- a/apps/web/src/components/editor-header.tsx +++ b/apps/web/src/components/editor-header.tsx @@ -31,13 +31,24 @@ export function EditorHeader() { const centerContent = (
- {formatTimeCode(getTotalDuration(), "HH:MM:SS:CS")} + + {formatTimeCode( + getTotalDuration(), + "HH:MM:SS:FF", + activeProject?.fps || 30 + )} +
); const rightContent = (