1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-29 16:52:29 +00:00
This commit is contained in:
2019-03-23 20:53:02 +01:00
parent c26443b6f8
commit c044cefc26
25 changed files with 420 additions and 331 deletions

View File

@ -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()
}
}