lyrics-transcriber 0.44.0__py3-none-any.whl → 0.46.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lyrics_transcriber/frontend/.yarn/releases/{yarn-4.6.0.cjs → yarn-4.7.0.cjs} +292 -291
- lyrics_transcriber/frontend/.yarnrc.yml +1 -1
- lyrics_transcriber/frontend/dist/assets/{index-DVoI6Z16.js → index-BXOpmKq-.js} +2715 -2030
- lyrics_transcriber/frontend/dist/assets/index-BXOpmKq-.js.map +1 -0
- lyrics_transcriber/frontend/dist/index.html +1 -1
- lyrics_transcriber/frontend/package.json +1 -1
- lyrics_transcriber/frontend/src/App.tsx +1 -1
- lyrics_transcriber/frontend/src/components/EditActionBar.tsx +68 -0
- lyrics_transcriber/frontend/src/components/EditModal.tsx +376 -303
- lyrics_transcriber/frontend/src/components/EditTimelineSection.tsx +373 -0
- lyrics_transcriber/frontend/src/components/EditWordList.tsx +308 -0
- lyrics_transcriber/frontend/src/components/Header.tsx +8 -23
- lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +460 -62
- lyrics_transcriber/frontend/src/components/ReferenceView.tsx +3 -1
- lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +7 -7
- lyrics_transcriber/frontend/src/components/WordDivider.tsx +4 -3
- lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +4 -2
- lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +26 -3
- lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +1 -1
- lyrics_transcriber/frontend/src/components/shared/types.ts +2 -0
- lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +68 -46
- lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
- {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/RECORD +27 -25
- lyrics_transcriber/frontend/dist/assets/index-DVoI6Z16.js.map +0 -1
- lyrics_transcriber/frontend/src/components/GlobalSyncEditor.tsx +0 -675
- {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/entry_points.txt +0 -0
@@ -5,7 +5,7 @@
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7
7
|
<title>Lyrics Transcriber Analyzer</title>
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
8
|
+
<script type="module" crossorigin src="/assets/index-BXOpmKq-.js"></script>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<div id="root"></div>
|
@@ -39,7 +39,7 @@ export default function App() {
|
|
39
39
|
try {
|
40
40
|
const client = new LiveApiClient(baseUrl)
|
41
41
|
const data = await client.getCorrectionData()
|
42
|
-
console.log('Full correction data from API:', data)
|
42
|
+
// console.log('Full correction data from API:', data)
|
43
43
|
setData(data)
|
44
44
|
} catch (err) {
|
45
45
|
const error = err as Error
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { Box, Button } from '@mui/material'
|
2
|
+
import DeleteIcon from '@mui/icons-material/Delete'
|
3
|
+
import RestoreIcon from '@mui/icons-material/RestoreFromTrash'
|
4
|
+
import HistoryIcon from '@mui/icons-material/History'
|
5
|
+
import { LyricsSegment } from '../types'
|
6
|
+
|
7
|
+
interface EditActionBarProps {
|
8
|
+
onReset: () => void
|
9
|
+
onRevertToOriginal?: () => void
|
10
|
+
onDelete?: () => void
|
11
|
+
onClose: () => void
|
12
|
+
onSave: () => void
|
13
|
+
editedSegment: LyricsSegment | null
|
14
|
+
originalTranscribedSegment?: LyricsSegment | null
|
15
|
+
isGlobal?: boolean
|
16
|
+
}
|
17
|
+
|
18
|
+
export default function EditActionBar({
|
19
|
+
onReset,
|
20
|
+
onRevertToOriginal,
|
21
|
+
onDelete,
|
22
|
+
onClose,
|
23
|
+
onSave,
|
24
|
+
editedSegment,
|
25
|
+
originalTranscribedSegment,
|
26
|
+
isGlobal = false
|
27
|
+
}: EditActionBarProps) {
|
28
|
+
return (
|
29
|
+
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1, width: '100%' }}>
|
30
|
+
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
|
31
|
+
<Button
|
32
|
+
startIcon={<RestoreIcon />}
|
33
|
+
onClick={onReset}
|
34
|
+
color="warning"
|
35
|
+
>
|
36
|
+
Reset
|
37
|
+
</Button>
|
38
|
+
{originalTranscribedSegment && (
|
39
|
+
<Button
|
40
|
+
onClick={onRevertToOriginal}
|
41
|
+
startIcon={<HistoryIcon />}
|
42
|
+
>
|
43
|
+
Un-Correct
|
44
|
+
</Button>
|
45
|
+
)}
|
46
|
+
{!isGlobal && onDelete && (
|
47
|
+
<Button
|
48
|
+
startIcon={<DeleteIcon />}
|
49
|
+
onClick={onDelete}
|
50
|
+
color="error"
|
51
|
+
>
|
52
|
+
Delete Segment
|
53
|
+
</Button>
|
54
|
+
)}
|
55
|
+
</Box>
|
56
|
+
<Box sx={{ ml: 'auto', display: 'flex', gap: 1 }}>
|
57
|
+
<Button onClick={onClose}>Cancel</Button>
|
58
|
+
<Button
|
59
|
+
onClick={onSave}
|
60
|
+
variant="contained"
|
61
|
+
disabled={!editedSegment || editedSegment.words.length === 0}
|
62
|
+
>
|
63
|
+
Save
|
64
|
+
</Button>
|
65
|
+
</Box>
|
66
|
+
</Box>
|
67
|
+
)
|
68
|
+
}
|