mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-29 08:42:29 +00:00
UP
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import QtQuick 2.4
|
||||
import QtQuick.Layouts 1.1
|
||||
import Ubuntu.Components 1.3
|
||||
import Gpg 1.0
|
||||
|
||||
import "components"
|
||||
|
||||
@ -23,7 +22,6 @@ MainView {
|
||||
"pages/PasswordList.qml")))
|
||||
}
|
||||
Component.onCompleted: {
|
||||
Gpg.importKey("password-store/public.key")
|
||||
Gpg.getAllKeysId()
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -2,30 +2,30 @@ pragma Singleton
|
||||
import QtQuick 2.4
|
||||
|
||||
Item {
|
||||
id: manifest
|
||||
property string name : ""
|
||||
property string description : ""
|
||||
property string architecture : ""
|
||||
property string title : ""
|
||||
property string version : ""
|
||||
property string maintainer : ""
|
||||
property string framework : ""
|
||||
|
||||
id: manifest
|
||||
property string name: ""
|
||||
property string description: ""
|
||||
property string architecture: ""
|
||||
property string title: ""
|
||||
property string version: ""
|
||||
property string maintainer: ""
|
||||
property string framework: ""
|
||||
|
||||
Component.onCompleted: {
|
||||
var xhr = new XMLHttpRequest;
|
||||
xhr.open("GET", "../../manifest.json");
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == XMLHttpRequest.DONE) {
|
||||
var mJson = JSON.parse(xhr.responseText);
|
||||
manifest.name = mJson.name
|
||||
manifest.description = mJson.description
|
||||
manifest.architecture = mJson.architecture
|
||||
manifest.title = mJson.title
|
||||
manifest.version = mJson.version
|
||||
manifest.maintainer = mJson.maintainer
|
||||
manifest.framework = mJson.framework
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
}
|
||||
var xhr = new XMLHttpRequest
|
||||
xhr.open("GET", "../../manifest.json")
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == XMLHttpRequest.DONE) {
|
||||
var mJson = JSON.parse(xhr.responseText)
|
||||
manifest.name = mJson.name
|
||||
manifest.description = mJson.description
|
||||
manifest.architecture = mJson.architecture
|
||||
manifest.title = mJson.title
|
||||
manifest.version = mJson.version
|
||||
manifest.maintainer = mJson.maintainer
|
||||
manifest.framework = mJson.framework
|
||||
}
|
||||
}
|
||||
xhr.send()
|
||||
}
|
||||
}
|
||||
|
@ -19,16 +19,17 @@ Page {
|
||||
Flow {
|
||||
spacing: units.gu(3)
|
||||
anchors.fill: parent
|
||||
Rectangle {
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: units.gu(1)
|
||||
}
|
||||
Text {
|
||||
Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
width: parent.width
|
||||
height: units.gu(4)
|
||||
text: i18n.tr('<b><font size="6">%1</font></b>').arg(Manifest.title)
|
||||
text: i18n.tr('<b><font size="6">%1</font></b>').arg(
|
||||
Manifest.title)
|
||||
}
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
@ -40,40 +41,44 @@ Page {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
}
|
||||
Text {
|
||||
Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
width: parent.width
|
||||
height: units.gu(6)
|
||||
text: i18n.tr('<font size="4">Maintainer<br>%1</font>').arg(Manifest.maintainer)
|
||||
text: i18n.tr('<font size="4">Maintainer<br>%1</font>').arg(
|
||||
Manifest.maintainer)
|
||||
}
|
||||
Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
width: parent.width
|
||||
height: units.gu(6)
|
||||
text: i18n.tr('<font size="4">Version<br>%1</font><br>%2@%3').arg(Manifest.version).arg(Manifest.framework).arg(Manifest.architecture)
|
||||
text: i18n.tr(
|
||||
'<font size="4">Version<br>%1</font><br>%2@%3').arg(
|
||||
Manifest.version).arg(Manifest.framework).arg(
|
||||
Manifest.architecture)
|
||||
}
|
||||
|
||||
}
|
||||
Flow {
|
||||
spacing: 2
|
||||
Flow {
|
||||
spacing: 2
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
Link {
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
Link {
|
||||
url: "https://github.com/QRouland/UTPass/issues"
|
||||
text: i18n.tr('Suggest improvement(s) or report a bug(s)')
|
||||
}
|
||||
Link {
|
||||
Link {
|
||||
url: "https://github.com/QRouland/UTPass"
|
||||
text: i18n.tr('Access to the source code')
|
||||
}
|
||||
Text {
|
||||
width: parent.width
|
||||
Text {
|
||||
width: parent.width
|
||||
height: units.gu(3)
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: i18n.tr('<font size="2">Released under the terms of the GNU GPL v3</font>')
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: i18n.tr(
|
||||
'<font size="2">Released under the terms of the GNU GPL v3</font>')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user