Create Kaleido Desktop, a cinematic Plex client for Windows
Tauri 2 shell with a React/TypeScript interface and libmpv playback composed beneath the web view (DirectComposition on Windows). Shared code with per-OS platform modules and configs so macOS and Linux can follow. - Plex sign-in (browser, plex.tv/link or manual), server selection, Plex Home - Home, Movies and TV Shows (Discover, Library, Collections), search, people - Title pages with logos, ratings, cast, extras, seasons and episodes - Direct play with Plex conversion fallback, tracks, markers, autoplay - Metadata editing, artwork, fix match, refresh, analyze and deletion - Resumable offline downloads - App settings and Plex server administration with a live dashboard - Signed updater feed and Forgejo CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
00d72e70f4
121 changed files with 25315 additions and 0 deletions
60
src/screens/dialogs/DialogHost.tsx
Normal file
60
src/screens/dialogs/DialogHost.tsx
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
import { useDialogs } from '../../app/actions';
|
||||
import { useSession } from '../../app/session';
|
||||
import { Dialog } from '../../ui/overlays';
|
||||
import { EditMetadataDialog } from './EditMetadata';
|
||||
import { FixMatchDialog } from './FixMatch';
|
||||
import { ArtworkDialog } from './Artwork';
|
||||
import { MediaInfoDialog } from './MediaInfo';
|
||||
import { CollectionDialog, PlaylistDialog } from './Lists';
|
||||
import { channelLabel, resolutionLabel } from '../../app/format';
|
||||
|
||||
export function DialogHost() {
|
||||
const dialog = useDialogs((s) => s.dialog);
|
||||
const close = useDialogs((s) => s.close);
|
||||
const server = useSession((s) => s.server);
|
||||
if (!dialog || !server) return null;
|
||||
switch (dialog.kind) {
|
||||
case 'edit':
|
||||
return <EditMetadataDialog item={dialog.item} onClose={close} />;
|
||||
case 'match':
|
||||
return <FixMatchDialog item={dialog.item} onClose={close} />;
|
||||
case 'artwork':
|
||||
return <ArtworkDialog item={dialog.item} type={dialog.type} onClose={close} />;
|
||||
case 'info':
|
||||
return <MediaInfoDialog item={dialog.item} onClose={close} />;
|
||||
case 'collection':
|
||||
return <CollectionDialog item={dialog.item} onClose={close} />;
|
||||
case 'playlist':
|
||||
return <PlaylistDialog item={dialog.item} onClose={close} />;
|
||||
case 'synopsis':
|
||||
return (
|
||||
<Dialog title={dialog.item.title} subtitle={[dialog.item.year, dialog.item.tagline].filter(Boolean).join(' · ')} onClose={close} width={620}>
|
||||
<p className="synopsis-full selectable">{dialog.item.summary}</p>
|
||||
</Dialog>
|
||||
);
|
||||
case 'versions':
|
||||
return (
|
||||
<Dialog title="Choose a version" subtitle={dialog.item.title} onClose={close} width={520}>
|
||||
<div className="version-list">
|
||||
{dialog.item.media.map((m, i) => (
|
||||
<button
|
||||
key={m.id}
|
||||
className="version-row"
|
||||
onClick={() => {
|
||||
close();
|
||||
dialog.onPick(i);
|
||||
}}
|
||||
>
|
||||
<b>{m.title || [resolutionLabel(m), m.dynamicRange].filter(Boolean).join(' ')}</b>
|
||||
<span>
|
||||
{[m.videoCodec.toUpperCase(), `${m.audioCodec.toUpperCase()} ${channelLabel(m.audioChannels)}`, m.bitrate ? `${Math.round(m.bitrate / 1000)} Mbps` : '', m.container.toUpperCase()].filter(Boolean).join(' · ')}
|
||||
</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</Dialog>
|
||||
);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue