Skip to content

Commit 4dc4c67

Browse files
committed
Built frontend with latest tag
1 parent 4ad39fa commit 4dc4c67

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

lyrics_transcriber/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lyrics-transcriber-frontend",
33
"private": true,
44
"homepage": "https://nomadkaraoke.github.io/lyrics-transcriber-frontend",
5-
"version": "0.69.0",
5+
"version": "0.70.0",
66
"type": "module",
77
"scripts": {
88
"dev": "vite",

lyrics_transcriber/frontend/web_assets/assets/index-izP9z1oB.js renamed to lyrics_transcriber/frontend/web_assets/assets/index-BV5ep1cr.js

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36597,6 +36597,9 @@ const PauseIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
3659736597
const RedoIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
3659836598
d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"
3659936599
}), "Redo");
36600+
const RestoreIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
36601+
d: "M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"
36602+
}), "Restore");
3660036603
const TimerIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
3660136604
d: "M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"
3660236605
}), "Timer");
@@ -37749,6 +37752,7 @@ function Header({
3774937752
onHandlerClick,
3775037753
onFindReplace,
3775137754
onEditAll,
37755+
onUnCorrectAll,
3775237756
onTimingOffset,
3775337757
timingOffsetMs = 0,
3775437758
onUndo,
@@ -37975,6 +37979,17 @@ function Header({
3797537979
children: "Edit All"
3797637980
}
3797737981
),
37982+
!isReadOnly && onUnCorrectAll && /* @__PURE__ */ jsxRuntimeExports.jsx(
37983+
Button,
37984+
{
37985+
variant: "outlined",
37986+
size: "small",
37987+
onClick: onUnCorrectAll,
37988+
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(RestoreIcon, {}),
37989+
sx: { minWidth: "fit-content", height: "32px" },
37990+
children: "Un-Correct All"
37991+
}
37992+
),
3797837993
!isReadOnly && onTimingOffset && /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: { display: "flex", alignItems: "center" }, children: [
3797937994
/* @__PURE__ */ jsxRuntimeExports.jsx(
3798037995
Button,
@@ -38625,7 +38640,8 @@ const MemoizedHeader = reactExports.memo(function MemoizedHeader2({
3862538640
onUndo,
3862638641
onRedo,
3862738642
canUndo,
38628-
canRedo
38643+
canRedo,
38644+
onUnCorrectAll
3862938645
}) {
3863038646
return /* @__PURE__ */ jsxRuntimeExports.jsx(
3863138647
Header,
@@ -38649,7 +38665,8 @@ const MemoizedHeader = reactExports.memo(function MemoizedHeader2({
3864938665
onUndo,
3865038666
onRedo,
3865138667
canUndo,
38652-
canRedo
38668+
canRedo,
38669+
onUnCorrectAll
3865338670
}
3865438671
);
3865538672
});
@@ -38994,6 +39011,23 @@ function LyricsAnalyzer({ data: initialData, onFileLoad, apiClient, isReadOnly,
3899439011
const newData = findAndReplace(data, findText, replaceText, options);
3899539012
updateDataWithHistory(newData, "find/replace");
3899639013
};
39014+
const handleUnCorrectAll = reactExports.useCallback(() => {
39015+
if (!originalData.original_segments) {
39016+
console.warn("No original segments available for un-correcting");
39017+
return;
39018+
}
39019+
if (window.confirm("Are you sure you want to revert all segments to their original transcribed state? This will undo all corrections made.")) {
39020+
console.log("Un-Correct All: Reverting all segments to original transcribed state", {
39021+
originalSegmentCount: originalData.original_segments.length,
39022+
currentSegmentCount: data.corrected_segments.length
39023+
});
39024+
const newData = {
39025+
...data,
39026+
corrected_segments: JSON.parse(JSON.stringify(originalData.original_segments))
39027+
};
39028+
updateDataWithHistory(newData, "un-correct all segments");
39029+
}
39030+
}, [originalData.original_segments, data, updateDataWithHistory]);
3899739031
const handleReplaceAllLyrics = reactExports.useCallback(() => {
3899839032
console.log("ReplaceAllLyrics - Opening modal");
3899939033
setIsReplaceAllLyricsModalOpen(true);
@@ -39075,7 +39109,8 @@ function LyricsAnalyzer({ data: initialData, onFileLoad, apiClient, isReadOnly,
3907539109
onUndo: handleUndo,
3907639110
onRedo: handleRedo,
3907739111
canUndo,
39078-
canRedo
39112+
canRedo,
39113+
onUnCorrectAll: handleUnCorrectAll
3907939114
}
3908039115
),
3908139116
/* @__PURE__ */ jsxRuntimeExports.jsxs(Grid, { container: true, direction: isMobile ? "column" : "row", children: [
@@ -39573,7 +39608,7 @@ const theme = createTheme({
3957339608
spacing: (factor) => `${0.6 * factor}rem`
3957439609
// Further reduced from 0.8 * factor
3957539610
});
39576-
const version = "0.69.0";
39611+
const version = "0.70.0";
3957739612
const packageJson = {
3957839613
version
3957939614
};
@@ -39584,4 +39619,4 @@ ReactDOM$1.createRoot(document.getElementById("root")).render(
3958439619
/* @__PURE__ */ jsxRuntimeExports.jsx(App, {})
3958539620
] })
3958639621
);
39587-
//# sourceMappingURL=index-izP9z1oB.js.map
39622+
//# sourceMappingURL=index-BV5ep1cr.js.map

lyrics_transcriber/frontend/web_assets/assets/index-BV5ep1cr.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lyrics_transcriber/frontend/web_assets/assets/index-izP9z1oB.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

lyrics_transcriber/frontend/web_assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png" />
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1212
<title>Nomad Karaoke: Lyrics Review</title>
13-
<script type="module" crossorigin src="/assets/index-izP9z1oB.js"></script>
13+
<script type="module" crossorigin src="/assets/index-BV5ep1cr.js"></script>
1414
</head>
1515
<body>
1616
<div id="root"></div>

0 commit comments

Comments
 (0)