Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor: use kebab-case for new editor modules

Richie McIlroy443d83483c37
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
index fc8fedd9b..19fdf51d9 100644
--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx
+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
@@ -135,7 +135,7 @@ import {
} from "./context";
import { FontPicker } from "./FontPicker";
import { GradientEditor } from "./GradientEditor";
-import { ImageSegmentConfig } from "./ImageSegmentConfig";
+import { ImageSegmentConfig } from "./image-segment-config";
import { KeyboardTab } from "./KeyboardTab";
import {
encodeMaskEffect,
@@ -155,7 +155,7 @@ import {
DEFAULT_SPLIT_LAYOUT,
} from "./projectConfig";
import ShadowSettings from "./ShadowSettings";
-import { StyleGroupToggle, StyleSegmentConfig } from "./StyleSegmentConfig";
+import { StyleGroupToggle, StyleSegmentConfig } from "./style-segment-config";
import { TextInput } from "./TextInput";
import {
TEXT_FONT_SIZE_MAX,
diff --git a/apps/desktop/src/routes/editor/FrameButton.tsx b/apps/desktop/src/routes/editor/FrameButton.tsx
index acf0ab2d5..ceb3d7afc 100644
--- a/apps/desktop/src/routes/editor/FrameButton.tsx
+++ b/apps/desktop/src/routes/editor/FrameButton.tsx
@@ -12,7 +12,7 @@ import IconLucideBan from "~icons/lucide/ban";
import IconLucideGlobe from "~icons/lucide/globe";
import IconLucideLaptop from "~icons/lucide/laptop";
import { EditorStyleContext, useEditorContext } from "./context";
-import { StyleGroupToggle } from "./StyleSegmentConfig";
+import { StyleGroupToggle } from "./style-segment-config";
import { EditorButton, Input } from "./ui";
const DEFAULT_FRAME_CONFIG: FrameConfiguration = {
diff --git a/apps/desktop/src/routes/editor/Player.tsx b/apps/desktop/src/routes/editor/Player.tsx
index c857c97d3..9dcb2486f 100644
--- a/apps/desktop/src/routes/editor/Player.tsx
+++ b/apps/desktop/src/routes/editor/Player.tsx
@@ -19,7 +19,7 @@ import { CaptionsRegenerateBadge } from "./CaptionsRegenerateBadge";
import { createCaptionTrackSegments } from "./captions";
import { type EditorPreviewQuality, FPS, useEditorContext } from "./context";
import { FrameButton } from "./FrameButton";
-import { ImageOverlay } from "./ImageOverlay";
+import { ImageOverlay } from "./image-overlay";
import { MaskOverlay } from "./MaskOverlay";
import { PerformanceOverlay } from "./PerformanceOverlay";
import { SplitScreenOverlay } from "./SplitScreenOverlay";
diff --git a/apps/desktop/src/routes/editor/Timeline/ImageTrack.tsx b/apps/desktop/src/routes/editor/Timeline/image-track.tsx
similarity index 60%
rename from apps/desktop/src/routes/editor/Timeline/ImageTrack.tsx
rename to apps/desktop/src/routes/editor/Timeline/image-track.tsx
index a5d7b931b..42d69374a 100644
--- a/apps/desktop/src/routes/editor/Timeline/ImageTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/image-track.tsx
@@ -1,4 +1,4 @@
-import { OverlayTrack, type OverlayTrackProps } from "./StyleTrack";
+import { OverlayTrack, type OverlayTrackProps } from "./style-track";
export function ImageTrack(props: OverlayTrackProps) {
return <OverlayTrack {...props} type="image" />;
diff --git a/apps/desktop/src/routes/editor/Timeline/index.tsx b/apps/desktop/src/routes/editor/Timeline/index.tsx
index bb3558737..431746859 100644
--- a/apps/desktop/src/routes/editor/Timeline/index.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/index.tsx
@@ -24,8 +24,8 @@ import { produce } from "solid-js/store";
import toast from "solid-toast";
import IconLucidePalette from "~icons/lucide/palette";
import { stylesRevealCamera } from "../style";
-import { ImageTrack } from "./ImageTrack";
-import { type OverlayDragState, StyleTrack } from "./StyleTrack";
+import { ImageTrack } from "./image-track";
+import { type OverlayDragState, StyleTrack } from "./style-track";
import "./styles.css";
diff --git a/apps/desktop/src/routes/editor/Timeline/StyleTrack.tsx b/apps/desktop/src/routes/editor/Timeline/style-track.tsx
similarity index 100%
rename from apps/desktop/src/routes/editor/Timeline/StyleTrack.tsx
rename to apps/desktop/src/routes/editor/Timeline/style-track.tsx
diff --git a/apps/desktop/src/routes/editor/ImageOverlay.tsx b/apps/desktop/src/routes/editor/image-overlay.tsx
similarity index 100%
rename from apps/desktop/src/routes/editor/ImageOverlay.tsx
rename to apps/desktop/src/routes/editor/image-overlay.tsx
diff --git a/apps/desktop/src/routes/editor/ImageSegmentConfig.tsx b/apps/desktop/src/routes/editor/image-segment-config.tsx
similarity index 100%
rename from apps/desktop/src/routes/editor/ImageSegmentConfig.tsx
rename to apps/desktop/src/routes/editor/image-segment-config.tsx
diff --git a/apps/desktop/src/routes/editor/StyleSegmentConfig.tsx b/apps/desktop/src/routes/editor/style-segment-config.tsx
similarity index 100%
rename from apps/desktop/src/routes/editor/StyleSegmentConfig.tsx
rename to apps/desktop/src/routes/editor/style-segment-config.tsx