feat(jellyfin): simpler, code-first Quick Connect screen

This commit is contained in:
edde746
2026-06-12 03:16:58 +02:00
parent 97ba02f45e
commit 62abd3c30a
39 changed files with 293 additions and 634 deletions
+6 -38
View File
@@ -141,9 +141,6 @@ class TranslationsAuthEn {
/// en: 'Use Quick Connect'
String get useQuickConnect => 'Use Quick Connect';
/// en: 'Quick Connect code'
String get quickConnectCode => 'Quick Connect code';
/// en: 'Open Quick Connect in Jellyfin and enter this code.'
String get quickConnectInstructions => 'Open Quick Connect in Jellyfin and enter this code.';
@@ -3790,18 +3787,12 @@ class TranslationsAddServerEn {
/// en: 'Add Jellyfin server'
String get addJellyfinTitle => 'Add Jellyfin server';
/// en: 'Enter the server URL, e.g. `https://jellyfin.example.com`.'
String get jellyfinUrlIntro => 'Enter the server URL, e.g. `https://jellyfin.example.com`.';
/// en: 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.'
String get jellyfinUrlsIntro => 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.';
/// en: 'Server URL'
String get serverUrl => 'Server URL';
/// en: 'Server URLs'
String get serverUrls => 'Server URLs';
/// en: 'Multiple URLs allowed, separated by commas.'
String get serverUrlsHelper => 'Multiple URLs allowed, separated by commas.';
/// en: 'Find server'
String get findServer => 'Find server';
@@ -3838,15 +3829,6 @@ class TranslationsAddServerEn {
/// en: 'Sign in with Plex'
String get addPlexTitle => 'Sign in with Plex';
/// en: 'Sign in with a browser or QR code.'
String get plexAuthIntro => 'Sign in with a browser or QR code.';
/// en: 'Scan this QR code to sign in.'
String get plexQRPrompt => 'Scan this QR code to sign in.';
/// en: 'Waiting for plex.tv to confirm your sign-in…'
String get waitingForPlexConfirmation => 'Waiting for plex.tv to confirm your sign-in…';
/// en: 'PIN expired before sign-in. Please try again.'
String get pinExpired => 'PIN expired before sign-in. Please try again.';
@@ -3865,12 +3847,6 @@ class TranslationsAddServerEn {
/// en: 'Add to ${name}'
String addConnectionTitleScoped({required Object name}) => 'Add to ${name}';
/// en: 'Add another media server. Plex and Jellyfin appear together on Home.'
String get addConnectionIntroGlobal => 'Add another media server. Plex and Jellyfin appear together on Home.';
/// en: 'Add a new server, or borrow one from another profile.'
String get addConnectionIntroScoped => 'Add a new server, or borrow one from another profile.';
/// en: 'Sign in with Plex'
String get signInWithPlexCard => 'Sign in with Plex';
@@ -4498,7 +4474,6 @@ extension on Translations {
'auth.or' => 'or',
'auth.connectToJellyfin' => 'Connect to Jellyfin',
'auth.useQuickConnect' => 'Use Quick Connect',
'auth.quickConnectCode' => 'Quick Connect code',
'auth.quickConnectInstructions' => 'Open Quick Connect in Jellyfin and enter this code.',
'auth.quickConnectWaiting' => 'Waiting for approval…',
'auth.quickConnectCancel' => 'Cancel',
@@ -4998,9 +4973,9 @@ extension on Translations {
'subtitlingStyling.border' => 'Border',
'subtitlingStyling.background' => 'Background',
'subtitlingStyling.fontSize' => 'Font Size',
'subtitlingStyling.textColor' => 'Text Color',
_ => null,
} ?? switch (path) {
'subtitlingStyling.textColor' => 'Text Color',
'subtitlingStyling.borderSize' => 'Border Size',
'subtitlingStyling.borderColor' => 'Border Color',
'subtitlingStyling.backgroundOpacity' => 'Background Opacity',
@@ -5512,9 +5487,9 @@ extension on Translations {
'companionRemote.remote.tabRemote' => 'Remote',
'companionRemote.remote.tabPlay' => 'Play',
'companionRemote.remote.tabMore' => 'More',
'companionRemote.remote.menu' => 'Menu',
_ => null,
} ?? switch (path) {
'companionRemote.remote.menu' => 'Menu',
'companionRemote.remote.tabNavigation' => 'Tab Navigation',
'companionRemote.remote.tabDiscover' => 'Discover',
'companionRemote.remote.tabLibraries' => 'Libraries',
@@ -5732,10 +5707,8 @@ extension on Translations {
'trackers.libraryFilter.libraries' => 'Libraries',
'trackers.libraryFilter.noLibraries' => 'No libraries available',
'addServer.addJellyfinTitle' => 'Add Jellyfin server',
'addServer.jellyfinUrlIntro' => 'Enter the server URL, e.g. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.',
'addServer.serverUrl' => 'Server URL',
'addServer.serverUrls' => 'Server URLs',
'addServer.serverUrlsHelper' => 'Multiple URLs allowed, separated by commas.',
'addServer.findServer' => 'Find server',
'addServer.searchingLocalServers' => 'Looking for local Jellyfin servers...',
'addServer.localServers' => 'Local Jellyfin servers',
@@ -5748,17 +5721,12 @@ extension on Translations {
'addServer.signInFailed' => ({required Object error}) => 'Sign-in failed: ${error}',
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect failed: ${error}',
'addServer.addPlexTitle' => 'Sign in with Plex',
'addServer.plexAuthIntro' => 'Sign in with a browser or QR code.',
'addServer.plexQRPrompt' => 'Scan this QR code to sign in.',
'addServer.waitingForPlexConfirmation' => 'Waiting for plex.tv to confirm your sign-in…',
'addServer.pinExpired' => 'PIN expired before sign-in. Please try again.',
'addServer.duplicatePlexAccount' => 'Already signed in to Plex. Sign out to switch accounts.',
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Failed to register account: ${error}',
'addServer.enterJellyfinUrlError' => 'Enter your Jellyfin server URL',
'addServer.addConnectionTitle' => 'Add connection',
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Add to ${name}',
'addServer.addConnectionIntroGlobal' => 'Add another media server. Plex and Jellyfin appear together on Home.',
'addServer.addConnectionIntroScoped' => 'Add a new server, or borrow one from another profile.',
'addServer.signInWithPlexCard' => 'Sign in with Plex',
'addServer.signInWithPlexCardSubtitle' => 'Authorize this device. Shared servers are added.',
'addServer.signInWithPlexCardSubtitleScoped' => 'Authorize a Plex account. Home users become profiles.',