Initial Commit

This commit is contained in:
plane000
2018-07-17 14:57:52 +01:00
parent 2a9f73c5d5
commit 0d8f6c961a
216 changed files with 32763 additions and 0 deletions

29
resultbuilder.js Normal file
View File

@@ -0,0 +1,29 @@
module.exports.genCompilerSettings = function(obj) {
if (!obj || !obj.padding || !obj.lineBreaks || !obj.lines) {
return -1;
}
let arguments = [];
arguments.push(obj.padding);
arguments.push(obj.lineBreaks);
let alignments = ['L', 'C', 'R'];
let sizes = ['S', 'M', 'L'];
obj.lines.forEach((line) => {
let align = line.align.toUpperCase().split('')[0];
let size = line.size.toUpperCase().split('')[0];;
arguments.push(align);
arguments.push(size);
arguments.push(line.content);
});
return {
mode: 'text',
pythonOptions: ['-u'],
args: arguments
}
}
// if (align != 'L' || align != 'C' || align != 'R') return -1;
// if (size != 'S' || size != 'M' || size != 'L') return -1;