diff --git a/js/2.19.1.tar.gz b/js/2.19.1.tar.gz new file mode 100644 index 0000000..6c763e1 Binary files /dev/null and b/js/2.19.1.tar.gz differ diff --git a/js/moment/.editorconfig b/js/moment/.editorconfig new file mode 100644 index 0000000..2451a56 --- /dev/null +++ b/js/moment/.editorconfig @@ -0,0 +1,17 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space + +[*.{js,json}] +indent_size = 4 + +[*.{yml}] +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/js/moment/.gitattributes b/js/moment/.gitattributes new file mode 100644 index 0000000..7b7ab85 --- /dev/null +++ b/js/moment/.gitattributes @@ -0,0 +1,4 @@ +# we don't have non-text files, don't take chances with git's text=auto +* text +# this file is read by nuget (Windows) tooling, lets keep it happy +Moment.js.nuspec eol=crlf diff --git a/js/moment/.gitignore b/js/moment/.gitignore new file mode 100644 index 0000000..46586e8 --- /dev/null +++ b/js/moment/.gitignore @@ -0,0 +1,15 @@ +node_modules/ +.DS_Store +min/moment+customlangs.js +min/moment+customlangs.min.js +sauce_connect.log +.sauce-labs.creds +npm-debug.log +.build* +build +coverage +nyc_output +.nyc_output +.coveralls.yml +.vscode/ +.idea diff --git a/js/moment/.jscs.json b/js/moment/.jscs.json new file mode 100644 index 0000000..0813085 --- /dev/null +++ b/js/moment/.jscs.json @@ -0,0 +1,65 @@ +{ + "requireCurlyBraces": [ + "if", + "else", + "for", + "while", + "do", + "try", + "catch" + ], + "requireSpaceAfterKeywords": [ + "if", + "else", + "for", + "while", + "do", + "switch", + "return", + "try", + "catch" + ], + "requireSpaceBeforeBlockStatements": true, + "requireParenthesesAroundIIFE": true, + "requireSpacesInConditionalExpression": true, + "requireSpacesInAnonymousFunctionExpression": { + "beforeOpeningRoundBrace": true, + "beforeOpeningCurlyBrace": true + }, + "requireSpacesInNamedFunctionExpression": { + "beforeOpeningCurlyBrace": true + }, + "disallowSpacesInNamedFunctionExpression": { + "beforeOpeningRoundBrace": true + }, + "requireBlocksOnNewline": true, + "disallowPaddingNewlinesInBlocks": true, + "disallowEmptyBlocks": true, + "disallowSpacesInsideObjectBrackets": true, + "disallowSpacesInsideArrayBrackets": true, + "disallowSpacesInsideParentheses": true, + "requireCommaBeforeLineBreak": true, + "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], + "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], + "requireSpaceBeforeBinaryOperators": [ + "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", + "&=", "|=", "^=", + + "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&", + "|", "^", "&&", "||", "===", "==", ">=", + "<=", "<", ">", "!=", "!==" + ], + "requireSpaceAfterBinaryOperators": true, + "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", + "disallowKeywords": ["with"], + "disallowMultipleLineStrings": true, + "validateIndentation": 4, + "disallowTrailingWhitespace": true, + "disallowTrailingComma": true, + "requireLineFeedAtFileEnd": true, + "requireCapitalizedConstructors": true, + "validateQuoteMarks": { + "mark": "'", + "escape": true + } +} diff --git a/js/moment/.jshintrc b/js/moment/.jshintrc new file mode 100644 index 0000000..220eb21 --- /dev/null +++ b/js/moment/.jshintrc @@ -0,0 +1,31 @@ +{ + "node" : true, + "browser" : true, + "boss" : false, + "curly" : true, + "debug" : false, + "devel" : false, + "eqeqeq" : true, + "eqnull" : true, + "esnext" : true, + "evil" : false, + "forin" : false, + "immed" : false, + "laxbreak" : false, + "newcap" : true, + "noarg" : true, + "noempty" : false, + "nonew" : false, + "onevar" : true, + "plusplus" : false, + "regexp" : false, + "undef" : true, + "sub" : true, + "strict" : false, + "white" : true, + "es3" : false, + "camelcase" : true, + "globals": { + "define": false + } +} diff --git a/js/moment/.npmignore b/js/moment/.npmignore new file mode 100644 index 0000000..9387a95 --- /dev/null +++ b/js/moment/.npmignore @@ -0,0 +1,3 @@ +test +min/tests.js +.npmignore diff --git a/js/moment/.spmignore b/js/moment/.spmignore new file mode 100644 index 0000000..268f808 --- /dev/null +++ b/js/moment/.spmignore @@ -0,0 +1,8 @@ +benchmarks +bower_components +meteor +min +node_modules +scripts +tasks +test diff --git a/js/moment/.travis.yml b/js/moment/.travis.yml new file mode 100644 index 0000000..8c4322b --- /dev/null +++ b/js/moment/.travis.yml @@ -0,0 +1,25 @@ +language: node_js +node_js: + - "node" + - "7" + - "6" + - "5" + - "4" +sudo: false + +env: + global: + - secure: "M4STT2TOZxjzv3cZOgSVi0J4j6enrGjgE+p5YTNUw+S6Dg6FS5pTIPeafu1kGhfm7F0uk7xPVwGKYb+3uWNO9IhkKXz8jySMMQ2iKISHwECGNNuFNjSMD1vIjbIkLwV8TyPO/PurQg2s+WtYz+DoAZsDFKpdaRUtif64OjdQ3vQ=" + - secure: "V+i7kHoGe7VXWGplPNqJz+aDtgDF9Dh9/guoaf2BPyXLvkFW6VgMjJyoNUW7JVsakrWzAz2ubb734vAPDt7BCcFQ2BqfatOmabdFogviCaXC6IqVaEkYS2eSP7MIUPIeWJgnTrDGzkFMDk4K7y5SiVJ8UmYwZxe+tJV7kbb0Yig=" + +install: + - npm install + - npm install -g grunt-cli + +script: grunt build:travis + +git: + depth: 10 + +# TODO: Fix problem with coveralls.io not displaying autogenerated files +# after_success: npm run coveralls diff --git a/js/reports.js b/js/reports.js index 9d21f3f..0c784c0 100644 --- a/js/reports.js +++ b/js/reports.js @@ -38,23 +38,21 @@ $(function(){ formatter:function(cell, formatterParams){ var shop_id = cell.getValue(); return '' + shop_id + ""; - } + }, }, {title:"Time In", field:"time_in", align:"center", width:100, - formatter:function(cell, formatterParams){ - var time_in = cell.getValue(); - time_in = time_in.split(" "); - return time_in[1]; - } + mutator:function(value, data, type, mutatorParams, cell){ + var time_in = value.split(" "); + return time_in[1]; + } }, - {title:"Time Out", field:"time_out", align:"center", width:100, - formatter:function(cell, formatterParams){ - var time_out = cell.getValue(); - time_out = time_out.split(" "); - return time_out[1]; - } + {title:"Time Out", field:"time_out", align:"center", width:100, sorter:"time", sorterParams:{format:"hh:mm:ss"}, + mutator:function(value, data, type, mutatorParams, cell){ + var time_out = value.split(" "); + return time_out[1]; + } }, - {title:"Total", field:"et", align:"center", width:100, + {title:"Total", field:"et", align:"center", width:100, sorter:"time", sorterParams:{format:"h:mm"}, formatter:function(cell, formatterParams){ var hr_total = cell.getValue(); if (hr_total) {