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
30
src/main.tsx
Normal file
30
src/main.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import '@fontsource-variable/inter';
|
||||
import './styles/base.css';
|
||||
import './styles/ui.css';
|
||||
import './styles/app.css';
|
||||
import './styles/screens.css';
|
||||
import './styles/player.css';
|
||||
import { App } from './app/App';
|
||||
import { installKeyboardNav } from './app/keyboardNav';
|
||||
import { useSession } from './app/session';
|
||||
import { useRouter } from './app/router';
|
||||
import { usePlayer } from './player/store';
|
||||
import { useSettings } from './app/settings';
|
||||
|
||||
if (import.meta.env.DEV) (window as any).__kaleido = { useSession, useRouter, usePlayer, useSettings };
|
||||
|
||||
// No browser context menu or text-selection chrome outside inputs: this is an app.
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
const t = e.target as HTMLElement;
|
||||
if (!t.closest('input, textarea, .selectable')) e.preventDefault();
|
||||
});
|
||||
|
||||
installKeyboardNav();
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue