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:
parent
b9b08ab384
commit
2360b261f7
1769 changed files with 124903 additions and 1963 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
7
qtquick/qml/ApiClient.qml
Normal file
7
qtquick/qml/ApiClient.qml
Normal 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]
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
1
qtquick/qml/qmldir
Normal file
|
@ -0,0 +1 @@
|
|||
singleton ApiClient 1.0 ApiClient.qml
|
Loading…
Add table
Add a link
Reference in a new issue