58 lines
1.4 KiB
QML
58 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.components
|
|
import qs.services
|
|
import Caelestia.Config
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
required property var deviceDetails
|
|
|
|
spacing: Tokens.spacing.small / 2
|
|
|
|
StyledText {
|
|
text: qsTr("IP Address")
|
|
}
|
|
|
|
StyledText {
|
|
text: root.deviceDetails?.ipAddress || qsTr("Not available")
|
|
color: Colours.palette.m3outline
|
|
font.pointSize: Tokens.font.size.small
|
|
}
|
|
|
|
StyledText {
|
|
Layout.topMargin: Tokens.spacing.normal
|
|
text: qsTr("Subnet Mask")
|
|
}
|
|
|
|
StyledText {
|
|
text: root.deviceDetails?.subnet || qsTr("Not available")
|
|
color: Colours.palette.m3outline
|
|
font.pointSize: Tokens.font.size.small
|
|
}
|
|
|
|
StyledText {
|
|
Layout.topMargin: Tokens.spacing.normal
|
|
text: qsTr("Gateway")
|
|
}
|
|
|
|
StyledText {
|
|
text: root.deviceDetails?.gateway || qsTr("Not available")
|
|
color: Colours.palette.m3outline
|
|
font.pointSize: Tokens.font.size.small
|
|
}
|
|
|
|
StyledText {
|
|
Layout.topMargin: Tokens.spacing.normal
|
|
text: qsTr("DNS Servers")
|
|
}
|
|
|
|
StyledText {
|
|
text: (root.deviceDetails && root.deviceDetails.dns && root.deviceDetails.dns.length > 0) ? root.deviceDetails.dns.join(", ") : qsTr("Not available")
|
|
color: Colours.palette.m3outline
|
|
font.pointSize: Tokens.font.size.small
|
|
wrapMode: Text.Wrap
|
|
Layout.maximumWidth: parent.width
|
|
}
|
|
}
|