Files
Jellyfin-Freebox/app/Jellyfin.qml
T
stilobique b1ca2a7cff
CI / Release Gitea (push) Successful in 32s
CI / Vérifications et paquet (push) Successful in 47s
Refactoring: move all apps inside a sub folder
2026-11-08 14:28:28 +01:00

48 lines
1.1 KiB
QML

import QtQuick 2.5
import fbx.application 1.0
import "Components"
import "Shared"
import "Core"
Application {
Rectangle {
anchors.fill: parent
color: Theme.background
}
Session {
id: appSession
}
Row {
anchors.fill: parent
// Masqué sur les écrans du catalogue (Page.fullscreen).
Logo {
id: logo
visible: !navigator.fullscreen
width: visible ? parent.width / 3 : 0
height: parent.height
}
Navigator {
id: navigator
width: parent.width - logo.width
height: parent.height
session: appSession
focus: true
}
}
// Appelée par le runtime Freebox (ouverture de l'app via une URL / un lien profond).
// Pas encore utilisée : la déclarer évite l'avertissement au démarrage.
function handleUrl(url) {
console.log("handleUrl:", url);
}
Component.onCompleted: {
navigator.push("ServerSelect");
appSession.loadDevConfig(Qt.resolvedUrl("dev-config.json"));
}
}