lyrics-transcriber 0.54.0__py3-none-any.whl → 0.55.3__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/__init__.py +25 -0
- lyrics_transcriber/frontend/package.json +1 -1
- lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
- lyrics_transcriber/frontend/web_assets/assets/index-BjASXC8R.js +38929 -0
- lyrics_transcriber/frontend/web_assets/assets/index-BjASXC8R.js.map +1 -0
- lyrics_transcriber/frontend/web_assets/index.html +13 -0
- lyrics_transcriber/frontend/web_assets/vite.svg +1 -0
- lyrics_transcriber/review/server.py +2 -1
- {lyrics_transcriber-0.54.0.dist-info → lyrics_transcriber-0.55.3.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.54.0.dist-info → lyrics_transcriber-0.55.3.dist-info}/RECORD +13 -9
- lyrics_transcriber/frontend/.yarn/install-state.gz +0 -0
- {lyrics_transcriber-0.54.0.dist-info → lyrics_transcriber-0.55.3.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.54.0.dist-info → lyrics_transcriber-0.55.3.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.54.0.dist-info → lyrics_transcriber-0.55.3.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Frontend module for lyrics transcriber web interface."""
|
2
|
+
|
3
|
+
import os
|
4
|
+
|
5
|
+
# Get the directory containing this file
|
6
|
+
__frontend_dir__ = os.path.dirname(os.path.abspath(__file__))
|
7
|
+
|
8
|
+
def get_frontend_assets_dir():
|
9
|
+
"""Get the path to the frontend assets directory.
|
10
|
+
|
11
|
+
Returns the web_assets directory if it exists (packaged version),
|
12
|
+
otherwise returns the dist directory (development version).
|
13
|
+
"""
|
14
|
+
web_assets_dir = os.path.join(__frontend_dir__, "web_assets")
|
15
|
+
dist_dir = os.path.join(__frontend_dir__, "dist")
|
16
|
+
|
17
|
+
if os.path.exists(web_assets_dir):
|
18
|
+
return web_assets_dir
|
19
|
+
elif os.path.exists(dist_dir):
|
20
|
+
return dist_dir
|
21
|
+
else:
|
22
|
+
raise FileNotFoundError(
|
23
|
+
"Frontend assets not found. Please build the frontend first with: "
|
24
|
+
"./scripts/build_frontend.sh"
|
25
|
+
)
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["./src/
|
1
|
+
{"root":["./src/App.tsx","./src/api.ts","./src/main.tsx","./src/theme.ts","./src/types.ts","./src/validation.ts","./src/vite-env.d.ts","./src/components/AddLyricsModal.tsx","./src/components/AudioPlayer.tsx","./src/components/CorrectionMetrics.tsx","./src/components/EditActionBar.tsx","./src/components/EditModal.tsx","./src/components/EditTimelineSection.tsx","./src/components/EditWordList.tsx","./src/components/FileUpload.tsx","./src/components/FindReplaceModal.tsx","./src/components/Header.tsx","./src/components/LyricsAnalyzer.tsx","./src/components/ModeSelector.tsx","./src/components/PreviewVideoSection.tsx","./src/components/ReferenceView.tsx","./src/components/ReviewChangesModal.tsx","./src/components/SegmentDetailsModal.tsx","./src/components/TimelineEditor.tsx","./src/components/TimingOffsetModal.tsx","./src/components/TranscriptionView.tsx","./src/components/WordDivider.tsx","./src/components/shared/constants.ts","./src/components/shared/styles.ts","./src/components/shared/types.ts","./src/components/shared/components/HighlightedText.tsx","./src/components/shared/components/SourceSelector.tsx","./src/components/shared/components/Word.tsx","./src/components/shared/hooks/useWordClick.ts","./src/components/shared/utils/keyboardHandlers.ts","./src/components/shared/utils/localStorage.ts","./src/components/shared/utils/referenceLineCalculator.ts","./src/components/shared/utils/segmentOperations.ts","./src/components/shared/utils/timingUtils.ts","./src/components/shared/utils/wordUtils.ts","./src/hooks/useManualSync.ts","./src/types/global.d.ts"],"version":"5.6.3"}
|