2020-01-14 16:47:42 +03:00
|
|
|
import QtQuick 2.2
|
2018-10-23 23:15:59 +03:00
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
|
|
|
|
Page {
|
|
|
|
id: page
|
|
|
|
|
|
|
|
SilicaFlickable {
|
|
|
|
id: flickable
|
|
|
|
anchors.fill: parent
|
2018-12-13 01:10:45 +03:00
|
|
|
contentHeight: column.height + Theme.paddingLarge
|
2018-10-23 23:15:59 +03:00
|
|
|
|
|
|
|
Column {
|
|
|
|
id: column
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
PageHeader {
|
|
|
|
title: qsTr("About")
|
|
|
|
}
|
2018-11-27 11:58:21 +03:00
|
|
|
|
2020-08-22 12:28:31 +03:00
|
|
|
SectionHeader {
|
|
|
|
text: qsTr("Debug")
|
|
|
|
visible: debug
|
|
|
|
}
|
2018-12-11 01:14:15 +03:00
|
|
|
Label {
|
|
|
|
id: debugModeLabel
|
|
|
|
x: Theme.horizontalPageMargin
|
|
|
|
width: parent.width - 2*x
|
|
|
|
visible: debug
|
|
|
|
text: "<p><strong>" + qsTr("The app is running in DEBUG mode!") + "</strong></p>"
|
|
|
|
}
|
|
|
|
|
2018-11-27 14:08:44 +03:00
|
|
|
/*DetailItem {
|
2018-11-27 11:58:21 +03:00
|
|
|
label: qsTr("Name")
|
|
|
|
value: Qt.application.name
|
2018-11-27 14:08:44 +03:00
|
|
|
}*/
|
2021-01-02 14:34:31 +03:00
|
|
|
Image {
|
|
|
|
width: Theme.iconSizeExtraLarge
|
|
|
|
height: Theme.iconSizeExtraLarge
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
source: "../img/icon-launcher-nextcloudnotes.svg"
|
|
|
|
}
|
|
|
|
|
2018-11-27 14:08:44 +03:00
|
|
|
SectionHeader {
|
|
|
|
text: "Nextcloud " + qsTr("Notes") + " v" + Qt.application.version
|
2018-11-27 11:58:21 +03:00
|
|
|
}
|
2018-11-27 14:08:44 +03:00
|
|
|
LinkedLabel {
|
|
|
|
id: nextcloudnotesLabel
|
|
|
|
x: Theme.horizontalPageMargin
|
|
|
|
width: parent.width - 2*x
|
2018-12-11 01:14:15 +03:00
|
|
|
text: "<p>" + qsTr("This app is released under the MIT license.") + "</p>" +
|
|
|
|
//: Pre-Showdown Github link
|
|
|
|
"<p>" + qsTr("The source code is available on") + " <a href=\"https://github.com/scharel/harbour-nextcloudnotes\">GitHub</a>" +
|
2021-01-02 14:34:31 +03:00
|
|
|
//: Post-Showdown Github link
|
|
|
|
qsTr(".") + "</p>"
|
2018-11-27 11:58:21 +03:00
|
|
|
}
|
2018-11-27 14:08:44 +03:00
|
|
|
Button {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
text: qsTr("MIT License")
|
|
|
|
onClicked: pageStack.push(Qt.resolvedUrl("MITLicense.qml"))
|
|
|
|
}
|
|
|
|
|
|
|
|
SectionHeader {
|
|
|
|
text: "ShowdownJS"
|
2018-11-27 11:58:21 +03:00
|
|
|
}
|
|
|
|
LinkedLabel {
|
|
|
|
id: showdownLabel
|
|
|
|
x: Theme.horizontalPageMargin
|
|
|
|
width: parent.width - 2*x
|
2018-12-11 01:14:15 +03:00
|
|
|
//: Pre-Showdown Github link
|
|
|
|
text: "<p>" + qsTr("This app uses") + " <a href=\"https://github.com/showdownjs/showdown/tree/1.9.0\">ShowdownJS v1.9</a> " +
|
|
|
|
//: Post-Showdown Github link
|
|
|
|
qsTr("to convert Markdown to HTML.") + "</p>" +
|
|
|
|
"<p> " + qsTr("Showdown 1.x is released under GPL 2.0.") + "</p>"
|
2018-11-27 14:08:44 +03:00
|
|
|
}
|
|
|
|
Button {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
text: qsTr("GPL 2.0 License")
|
|
|
|
onClicked: pageStack.push(Qt.resolvedUrl("GPLLicense.qml"))
|
2018-11-27 11:58:21 +03:00
|
|
|
}
|
2018-10-23 23:15:59 +03:00
|
|
|
}
|
|
|
|
|
2018-11-18 00:28:25 +03:00
|
|
|
ViewPlaceholder {
|
2018-11-27 14:08:44 +03:00
|
|
|
enabled: false
|
2018-11-18 00:28:25 +03:00
|
|
|
text: qsTr("Nextcloud Notes")
|
|
|
|
hintText: qsTr("for Sailfish OS")
|
|
|
|
}
|
2018-10-23 23:15:59 +03:00
|
|
|
|
2018-11-18 00:28:25 +03:00
|
|
|
VerticalScrollDecorator {}
|
2018-10-23 23:15:59 +03:00
|
|
|
}
|
2018-12-04 19:24:45 +03:00
|
|
|
|
2021-04-12 19:58:39 +03:00
|
|
|
allowedOrientations: appWindow.allowedOrientations
|
2018-10-23 23:15:59 +03:00
|
|
|
}
|