mirror of
https://github.com/xpltdco/media-rip.git
synced 2026-04-03 02:53:58 -06:00
Wireframe background: - Canvas-based constellation animation — 45 floating nodes connected by proximity lines, subtle pulsing glow on select nodes - Blue primary + orange accent line colors match cyberpunk palette - Pauses on tab hidden, respects devicePixelRatio, ~0% CPU idle - Only renders when cyberpunk theme is active (v-if on theme) - Replaces CSS-only diagonal lines/pulse (removed from cyberpunk.css) Unified URL analysis: - Merged 'Checking URL...' and 'Extracting available formats...' into a single loading state with rotating messages: 'Peeking at the URL', 'Interrogating the server', 'Decoding the matrix', etc. - Both fetches run in parallel via Promise.all, single spinner shown - Phase messages rotate every 1.5s during analysis Admin format enforcement: - Backend PUT /admin/settings now accepts default_video_format and default_audio_format fields with validation - Stored in settings_overrides alongside welcome_message - UrlInput reads admin defaults from config store — Auto label shows 'Auto (.mp3)' etc. when admin has set a default - effectiveOutputFormat computed resolves admin default when user selects Auto, sends the resolved format to the backend
139 lines
3 KiB
Vue
139 lines
3 KiB
Vue
<script setup lang="ts">
|
|
import { ref, computed } from 'vue'
|
|
import { useThemeStore } from '@/stores/theme'
|
|
import WireframeBackground from './WireframeBackground.vue'
|
|
|
|
const themeStore = useThemeStore()
|
|
const showWireframe = computed(() => themeStore.currentTheme === 'cyberpunk')
|
|
|
|
type MobileTab = 'submit' | 'queue'
|
|
const activeTab = ref<MobileTab>('submit')
|
|
</script>
|
|
|
|
<template>
|
|
<div class="app-layout">
|
|
<WireframeBackground v-if="showWireframe" />
|
|
<!-- Desktop: single scrollable view -->
|
|
<main class="layout-main">
|
|
<!-- URL input section -->
|
|
<section class="section-submit" :class="{ 'mobile-hidden': activeTab !== 'submit' }">
|
|
<slot name="url-input"></slot>
|
|
</section>
|
|
|
|
<!-- Download queue section -->
|
|
<section class="section-queue" :class="{ 'mobile-hidden': activeTab !== 'queue' }">
|
|
<slot name="queue"></slot>
|
|
</section>
|
|
</main>
|
|
|
|
<!-- Mobile bottom tab bar -->
|
|
<nav class="mobile-nav">
|
|
<button
|
|
class="nav-tab"
|
|
:class="{ active: activeTab === 'submit' }"
|
|
@click="activeTab = 'submit'"
|
|
>
|
|
<span class="nav-icon">⬇</span>
|
|
<span class="nav-label">Submit</span>
|
|
</button>
|
|
<button
|
|
class="nav-tab"
|
|
:class="{ active: activeTab === 'queue' }"
|
|
@click="activeTab = 'queue'"
|
|
>
|
|
<span class="nav-icon">☰</span>
|
|
<span class="nav-label">Queue</span>
|
|
</button>
|
|
</nav>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.app-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - var(--header-height));
|
|
}
|
|
|
|
.layout-main {
|
|
flex: 1;
|
|
max-width: var(--content-max-width);
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: var(--space-lg) var(--space-md);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xl);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.section-submit,
|
|
.section-queue {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Mobile navigation */
|
|
.mobile-nav {
|
|
display: none;
|
|
}
|
|
|
|
/* Mobile: show bottom nav, toggle sections */
|
|
@media (max-width: 767px) {
|
|
.layout-main {
|
|
padding: var(--space-md);
|
|
padding-bottom: calc(var(--mobile-nav-height) + var(--space-md));
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.mobile-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-nav {
|
|
display: flex;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--mobile-nav-height);
|
|
background: var(--color-surface);
|
|
border-top: 1px solid var(--color-border);
|
|
z-index: 100;
|
|
}
|
|
|
|
.nav-tab {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
background: transparent;
|
|
color: var(--color-text-muted);
|
|
border: none;
|
|
border-radius: 0;
|
|
min-height: var(--mobile-nav-height);
|
|
padding: var(--space-xs);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.nav-tab.active {
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.nav-tab:hover {
|
|
background: var(--color-surface-hover);
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.nav-label {
|
|
font-size: 0.6875rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
}
|
|
</style>
|