Get data from wg show command (#764)

Get data from wg show command
This commit is contained in:
Vladyslav Miachkov 2024-04-28 16:03:41 +03:00 committed by GitHub
parent 5211cdd4c0
commit cf8a0efd0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 165 additions and 4 deletions

View file

@ -766,9 +766,9 @@ PageType {
}
anchors.fill: parent
expandedHeight: root.height * 0.5
expandedContent: ColumnLayout {
id: expandedContent
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
@ -778,6 +778,10 @@ PageType {
spacing: 8
onImplicitHeightChanged: {
clientInfoDrawer.expandedHeight = expandedContent.implicitHeight + 32
}
Connections {
target: clientInfoDrawer
enabled: !GC.isMobile()
@ -788,10 +792,47 @@ PageType {
Header2Type {
Layout.fillWidth: true
Layout.bottomMargin: 24
headerText: clientName
descriptionText: qsTr("Creation date: ") + creationDate
}
ColumnLayout
{
id: textColumn
property string textColor: "#878B91"
Layout.bottomMargin: 24
ParagraphTextType {
color: textColumn.textColor
visible: creationDate
Layout.fillWidth: true
text: qsTr("Creation date: %1").arg(creationDate)
}
ParagraphTextType {
color: textColumn.textColor
visible: latestHandshake
Layout.fillWidth: true
text: qsTr("Latest handshake: %1").arg(latestHandshake)
}
ParagraphTextType {
color: textColumn.textColor
visible: dataReceived
Layout.fillWidth: true
text: qsTr("Data received: %1").arg(dataReceived)
}
ParagraphTextType {
color: textColumn.textColor
visible: dataSent
Layout.fillWidth: true
text: qsTr("Data sent: %1").arg(dataSent)
}
}
Item {