style: 清理5个文件格式问题(isort + prettier) #1011
@@ -16,12 +16,10 @@ import json
|
||||
import logging
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from packages.domain.ai_parsing import (
|
||||
generate_titles_fallback as _generate_titles_fallback_base,
|
||||
keyword_match_fallback as _semantic_match_fallback_base,
|
||||
parse_semantic_match_response as _parse_semantic_match_base,
|
||||
parse_titles_from_response as _parse_titles_from_response,
|
||||
)
|
||||
from packages.domain.ai_parsing import generate_titles_fallback as _generate_titles_fallback_base
|
||||
from packages.domain.ai_parsing import keyword_match_fallback as _semantic_match_fallback_base
|
||||
from packages.domain.ai_parsing import parse_semantic_match_response as _parse_semantic_match_base
|
||||
from packages.domain.ai_parsing import parse_titles_from_response as _parse_titles_from_response
|
||||
from packages.shared.ai_client import get_doubao_client
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -90,8 +90,11 @@ const EditingPlanner: React.FC = () => {
|
||||
}
|
||||
|
||||
/* ── 配音素材 ── */
|
||||
const { voiceMaterials, loading: voiceMaterialsLoading, refetch: refetchVoiceMaterials } =
|
||||
useVoiceMaterials()
|
||||
const {
|
||||
voiceMaterials,
|
||||
loading: voiceMaterialsLoading,
|
||||
refetch: refetchVoiceMaterials,
|
||||
} = useVoiceMaterials()
|
||||
|
||||
/* ── 派生计算 ── */
|
||||
const totalDuration = clips.reduce((sum, c) => sum + c.duration, 0)
|
||||
|
||||
@@ -4,21 +4,13 @@
|
||||
*/
|
||||
|
||||
/* 转场 */
|
||||
export {
|
||||
type TransitionType,
|
||||
type TransitionConfig,
|
||||
DEFAULT_TRANSITION,
|
||||
} from "./transition"
|
||||
export { type TransitionType, type TransitionConfig, DEFAULT_TRANSITION } from "./transition"
|
||||
|
||||
/* 调速 */
|
||||
export { type SpeedConfig, DEFAULT_SPEED } from "./speed"
|
||||
|
||||
/* TTS 配音 */
|
||||
export {
|
||||
type TtsMode,
|
||||
type TtsConfig,
|
||||
DEFAULT_TTS_CONFIG,
|
||||
} from "./tts"
|
||||
export { type TtsMode, type TtsConfig, DEFAULT_TTS_CONFIG } from "./tts"
|
||||
|
||||
/* 裁剪 */
|
||||
export { type TrimConfig } from "./trim"
|
||||
@@ -80,11 +72,7 @@ export {
|
||||
} from "./sticker"
|
||||
|
||||
/* 封面 */
|
||||
export {
|
||||
type CoverMode,
|
||||
type CoverConfig,
|
||||
DEFAULT_COVER_CONFIG,
|
||||
} from "./cover"
|
||||
export { type CoverMode, type CoverConfig, DEFAULT_COVER_CONFIG } from "./cover"
|
||||
|
||||
/* 片段数据 */
|
||||
export { type ClipType, type ClipData } from "./clip"
|
||||
@@ -93,7 +81,4 @@ export { type ClipType, type ClipData } from "./clip"
|
||||
export { type TitleSettings } from "./title"
|
||||
|
||||
/* 字幕样式 */
|
||||
export {
|
||||
type SubtitleStyleConfig,
|
||||
DEFAULT_SUBTITLE_STYLE,
|
||||
} from "./subtitle"
|
||||
export { type SubtitleStyleConfig, DEFAULT_SUBTITLE_STYLE } from "./subtitle"
|
||||
|
||||
@@ -78,11 +78,7 @@ export const ProductEmptyState: React.FC<ProductEmptyStateProps> = ({
|
||||
<VideoCameraOutlined />
|
||||
</div>
|
||||
<p>暂无成片,去智能剪辑吧</p>
|
||||
<Button
|
||||
buttonType="primary"
|
||||
buttonSize="sm"
|
||||
onClick={() => message.info("跳转到生成页面")}
|
||||
>
|
||||
<Button buttonType="primary" buttonSize="sm" onClick={() => message.info("跳转到生成页面")}>
|
||||
去生成
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -14,14 +14,16 @@ import logging
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from packages.domain.sticker_config import ( # noqa: F401 向后兼容导出
|
||||
ImageStickerConfig,
|
||||
from packages.domain.sticker_config import (
|
||||
POSITION_PRESETS,
|
||||
STICKER_CATEGORIES,
|
||||
ImageStickerConfig,
|
||||
StickerOverlayResult,
|
||||
TextStickerConfig,
|
||||
get_sticker_categories as _get_sticker_categories_base,
|
||||
parse_stickers_from_config as _parse_stickers_base,
|
||||
)
|
||||
from packages.domain.sticker_config import get_sticker_categories as _get_sticker_categories_base # noqa: F401 向后兼容导出
|
||||
from packages.domain.sticker_config import parse_stickers_from_config as _parse_stickers_base
|
||||
from packages.domain.sticker_config import (
|
||||
resolve_sticker_position,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user