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")
|
2024-12-04 22:42:48 +00:00
|
|
|
return isProduction ? "0.13.2" : "0.13.2-dev"
|
|
|
|
}
|
|
|
|
|
|
|
|
function getGitCommit() {
|
|
|
|
logs.logEvent("store::getGitCommit")
|
|
|
|
return "92b88e8a3e1d48f2c39d1db6e4d577ebbe21f7a9"
|
2023-07-26 14:34:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getStatusGoVersion() {
|
|
|
|
logs.logEvent("store::getStatusGoVersion")
|
2024-12-04 22:42:48 +00:00
|
|
|
return "v0.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")
|
2024-12-04 22:42:48 +00:00
|
|
|
const link = isProduction ? "https://github.com/status-im/status-desktop/releases/tag/%1".arg(getCurrentVersion()) :
|
|
|
|
"https://github.com/status-im/status-desktop/commit/%1".arg(getGitCommit())
|
2023-07-26 14:34:21 +00:00
|
|
|
|
2024-12-04 22:42:48 +00:00
|
|
|
openLink(link)
|
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
|