Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F241921
ManiphestPage.qml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ManiphestPage.qml
View Options
import
QtQuick
2.1
import
QtQuick
.
Controls
2.3
as
QQC2
import
org
.
kde
.
kirigami
2.10
as
Kirigami
import
Qt
.
labs
.
settings
1.0
import
"qrc:js/functions.js"
as
ManifoldJS
Kirigami
.
ScrollablePage
{
title:
"Maniphest Tasks"
//Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
Settings
{
id: settings
property
string
phab_url:
"https://phabricator.example.com"
property
string
api_token:
"api-aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
property
string
phab_url:
settings
.
phab_url
// Handle refreshing
supportsRefreshing:
true
onRefreshingChanged:
{
if
(
refreshing
)
{
model
.
clear
();
ManifoldJS
.
refreshManiphestPage
(
settings
.
phab_url
,
settings
.
api_token
);
refreshing
=
false
;
}
}
//Page contents...
ListView
{
id: taskList
model:
ListModel
{
id: model
}
anchors.fill:
parent
delegate:
Kirigami
.
SwipeListItem
{
id: myDelegate
//label: "T" + taskID + ": " + title + " | " + status + " | " + priorityName
QQC2
.
Label
{
text:
"<font color=\""
+
priorityColor
+
"\"><strong><a href='"
+
settings
.
phab_url
+
"/T"
+
taskID
+
"' >T"
+
taskID
+
":</a></strong></font> "
+
title
}
actions:
[
Kirigami
.
Action
{
//iconName: "internet-web-browser"
//iconSource: "qrc:/org/kde/kirigami/icons/internet-web-browser.svg"
iconSource:
"qrc:/org/kde/kirigami/icons/go-next.svg"
// Weirdly stuck in black and white outline, so
//iconColor: transparent
onTriggered:
Qt
.
openUrlExternally
(
settings
.
phab_url
+
"/T"
+
taskID
)
}
]
}
Component.onCompleted:
{
ManifoldJS
.
refreshManiphestPage
(
settings
.
phab_url
,
settings
.
api_token
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sun, Jun 29, 1:34 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
168984
Default Alt Text
ManiphestPage.qml (1 KB)
Attached To
Mode
rMANIFOLD Manifold
Attached
Detach File
Event Timeline
Log In to Comment