1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: logic rewrite

WIP: adding loaders
This commit is contained in:
Chris Josten 2021-03-24 20:04:03 +01:00
parent b9b08ab384
commit 2360b261f7
1769 changed files with 124903 additions and 1963 deletions

View file

@ -4,7 +4,7 @@ set(sailfin_SOURCES
qt5_add_resources(sailfin_RESOURCES qml.qrc)
add_executable(sailfin ${sailfin_SOURCES} ${sailfin_RESOURCES})
target_link_libraries(sailfin PUBLIC Qt5::Gui Qt5::Qml Qt5::Quick jellyfin-qt)
target_link_libraries(sailfin PUBLIC Qt5::Gui Qt5::Qml Qt5::Quick JellyfinQt)
install(TARGETS sailfin
RUNTIME DESTINATION bin

View file

@ -16,5 +16,7 @@
<file>qml/pages/setup/LoginPage.qml</file>
<file>qml/pages/MainPage.qml</file>
<file>qml/pages/DetailPage.qml</file>
<file>qml/ApiClient.qml</file>
<file>qml/qmldir</file>
</qresource>
</RCC>

View file

@ -0,0 +1,7 @@
pragma Singleton
import QtQuick 2.12
import nl.netsoj.chris.Jellyfin 1.0 as J
J.ApiClient {
supportedCommands: [J.GeneralCommandType.Play]
}

View file

@ -2,10 +2,11 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import nl.netsoj.chris.Jellyfin 1.0
import nl.netsoj.chris.Jellyfin 1.0 as J
import "components"
import ".."
import "."
ApplicationWindow {
id: appWindow

View file

@ -2,7 +2,7 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import nl.netsoj.chris.Jellyfin 1.0
import nl.netsoj.chris.Jellyfin 1.0 as J
import "../components"
import "../.."
@ -18,7 +18,7 @@ Page {
}
}
UserViewModel {
J.UserViewModel {
id: mediaLibraryModel
apiClient: ApiClient
}
@ -33,7 +33,7 @@ Page {
model: mediaLibraryModel
Column {
width: parent.width
UserItemLatestModel {
J.UserItemLatestModel {
id: userItemModel
apiClient: ApiClient
parentId: model.id

View file

@ -1,10 +1,11 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import nl.netsoj.chris.Jellyfin 1.0
import nl.netsoj.chris.Jellyfin 1.0 as J
import "../../components"
import "../../.."
import "../.."
Page {
property string loginMessage

View file

@ -1,10 +1,11 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import nl.netsoj.chris.Jellyfin 1.0
import nl.netsoj.chris.Jellyfin 1.0 as J
import "../../components"
import "../../.."
import "../.."
Page {
property string selectedServerName
@ -52,7 +53,7 @@ Page {
}
}
ServerDiscoveryModel {
J.ServerDiscoveryModel {
id: discoveryModel
}

1
qtquick/qml/qmldir Normal file
View file

@ -0,0 +1 @@
singleton ApiClient 1.0 ApiClient.qml