2025-09-23 20:54:50 +02:00
|
|
|
<template>
|
2025-10-11 00:33:13 +02:00
|
|
|
<div class="app-container">
|
|
|
|
|
<nav class="main-nav">
|
|
|
|
|
<router-link to="/">🏠 Accueil</router-link>
|
|
|
|
|
|
|
|
|
|
<!-- Menu déroulant Debug -->
|
|
|
|
|
<div class="dropdown" @mouseenter="showDebugMenu = true" @mouseleave="showDebugMenu = false">
|
|
|
|
|
<button class="dropdown-toggle" :class="{ active: isDebugRoute }">
|
|
|
|
|
🔧 Debug
|
|
|
|
|
<span class="arrow">{{ showDebugMenu ? '▼' : '▶' }}</span>
|
|
|
|
|
</button>
|
|
|
|
|
<div v-show="showDebugMenu" class="dropdown-menu">
|
|
|
|
|
<router-link to="/logs" @click="showDebugMenu = false">📋 Logs</router-link>
|
|
|
|
|
<router-link to="/upnp" @click="showDebugMenu = false">🎵 UPnP Explorer</router-link>
|
|
|
|
|
<router-link to="/covers-cache" @click="showDebugMenu = false">🎨 Cover Cache</router-link>
|
2025-10-17 12:16:39 +02:00
|
|
|
<router-link to="/api-explorer" @click="showDebugMenu = false">🌐 API Explorer</router-link>
|
2025-10-11 00:33:13 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-09-23 20:54:50 +02:00
|
|
|
</nav>
|
2025-10-11 00:33:13 +02:00
|
|
|
<main class="main-content">
|
|
|
|
|
<router-view />
|
|
|
|
|
</main>
|
2025-09-23 20:54:50 +02:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2025-10-11 00:33:13 +02:00
|
|
|
import { ref, computed } from 'vue'
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
const showDebugMenu = ref(false)
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
|
|
const isDebugRoute = computed(() => {
|
2025-10-17 12:16:39 +02:00
|
|
|
return ['/logs', '/upnp', '/covers-cache', '/api-explorer'].includes(route.path)
|
2025-10-11 00:33:13 +02:00
|
|
|
})
|
2025-09-23 20:54:50 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2025-10-11 00:33:13 +02:00
|
|
|
.app-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-nav {
|
2025-09-23 20:54:50 +02:00
|
|
|
background: #333;
|
2025-10-11 00:33:13 +02:00
|
|
|
width: 100%;
|
|
|
|
|
padding: 0.75rem 1rem;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-nav a {
|
|
|
|
|
color: #eee;
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-nav a:hover {
|
|
|
|
|
background: #555;
|
|
|
|
|
color: #fff;
|
2025-09-23 20:54:50 +02:00
|
|
|
}
|
2025-10-11 00:33:13 +02:00
|
|
|
|
|
|
|
|
.main-nav a.router-link-active {
|
|
|
|
|
background: #569cd6;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dropdown menu */
|
|
|
|
|
.dropdown {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
2025-09-23 20:54:50 +02:00
|
|
|
color: #eee;
|
2025-10-11 00:33:13 +02:00
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-toggle:hover {
|
|
|
|
|
background: #555;
|
|
|
|
|
color: #fff;
|
2025-09-23 20:54:50 +02:00
|
|
|
}
|
2025-10-11 00:33:13 +02:00
|
|
|
|
|
|
|
|
.dropdown-toggle.active {
|
|
|
|
|
background: #569cd6;
|
|
|
|
|
color: #fff;
|
2025-09-23 20:54:50 +02:00
|
|
|
font-weight: bold;
|
2025-10-11 00:33:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-toggle .arrow {
|
|
|
|
|
font-size: 0.7em;
|
|
|
|
|
transition: transform 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 100%;
|
|
|
|
|
left: 0;
|
|
|
|
|
background: #2d2d2d;
|
|
|
|
|
border: 1px solid #555;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
|
|
|
min-width: 200px;
|
2025-10-12 21:39:20 +02:00
|
|
|
margin-top: 0;
|
2025-10-11 00:33:13 +02:00
|
|
|
z-index: 1001;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu a {
|
|
|
|
|
padding: 0.75rem 1rem;
|
|
|
|
|
color: #eee;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu a:hover {
|
|
|
|
|
background: #555;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu a.router-link-active {
|
|
|
|
|
background: #569cd6;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Responsive pour petits écrans */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.main-nav {
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-nav a {
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
min-width: 180px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-menu a {
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
padding: 0.6rem 0.8rem;
|
|
|
|
|
}
|
2025-09-23 20:54:50 +02:00
|
|
|
}
|
|
|
|
|
</style>
|