Files
amnezia-client/client/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml
T

71 lines
1.7 KiB
QML
Raw Normal View History

2021-09-24 13:14:35 +03:00
import QtQuick 2.12
import QtQuick.Controls 2.12
2022-07-30 16:20:41 +03:00
import QtQuick.Layouts 1.15
2021-09-24 13:14:35 +03:00
import ProtocolEnum 1.0
import "../"
import "../../Controls"
import "../../Config"
PageProtocolBase {
id: root
protocol: ProtocolEnum.TorWebSite
logic: UiLogic.protocolLogic(protocol)
BackButton {
id: back
}
Caption {
id: caption
2022-07-30 16:20:41 +03:00
text: qsTr("Tor Web Site settings")
2021-09-24 13:14:35 +03:00
}
2022-07-30 16:20:41 +03:00
ColumnLayout {
id: content
enabled: logic.pageEnabled
2021-09-24 13:14:35 +03:00
anchors.top: caption.bottom
2022-07-30 16:20:41 +03:00
anchors.left: root.left
anchors.right: root.right
anchors.bottom: pb_save.top
anchors.margins: 20
2021-09-24 13:14:35 +03:00
anchors.topMargin: 10
2022-07-30 16:20:41 +03:00
RowLayout {
Layout.fillWidth: true
2021-09-24 13:14:35 +03:00
LabelType {
2022-07-30 16:20:41 +03:00
id: lbl_onion
Layout.preferredWidth: 0.3 * root.width - 10
2021-09-24 13:14:35 +03:00
text: qsTr("Web site onion address")
}
TextFieldType {
id: tf_site_address
2022-07-30 16:20:41 +03:00
Layout.fillWidth: true
2021-09-24 13:14:35 +03:00
text: logic.labelTorWebSiteAddressText
readOnly: true
}
2022-07-30 16:20:41 +03:00
}
2021-09-24 13:14:35 +03:00
2022-07-30 16:20:41 +03:00
ShareConnectionButtonCopyType {
Layout.fillWidth: true
Layout.topMargin: 5
copyText: tf_site_address.text
}
RichLabelType {
Layout.fillWidth: true
Layout.topMargin: 15
text: qsTr("Notes:<ul>
<li>Use <a href=\"https://www.torproject.org/download/\">Tor Browser</a> to open this url.</li>
<li>After installation it takes several minutes while your onion site will become available in the Tor Network.</li>
<li>When configuring WordPress set the domain as this onion address.</li>
</ul>
")
2021-09-24 13:14:35 +03:00
}
}
2022-07-30 16:20:41 +03:00
2021-09-24 13:14:35 +03:00
}