Téléverser les fichiers vers "workstation-setup/src"
This commit is contained in:
@@ -339,26 +339,32 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
spacing: 2
|
||||
Layout.fillHeight: true
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: modelData.title
|
||||
color: "white"
|
||||
font.pixelSize: 14
|
||||
font.weight: index === root.currentStep ? Font.DemiBold : Font.Medium
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 2
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: modelData.subtitle
|
||||
color: "#b9cee5"
|
||||
font.pixelSize: 11
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
Controls.Label {
|
||||
width: parent.width
|
||||
text: modelData.title
|
||||
color: "white"
|
||||
font.pixelSize: 14
|
||||
font.weight: index === root.currentStep ? Font.DemiBold : Font.Medium
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
width: parent.width
|
||||
text: modelData.subtitle
|
||||
color: "#b9cee5"
|
||||
font.pixelSize: 11
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -608,34 +614,72 @@ Kirigami.ApplicationWindow {
|
||||
text: "Saisissez le mot de passe que vous venez de choisir et le PIN de la YubiKey. Aucune recovery key n'est demandée dans ce workflow."
|
||||
}
|
||||
|
||||
InfoBox {
|
||||
visible: !provisioning.busy
|
||||
iconText: "☝"
|
||||
text: "Après avoir lancé l'association, l'assistant vous indiquera précisément quand toucher la YubiKey. Plusieurs touchers peuvent être nécessaires."
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: fidoLiveStatus
|
||||
visible: provisioning.busy && root.currentStep === 3
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: touchInstruction.implicitHeight + 32
|
||||
implicitHeight: fidoLiveRow.implicitHeight + 32
|
||||
radius: 12
|
||||
color: "#fffbeb"
|
||||
border.width: 2
|
||||
border.color: "#f59e0b"
|
||||
color: provisioning.fidoTouchRequired ? "#fff7ed" : "#eff6ff"
|
||||
border.width: provisioning.fidoTouchRequired ? 3 : 1
|
||||
border.color: provisioning.fidoTouchRequired ? "#f97316" : "#bfdbfe"
|
||||
|
||||
SequentialAnimation on opacity {
|
||||
running: fidoLiveStatus.visible && provisioning.fidoTouchRequired
|
||||
loops: Animation.Infinite
|
||||
NumberAnimation { from: 1.0; to: 0.58; duration: 520 }
|
||||
NumberAnimation { from: 0.58; to: 1.0; duration: 520 }
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: fidoLiveRow
|
||||
anchors.fill: parent
|
||||
anchors.margins: 16
|
||||
spacing: 14
|
||||
|
||||
Controls.Label {
|
||||
text: "☝"
|
||||
font.pixelSize: 25
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Controls.BusyIndicator {
|
||||
visible: !provisioning.fidoTouchRequired
|
||||
running: visible
|
||||
Layout.preferredWidth: 30
|
||||
Layout.preferredHeight: 30
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
id: touchInstruction
|
||||
visible: provisioning.fidoTouchRequired
|
||||
text: "☝"
|
||||
font.pixelSize: 30
|
||||
Layout.alignment: Qt.AlignTop
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
text: "IMPORTANT : après avoir cliqué sur « Associer la YubiKey », surveillez la clé. Elle peut clignoter plusieurs fois. Touchez-la à CHAQUE clignotement jusqu'à la fin de l'association."
|
||||
wrapMode: Text.WordWrap
|
||||
color: "#92400e"
|
||||
font.pixelSize: 14
|
||||
font.weight: Font.DemiBold
|
||||
lineHeight: 1.25
|
||||
spacing: 4
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: provisioning.fidoTouchRequired
|
||||
? "TOUCHEZ LA YUBIKEY MAINTENANT"
|
||||
: "Association FIDO2 en cours"
|
||||
wrapMode: Text.WordWrap
|
||||
color: provisioning.fidoTouchRequired ? "#9a3412" : "#1d4ed8"
|
||||
font.pixelSize: provisioning.fidoTouchRequired ? 18 : 15
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: provisioning.fidoStatus
|
||||
wrapMode: Text.WordWrap
|
||||
color: provisioning.fidoTouchRequired ? "#9a3412" : "#334155"
|
||||
font.pixelSize: 13
|
||||
lineHeight: 1.2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user