mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Merge remote-tracking branch 'origin/kevinv033/OP-910' into next
This commit is contained in:
commit
25dc8d8c02
@ -0,0 +1,41 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>CREDITS Utility</title>
|
||||||
|
<style>
|
||||||
|
body { margin: 40px;}
|
||||||
|
.hidden { display:none; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Author Dialog authorModel Utility</h1>
|
||||||
|
<p>This utility will parse a \n delimited list of names and generate ListElement components for entry into the QML model located in /qml/AuthorsModel.qml.</p>
|
||||||
|
<div class="output"></div>
|
||||||
|
<form onSubmit="javascript:handleForm($('.authors').val()); return false;">
|
||||||
|
<textarea class="authors" rows="30"></textarea>
|
||||||
|
<button type="submit" class="btn">Generate</button>
|
||||||
|
</form>
|
||||||
|
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
||||||
|
<script>
|
||||||
|
function handleForm(str){
|
||||||
|
console.log(str);
|
||||||
|
|
||||||
|
var lines = str.split(/\n/);
|
||||||
|
var texts = [];
|
||||||
|
$('<div class="alert-block alert-info"><strong>Instructions: </strong>Cut/Paste the ListElements below into /qml/AuthorsModel.qml</div><br>').appendTo('.output');
|
||||||
|
for (var i=0; i < lines.length; i++) {
|
||||||
|
// only push this line if it contains a non whitespace character.
|
||||||
|
if (/\S/.test(lines[i])) {
|
||||||
|
texts.push($.trim(lines[i]));
|
||||||
|
}
|
||||||
|
//Make string to append to output
|
||||||
|
var listelement = '<p>ListElement { name: "' + texts[i] + '" }</p>';
|
||||||
|
$(listelement).appendTo('.output');
|
||||||
|
}
|
||||||
|
$('button').detach();
|
||||||
|
$('.authors').detach();
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html
|
@ -56,7 +56,9 @@ Dmytro Poplavskiy
|
|||||||
Eric Price
|
Eric Price
|
||||||
Richard Querin
|
Richard Querin
|
||||||
Randy Ram
|
Randy Ram
|
||||||
|
Philippe Renon
|
||||||
Laurent Ribon
|
Laurent Ribon
|
||||||
|
Mathieu Rondonneau
|
||||||
Julien Rouviere
|
Julien Rouviere
|
||||||
Jackson Russell
|
Jackson Russell
|
||||||
Zik Saleeba
|
Zik Saleeba
|
||||||
@ -69,8 +71,10 @@ Dr. Erhard Siegl
|
|||||||
Mike Smith
|
Mike Smith
|
||||||
Alex Sowa
|
Alex Sowa
|
||||||
Pete Stapley
|
Pete Stapley
|
||||||
|
Vova Starikh
|
||||||
Rowan Taubitz
|
Rowan Taubitz
|
||||||
Andrew Thoms
|
Andrew Thoms
|
||||||
|
Philippe Vanhaesendonck
|
||||||
Jasper van Loenen
|
Jasper van Loenen
|
||||||
Vassilis Varveropoulos
|
Vassilis Varveropoulos
|
||||||
Kevin Vertucio
|
Kevin Vertucio
|
||||||
@ -79,6 +83,7 @@ Brian Webb
|
|||||||
Justin Welander
|
Justin Welander
|
||||||
Mat Wellington
|
Mat Wellington
|
||||||
Kendal Wells
|
Kendal Wells
|
||||||
|
David Willis
|
||||||
Dmitriy Zaitsev
|
Dmitriy Zaitsev
|
||||||
</pre>
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
|
@ -104,9 +104,13 @@ ListModel {
|
|||||||
ListElement{ name:"Richard Querin" }
|
ListElement{ name:"Richard Querin" }
|
||||||
|
|
||||||
ListElement{ name:"Randy Ram" }
|
ListElement{ name:"Randy Ram" }
|
||||||
|
|
||||||
|
ListElement{ name:"Philippe Renon" }
|
||||||
|
|
||||||
ListElement{ name:"Laurent Ribon" }
|
ListElement{ name:"Laurent Ribon" }
|
||||||
|
|
||||||
|
ListElement{ name:"Mathieu Rondonneau" }
|
||||||
|
|
||||||
ListElement{ name:"Julien Rouviere" }
|
ListElement{ name:"Julien Rouviere" }
|
||||||
|
|
||||||
ListElement{ name:"Jackson Russell" }
|
ListElement{ name:"Jackson Russell" }
|
||||||
@ -130,11 +134,15 @@ ListModel {
|
|||||||
ListElement{ name:"Alex Sowa" }
|
ListElement{ name:"Alex Sowa" }
|
||||||
|
|
||||||
ListElement{ name:"Pete Stapley" }
|
ListElement{ name:"Pete Stapley" }
|
||||||
|
|
||||||
|
ListElement{ name:"Vova Starikh" }
|
||||||
|
|
||||||
ListElement{ name:"Rowan Taubitz" }
|
ListElement{ name:"Rowan Taubitz" }
|
||||||
|
|
||||||
ListElement{ name:"Andrew Thoms" }
|
ListElement{ name:"Andrew Thoms" }
|
||||||
|
|
||||||
|
ListElement{ name:"Philippe Vanhaesendonck" }
|
||||||
|
|
||||||
ListElement{ name:"Jasper van Loenen" }
|
ListElement{ name:"Jasper van Loenen" }
|
||||||
|
|
||||||
ListElement{ name:"Vassilis Varveropoulos" }
|
ListElement{ name:"Vassilis Varveropoulos" }
|
||||||
@ -151,5 +159,7 @@ ListModel {
|
|||||||
|
|
||||||
ListElement{ name:"Kendal Wells" }
|
ListElement{ name:"Kendal Wells" }
|
||||||
|
|
||||||
|
ListElement { name: "David Willis" }
|
||||||
|
|
||||||
ListElement{ name:"Dmitriy Zaitsev" }
|
ListElement{ name:"Dmitriy Zaitsev" }
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user