2022-10-13 19:02:40 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
2024-08-12 19:05:13 +00:00
|
|
|
import StatusQ.Core 0.1
|
2022-10-13 19:02:40 +00:00
|
|
|
import AppLayouts.Profile.views 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
AboutView {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
contentWidth: parent.width
|
|
|
|
|
|
|
|
store: QtObject {
|
2023-07-26 14:34:21 +00:00
|
|
|
readonly property bool isProduction: ctrlProduction.checked
|
2023-02-07 14:21:32 +00:00
|
|
|
|
2022-10-13 19:02:40 +00:00
|
|
|
function checkForUpdates() {
|
|
|
|
logs.logEvent("store::checkForUpdates")
|
|
|
|
}
|
|
|
|
|
|
|
|
function getCurrentVersion() {
|
2023-07-26 14:34:21 +00:00
|
|
|
logs.logEvent("store::getCurrentVersion")
|
|
|
|
return isProduction ? "0.13.2" : "45784cf0c"
|
|
|
|
}
|
|
|
|
|
|
|
|
function getStatusGoVersion() {
|
|
|
|
logs.logEvent("store::getStatusGoVersion")
|
|
|
|
return "0.162.9"
|
2022-10-13 19:02:40 +00:00
|
|
|
}
|
|
|
|
|
2024-08-12 19:05:13 +00:00
|
|
|
function qtRuntimeVersion() {
|
|
|
|
return SystemUtils.qtRuntimeVersion()
|
|
|
|
}
|
|
|
|
|
2022-10-13 19:02:40 +00:00
|
|
|
function getReleaseNotes() {
|
|
|
|
logs.logEvent("store::getReleaseNotes")
|
2023-07-26 14:34:21 +00:00
|
|
|
const link = isProduction ? "https://github.com/status-im/status-desktop/releases/tag/%1" :
|
|
|
|
"https://github.com/status-im/status-desktop/commit/%1"
|
|
|
|
|
|
|
|
openLink(link.arg(getCurrentVersion()))
|
2022-10-13 19:02:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function openLink(url) {
|
|
|
|
logs.logEvent("store::openLink", ["url"], arguments)
|
2023-07-26 14:34:21 +00:00
|
|
|
Qt.openUrlExternally(url)
|
2022-10-13 19:02:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-26 14:34:21 +00:00
|
|
|
Switch {
|
|
|
|
id: ctrlProduction
|
2022-10-13 19:02:40 +00:00
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
2023-07-26 14:34:21 +00:00
|
|
|
text: "Production"
|
|
|
|
checked: true
|
2022-10-13 19:02:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-31 12:21:14 +00:00
|
|
|
// category: Views
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=1159%3A114479
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=1684%3A127762
|