Refactoring: move all apps inside a sub folder
This commit is contained in:
1 parent
33e4fe0c4e
commit
b1ca2a7cff
41 files changed
+54
-45
No files matched your search
@@ -0,0 +1,47 @@
|
||||
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"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user