Skip to content

Commit 0751ecd

Browse files
committed
release v0.3.0
1 parent e3aa7a7 commit 0751ecd

7 files changed

Lines changed: 57 additions & 56 deletions

File tree

extension/chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "dlp-gui Companion",
4-
"version": "0.1.0",
4+
"version": "0.3.0",
55
"description": "Send YouTube videos to the local dlp-gui app in one click.",
66
"permissions": [
77
"alarms",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tauri-app",
33
"private": true,
4-
"version": "0.2.5",
4+
"version": "0.3.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

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

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dlp-gui"
3-
version = "0.2.5"
3+
version = "0.3.0"
44
description = "A yt-dlp GUI Application"
55
authors = ["you"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "dlp-gui",
4-
"version": "0.2.5",
4+
"version": "0.3.0",
55
"identifier": "com.win10.dlp-gui",
66
"build": {
77
"beforeDevCommand": "bun run dev",

src/components/layouts/GlassDashboard.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function GlassDashboard({
178178
);
179179
const historyPages = paginateItems(
180180
history,
181-
(item) => (item.isLogsOpen ? 4 : 1),
181+
() => 1,
182182
HISTORY_PAGE_CAPACITY,
183183
);
184184
const queuePageCount = Math.max(1, queuePages.length);
@@ -224,7 +224,7 @@ export function GlassDashboard({
224224
<section className="flex flex-col lg:sticky lg:top-8 lg:h-fit">
225225
<div className="min-h-[92px] pb-5" />
226226

227-
<div className="relative -top-[4.5rem] flex h-[560px] flex-col gap-5 rounded-[2.5rem] border border-white/5 bg-zinc-900/40 px-6 py-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.05),0_20px_40px_-15px_rgba(0,0,0,0.55)] backdrop-blur-3xl sm:px-8 sm:py-6">
227+
<div className="relative -top-[4.5rem] flex h-[600px] flex-col gap-5 rounded-[2.5rem] border border-white/5 bg-zinc-900/40 px-6 py-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.05),0_20px_40px_-15px_rgba(0,0,0,0.55)] backdrop-blur-3xl sm:px-8 sm:py-6">
228228
<div className="relative">
229229
<label className="mb-3 block text-[10px] font-bold uppercase tracking-[0.24em] text-zinc-400">
230230
Target source
@@ -506,7 +506,7 @@ export function GlassDashboard({
506506
</div>
507507
</div>
508508

509-
<div className="relative -top-[4.5rem] h-[620px] overflow-hidden">
509+
<div className="relative -top-[4.5rem] h-[660px] overflow-hidden">
510510
{currentView === "active" ? (
511511
activeDownloads.length === 0 &&
512512
scheduledDownloads.length === 0 ? (
@@ -520,8 +520,8 @@ export function GlassDashboard({
520520
</div>
521521
) : (
522522
<div className="relative h-full pr-1 pt-8">
523-
<div className="h-full overflow-y-auto pb-28">
524-
<div className="min-h-full overflow-hidden rounded-[2rem] border border-zinc-800/50 bg-zinc-900/20 p-5">
523+
<div className="h-[calc(100%-2rem)] min-h-[calc(560px-2rem)] overflow-hidden rounded-[2rem] border border-zinc-800/50 bg-zinc-900/20">
524+
<div className="h-full overflow-y-auto p-5">
525525
{visibleScheduledDownloads.length > 0 && (
526526
<div className="flex flex-col gap-3">
527527
<h3 className="flex items-center gap-2 px-1 text-[10px] font-bold uppercase tracking-[0.22em] text-zinc-500">
@@ -570,8 +570,8 @@ export function GlassDashboard({
570570
</div>
571571
) : (
572572
<div className="relative h-full pr-1 pt-8">
573-
<div className="h-full overflow-y-auto pb-4">
574-
<div className="flex h-[calc(100%-16px)] flex-col overflow-hidden rounded-[2rem] border border-zinc-800/50 bg-zinc-900/20">
573+
<div className="h-[calc(100%-2rem)] min-h-[calc(560px-2rem)] overflow-hidden rounded-[2rem] border border-zinc-800/50 bg-zinc-900/20">
574+
<div className="flex h-full flex-col overflow-y-auto">
575575
{visibleHistory.map((item, index, items) => (
576576
<HistoryDownloadCard
577577
key={item.id}
@@ -720,7 +720,7 @@ function EmptyStateCard({
720720
return (
721721
<div
722722
className={cn(
723-
"flex h-full min-h-[560px] flex-col items-center justify-start rounded-[2.5rem] border border-dashed border-zinc-700/80 bg-zinc-900/10 px-6 pt-48 text-center shadow-[inset_0_0_0_1px_rgba(63,63,70,0.35)]",
723+
"flex h-full min-h-[560px] flex-col items-center justify-start overflow-hidden rounded-[2.5rem] border border-dashed border-zinc-700/80 bg-zinc-900/10 px-6 pt-48 text-center shadow-[inset_0_0_0_1px_rgba(63,63,70,0.35)]",
724724
className,
725725
)}
726726
>
@@ -959,7 +959,7 @@ function HistoryDownloadCard({
959959
return (
960960
<div
961961
className={cn(
962-
"group relative overflow-hidden",
962+
"group relative overflow-hidden hover:bg-zinc-800/30",
963963
!isLast && "border-b border-zinc-800/50",
964964
)}
965965
>
@@ -973,7 +973,7 @@ function HistoryDownloadCard({
973973
<button
974974
type="button"
975975
onClick={() => onToggleLogs(item.id)}
976-
className="flex w-full items-center justify-between gap-4 px-6 py-4 text-left transition-colors hover:bg-zinc-800/30"
976+
className="flex w-full items-center justify-between gap-4 px-6 py-4 text-left"
977977
>
978978
<div className="min-w-0">
979979
<h4 className="truncate text-sm font-medium text-zinc-300">
@@ -1035,7 +1035,7 @@ function HistoryDownloadCard({
10351035
</button>
10361036

10371037
{item.isLogsOpen && (
1038-
<div className="border-t border-zinc-800/50 bg-zinc-950/50 px-6 py-4 font-mono text-xs leading-relaxed text-zinc-500">
1038+
<div className="px-6 py-4 font-mono text-xs leading-relaxed text-zinc-500">
10391039
{item.logs?.length ? (
10401040
item.logs.map((log, index) => (
10411041
<div key={`${item.id}-log-${index}`}>{log}</div>

src/components/layouts/NotionDashboard.tsx

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ export function NotionDashboard({
247247
<h1 className="relative -top-0.5 font-serif text-2xl tracking-tight text-[#111111] dark:text-[#EDEDED]">
248248
New Download
249249
</h1>
250-
{(urlType || isFetchingPlaylist || formatsError) && (
250+
{(playlistInfo || isFetchingPlaylist || formatsError) && (
251251
<div className="mt-2 flex flex-wrap items-center gap-2">
252-
{urlType && <Badge variant="default">{urlType}</Badge>}
253252
{playlistInfo && (
254253
<Badge variant="blue">
255254
{playlistInfo.video_count} items
@@ -451,46 +450,48 @@ export function NotionDashboard({
451450
</div>
452451

453452
<div className="flex flex-col gap-3">
454-
{items.length > 0 ? (
455-
currentView === "active" ? (
456-
<div className="scrollbar-hidden flex h-[340px] flex-col gap-3 overflow-y-auto pr-1">
457-
{items.map((item) => (
458-
<NotionActiveDownloadCard
459-
key={item.id}
460-
item={item}
461-
onCancel={onCancelDownload}
462-
/>
463-
))}
464-
</div>
453+
<div className="scrollbar-hidden min-h-[340px] max-h-[340px] overflow-y-auto rounded-lg border border-dashed border-[#EAEAEA] bg-white transition-colors dark:border-[#2A2A2A] dark:bg-[#141414]">
454+
{items.length > 0 ? (
455+
currentView === "active" ? (
456+
<div className="flex flex-col gap-3 p-3">
457+
{items.map((item) => (
458+
<NotionActiveDownloadCard
459+
key={item.id}
460+
item={item}
461+
onCancel={onCancelDownload}
462+
/>
463+
))}
464+
</div>
465+
) : (
466+
<div>
467+
{items.map((item, index) => (
468+
<NotionHistoryCard
469+
key={item.id}
470+
item={item}
471+
isLast={index === items.length - 1}
472+
onToggleLogs={onToggleHistoryLogs}
473+
onOpenFolder={onOpenFolder}
474+
/>
475+
))}
476+
</div>
477+
)
465478
) : (
466-
<div className="scrollbar-hidden h-[340px] overflow-y-auto rounded-lg border border-[#EAEAEA] bg-white dark:border-[#2A2A2A] dark:bg-[#141414]">
467-
{items.map((item, index) => (
468-
<NotionHistoryCard
469-
key={item.id}
470-
item={item}
471-
isLast={index === items.length - 1}
472-
onToggleLogs={onToggleHistoryLogs}
473-
onOpenFolder={onOpenFolder}
474-
/>
475-
))}
476-
</div>
477-
)
478-
) : (
479-
<div className="flex min-h-[340px] items-center justify-center rounded-lg border border-dashed border-[#EAEAEA] bg-white transition-colors dark:border-[#2A2A2A] dark:bg-[#141414]">
480-
<div className="text-center">
481-
<p className="text-sm font-medium text-[#111111] dark:text-[#EDEDED]">
482-
{currentView === "active"
483-
? "No queued downloads"
484-
: "No history yet"}
485-
</p>
486-
<p className="mt-1 text-xs text-[#787774] dark:text-[#888888]">
487-
{currentView === "active"
488-
? "Paste a URL or import a batch list to begin."
489-
: "Completed and failed items will appear here."}
490-
</p>
479+
<div className="flex min-h-[340px] items-center justify-center">
480+
<div className="text-center">
481+
<p className="text-sm font-medium text-[#111111] dark:text-[#EDEDED]">
482+
{currentView === "active"
483+
? "No queued downloads"
484+
: "No history yet"}
485+
</p>
486+
<p className="mt-1 text-xs text-[#787774] dark:text-[#888888]">
487+
{currentView === "active"
488+
? "Paste a URL or import a batch list to begin."
489+
: "Completed and failed items will appear here."}
490+
</p>
491+
</div>
491492
</div>
492-
</div>
493-
)}
493+
)}
494+
</div>
494495

495496
<div className="flex items-center justify-between pt-0.5">
496497
<span className="text-xs text-[#787774] dark:text-[#888888]">

0 commit comments

Comments
 (0)