mirror of
https://github.com/xpltdco/media-rip.git
synced 2026-04-03 10:54:00 -06:00
Admin: - Username field autofocused on login page - Change password section in Settings tab — current password verification, new password + confirm, min 4 chars, updates bcrypt hash at runtime via PUT /admin/password - Password change updates stored credentials in admin store Loading messages: - Replaced 'Peeking at the URL' with: Scanning the airwaves, Negotiating with the server, Cracking the codec, Reading the fine print, Locking on target Mobile responsive: - Progress column hidden on mobile (<640px) — table fits viewport - Action buttons compact (28px) on mobile with 2px gap - Status badges smaller on mobile (0.625rem) - Filter tabs scroll horizontally, Download All + Clear go full-width below as equal-sized buttons - min-width:0 on section containers prevents flex overflow - download-table-wrap constrained with max-width:100%
140 lines
3 KiB
Vue
140 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;
|
|
flex: 1;
|
|
}
|
|
|
|
.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%;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* 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>
|