Merge pull request #912 from jitsi/remove-download-logs-link
Remove download logs link
This commit is contained in:
commit
e7cbacf9a2
|
@ -711,6 +711,30 @@ export default {
|
||||||
return room.getLogs();
|
return room.getLogs();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Download logs, a function that can be called from console while
|
||||||
|
* debugging.
|
||||||
|
* @param filename (optional) specify target filename
|
||||||
|
*/
|
||||||
|
saveLogs (filename = 'meetlog.json') {
|
||||||
|
// this can be called from console and will not have reference to this
|
||||||
|
// that's why we reference the global var
|
||||||
|
let logs = APP.conference.getLogs();
|
||||||
|
let data = encodeURIComponent(JSON.stringify(logs, null, ' '));
|
||||||
|
|
||||||
|
let elem = document.createElement('a');
|
||||||
|
|
||||||
|
elem.download = filename;
|
||||||
|
elem.href = 'data:application/json;charset=utf-8,\n' + data;
|
||||||
|
elem.dataset.downloadurl
|
||||||
|
= ['text/json', elem.download, elem.href].join(':');
|
||||||
|
elem.dispatchEvent(new MouseEvent('click', {
|
||||||
|
view: window,
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: false
|
||||||
|
}));
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exposes a Command(s) API on this instance. It is necessitated by (1) the
|
* Exposes a Command(s) API on this instance. It is necessitated by (1) the
|
||||||
* desire to keep room private to this instance and (2) the need of other
|
* desire to keep room private to this instance and (2) the need of other
|
||||||
|
|
|
@ -81,15 +81,6 @@ form {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#downloadlog {
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 5;
|
|
||||||
left: 5;
|
|
||||||
overflow: visible;
|
|
||||||
color: rgba(255,255,255,.50);
|
|
||||||
}
|
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background-color: #00ccff;
|
background-color: #00ccff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,9 +255,6 @@
|
||||||
.fa-road:before {
|
.fa-road:before {
|
||||||
content: "\f018";
|
content: "\f018";
|
||||||
}
|
}
|
||||||
.fa-download:before {
|
|
||||||
content: "\f019";
|
|
||||||
}
|
|
||||||
.fa-arrow-circle-o-down:before {
|
.fa-arrow-circle-o-down:before {
|
||||||
content: "\f01a";
|
content: "\f01a";
|
||||||
}
|
}
|
||||||
|
@ -842,9 +839,6 @@
|
||||||
.fa-exchange:before {
|
.fa-exchange:before {
|
||||||
content: "\f0ec";
|
content: "\f0ec";
|
||||||
}
|
}
|
||||||
.fa-cloud-download:before {
|
|
||||||
content: "\f0ed";
|
|
||||||
}
|
|
||||||
.fa-cloud-upload:before {
|
.fa-cloud-upload:before {
|
||||||
content: "\f0ee";
|
content: "\f0ee";
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,6 @@
|
||||||
.icon-chat:before {
|
.icon-chat:before {
|
||||||
content: "\e906";
|
content: "\e906";
|
||||||
}
|
}
|
||||||
.icon-download:before {
|
|
||||||
content: "\e902";
|
|
||||||
}
|
|
||||||
.icon-edit:before {
|
.icon-edit:before {
|
||||||
content: "\e907";
|
content: "\e907";
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,7 +212,6 @@
|
||||||
<input type="checkbox" id="followMeCheckBox">
|
<input type="checkbox" id="followMeCheckBox">
|
||||||
<label class="followMeLabel" for="followMeCheckBox" data-i18n="settings.followMe"></label>
|
<label class="followMeLabel" for="followMeCheckBox" data-i18n="settings.followMe"></label>
|
||||||
</div>
|
</div>
|
||||||
<a id="downloadlog" data-container="body"><i class="icon-download"></i></a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"contactlist": "On Call (__participants__)",
|
"contactlist": "On Call (__participants__)",
|
||||||
"connectionsettings": "Connection Settings",
|
"connectionsettings": "Connection Settings",
|
||||||
"poweredby": "powered by",
|
"poweredby": "powered by",
|
||||||
"downloadlogs": "Download logs",
|
|
||||||
"feedback": "Give us your feedback",
|
"feedback": "Give us your feedback",
|
||||||
"roomUrlDefaultMsg": "Your conference is currently being created...",
|
"roomUrlDefaultMsg": "Your conference is currently being created...",
|
||||||
"me": "me",
|
"me": "me",
|
||||||
|
|
|
@ -486,17 +486,8 @@ UI.start = function () {
|
||||||
$('#noticeText').text(config.noticeMessage);
|
$('#noticeText').text(config.noticeMessage);
|
||||||
$('#notice').css({display: 'block'});
|
$('#notice').css({display: 'block'});
|
||||||
}
|
}
|
||||||
$("#downloadlog").click(function (event) {
|
|
||||||
let logs = APP.conference.getLogs();
|
|
||||||
let data = encodeURIComponent(JSON.stringify(logs, null, ' '));
|
|
||||||
|
|
||||||
let elem = event.target.parentNode;
|
|
||||||
elem.download = 'meetlog.json';
|
|
||||||
elem.href = 'data:application/json;charset=utf-8,\n' + data;
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
$("#mainToolbarContainer").css("display", "none");
|
$("#mainToolbarContainer").css("display", "none");
|
||||||
$("#downloadlog").css("display", "none");
|
|
||||||
FilmStrip.setupFilmStripOnly();
|
FilmStrip.setupFilmStripOnly();
|
||||||
messageHandler.enableNotifications(false);
|
messageHandler.enableNotifications(false);
|
||||||
JitsiPopover.enabled = false;
|
JitsiPopover.enabled = false;
|
||||||
|
|
Loading…
Reference in New Issue