set basic layout. adding status bar

This commit is contained in:
Rohit
2019-06-04 13:11:32 -04:00
parent cd7f6c8648
commit dbd8de27cc
7977 changed files with 757176 additions and 310 deletions

13
node_modules/bower/lib/templates/helpers/colors.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
var chalk = require('chalk');
var templateColors = ['yellow', 'green', 'cyan', 'red', 'white', 'magenta'];
function colors(Handlebars) {
templateColors.forEach(function(color) {
Handlebars.registerHelper(color, function(context) {
return chalk[color](context.fn(this));
});
});
}
module.exports = colors;

22
node_modules/bower/lib/templates/helpers/condense.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var mout = require('mout');
var leadLinesRegExp = /^\r?\n/;
var multipleLinesRegExp = /\r?\n(\r?\n)+/gm;
function condense(Handlebars) {
Handlebars.registerHelper('condense', function(context) {
var str = context.fn(this);
// Remove multiple lines
str = str.replace(multipleLinesRegExp, '$1');
// Remove leading new lines (while keeping indentation)
str = str.replace(leadLinesRegExp, '');
// Remove trailing whitespaces (including new lines);
str = mout.string.rtrim(str);
return str;
});
}
module.exports = condense;

12
node_modules/bower/lib/templates/helpers/indent.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
var mout = require('mout');
function indent(Handlebars) {
Handlebars.registerHelper('indent', function(context) {
var hash = context.hash;
var indentStr = mout.string.repeat(' ', parseInt(hash.level, 10));
return context.fn(this).replace(/\n/g, '\n' + indentStr);
});
}
module.exports = indent;

7
node_modules/bower/lib/templates/helpers/index.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
colors: require('./colors'),
condense: require('./condense'),
indent: require('./indent'),
rpad: require('./rpad'),
sum: require('./sum')
};

12
node_modules/bower/lib/templates/helpers/rpad.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
var mout = require('mout');
function rpad(Handlebars) {
Handlebars.registerHelper('rpad', function(context) {
var hash = context.hash;
var minLength = parseInt(hash.minLength, 10);
var chr = hash.char;
return mout.string.rpad(context.fn(this), minLength, chr);
});
}
module.exports = rpad;

7
node_modules/bower/lib/templates/helpers/sum.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
function sum(Handlebars) {
Handlebars.registerHelper('sum', function(val1, val2) {
return val1 + val2;
});
}
module.exports = sum;