Skip to content

Commit 38319c6

Browse files
committed
Update App.tsx; better readability
1 parent 0e85bd0 commit 38319c6

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ── Stage 1: Build the Vite frontend ─────────────────────────────────────────
1+
# Build Vite frontend
22
FROM node:20-alpine AS frontend-build
33

44
WORKDIR /app/dromeport
@@ -10,7 +10,7 @@ COPY dromeport/ ./
1010
RUN npm run build
1111

1212

13-
# ── Stage 2: Python backend + bundled tools ───────────────────────────────────
13+
# Python backend and bundled tools
1414
FROM python:3.12-slim
1515

1616
# git → initial SpotiFLAC clone + in-container updates
@@ -23,14 +23,14 @@ RUN apt-get update \
2323
coreutils \
2424
&& rm -rf /var/lib/apt/lists/*
2525

26-
# ── yt-dlp ────────────────────────────────────────────────────────────────────
26+
# yt-dlp
2727
# pip-installed so "pip install -U yt-dlp" updates it inside the running
2828
# container with no image rebuild needed.
2929
RUN pip install --no-cache-dir yt-dlp
3030

31-
# ── SpotiFLAC-CLI ─────────────────────────────────────────────────────────────
31+
# SpotiFLAC-CLI
3232
# Clone the repo, then install its dependencies as declared in pyproject.toml.
33-
# No requirements.txt deps are: requests, mutagen, pyotp.
33+
# No requirements.txt, deps are: requests, mutagen, pyotp.
3434
# "git pull" inside the running container is enough to update the tool itself.
3535
RUN git clone --depth 1 \
3636
https://github.com/jelte1/SpotiFLAC-Command-Line-Interface \
@@ -42,7 +42,7 @@ RUN git clone --depth 1 \
4242

4343
ENV SPOTIFLAC_PATH=/opt/spotiflac/launcher.py
4444

45-
# ── Backend ───────────────────────────────────────────────────────────────────
45+
# Backend
4646
WORKDIR /app
4747

4848
COPY backend/requirements.txt ./

dromeport/src/App.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,12 @@ function App() {
925925

926926
<p className="flex items-start gap-1.5 text-xs text-muted-foreground">
927927
<Info className="w-3.5 h-3.5 shrink-0 mt-0.5" />
928-
Can't find your library? Make sure you've added the correct{" "}
929-
<code className="font-mono bg-muted px-1 rounded">DROMEPORT_LIBRARY_*</code>{" "}
930-
environment variables in your{" "}
931-
<code className="font-mono bg-muted px-1 rounded">docker-compose.yml</code>.
928+
<span>
929+
Can't find your library? Make sure you've added the correct{" "}
930+
<code className="font-mono bg-muted px-1 rounded">DROMEPORT_LIBRARY_*</code>{" "}
931+
environment variables in your{" "}
932+
<code className="font-mono bg-muted px-1 rounded">docker-compose.yml</code>.
933+
</span>
932934
</p>
933935

934936
<div className="space-y-2 pt-1">
@@ -1068,7 +1070,7 @@ function App() {
10681070
</CardHeader>
10691071
<CardContent className="space-y-4">
10701072

1071-
{/* SpotiFLAC path hidden in Docker (pre-installed) */}
1073+
{/* SpotiFLAC path - hidden in Docker (pre-installed) */}
10721074
{isDockerMode ? (
10731075
<div className="flex items-center gap-2 rounded-lg border border-border bg-muted/30 px-3 py-2.5">
10741076
<CheckCircle className="w-4 h-4 text-green-500 shrink-0" />
@@ -1120,9 +1122,9 @@ function App() {
11201122
<Select value={config.spotify.spotiflacOutputFormat} onValueChange={(v) => setSpotify("spotiflacOutputFormat", v)}>
11211123
<SelectTrigger className="bg-background"><SelectValue /></SelectTrigger>
11221124
<SelectContent>
1123-
<SelectItem value="flac">FLAC lossless (default, no transcoding)</SelectItem>
1124-
<SelectItem value="opus">Opus lossy via FFmpeg (~320 kbps)</SelectItem>
1125-
<SelectItem value="mp3">MP3 lossy via FFmpeg (VBR best)</SelectItem>
1125+
<SelectItem value="flac">FLAC - lossless (default, no transcoding)</SelectItem>
1126+
<SelectItem value="opus">Opus - lossy via FFmpeg (~320 kbps)</SelectItem>
1127+
<SelectItem value="mp3">MP3 - lossy via FFmpeg (VBR best)</SelectItem>
11261128
</SelectContent>
11271129
</Select>
11281130
{config.spotify.spotiflacOutputFormat !== "flac" && (

0 commit comments

Comments
 (0)