mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-30 00:49:53 +03:00
Remove logging
This commit is contained in:
parent
f364564d0e
commit
43af3ffdcf
1 changed files with 7 additions and 9 deletions
|
@ -44,11 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
</material-card>
|
</material-card>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
console.log("taghistory script area");
|
|
||||||
|
|
||||||
registryUI.taghistory.instance = this;
|
registryUI.taghistory.instance = this;
|
||||||
registryUI.taghistory.display = function () {
|
registryUI.taghistory.display = function () {
|
||||||
var oReq = new Http();
|
let oReq = new Http();
|
||||||
registryUI.taghistory.instance.update();
|
registryUI.taghistory.instance.update();
|
||||||
oReq.addEventListener('load', function () {
|
oReq.addEventListener('load', function () {
|
||||||
registryUI.taghistory.elements = [];
|
registryUI.taghistory.elements = [];
|
||||||
|
@ -76,23 +75,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}
|
}
|
||||||
|
|
||||||
value = day + "." + month + "." + year + " | " + hours + ":" + minutes + ":" + seconds + "." + milliSeconds;
|
value = day + "." + month + "." + year + " | " + hours + ":" + minutes + ":" + seconds + "." + milliSeconds;
|
||||||
} else if (attribute == "container_config" || attribute == "config") {
|
} else if (attribute === "container_config" || attribute === "config") {
|
||||||
value = "";
|
value = "";
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.status == 200) {
|
if (this.status == 200) {
|
||||||
var elements = JSON.parse(this.responseText).history || [];
|
let elements = JSON.parse(this.responseText).history || [];
|
||||||
for (var index in elements) {
|
for (var index in elements) {
|
||||||
var parsedNestedElements = JSON.parse(elements[index].v1Compatibility || {});
|
let parsedNestedElements = JSON.parse(elements[index].v1Compatibility || {});
|
||||||
|
|
||||||
var guiElements = [];
|
let guiElements = [];
|
||||||
var guiElement = {};
|
let guiElement = {};
|
||||||
|
|
||||||
for (var attribute in parsedNestedElements) {
|
for (var attribute in parsedNestedElements) {
|
||||||
if (parsedNestedElements.hasOwnProperty(attribute)) {
|
if (parsedNestedElements.hasOwnProperty(attribute)) {
|
||||||
var value = parsedNestedElements[attribute];
|
let value = parsedNestedElements[attribute];
|
||||||
|
|
||||||
value = modifySpecificAttributeTypes(value);
|
value = modifySpecificAttributeTypes(value);
|
||||||
guiElement = {
|
guiElement = {
|
||||||
|
@ -120,7 +119,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
registryUI.taghistory.loadend = true;
|
registryUI.taghistory.loadend = true;
|
||||||
registryUI.taghistory.instance.update();
|
registryUI.taghistory.instance.update();
|
||||||
});
|
});
|
||||||
console.log("Trying to create GET call with image='" + registryUI.taghistory.image + "' and tag='" + registryUI.taghistory.tag + "'")
|
|
||||||
oReq.open('GET', registryUI.url() + '/v2/' + registryUI.taghistory.image + '/manifests/' + registryUI.taghistory.tag);
|
oReq.open('GET', registryUI.url() + '/v2/' + registryUI.taghistory.image + '/manifests/' + registryUI.taghistory.tag);
|
||||||
oReq.send();
|
oReq.send();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue