Bump buildroot to 2019.02

This commit is contained in:
2019-03-28 22:49:48 +01:00
parent 5598b1b762
commit 920d307141
5121 changed files with 78550 additions and 46132 deletions

View File

@@ -1,52 +1,51 @@
function load_activity(feedurl, divid) {
var yqlURL = "https://query.yahooapis.com/v1/public/yql";
var yqlQS = "?q=select%20entry%20from%20xml%20where%20url%20%3D%20'";
var yqlOPTS = "'%20limit%2010&format=json&callback=";
var container = document.getElementById(divid);
var url = yqlURL + yqlQS + encodeURIComponent(feedurl) + yqlOPTS;
$.getJSON(url, function(data){
var result = data.query.results;
var loaded = 0;
var nb_display = 8;
let container = document.getElementById(divid);
$.ajax({
url: "https://cors.io/?" + feedurl
})
.done(function(data){
let x2js = new X2JS();
let result = x2js.xml_str2json(data);
let loaded = 0;
let nb_display = 8;
if (result==null) return;
for (var i = 0; i < result.feed.length; i++) {
var entry = result.feed[i].entry;
if (entry.title.indexOf("git commit") != -1)
for (let i = 0; i < result.feed.entry.length; i++) {
let entry = result.feed.entry[i];
if (entry.title.indexOf("git commit") !== -1)
continue;
loaded += 1;
if (loaded > nb_display)
break;
var div = document.createElement("p");
var link = document.createElement("a");
var d = new Date(entry.published);
var data = '[' + d.toLocaleDateString() + '] ' + entry.title
var text = document.createTextNode(data);
let div = document.createElement("p");
let link = document.createElement("a");
let d = new Date(entry.published);
let data = '[' + d.toLocaleDateString() + '] ' + entry.title;
let text = document.createTextNode(data);
link.appendChild(text);
link.title = entry.title;
link.href = entry.link.href;
link.href = entry.link._href;
div.appendChild(link);
container.appendChild(div);
}
var empty = nb_display - loaded;
for (var i = 0; i < empty; i++) {
let empty = nb_display - loaded;
for (let i = 0; i < empty; i++) {
container.appendChild(document.createElement("p"));
}
});
}
function google_analytics() {
var _gaq = _gaq || [];
let _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21761074-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
var ga = document.createElement('script');
let ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
let s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
}
@@ -55,11 +54,11 @@ function showTooltip(elem, msg) {
elem.setAttribute('aria-label', msg);
}
var clipboard = new Clipboard('.btn');
let clipboard = new Clipboard('.btn');
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
});
clipboard.on('success', function(e) {
e.clearSelection();
@@ -68,8 +67,8 @@ clipboard.on('success', function(e) {
$(function() {
$('a[href*=\\#]:not([href=\\#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) {
let target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
@@ -82,9 +81,9 @@ $(function() {
});
jQuery(document).ready(function($) {
var url = window.location.href;
let url = window.location.href;
// Get the basename of the URL
url = url.split(/[\\/]/).pop()
url = url.split(/[\\/]/).pop();
$('.nav a[href="/' + url + '"]').parent().addClass('active');
load_activity("http://buildroot-busybox.2317881.n4.nabble.com/Buildroot-busybox-ft2.xml", "mailing-list-activity");