Skip to content

Commit b3d1dea

Browse files
chatman-mediaclaude
andcommitted
style: форматирование кода линтером
Автоматическое форматирование от prettier/biome: - Переупорядочены импорты (type imports отдельно) - Однострочные filter вместо многострочных - Упорядочивание импортов по алфавиту Также: - Закомментирован webp source в promo SearchDemo 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent d00f77c commit b3d1dea

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

promo/src/components/SearchDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export const SearchDemo: React.FC<SearchDemoProps> = ({ className = "" }) => {
3131
{/* Screenshot - скрыт на мобильных */}
3232
<div className="relative" data-oid="m:-5g_2">
3333
<picture className="hidden md:block" data-oid="z:s3jk2">
34-
<source
34+
{/*<source
3535
srcSet="/screen5.webp"
3636
type="image/webp"
3737
data-oid="2_awclg"
38-
/>
38+
/>*/}
3939
<img
4040
src="/screen.png"
4141
alt="Timeline Studio AI Interface"

src/features/browser/components/browser-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { DeveloperToolsButton, DeveloperToolsModal } from "@/features/developer-
77

88
import { BrowserLoadingIndicator } from "./browser-loading-indicator"
99
import { BrowserToolbarWrapper } from "./browser-toolbar-wrapper"
10-
import { LazyTabContent } from "./lazy-tab-content"
1110
import { MediaStatusBarWrapper } from "./layout/media-status-bar-wrapper"
11+
import { LazyTabContent } from "./lazy-tab-content"
1212

1313
/**
1414
* Список всех возможных вкладок браузера

src/features/browser/components/layout/media-status-bar-wrapper.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*/
44

55
import { useMemo } from "react"
6-
import { useMediaManagement } from "@/domains/media-management"
76
import type { MediaFile } from "@/domains/media-management"
7+
import { useMediaManagement } from "@/domains/media-management"
88
import { useResources } from "@/domains/video-editing"
99
import { useBulkMediaActions } from "../../hooks/use-bulk-media-actions"
1010
import { StatusBar } from "./status-bar"
@@ -67,10 +67,7 @@ export function MediaStatusBarWrapper() {
6767
// Создаем Set путей добавленных файлов (только те что is_resource=true)
6868
// Включаем и mediaResources (видео/изображения) и musicResources (аудио)
6969
const addedFilesPaths = useMemo(() => {
70-
const allResourcePaths = [
71-
...mediaResources.map((r) => r.path),
72-
...musicResources.map((r) => r.path),
73-
]
70+
const allResourcePaths = [...mediaResources.map((r) => r.path), ...musicResources.map((r) => r.path)]
7471
return new Set(allResourcePaths)
7572
}, [mediaResources, musicResources])
7673

src/features/browser/hooks/use-bulk-media-actions.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export function useBulkMediaActions() {
1919
const addAllVideoFiles = useCallback(
2020
async (allMedia: MediaFile[]) => {
2121
const addedPaths = new Set(mediaResources.map((r) => r.path))
22-
const videoFiles = allMedia.filter(
23-
(file) => file.isVideo && !addedPaths.has(file.path),
24-
)
22+
const videoFiles = allMedia.filter((file) => file.isVideo && !addedPaths.has(file.path))
2523

2624
logger.info(`Adding ${videoFiles.length} video files to resources`)
2725

@@ -42,9 +40,7 @@ export function useBulkMediaActions() {
4240
const addAllAudioFiles = useCallback(
4341
async (allMedia: MediaFile[]) => {
4442
const addedPaths = new Set(mediaResources.map((r) => r.path))
45-
const audioFiles = allMedia.filter(
46-
(file) => file.isAudio && !addedPaths.has(file.path),
47-
)
43+
const audioFiles = allMedia.filter((file) => file.isAudio && !addedPaths.has(file.path))
4844

4945
logger.info(`Adding ${audioFiles.length} audio files to resources`)
5046

0 commit comments

Comments
 (0)