feat(remote-control): add setup guide wizard and experimental badge
- Add RemoteControlSetupGuide component with step-by-step instructions - Include certificate installation guides for iOS, macOS, Windows, Android - Mark remote control section as "Experimental" with red badge - Add Setup Guide button to open the wizard - Add translations for wizard (en/es)
This commit is contained in:
1 parent
4972c76746
commit
da93c746cf
4 files changed
+1026
-1
No files matched your search
@@ -0,0 +1,746 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { X, CheckCircle, Smartphone, Shield, Key, QrCode, Wifi } from 'lucide-svelte';
|
||||||
|
import { t } from '$lib/i18n';
|
||||||
|
import WizardStepper, { type Step } from './wizard/WizardStepper.svelte';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
isOpen: boolean;
|
||||||
|
onClose: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
let { isOpen, onClose }: Props = $props();
|
||||||
|
|
||||||
|
type WizardStep = 'welcome' | 'enable' | 'https' | 'certificate' | 'pair' | 'done';
|
||||||
|
|
||||||
|
const STEPS: WizardStep[] = ['welcome', 'enable', 'https', 'certificate', 'pair', 'done'];
|
||||||
|
|
||||||
|
// Wizard state
|
||||||
|
let currentStep = $state<WizardStep>('welcome');
|
||||||
|
let completedSteps = $state(new Set<WizardStep>());
|
||||||
|
let selectedPlatform = $state<'ios' | 'macos' | 'windows' | 'android'>('ios');
|
||||||
|
|
||||||
|
// Reset state when modal opens
|
||||||
|
$effect(() => {
|
||||||
|
if (isOpen) {
|
||||||
|
currentStep = 'welcome';
|
||||||
|
completedSteps = new Set();
|
||||||
|
selectedPlatform = 'ios';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Derived values
|
||||||
|
const currentIndex = $derived(STEPS.indexOf(currentStep));
|
||||||
|
|
||||||
|
const steps = $derived<Step[]>(STEPS.map((step, index) => ({
|
||||||
|
id: step,
|
||||||
|
label: $t(`remoteControlWizard.steps.${step}`) || step,
|
||||||
|
status: index === currentIndex ? 'active' : completedSteps.has(step) ? 'complete' : 'upcoming'
|
||||||
|
})));
|
||||||
|
|
||||||
|
// Navigation
|
||||||
|
function goToStep(stepId: string) {
|
||||||
|
const step = stepId as WizardStep;
|
||||||
|
if (completedSteps.has(step)) {
|
||||||
|
currentStep = step;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
completedSteps.add(currentStep);
|
||||||
|
completedSteps = new Set(completedSteps);
|
||||||
|
|
||||||
|
const nextIndex = currentIndex + 1;
|
||||||
|
if (nextIndex < STEPS.length) {
|
||||||
|
currentStep = STEPS[nextIndex];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function back() {
|
||||||
|
const prevIndex = currentIndex - 1;
|
||||||
|
if (prevIndex >= 0) {
|
||||||
|
currentStep = STEPS[prevIndex];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleClose() {
|
||||||
|
onClose();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleKeydown(e: KeyboardEvent) {
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
handleClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleBackdropClick(e: MouseEvent) {
|
||||||
|
if (e.target === e.currentTarget) {
|
||||||
|
handleClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:document onkeydown={handleKeydown} />
|
||||||
|
|
||||||
|
{#if isOpen}
|
||||||
|
<div class="wizard-backdrop" onclick={handleBackdropClick} role="presentation">
|
||||||
|
<div
|
||||||
|
class="wizard-modal"
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
onclick={(e) => e.stopPropagation()}
|
||||||
|
>
|
||||||
|
<!-- Header -->
|
||||||
|
<header class="wizard-header">
|
||||||
|
<div class="header-content">
|
||||||
|
{#if currentStep === 'welcome'}
|
||||||
|
<h2>{$t('remoteControlWizard.welcome.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.welcome.subtitle')}</p>
|
||||||
|
{:else if currentStep === 'enable'}
|
||||||
|
<h2>{$t('remoteControlWizard.enable.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.enable.subtitle')}</p>
|
||||||
|
{:else if currentStep === 'https'}
|
||||||
|
<h2>{$t('remoteControlWizard.https.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.https.subtitle')}</p>
|
||||||
|
{:else if currentStep === 'certificate'}
|
||||||
|
<h2>{$t('remoteControlWizard.certificate.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.certificate.subtitle')}</p>
|
||||||
|
{:else if currentStep === 'pair'}
|
||||||
|
<h2>{$t('remoteControlWizard.pair.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.pair.subtitle')}</p>
|
||||||
|
{:else if currentStep === 'done'}
|
||||||
|
<h2>{$t('remoteControlWizard.done.title')}</h2>
|
||||||
|
<p>{$t('remoteControlWizard.done.subtitle')}</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
<button class="close-btn" onclick={handleClose}>
|
||||||
|
<X size={20} />
|
||||||
|
</button>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Body -->
|
||||||
|
<div class="wizard-body">
|
||||||
|
{#if currentStep !== 'done'}
|
||||||
|
<WizardStepper {steps} onStepClick={goToStep} />
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<div class="wizard-content">
|
||||||
|
{#if currentStep === 'welcome'}
|
||||||
|
<div class="step-content welcome-content">
|
||||||
|
<div class="welcome-icon">
|
||||||
|
<Smartphone size={48} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="body-text intro-text">{$t('remoteControlWizard.welcome.intro')}</p>
|
||||||
|
|
||||||
|
<div class="feature-list">
|
||||||
|
<div class="feature-item">
|
||||||
|
<CheckCircle size={16} class="feature-check" />
|
||||||
|
<span>{$t('remoteControlWizard.welcome.feature1')}</span>
|
||||||
|
</div>
|
||||||
|
<div class="feature-item">
|
||||||
|
<CheckCircle size={16} class="feature-check" />
|
||||||
|
<span>{$t('remoteControlWizard.welcome.feature2')}</span>
|
||||||
|
</div>
|
||||||
|
<div class="feature-item">
|
||||||
|
<CheckCircle size={16} class="feature-check" />
|
||||||
|
<span>{$t('remoteControlWizard.welcome.feature3')}</span>
|
||||||
|
</div>
|
||||||
|
<div class="feature-item">
|
||||||
|
<CheckCircle size={16} class="feature-check" />
|
||||||
|
<span>{$t('remoteControlWizard.welcome.feature4')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="screenshot-placeholder">
|
||||||
|
<span class="placeholder-text">{$t('remoteControlWizard.welcome.screenshot')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{:else if currentStep === 'enable'}
|
||||||
|
<div class="step-content">
|
||||||
|
<div class="step-icon">
|
||||||
|
<Wifi size={32} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ol class="step-list">
|
||||||
|
<li>{$t('remoteControlWizard.enable.step1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.enable.step2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.enable.step3')}</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p class="note-text">{$t('remoteControlWizard.enable.portNote')}</p>
|
||||||
|
|
||||||
|
<div class="screenshot-placeholder">
|
||||||
|
<span class="placeholder-text">{$t('remoteControlWizard.enable.screenshot')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{:else if currentStep === 'https'}
|
||||||
|
<div class="step-content">
|
||||||
|
<div class="step-icon">
|
||||||
|
<Shield size={32} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="body-text">{$t('remoteControlWizard.https.intro')}</p>
|
||||||
|
|
||||||
|
<ol class="step-list">
|
||||||
|
<li>{$t('remoteControlWizard.https.step1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.https.step2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.https.step3')}</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<div class="why-section">
|
||||||
|
<h4>{$t('remoteControlWizard.https.whyRequired')}</h4>
|
||||||
|
<ul class="why-list">
|
||||||
|
<li>{$t('remoteControlWizard.https.whyReason1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.https.whyReason2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.https.whyReason3')}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="screenshot-placeholder">
|
||||||
|
<span class="placeholder-text">{$t('remoteControlWizard.https.screenshot')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{:else if currentStep === 'certificate'}
|
||||||
|
<div class="step-content certificate-content">
|
||||||
|
<div class="step-icon">
|
||||||
|
<Key size={32} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="body-text">{$t('remoteControlWizard.certificate.intro')}</p>
|
||||||
|
|
||||||
|
<ol class="step-list main-steps">
|
||||||
|
<li>{$t('remoteControlWizard.certificate.step1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.step2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.step3')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.step4')}</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<div class="platform-tabs">
|
||||||
|
<button
|
||||||
|
class="platform-tab"
|
||||||
|
class:active={selectedPlatform === 'ios'}
|
||||||
|
onclick={() => selectedPlatform = 'ios'}
|
||||||
|
>
|
||||||
|
iOS
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="platform-tab"
|
||||||
|
class:active={selectedPlatform === 'macos'}
|
||||||
|
onclick={() => selectedPlatform = 'macos'}
|
||||||
|
>
|
||||||
|
macOS
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="platform-tab"
|
||||||
|
class:active={selectedPlatform === 'windows'}
|
||||||
|
onclick={() => selectedPlatform = 'windows'}
|
||||||
|
>
|
||||||
|
Windows
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="platform-tab"
|
||||||
|
class:active={selectedPlatform === 'android'}
|
||||||
|
onclick={() => selectedPlatform = 'android'}
|
||||||
|
>
|
||||||
|
Android
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="platform-instructions">
|
||||||
|
{#if selectedPlatform === 'ios'}
|
||||||
|
<h4>{$t('remoteControlWizard.certificate.iosTitle')}</h4>
|
||||||
|
<ol class="platform-steps">
|
||||||
|
<li>{$t('remoteControlWizard.certificate.iosStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.iosStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.iosStep3')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.iosStep4')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.iosStep5')}</li>
|
||||||
|
</ol>
|
||||||
|
{:else if selectedPlatform === 'macos'}
|
||||||
|
<h4>{$t('remoteControlWizard.certificate.macosTitle')}</h4>
|
||||||
|
<ol class="platform-steps">
|
||||||
|
<li>{$t('remoteControlWizard.certificate.macosStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.macosStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.macosStep3')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.macosStep4')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.macosStep5')}</li>
|
||||||
|
</ol>
|
||||||
|
{:else if selectedPlatform === 'windows'}
|
||||||
|
<h4>{$t('remoteControlWizard.certificate.windowsTitle')}</h4>
|
||||||
|
<ol class="platform-steps">
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep3')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep4')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep5')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.windowsStep6')}</li>
|
||||||
|
</ol>
|
||||||
|
{:else if selectedPlatform === 'android'}
|
||||||
|
<h4>{$t('remoteControlWizard.certificate.androidTitle')}</h4>
|
||||||
|
<ol class="platform-steps">
|
||||||
|
<li>{$t('remoteControlWizard.certificate.androidStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.androidStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.androidStep3')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.androidStep4')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.certificate.androidStep5')}</li>
|
||||||
|
</ol>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="screenshot-placeholder">
|
||||||
|
<span class="placeholder-text">{$t('remoteControlWizard.certificate.screenshot')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{:else if currentStep === 'pair'}
|
||||||
|
<div class="step-content">
|
||||||
|
<div class="step-icon">
|
||||||
|
<QrCode size={32} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="body-text">{$t('remoteControlWizard.pair.intro')}</p>
|
||||||
|
|
||||||
|
<div class="method-section">
|
||||||
|
<h4>{$t('remoteControlWizard.pair.qrMethod')}</h4>
|
||||||
|
<ol class="step-list">
|
||||||
|
<li>{$t('remoteControlWizard.pair.qrStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.qrStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.qrStep3')}</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-section">
|
||||||
|
<h4>{$t('remoteControlWizard.pair.manualMethod')}</h4>
|
||||||
|
<ol class="step-list">
|
||||||
|
<li>{$t('remoteControlWizard.pair.manualStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.manualStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.manualStep3')}</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="troubleshoot-section">
|
||||||
|
<h4>{$t('remoteControlWizard.pair.troubleshooting')}</h4>
|
||||||
|
<ul class="trouble-list">
|
||||||
|
<li>{$t('remoteControlWizard.pair.trouble1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.trouble2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.pair.trouble3')}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="screenshot-placeholder">
|
||||||
|
<span class="placeholder-text">{$t('remoteControlWizard.pair.screenshot')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{:else if currentStep === 'done'}
|
||||||
|
<div class="done-content">
|
||||||
|
<CheckCircle size={64} class="done-icon" />
|
||||||
|
|
||||||
|
<p class="body-text pwa-hint">{$t('remoteControlWizard.done.pwaHint')}</p>
|
||||||
|
|
||||||
|
<ol class="pwa-steps">
|
||||||
|
<li>{$t('remoteControlWizard.done.pwaStep1')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.done.pwaStep2')}</li>
|
||||||
|
<li>{$t('remoteControlWizard.done.pwaStep3')}</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="wizard-footer">
|
||||||
|
{#if currentStep === 'welcome'}
|
||||||
|
<button class="btn btn-primary" onclick={next}>
|
||||||
|
{$t('remoteControlWizard.welcome.start')}
|
||||||
|
</button>
|
||||||
|
{:else if currentStep === 'done'}
|
||||||
|
<button class="btn btn-primary" onclick={handleClose}>
|
||||||
|
{$t('remoteControlWizard.done.close')}
|
||||||
|
</button>
|
||||||
|
{:else}
|
||||||
|
<button class="btn btn-secondary" onclick={back}>
|
||||||
|
{$t('remoteControlWizard.buttons.back')}
|
||||||
|
</button>
|
||||||
|
<button class="btn btn-primary" onclick={next}>
|
||||||
|
{$t('remoteControlWizard.buttons.next')}
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.wizard-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
background: rgba(0, 0, 0, 0.7);
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
z-index: 10000;
|
||||||
|
padding: 24px;
|
||||||
|
animation: fadeIn 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from { opacity: 0; }
|
||||||
|
to { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.wizard-modal {
|
||||||
|
background: var(--bg-primary);
|
||||||
|
border-radius: 12px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 800px;
|
||||||
|
max-height: 90vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
|
||||||
|
border: 1px solid var(--border-subtle);
|
||||||
|
animation: slideUp 200ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideUp {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(16px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.wizard-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 24px;
|
||||||
|
border-bottom: 1px solid var(--border-subtle);
|
||||||
|
min-height: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin: 0 0 4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-muted);
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn:hover {
|
||||||
|
background: var(--bg-tertiary);
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wizard-body {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 24px;
|
||||||
|
display: flex;
|
||||||
|
gap: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wizard-content {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome-content {
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome-icon {
|
||||||
|
color: var(--accent-primary);
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-icon {
|
||||||
|
color: var(--accent-primary);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro-text {
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
text-align: left;
|
||||||
|
margin: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-item :global(.feature-check) {
|
||||||
|
color: var(--accent-primary);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-placeholder {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 400px;
|
||||||
|
height: 200px;
|
||||||
|
background: var(--bg-tertiary);
|
||||||
|
border: 2px dashed var(--border-subtle);
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 16px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholder-text {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-style: italic;
|
||||||
|
text-align: center;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-list {
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 24px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-list li {
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note-text {
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
padding: 12px 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border-left: 3px solid var(--accent-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.why-section,
|
||||||
|
.method-section,
|
||||||
|
.troubleshoot-section {
|
||||||
|
margin-top: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.why-section h4,
|
||||||
|
.method-section h4,
|
||||||
|
.troubleshoot-section h4 {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.why-list,
|
||||||
|
.trouble-list {
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.why-list li,
|
||||||
|
.trouble-list li {
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-tabs {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 16px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-tab {
|
||||||
|
padding: 8px 16px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid var(--border-subtle);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
color: var(--text-secondary);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-tab:hover {
|
||||||
|
border-color: var(--accent-primary);
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-tab.active {
|
||||||
|
background: var(--accent-primary);
|
||||||
|
border-color: var(--accent-primary);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-instructions {
|
||||||
|
margin-top: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-instructions h4 {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-steps {
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-steps li {
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.certificate-content {
|
||||||
|
max-height: 60vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-steps {
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
padding: 16px;
|
||||||
|
padding-left: 36px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.done-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
padding: 32px 0;
|
||||||
|
gap: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.done-content :global(.done-icon) {
|
||||||
|
color: var(--accent-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pwa-hint {
|
||||||
|
font-size: 15px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pwa-steps {
|
||||||
|
text-align: left;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 24px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pwa-steps li {
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wizard-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 16px 24px;
|
||||||
|
border-top: 1px solid var(--border-subtle);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background: var(--accent-primary);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
filter: brightness(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
border: 1px solid var(--border-subtle);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary:hover {
|
||||||
|
background: var(--bg-tertiary);
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
import DeviceDropdown from '../DeviceDropdown.svelte';
|
import DeviceDropdown from '../DeviceDropdown.svelte';
|
||||||
import AlsaUtilsHelpModal from '../AlsaUtilsHelpModal.svelte';
|
import AlsaUtilsHelpModal from '../AlsaUtilsHelpModal.svelte';
|
||||||
import DACSetupWizard from '../DACSetupWizard.svelte';
|
import DACSetupWizard from '../DACSetupWizard.svelte';
|
||||||
|
import RemoteControlSetupGuide from '../RemoteControlSetupGuide.svelte';
|
||||||
import VolumeSlider from '../VolumeSlider.svelte';
|
import VolumeSlider from '../VolumeSlider.svelte';
|
||||||
import UpdateCheckResultModal from '../updates/UpdateCheckResultModal.svelte';
|
import UpdateCheckResultModal from '../updates/UpdateCheckResultModal.svelte';
|
||||||
import WhatsNewModal from '../updates/WhatsNewModal.svelte';
|
import WhatsNewModal from '../updates/WhatsNewModal.svelte';
|
||||||
@@ -645,6 +646,7 @@
|
|||||||
let remoteControlQrOpen = $state(false);
|
let remoteControlQrOpen = $state(false);
|
||||||
let remoteControlQrData = $state('');
|
let remoteControlQrData = $state('');
|
||||||
let remoteControlUrl = $state('');
|
let remoteControlUrl = $state('');
|
||||||
|
let showRemoteControlGuide = $state(false);
|
||||||
|
|
||||||
// Load saved settings on mount
|
// Load saved settings on mount
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
@@ -2820,7 +2822,13 @@
|
|||||||
|
|
||||||
<!-- Remote Control Section -->
|
<!-- Remote Control Section -->
|
||||||
<section class="section" id="remote-control" bind:this={remoteControlSection}>
|
<section class="section" id="remote-control" bind:this={remoteControlSection}>
|
||||||
<h3 class="section-title">{$t('settings.integrations.remoteControl')}</h3>
|
<div class="section-title-row">
|
||||||
|
<h3 class="section-title">{$t('settings.integrations.remoteControl')}</h3>
|
||||||
|
<span class="experimental-badge">{$t('settings.integrations.remoteControlExperimental')}</span>
|
||||||
|
<button class="setup-guide-btn" onclick={() => showRemoteControlGuide = true}>
|
||||||
|
{$t('settings.integrations.remoteControlSetupGuide')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="setting-row">
|
<div class="setting-row">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
@@ -3531,6 +3539,48 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz</pre>
|
|||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-title-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title-row .section-title {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.experimental-badge {
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
padding: 3px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(239, 68, 68, 0.15);
|
||||||
|
color: #ef4444;
|
||||||
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-guide-btn {
|
||||||
|
margin-left: auto;
|
||||||
|
padding: 6px 12px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid var(--border-subtle);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
color: var(--text-secondary);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-guide-btn:hover {
|
||||||
|
background: var(--bg-tertiary);
|
||||||
|
color: var(--text-primary);
|
||||||
|
border-color: var(--accent-primary);
|
||||||
|
}
|
||||||
|
|
||||||
.subsection-title {
|
.subsection-title {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -4294,3 +4344,8 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz</pre>
|
|||||||
isOpen={showDACWizardModal}
|
isOpen={showDACWizardModal}
|
||||||
onClose={() => showDACWizardModal = false}
|
onClose={() => showDACWizardModal = false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<RemoteControlSetupGuide
|
||||||
|
isOpen={showRemoteControlGuide}
|
||||||
|
onClose={() => showRemoteControlGuide = false}
|
||||||
|
/>
|
||||||
@@ -613,7 +613,9 @@
|
|||||||
"musicbrainzCache": "MusicBrainz Cache",
|
"musicbrainzCache": "MusicBrainz Cache",
|
||||||
"listenbrainz": "ListenBrainz",
|
"listenbrainz": "ListenBrainz",
|
||||||
"remoteControl": "Remote Control",
|
"remoteControl": "Remote Control",
|
||||||
|
"remoteControlExperimental": "Experimental",
|
||||||
"remoteControlDesc": "Control QBZ from another device on the same network.",
|
"remoteControlDesc": "Control QBZ from another device on the same network.",
|
||||||
|
"remoteControlSetupGuide": "Setup Guide",
|
||||||
"remoteControlEnable": "Enable Remote Control",
|
"remoteControlEnable": "Enable Remote Control",
|
||||||
"remoteControlPort": "Port",
|
"remoteControlPort": "Port",
|
||||||
"remoteControlPortDesc": "Default is 8182.",
|
"remoteControlPortDesc": "Default is 8182.",
|
||||||
@@ -1194,5 +1196,115 @@
|
|||||||
"verify": "Verify",
|
"verify": "Verify",
|
||||||
"done": "Done"
|
"done": "Done"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"remoteControlWizard": {
|
||||||
|
"steps": {
|
||||||
|
"welcome": "Welcome",
|
||||||
|
"enable": "Enable",
|
||||||
|
"https": "HTTPS",
|
||||||
|
"certificate": "Certificate",
|
||||||
|
"pair": "Pair",
|
||||||
|
"done": "Done"
|
||||||
|
},
|
||||||
|
"welcome": {
|
||||||
|
"title": "Remote Control Setup",
|
||||||
|
"subtitle": "Control QBZ from another device",
|
||||||
|
"intro": "This guide will help you set up remote control so you can control QBZ from your phone, tablet, or another device on the same network.",
|
||||||
|
"feature1": "Control playback (play, pause, skip)",
|
||||||
|
"feature2": "Manage your queue",
|
||||||
|
"feature3": "Search and add tracks",
|
||||||
|
"feature4": "Install as PWA on your device",
|
||||||
|
"start": "Get Started",
|
||||||
|
"screenshot": "[Screenshot: Remote control PWA on mobile]"
|
||||||
|
},
|
||||||
|
"enable": {
|
||||||
|
"title": "Enable Remote Control",
|
||||||
|
"subtitle": "Turn on the local API server",
|
||||||
|
"step1": "Go to Settings → Remote Control",
|
||||||
|
"step2": "Toggle \"Enable Remote Control\" ON",
|
||||||
|
"step3": "Note the port number (default: 8182)",
|
||||||
|
"portNote": "The default port is 8182. You can change it if needed, but you'll need to update it during pairing.",
|
||||||
|
"screenshot": "[Screenshot: Settings > Remote Control toggle]"
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"title": "Enable Secure Connection",
|
||||||
|
"subtitle": "Required for PWA installation",
|
||||||
|
"intro": "HTTPS is required to install the remote control as a Progressive Web App (PWA) on your phone or tablet.",
|
||||||
|
"step1": "Enable \"Secure Connection (HTTPS)\"",
|
||||||
|
"step2": "QBZ will generate a self-signed certificate",
|
||||||
|
"step3": "A certificate URL will appear",
|
||||||
|
"whyRequired": "Why HTTPS?",
|
||||||
|
"whyReason1": "Modern browsers require HTTPS for PWA installation",
|
||||||
|
"whyReason2": "Secure connection protects your pairing token",
|
||||||
|
"whyReason3": "Required for service workers and offline features",
|
||||||
|
"screenshot": "[Screenshot: HTTPS toggle enabled]"
|
||||||
|
},
|
||||||
|
"certificate": {
|
||||||
|
"title": "Install Certificate",
|
||||||
|
"subtitle": "Trust the QBZ certificate on your device",
|
||||||
|
"intro": "Since QBZ uses a self-signed certificate, you need to install and trust it on your controlling device.",
|
||||||
|
"step1": "Copy the certificate URL from QBZ settings",
|
||||||
|
"step2": "Open the URL on your controlling device's browser",
|
||||||
|
"step3": "Download and install the certificate",
|
||||||
|
"step4": "Trust the certificate for web browsing",
|
||||||
|
"iosTitle": "iOS (iPhone/iPad)",
|
||||||
|
"iosStep1": "Open the certificate URL in Safari",
|
||||||
|
"iosStep2": "Tap \"Allow\" to download the profile",
|
||||||
|
"iosStep3": "Go to Settings → Profile Downloaded → Install",
|
||||||
|
"iosStep4": "Go to Settings → General → About → Certificate Trust Settings",
|
||||||
|
"iosStep5": "Enable full trust for the QBZ certificate",
|
||||||
|
"macosTitle": "macOS",
|
||||||
|
"macosStep1": "Open the certificate URL in Safari",
|
||||||
|
"macosStep2": "Open the downloaded .crt file",
|
||||||
|
"macosStep3": "Keychain Access will open - add to login keychain",
|
||||||
|
"macosStep4": "Double-click the certificate, expand Trust",
|
||||||
|
"macosStep5": "Set \"When using this certificate\" to \"Always Trust\"",
|
||||||
|
"windowsTitle": "Windows",
|
||||||
|
"windowsStep1": "Open the certificate URL in any browser",
|
||||||
|
"windowsStep2": "Open the downloaded .crt file",
|
||||||
|
"windowsStep3": "Click \"Install Certificate...\"",
|
||||||
|
"windowsStep4": "Select \"Local Machine\" then \"Next\"",
|
||||||
|
"windowsStep5": "Select \"Place all certificates in: Trusted Root Certification Authorities\"",
|
||||||
|
"windowsStep6": "Finish the wizard and confirm",
|
||||||
|
"androidTitle": "Android",
|
||||||
|
"androidStep1": "Open the certificate URL in Chrome",
|
||||||
|
"androidStep2": "Open the downloaded .crt file",
|
||||||
|
"androidStep3": "Enter a name (e.g., \"QBZ\")",
|
||||||
|
"androidStep4": "Select \"VPN and apps\" or \"Wi-Fi\" as usage type",
|
||||||
|
"androidStep5": "Tap OK to install",
|
||||||
|
"screenshot": "[Screenshot: Certificate URL in QBZ settings]"
|
||||||
|
},
|
||||||
|
"pair": {
|
||||||
|
"title": "Pair Your Device",
|
||||||
|
"subtitle": "Connect to QBZ",
|
||||||
|
"intro": "Now connect your controlling device to QBZ using the QR code or manual entry.",
|
||||||
|
"qrMethod": "QR Code (Recommended)",
|
||||||
|
"qrStep1": "Click \"Show QR\" in QBZ settings",
|
||||||
|
"qrStep2": "Open the QBZ Control URL on your device",
|
||||||
|
"qrStep3": "Scan the QR code to auto-fill connection details",
|
||||||
|
"manualMethod": "Manual Entry",
|
||||||
|
"manualStep1": "Note the Local URL shown in QBZ",
|
||||||
|
"manualStep2": "Open this URL on your controlling device",
|
||||||
|
"manualStep3": "Enter the URL and token manually",
|
||||||
|
"troubleshooting": "If connection fails:",
|
||||||
|
"trouble1": "Make sure both devices are on the same network",
|
||||||
|
"trouble2": "Check that the firewall allows port 8182",
|
||||||
|
"trouble3": "Verify HTTPS is enabled and certificate is trusted",
|
||||||
|
"screenshot": "[Screenshot: QR code pairing screen]"
|
||||||
|
},
|
||||||
|
"done": {
|
||||||
|
"title": "Setup Complete!",
|
||||||
|
"subtitle": "You can now control QBZ remotely",
|
||||||
|
"pwaHint": "For the best experience, install QBZ Control as a PWA:",
|
||||||
|
"pwaStep1": "Open the control URL on your device",
|
||||||
|
"pwaStep2": "Use \"Add to Home Screen\" or \"Install App\"",
|
||||||
|
"pwaStep3": "Launch from your home screen for fullscreen experience",
|
||||||
|
"close": "Close"
|
||||||
|
},
|
||||||
|
"buttons": {
|
||||||
|
"next": "Next",
|
||||||
|
"back": "Back",
|
||||||
|
"close": "Close"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -613,7 +613,9 @@
|
|||||||
"musicbrainzCache": "Caché de MusicBrainz",
|
"musicbrainzCache": "Caché de MusicBrainz",
|
||||||
"listenbrainz": "ListenBrainz",
|
"listenbrainz": "ListenBrainz",
|
||||||
"remoteControl": "Control Remoto",
|
"remoteControl": "Control Remoto",
|
||||||
|
"remoteControlExperimental": "Experimental",
|
||||||
"remoteControlDesc": "Controla QBZ desde otro dispositivo en la misma red.",
|
"remoteControlDesc": "Controla QBZ desde otro dispositivo en la misma red.",
|
||||||
|
"remoteControlSetupGuide": "Guía de configuración",
|
||||||
"remoteControlEnable": "Activar control remoto",
|
"remoteControlEnable": "Activar control remoto",
|
||||||
"remoteControlPort": "Puerto",
|
"remoteControlPort": "Puerto",
|
||||||
"remoteControlPortDesc": "El valor por defecto es 8182.",
|
"remoteControlPortDesc": "El valor por defecto es 8182.",
|
||||||
@@ -1194,5 +1196,115 @@
|
|||||||
"verify": "Verificar",
|
"verify": "Verificar",
|
||||||
"done": "Completado"
|
"done": "Completado"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"remoteControlWizard": {
|
||||||
|
"steps": {
|
||||||
|
"welcome": "Bienvenida",
|
||||||
|
"enable": "Activar",
|
||||||
|
"https": "HTTPS",
|
||||||
|
"certificate": "Certificado",
|
||||||
|
"pair": "Emparejar",
|
||||||
|
"done": "Completado"
|
||||||
|
},
|
||||||
|
"welcome": {
|
||||||
|
"title": "Configuración del Control Remoto",
|
||||||
|
"subtitle": "Controla QBZ desde otro dispositivo",
|
||||||
|
"intro": "Esta guía te ayudará a configurar el control remoto para que puedas controlar QBZ desde tu teléfono, tablet u otro dispositivo en la misma red.",
|
||||||
|
"feature1": "Controla la reproducción (play, pausa, siguiente)",
|
||||||
|
"feature2": "Administra tu cola de reproducción",
|
||||||
|
"feature3": "Busca y añade pistas",
|
||||||
|
"feature4": "Instala como PWA en tu dispositivo",
|
||||||
|
"start": "Comenzar",
|
||||||
|
"screenshot": "[Captura: PWA de control remoto en móvil]"
|
||||||
|
},
|
||||||
|
"enable": {
|
||||||
|
"title": "Activar Control Remoto",
|
||||||
|
"subtitle": "Enciende el servidor API local",
|
||||||
|
"step1": "Ve a Ajustes → Control Remoto",
|
||||||
|
"step2": "Activa \"Activar control remoto\"",
|
||||||
|
"step3": "Anota el número de puerto (por defecto: 8182)",
|
||||||
|
"portNote": "El puerto por defecto es 8182. Puedes cambiarlo si es necesario, pero tendrás que actualizarlo durante el emparejamiento.",
|
||||||
|
"screenshot": "[Captura: Ajustes > toggle de Control Remoto]"
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"title": "Activar Conexión Segura",
|
||||||
|
"subtitle": "Requerido para instalar como PWA",
|
||||||
|
"intro": "HTTPS es necesario para instalar el control remoto como Progressive Web App (PWA) en tu teléfono o tablet.",
|
||||||
|
"step1": "Activa \"Conexión segura (HTTPS)\"",
|
||||||
|
"step2": "QBZ generará un certificado autofirmado",
|
||||||
|
"step3": "Aparecerá una URL del certificado",
|
||||||
|
"whyRequired": "¿Por qué HTTPS?",
|
||||||
|
"whyReason1": "Los navegadores modernos requieren HTTPS para instalar PWAs",
|
||||||
|
"whyReason2": "La conexión segura protege tu token de emparejamiento",
|
||||||
|
"whyReason3": "Requerido para service workers y funciones offline",
|
||||||
|
"screenshot": "[Captura: Toggle de HTTPS activado]"
|
||||||
|
},
|
||||||
|
"certificate": {
|
||||||
|
"title": "Instalar Certificado",
|
||||||
|
"subtitle": "Confía en el certificado QBZ en tu dispositivo",
|
||||||
|
"intro": "Como QBZ usa un certificado autofirmado, necesitas instalarlo y confiar en él en tu dispositivo de control.",
|
||||||
|
"step1": "Copia la URL del certificado desde los ajustes de QBZ",
|
||||||
|
"step2": "Abre la URL en el navegador de tu dispositivo de control",
|
||||||
|
"step3": "Descarga e instala el certificado",
|
||||||
|
"step4": "Confía en el certificado para navegación web",
|
||||||
|
"iosTitle": "iOS (iPhone/iPad)",
|
||||||
|
"iosStep1": "Abre la URL del certificado en Safari",
|
||||||
|
"iosStep2": "Toca \"Permitir\" para descargar el perfil",
|
||||||
|
"iosStep3": "Ve a Ajustes → Perfil Descargado → Instalar",
|
||||||
|
"iosStep4": "Ve a Ajustes → General → Información → Configuración de Confianza del Certificado",
|
||||||
|
"iosStep5": "Activa la confianza completa para el certificado QBZ",
|
||||||
|
"macosTitle": "macOS",
|
||||||
|
"macosStep1": "Abre la URL del certificado en Safari",
|
||||||
|
"macosStep2": "Abre el archivo .crt descargado",
|
||||||
|
"macosStep3": "Se abrirá Acceso a Llaveros - añade al llavero de inicio de sesión",
|
||||||
|
"macosStep4": "Haz doble clic en el certificado, expande Confianza",
|
||||||
|
"macosStep5": "Configura \"Al usar este certificado\" como \"Confiar siempre\"",
|
||||||
|
"windowsTitle": "Windows",
|
||||||
|
"windowsStep1": "Abre la URL del certificado en cualquier navegador",
|
||||||
|
"windowsStep2": "Abre el archivo .crt descargado",
|
||||||
|
"windowsStep3": "Haz clic en \"Instalar certificado...\"",
|
||||||
|
"windowsStep4": "Selecciona \"Equipo local\" y luego \"Siguiente\"",
|
||||||
|
"windowsStep5": "Selecciona \"Colocar todos los certificados en: Entidades de certificación raíz de confianza\"",
|
||||||
|
"windowsStep6": "Finaliza el asistente y confirma",
|
||||||
|
"androidTitle": "Android",
|
||||||
|
"androidStep1": "Abre la URL del certificado en Chrome",
|
||||||
|
"androidStep2": "Abre el archivo .crt descargado",
|
||||||
|
"androidStep3": "Ingresa un nombre (ej: \"QBZ\")",
|
||||||
|
"androidStep4": "Selecciona \"VPN y aplicaciones\" o \"Wi-Fi\" como tipo de uso",
|
||||||
|
"androidStep5": "Toca OK para instalar",
|
||||||
|
"screenshot": "[Captura: URL del certificado en ajustes de QBZ]"
|
||||||
|
},
|
||||||
|
"pair": {
|
||||||
|
"title": "Emparejar Tu Dispositivo",
|
||||||
|
"subtitle": "Conecta a QBZ",
|
||||||
|
"intro": "Ahora conecta tu dispositivo de control a QBZ usando el código QR o entrada manual.",
|
||||||
|
"qrMethod": "Código QR (Recomendado)",
|
||||||
|
"qrStep1": "Haz clic en \"Mostrar QR\" en ajustes de QBZ",
|
||||||
|
"qrStep2": "Abre la URL de QBZ Control en tu dispositivo",
|
||||||
|
"qrStep3": "Escanea el código QR para autocompletar los datos de conexión",
|
||||||
|
"manualMethod": "Entrada Manual",
|
||||||
|
"manualStep1": "Anota la URL Local mostrada en QBZ",
|
||||||
|
"manualStep2": "Abre esta URL en tu dispositivo de control",
|
||||||
|
"manualStep3": "Ingresa la URL y el token manualmente",
|
||||||
|
"troubleshooting": "Si falla la conexión:",
|
||||||
|
"trouble1": "Asegúrate de que ambos dispositivos estén en la misma red",
|
||||||
|
"trouble2": "Verifica que el firewall permita el puerto 8182",
|
||||||
|
"trouble3": "Confirma que HTTPS esté activado y el certificado sea de confianza",
|
||||||
|
"screenshot": "[Captura: Pantalla de emparejamiento con código QR]"
|
||||||
|
},
|
||||||
|
"done": {
|
||||||
|
"title": "¡Configuración Completa!",
|
||||||
|
"subtitle": "Ahora puedes controlar QBZ remotamente",
|
||||||
|
"pwaHint": "Para la mejor experiencia, instala QBZ Control como PWA:",
|
||||||
|
"pwaStep1": "Abre la URL de control en tu dispositivo",
|
||||||
|
"pwaStep2": "Usa \"Añadir a pantalla de inicio\" o \"Instalar app\"",
|
||||||
|
"pwaStep3": "Abre desde tu pantalla de inicio para experiencia a pantalla completa",
|
||||||
|
"close": "Cerrar"
|
||||||
|
},
|
||||||
|
"buttons": {
|
||||||
|
"next": "Siguiente",
|
||||||
|
"back": "Atrás",
|
||||||
|
"close": "Cerrar"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user