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
|
||||
Richard Querin
|
||||
Randy Ram
|
||||
Philippe Renon
|
||||
Laurent Ribon
|
||||
Mathieu Rondonneau
|
||||
Julien Rouviere
|
||||
Jackson Russell
|
||||
Zik Saleeba
|
||||
@ -69,8 +71,10 @@ Dr. Erhard Siegl
|
||||
Mike Smith
|
||||
Alex Sowa
|
||||
Pete Stapley
|
||||
Vova Starikh
|
||||
Rowan Taubitz
|
||||
Andrew Thoms
|
||||
Philippe Vanhaesendonck
|
||||
Jasper van Loenen
|
||||
Vassilis Varveropoulos
|
||||
Kevin Vertucio
|
||||
@ -79,6 +83,7 @@ Brian Webb
|
||||
Justin Welander
|
||||
Mat Wellington
|
||||
Kendal Wells
|
||||
David Willis
|
||||
Dmitriy Zaitsev
|
||||
</pre>
|
||||
</body>
|
||||
|
@ -104,9 +104,13 @@ ListModel {
|
||||
ListElement{ name:"Richard Querin" }
|
||||
|
||||
ListElement{ name:"Randy Ram" }
|
||||
|
||||
ListElement{ name:"Philippe Renon" }
|
||||
|
||||
ListElement{ name:"Laurent Ribon" }
|
||||
|
||||
ListElement{ name:"Mathieu Rondonneau" }
|
||||
|
||||
ListElement{ name:"Julien Rouviere" }
|
||||
|
||||
ListElement{ name:"Jackson Russell" }
|
||||
@ -130,11 +134,15 @@ ListModel {
|
||||
ListElement{ name:"Alex Sowa" }
|
||||
|
||||
ListElement{ name:"Pete Stapley" }
|
||||
|
||||
ListElement{ name:"Vova Starikh" }
|
||||
|
||||
ListElement{ name:"Rowan Taubitz" }
|
||||
|
||||
ListElement{ name:"Andrew Thoms" }
|
||||
|
||||
ListElement{ name:"Philippe Vanhaesendonck" }
|
||||
|
||||
ListElement{ name:"Jasper van Loenen" }
|
||||
|
||||
ListElement{ name:"Vassilis Varveropoulos" }
|
||||
@ -151,5 +159,7 @@ ListModel {
|
||||
|
||||
ListElement{ name:"Kendal Wells" }
|
||||
|
||||
ListElement { name: "David Willis" }
|
||||
|
||||
ListElement{ name:"Dmitriy Zaitsev" }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user