613c75d041
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 1m54s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m5s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m33s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 3m18s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 5m22s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 6m27s
CI/CD Pipeline / Integration Tests (push) Successful in 3m28s
CI/CD Pipeline / Unit Tests (push) Failing after 10m19s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / CI Gate (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Successful in 14m30s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 33s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 35s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 1m42s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m51s
CI/CD Pipeline / Canary Release to Production (push) Has been skipped
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
21 lines
682 B
TypeScript
21 lines
682 B
TypeScript
import type { ProgressStep } from "./types"
|
|
|
|
/** 进度阶段配置 */
|
|
export const PROGRESS_STEPS: ProgressStep[] = [
|
|
{ key: "uploading", label: "上传中", icon: "📤" },
|
|
{ key: "cloning", label: "克隆中", icon: "🧬" },
|
|
{ key: "done", label: "完成", icon: "✅" },
|
|
]
|
|
|
|
/** 支持的音频扩展名 */
|
|
export const ACCEPTED_EXTENSIONS = ["mp3", "wav", "m4a", "webm"]
|
|
|
|
/** 文件选择器 accept 属性 */
|
|
export const ACCEPTED_MIME = ".mp3,.wav,.m4a,.webm,audio/mpeg,audio/wav,audio/mp4,audio/webm"
|
|
|
|
/** 最大文件大小:10MB */
|
|
export const MAX_FILE_SIZE = 10 * 1024 * 1024
|
|
|
|
/** 最长录制时长:5 分钟(秒) */
|
|
export const MAX_RECORD_SECONDS = 5 * 60
|