Skip to content

The open-source AI voice studio. Clone, dictate, create.

style: apply biome format to drifted authored source

James Pinecfe6770639c2
diff --git a/app/src/components/AppFrame/AppFrame.tsx b/app/src/components/AppFrame/AppFrame.tsx
index 99bf192f..9c08fb88 100644
--- a/app/src/components/AppFrame/AppFrame.tsx
+++ b/app/src/components/AppFrame/AppFrame.tsx
@@ -14,15 +14,17 @@ interface AppFrameProps {
export function AppFrame({ children }: AppFrameProps) {
const routerState = useRouterState();
const isStoriesRoute = routerState.location.pathname === '/stories';
-
+
const selectedStoryId = useStoryStore((state) => state.selectedStoryId);
const { data: story } = useStory(selectedStoryId);
-
+
// Show track editor when on stories route with a selected story that has items
const showTrackEditor = isStoriesRoute && selectedStoryId && story && story.items.length > 0;
return (
- <div className={cn('h-screen bg-background flex flex-col overflow-hidden', TOP_SAFE_AREA_PADDING)}>
+ <div
+ className={cn('h-screen bg-background flex flex-col overflow-hidden', TOP_SAFE_AREA_PADDING)}
+ >
<TitleBarDragRegion />
{children}
{showTrackEditor ? (
diff --git a/app/src/components/EffectsTab/EffectsTab.tsx b/app/src/components/EffectsTab/EffectsTab.tsx
index 9963b952..98343aef 100644
--- a/app/src/components/EffectsTab/EffectsTab.tsx
+++ b/app/src/components/EffectsTab/EffectsTab.tsx
@@ -1,20 +1,20 @@
-import {EffectsDetail} from "./EffectsDetail";
-import {EffectsList} from "./EffectsList";
+import { EffectsDetail } from './EffectsDetail';
+import { EffectsList } from './EffectsList';
export function EffectsTab() {
- return (
- <div className="flex flex-col h-full min-h-0 overflow-hidden">
- <div className="flex-1 min-h-0 flex gap-6 overflow-hidden">
- {/* Left - Presets list */}
- <div className="w-full max-w-[360px] shrink-0 flex flex-col min-h-0">
- <EffectsList />
- </div>
+ return (
+ <div className="flex flex-col h-full min-h-0 overflow-hidden">
+ <div className="flex-1 min-h-0 flex gap-6 overflow-hidden">
+ {/* Left - Presets list */}
+ <div className="w-full max-w-[360px] shrink-0 flex flex-col min-h-0">
+ <EffectsList />
+ </div>
- {/* Right - Detail / editor */}
- <div className="flex-1 min-h-0 flex flex-col">
- <EffectsDetail />
- </div>
- </div>
- </div>
- );
+ {/* Right - Detail / editor */}
+ <div className="flex-1 min-h-0 flex flex-col">
+ <EffectsDetail />
+ </div>
+ </div>
+ </div>
+ );
}
diff --git a/app/src/components/ServerSettings/ModelProgress.tsx b/app/src/components/ServerSettings/ModelProgress.tsx
index 76aa99f1..e215f2ff 100644
--- a/app/src/components/ServerSettings/ModelProgress.tsx
+++ b/app/src/components/ServerSettings/ModelProgress.tsx
@@ -12,7 +12,11 @@ interface ModelProgressProps {
isDownloading?: boolean;
}
-export function ModelProgress({ modelName, displayName, isDownloading = false }: ModelProgressProps) {
+export function ModelProgress({
+ modelName,
+ displayName,
+ isDownloading = false,
+}: ModelProgressProps) {
const [progress, setProgress] = useState<ModelProgressType | null>(null);
const serverUrl = useServerStore((state) => state.serverUrl);
diff --git a/app/src/components/StoriesTab/StoryChatItem.tsx b/app/src/components/StoriesTab/StoryChatItem.tsx
index 19fa2249..7055e136 100644
--- a/app/src/components/StoriesTab/StoryChatItem.tsx
+++ b/app/src/components/StoriesTab/StoryChatItem.tsx
@@ -87,7 +87,7 @@ export function StoryChatItem({
alt={`${item.profile_name} avatar`}
className={cn(
'h-full w-full object-cover transition-all duration-200',
- !isCurrentlyPlaying && 'grayscale'
+ !isCurrentlyPlaying && 'grayscale',
)}
onError={() => setAvatarError(true)}
/>
@@ -127,7 +127,10 @@ export function StoryChatItem({
<Play className="mr-2 h-4 w-4" />
Play from here
</DropdownMenuItem>
- <DropdownMenuItem onClick={onRemove} className="text-destructive focus:text-destructive">
+ <DropdownMenuItem
+ onClick={onRemove}
+ className="text-destructive focus:text-destructive"
+ >
<Trash2 className="mr-2 h-4 w-4" />
Remove from Story
</DropdownMenuItem>
@@ -139,15 +142,12 @@ export function StoryChatItem({
}
// Sortable wrapper component
-export function SortableStoryChatItem(props: Omit<StoryChatItemProps, 'dragHandleProps' | 'isDragging'>) {
- const {
- attributes,
- listeners,
- setNodeRef,
- transform,
- transition,
- isDragging,
- } = useSortable({ id: props.item.generation_id });
+export function SortableStoryChatItem(
+ props: Omit<StoryChatItemProps, 'dragHandleProps' | 'isDragging'>,
+) {
+ const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({
+ id: props.item.generation_id,
+ });
const style = {
transform: CSS.Transform.toString(transform),
@@ -156,11 +156,7 @@ export function SortableStoryChatItem(props: Omit<StoryChatItemProps, 'dragHandl
return (
<div ref={setNodeRef} style={style} {...attributes}>
- <StoryChatItem
- {...props}
- dragHandleProps={listeners}
- isDragging={isDragging}
- />
+ <StoryChatItem {...props} dragHandleProps={listeners} isDragging={isDragging} />
</div>
);
}
diff --git a/app/src/components/VoiceProfiles/AudioSampleRecording.tsx b/app/src/components/VoiceProfiles/AudioSampleRecording.tsx
index acebbbd4..4b41f458 100644
--- a/app/src/components/VoiceProfiles/AudioSampleRecording.tsx
+++ b/app/src/components/VoiceProfiles/AudioSampleRecording.tsx
@@ -14,12 +14,7 @@ const MemoizedWaveform = memo(function MemoizedWaveform({
<div className="absolute inset-0 pointer-events-none flex items-center justify-center opacity-30">
<Visualizer audio={audioStream} autoStart strokeColor="#b39a3d">
{({ canvasRef }) => (
- <canvas
- ref={canvasRef}
- width={500}
- height={150}
- className="w-full h-full"
- />
+ <canvas ref={canvasRef} width={500} height={150} className="w-full h-full" />
)}
</Visualizer>
</div>
@@ -87,9 +82,7 @@ export function AudioSampleRecording({
<div className="space-y-4">
{!isRecording && !file && (
<div className="relative flex flex-col items-center justify-center gap-4 p-4 border-2 border-dashed rounded-lg min-h-[180px] overflow-hidden">
- {showWaveform && audioStream && (
- <MemoizedWaveform audioStream={audioStream} />
- )}
+ {showWaveform && audioStream && <MemoizedWaveform audioStream={audioStream} />}
<Button
type="button"
onClick={onStart}
@@ -107,9 +100,7 @@ export function AudioSampleRecording({
{isRecording && (
<div className="relative flex flex-col items-center justify-center gap-4 p-4 border-2 border-accent rounded-lg bg-accent/5 min-h-[180px] overflow-hidden">
- {showWaveform && audioStream && (
- <MemoizedWaveform audioStream={audioStream} />
- )}
+ {showWaveform && audioStream && <MemoizedWaveform audioStream={audioStream} />}
<div className="relative z-10 flex items-center gap-4">
<div className="flex items-center gap-2">
<div className="h-3 w-3 rounded-full bg-accent animate-pulse" />
diff --git a/app/src/components/VoiceProfiles/ProfileList.tsx b/app/src/components/VoiceProfiles/ProfileList.tsx
index 3c18a296..894cb92a 100644
--- a/app/src/components/VoiceProfiles/ProfileList.tsx
+++ b/app/src/components/VoiceProfiles/ProfileList.tsx
@@ -28,7 +28,9 @@ export function ProfileList() {
// Temporarily apply scroll-margin so it doesn't land flush at the top
el.style.scrollMarginTop = '180px';
el.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
- timeoutId = setTimeout(() => { el.style.scrollMarginTop = ''; }, 500);
+ timeoutId = setTimeout(() => {
+ el.style.scrollMarginTop = '';
+ }, 500);
});
return () => {
cancelAnimationFrame(rafId);
diff --git a/app/src/components/ui/alert-dialog.tsx b/app/src/components/ui/alert-dialog.tsx
index 8119c1db..a3da75ca 100644
--- a/app/src/components/ui/alert-dialog.tsx
+++ b/app/src/components/ui/alert-dialog.tsx
@@ -111,4 +111,4 @@ export {
AlertDialogDescription,
AlertDialogAction,
AlertDialogCancel,
-};
\ No newline at end of file
+};
diff --git a/app/src/lib/hooks/useModelDownloadToast.tsx b/app/src/lib/hooks/useModelDownloadToast.tsx
index d179ed22..921cd976 100644
--- a/app/src/lib/hooks/useModelDownloadToast.tsx
+++ b/app/src/lib/hooks/useModelDownloadToast.tsx
@@ -131,7 +131,8 @@ export function useModelDownloadToast({
)}
</div>
),
- duration: progress.status === 'complete' || progress.status === 'error' ? 5000 : Infinity,
+ duration:
+ progress.status === 'complete' || progress.status === 'error' ? 5000 : Infinity,
});
// Close connection and dismiss toast on completion or error
diff --git a/app/src/platform/PlatformContext.tsx b/app/src/platform/PlatformContext.tsx
index 86153e7d..b7b0bf22 100644
--- a/app/src/platform/PlatformContext.tsx
+++ b/app/src/platform/PlatformContext.tsx
@@ -9,11 +9,7 @@ export interface PlatformProviderProps {
}
export function PlatformProvider({ platform, children }: PlatformProviderProps) {
- return (
- <PlatformContext.Provider value={platform}>
- {children}
- </PlatformContext.Provider>
- );
+ return <PlatformContext.Provider value={platform}>{children}</PlatformContext.Provider>;
}
export function usePlatform(): Platform {
diff --git a/docs/app/global.css b/docs/app/global.css
index 30af24fa..de752d4c 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -1,7 +1,7 @@
-@import 'tailwindcss';
-@import 'fumadocs-ui/css/neutral.css';
-@import 'fumadocs-ui/css/preset.css';
-@import 'fumadocs-openapi/css/preset.css';
+@import "tailwindcss";
+@import "fumadocs-ui/css/neutral.css";
+@import "fumadocs-ui/css/preset.css";
+@import "fumadocs-openapi/css/preset.css";
:root {
--color-fd-primary: hsl(43, 50%, 50%);
diff --git a/docs/app/og/docs/[...slug]/route.tsx b/docs/app/og/docs/[...slug]/route.tsx
index f5df96db..2d741be3 100644
--- a/docs/app/og/docs/[...slug]/route.tsx
+++ b/docs/app/og/docs/[...slug]/route.tsx
@@ -5,22 +5,13 @@ import { generate as DefaultImage } from 'fumadocs-ui/og';
export const revalidate = false;
-export async function GET(
- _req: Request,
- { params }: RouteContext<'/og/docs/[...slug]'>,
-) {
+export async function GET(_req: Request, { params }: RouteContext<'/og/docs/[...slug]'>) {
const { slug } = await params;
const page = source.getPage(slug.slice(0, -1));
if (!page) notFound();
return new ImageResponse(
- (
- <DefaultImage
- title={page.data.title}
- description={page.data.description}
- site="My App"
- />
- ),
+ <DefaultImage title={page.data.title} description={page.data.description} site="My App" />,
{
width: 1200,
height: 630,
diff --git a/docs/source.config.ts b/docs/source.config.ts
index b5ffa0a4..63cedfa8 100644
--- a/docs/source.config.ts
+++ b/docs/source.config.ts
@@ -1,9 +1,4 @@
-import {
- defineConfig,
- defineDocs,
- frontmatterSchema,
- metaSchema,
-} from 'fumadocs-mdx/config';
+import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from 'fumadocs-mdx/config';
// You can customise Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections
diff --git a/docs/tsconfig.json b/docs/tsconfig.json
index a8f713d3..f2b5062f 100644
--- a/docs/tsconfig.json
+++ b/docs/tsconfig.json
@@ -2,11 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
+ "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -20,12 +16,8 @@
"jsx": "react-jsx",
"incremental": true,
"paths": {
- "@/*": [
- "./*"
- ],
- "@/.source": [
- ".source"
- ]
+ "@/*": ["./*"],
+ "@/.source": [".source"]
},
"plugins": [
{
@@ -40,7 +32,5 @@
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
- "exclude": [
- "node_modules"
- ]
+ "exclude": ["node_modules"]
}