commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
670a5e6d50f69def9444b179dc62c18689463f6e
test/user-container.js
test/user-container.js
var _ = require('underscore'); var UserContainer = require('../lib/authentication/user-container'); var assert = require('chai').assert; describe('tests of garbage collecting of outdated cookies', function() { var responseMock = { cookies: { set: function() { } } }; it('', function(done) { ...
var _ = require('underscore'); var UserContainer = require('../lib/authentication/user-container'); var assert = require('chai').assert; describe('tests of garbage collecting of outdated cookies', function() { var responseMock = { cookies: { set: function() { } } }; it('', function(done) { ...
Fix timeout error in UserContainer test.
Fix timeout error in UserContainer test.
JavaScript
mit
cargomedia/pulsar-rest-api,njam/pulsar-rest-api,cargomedia/pulsar-rest-api,vogdb/pulsar-rest-api,njam/pulsar-rest-api,njam/pulsar-rest-api,vogdb/pulsar-rest-api,cargomedia/pulsar-rest-api,njam/pulsar-rest-api,vogdb/pulsar-rest-api,cargomedia/pulsar-rest-api
--- +++ @@ -14,7 +14,7 @@ it('', function(done) { //for the sake of the test UserContainer._collectorIntervalMs = 100; - UserContainer._oudatedTimeMs = UserContainer._collectorIntervalMs + 1; + UserContainer._oudatedTimeMs = UserContainer._collectorIntervalMs + 10; var userContainer = new Us...
11ec2067d683564efe69793ee2345e05d8264e94
lib/flux_mixin.js
lib/flux_mixin.js
var React = require("react"); module.exports = { propTypes: { flux: React.PropTypes.object }, childContextTypes: { flux: React.PropTypes.object }, contextTypes: { flux: React.PropTypes.object }, getChildContext: function() { return { flux: this.context.flux || this.props.flux ...
var React = require("react"); module.exports = { propTypes: { flux: React.PropTypes.object.isRequired }, childContextTypes: { flux: React.PropTypes.object }, getChildContext: function() { return { flux: this.props.flux }; } };
Make Fluxbox.Mixin only for the top-level components
Make Fluxbox.Mixin only for the top-level components
JavaScript
mit
alcedo/fluxxor,dantman/fluxxor,chimpinano/fluxxor,nagyistoce/fluxxor,VincentHoang/fluxxor,vsakaria/fluxxor,dantman/fluxxor,nagyistoce/fluxxor,davesag/fluxxor,hoanglamhuynh/fluxxor,demiazz/fluxxor,davesag/fluxxor,BinaryMuse/fluxxor,dantman/fluxxor,davesag/fluxxor,VincentHoang/fluxxor,hoanglamhuynh/fluxxor,STRML/fluxxor,...
--- +++ @@ -2,20 +2,16 @@ module.exports = { propTypes: { - flux: React.PropTypes.object + flux: React.PropTypes.object.isRequired }, childContextTypes: { flux: React.PropTypes.object }, - contextTypes: { - flux: React.PropTypes.object - }, - getChildContext: function() { re...
cb840a02a3485054642364742bc157b0c02d5c59
lib/irc.js
lib/irc.js
/* eslint no-console: 0 */ 'use strict'; const irc = require('irc'); const server = process.env.IRC_SERVER; const user = process.env.IRC_USER; const channel = process.env.IRC_CHANNEL; const client = module.exports.client = new irc.Client(server, user, { channels: [channel], }); if (process.env.NODE_ENV !== 'testi...
/* eslint no-console: 0 */ 'use strict'; const irc = require('irc'); const server = process.env.IRC_SERVER; const user = process.env.IRC_USER; const channel = process.env.IRC_CHANNEL; const client = module.exports.client = new irc.Client(server, user, { debug: true, autoConnect: false, autoRejoin: true, chan...
Add debug information to IRC handler
Add debug information to IRC handler
JavaScript
mit
Starefossen/jenkins-monitor
--- +++ @@ -8,7 +8,15 @@ const channel = process.env.IRC_CHANNEL; const client = module.exports.client = new irc.Client(server, user, { + debug: true, + autoConnect: false, + autoRejoin: true, channels: [channel], + showErrors: true, +}); + +client.connect(5, function() { + console.log(arguments); }); ...
7d566b878a58ec91c2f88e3bd58ff5d7ec9b41df
lib/orbit/main.js
lib/orbit/main.js
/** Contains core methods and classes for Orbit.js @module orbit @main orbit */ // Prototype extensions if (!Array.prototype.forEach) { Array.prototype.forEach = function (fn, scope) { var i, len; for (i = 0, len = this.length; i < len; ++i) { if (i in this) { fn.call(scope, this[i], i, th...
/** Contains core methods and classes for Orbit.js @module orbit @main orbit */ /** Namespace for core Orbit methods and classes. @class Orbit @static */ var Orbit = {}; export default Orbit;
Remove prototype extensions. ES5.1 now required.
Remove prototype extensions. ES5.1 now required.
JavaScript
mit
greyhwndz/orbit.js,orbitjs/orbit.js,orbitjs/orbit-core,lytbulb/orbit.js,opsb/orbit.js,opsb/orbit.js,rollokb/orbit.js,lytbulb/orbit.js,ProlificLab/orbit.js,SmuliS/orbit.js,orbitjs/orbit.js,rollokb/orbit.js,jpvanhal/orbit.js,greyhwndz/orbit.js,beni55/orbit.js,jpvanhal/orbit.js,ProlificLab/orbit.js,SmuliS/orbit.js,beni55/...
--- +++ @@ -4,18 +4,6 @@ @module orbit @main orbit */ - -// Prototype extensions -if (!Array.prototype.forEach) { - Array.prototype.forEach = function (fn, scope) { - var i, len; - for (i = 0, len = this.length; i < len; ++i) { - if (i in this) { - fn.call(scope, this[i], i, this); - } -...
b344ff88babd7ef982d54e46c969b2420026621d
hall/index.js
hall/index.js
const program = require('commander'); program .version('1.0.0') .option('-p, --port <port>', 'specify the websocket port to listen to [9870]', 9870) .parse(process.argv); const io = require('socket.io'), winston = require('winston'); winston.level = 'debug'; winston.remove(winston.transports.Conso...
const program = require('commander'); program .version('1.0.0') .option('-p, --port <port>', 'specify the websocket port to listen to [9870]', 9870) .parse(process.argv); const io = require('socket.io'), winston = require('winston'); winston.level = 'debug'; winston.remove(winston.transports.Conso...
Add client-get-partner listener to hall server
Add client-get-partner listener to hall server
JavaScript
mit
dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet
--- +++ @@ -20,6 +20,14 @@ const socket = io.listen(PORT); +const ROOMID = 'room1'; + socket.on('connection', (client) => { winston.debug('New connection from client ' + client.id); + + client.on('client-get-partner', () => { + winston.debug('Client ' + client.id + ' wants partner.'); + cl...
49adc111cd02ea1d1d22281f172fda0819876970
main.js
main.js
var game = new Phaser.Game(600, 800, Phaser.AUTO, '', {preload: preload, create: create, update: update}); function preload() { game.load.image('player', 'assets/player.png'); } var player; function create() { player = game.add.sprite(game.world.width / 2 - 50, game.world.height - 76, 'player'); } fun...
var game = new Phaser.Game(600, 800, Phaser.AUTO, '', {preload: preload, create: create, update: update}); function preload() { game.load.image('player', 'assets/player.png'); } var player; var cursors; function create() { game.physics.startSystem(Phaser.Physics.ARCADE); player = game.add.sprite(game....
Allow player to move up/down/right/left
Allow player to move up/down/right/left
JavaScript
mit
Acaki/WWW_project,Acaki/WWW_project,Acaki/WWW_project
--- +++ @@ -5,10 +5,29 @@ } var player; +var cursors; function create() { + game.physics.startSystem(Phaser.Physics.ARCADE); player = game.add.sprite(game.world.width / 2 - 50, game.world.height - 76, 'player'); + game.physics.arcade.enable(player); + player.body.collideWorldBounds = true; + cursors = gam...
bf53c204ee379a7e4d2c289f6db4848d23a79aca
tv-bridge/lib/relay.js
tv-bridge/lib/relay.js
var WebSocket = require('faye-websocket'), http = require('http'), reject = require('lodash/collection/reject'), without = require('lodash/array/without'); module.exports = function (config) { var server = http.createServer(), connections = []; // Send to everyone except sender funct...
var WebSocket = require('faye-websocket'), http = require('http'), reject = require('lodash/collection/reject'), without = require('lodash/array/without'); module.exports = function (config) { var server = http.createServer(), connections = []; // Send to everyone except sender funct...
Add consistancy to port logging
Add consistancy to port logging
JavaScript
apache-2.0
mediascape/euromeme,mediascape/euromeme,mediascape/euromeme,mediascape/euromeme,mediascape/euromeme,mediascape/euromeme
--- +++ @@ -37,6 +37,6 @@ } }); - console.log('Listening on ', config.port); + console.log('Listening on port', config.port); server.listen(config.port); }
3f32dd2bede0cb23f5453891d7b92a83e90c2d71
routes/apiRoot.js
routes/apiRoot.js
var contentType = require('../middleware/contentType'), config = require('../config'); function apiRoot(req, res) { var root = config.get('apiEndpoint'); var answer = { motd: 'Welcome to the NGP VAN OSDI Service!', max_pagesize: 200, vendor_name: 'NGP VAN, Inc.', product_name: 'VAN', osdi_...
var contentType = require('../middleware/contentType'), config = require('../config'); function apiRoot(req, res) { var root = config.get('apiEndpoint'); var answer = { motd: 'Welcome to the NGP VAN OSDI Service!', max_pagesize: 200, vendor_name: 'NGP VAN, Inc.', product_name: 'VAN', osdi_...
Correct AEP resource for person signup helper
Correct AEP resource for person signup helper Signed-off-by: shaisachs <47bd79f9420edf5d0991d1e2710179d4e040d480@ngpvan.com>
JavaScript
apache-2.0
NGPVAN/osdi-service,joshco/osdi-service
--- +++ @@ -23,9 +23,9 @@ 'href': root + 'questions', 'title': 'The collection of questions in the system' }, - 'osdi:people': { - 'href': root + 'people', - 'title': 'The collection of people in the system' + "osdi:person_signup_helper": { + "href": root + 'p...
929e85200848bb9974eb480efa9945c6af3250f4
resource-router-middleware.js
resource-router-middleware.js
var Router = require('express').Router; var keyed = ['get', 'read', 'put', 'patch', 'update', 'del', 'delete'], map = { index:'get', list:'get', read:'get', create:'post', update:'put', modify:'patch' }; module.exports = function ResourceRouter(route) { route.mergeParams = route.mergeParams ? true : false; var rou...
var Router = require('express').Router; var keyed = ['get', 'read', 'put', 'update', 'patch', 'modify', 'del', 'delete'], map = { index:'get', list:'get', read:'get', create:'post', update:'put', modify:'patch' }; module.exports = function ResourceRouter(route) { route.mergeParams = route.mergeParams ? true : false...
Add modify to keyed methods to enable patch with id
Add modify to keyed methods to enable patch with id
JavaScript
bsd-3-clause
developit/resource-router-middleware
--- +++ @@ -1,6 +1,6 @@ var Router = require('express').Router; -var keyed = ['get', 'read', 'put', 'patch', 'update', 'del', 'delete'], +var keyed = ['get', 'read', 'put', 'update', 'patch', 'modify', 'del', 'delete'], map = { index:'get', list:'get', read:'get', create:'post', update:'put', modify:'patch' }; ...
4383d7d3f566e33e5d4dc86e64fb1539ddad1642
src/compressor.js
src/compressor.js
'use strict'; var es = require('event-stream'), path = require('path'), zlib = require('zlib'); var compressibles = [ '.js', '.json', '.css', '.html' ]; function isCompressibleFile( file ) { var ext = path.extname( file.path ).toLowerCase(); return ( compressibles.indexOf( ext ) > -1 ); } module.exports = f...
'use strict'; var es = require('event-stream'), path = require('path'), zlib = require('zlib'); var compressibles = [ '.js', '.css', '.html' ]; function isCompressibleFile( file ) { var ext = path.extname( file.path ).toLowerCase(); return ( compressibles.indexOf( ext ) > -1 ); } module.exports = function() ...
Revert "adding JSON to the list of extensions that should be compressed"
Revert "adding JSON to the list of extensions that should be compressed" This reverts commit c90513519febf8feeea78b06da6a467bb1085948.
JavaScript
apache-2.0
Brightspace/gulp-frau-publisher,Brightspace/gulp-frau-publisher,Brightspace/frau-publisher,Brightspace/frau-publisher
--- +++ @@ -6,7 +6,6 @@ var compressibles = [ '.js', - '.json', '.css', '.html' ];
fbf98e6125a702a63857688cfa07fefa6791a909
src/stages/main/patchers/SoakedMemberAccessOpPatcher.js
src/stages/main/patchers/SoakedMemberAccessOpPatcher.js
import NodePatcher from './../../../patchers/NodePatcher.js'; export default class SoakedMemberAccessOpPatcher extends NodePatcher { patchAsExpression() { } patchAsStatement() { this.patchAsExpression(); } }
import NodePatcher from './../../../patchers/NodePatcher.js'; export default class SoakedMemberAccessOpPatcher extends NodePatcher { patchAsExpression() { throw this.error('cannot patch soaked member access (e.g. `a?.b`) yet'); } }
Throw when encountering a SoakedMemberAccessOp.
Throw when encountering a SoakedMemberAccessOp.
JavaScript
mit
decaffeinate/decaffeinate,alangpierce/decaffeinate,decaffeinate/decaffeinate,eventualbuddha/decaffeinate,alangpierce/decaffeinate,eventualbuddha/decaffeinate,alangpierce/decaffeinate
--- +++ @@ -2,10 +2,6 @@ export default class SoakedMemberAccessOpPatcher extends NodePatcher { patchAsExpression() { - - } - - patchAsStatement() { - this.patchAsExpression(); + throw this.error('cannot patch soaked member access (e.g. `a?.b`) yet'); } }
666e5e1efa16941ac7ded51444b566a0d5faedd1
move-plugins/moveplugins.js
move-plugins/moveplugins.js
module.exports.movePlugins = function (src, dest) { var exec = require('child_process').exec console.log(`Copying ${src} to ${dest}`) exec(`rm -rf ${dest}${src}`, function (error) { if (error) { console.error(`exec error: ${error}`) } else { exec(`cp -r ${src} ${dest}`, function (error, stdout...
module.exports.movePlugins = function (src, dest) { var exec = require('child_process').exec exec(`rm ${dest}${src} -rf`, function (error) { if (error) console.error(`exec error: ${error}`) exec(`cp -r ${src} ${dest}`, function (error, stdout, stderr) { if (error) console.error(`exec error: ${error}`)...
Revert "fixed possible bug & Mac OSX compatibility issue with rm"
Revert "fixed possible bug & Mac OSX compatibility issue with rm" This reverts commit b4ed13e1cd70025d4b8bb4b29e98334b00bfdbed.
JavaScript
mit
Lamassau/PiTrol,Lamassau/PiTrol,AlhasanIQ/PiTrol,fadeenk/PiTrol,fadeenk/PiTrol,AlhasanIQ/PiTrol
--- +++ @@ -1,15 +1,9 @@ module.exports.movePlugins = function (src, dest) { var exec = require('child_process').exec - console.log(`Copying ${src} to ${dest}`) - exec(`rm -rf ${dest}${src}`, function (error) { - if (error) { - console.error(`exec error: ${error}`) - } else { - exec(`cp -r ${src...
2a7e347e4f2f08faf84ce745ae8e611ced216421
webapp/src/main/frontend/app/scripts/components/doctorProfile.js
webapp/src/main/frontend/app/scripts/components/doctorProfile.js
'use strict'; define(['ChoPidoTurnos'], function(ChoPidoTurnos) { function DoctorProfileCtrl(doctorsService) { return { '$onInit': function () { var _this = this; doctorsService .getUserRating(this.doctor.id) .then(function (result) { _this.userRating = resu...
'use strict'; define(['ChoPidoTurnos'], function(ChoPidoTurnos) { function DoctorProfileCtrl(doctorsService, sessionService) { return { '$onInit': function () { var _this = this; if (sessionService.getLoggedUser()) { doctorsService .getUserRating(this.doctor.id) ...
Remove failing request when user is not logged in
Remove failing request when user is not logged in
JavaScript
mit
jsuarezb/paw-2016-4,jsuarezb/paw-2016-4,jsuarezb/paw-2016-4,jsuarezb/paw-2016-4
--- +++ @@ -1,16 +1,18 @@ 'use strict'; define(['ChoPidoTurnos'], function(ChoPidoTurnos) { - function DoctorProfileCtrl(doctorsService) { + function DoctorProfileCtrl(doctorsService, sessionService) { return { '$onInit': function () { var _this = this; - doctorsService - ...
eaf69c1a63c41db025a65d87e104390deb6db591
components/CopyButton.js
components/CopyButton.js
import React from 'react'; import ClipboardJS from 'clipboard'; export default class CopyButton extends React.PureComponent { constructor(props) { super(props); this.btnRef = React.createRef(); this.clipboardRef = React.createRef(); } static defaultProps = { content: '', }; componentDidMoun...
import React from 'react'; import ClipboardJS from 'clipboard'; export default class CopyButton extends React.PureComponent { constructor(props) { super(props); this.btnRef = React.createRef(); this.clipboardRef = React.createRef(); } static defaultProps = { content: '', }; componentDidMoun...
Solve 'invalid target element' error
Solve 'invalid target element' error
JavaScript
mit
cofacts/rumors-site,cofacts/rumors-site
--- +++ @@ -25,7 +25,6 @@ key="copy" onClick={() => {}} className="btn-copy" - data-clipboard-target="#testCopyTarget" > 複製到剪貼簿 <style jsx>{`
f0d2f99dbdd764915efd138361f815e86a3d2210
app/assets/javascripts/angular/services/annotation_refresher.js
app/assets/javascripts/angular/services/annotation_refresher.js
angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", function($http) { return function(graph, scope) { var tags = graph.tags.map(function(e) { if (e.name) { return e.name.split(",").map(function(s) { return s.trim(); }); } else { return ""; } }) ...
angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", function($http) { return function(graph, scope) { var tags = graph.tags.map(function(e) { if (e.name) { return e.name.split(",").map(function(s) { return s.trim(); }); } else { return ""; } }) ...
Send annotation tags as array.
Send annotation tags as array.
JavaScript
apache-2.0
alonpeer/promdash,lborguetti/promdash,jonnenauha/promdash,lborguetti/promdash,lborguetti/promdash,jonnenauha/promdash,jmptrader/promdash,alonpeer/promdash,thooams/promdash,jonnenauha/promdash,prometheus/promdash,prometheus/promdash,juliusv/promdash,juliusv/promdash,jmptrader/promdash,juliusv/promdash,jmptrader/promdash...
--- +++ @@ -14,7 +14,7 @@ tags.forEach(function(t) { $http.get('/annotations', { params: { - tags: t.join(","), + 'tags[]': t, until: until, range: range }
1896a56db306f7cadfc004373839887ce6b3c5cd
app/assets/javascripts/angular/services/annotation_refresher.js
app/assets/javascripts/angular/services/annotation_refresher.js
angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", function($http) { return function(graph, scope) { var tags = graph.tags.map(function(e) { if (e.name) { return e.name.split(",").map(function(s) { return s.trim(); }); } else { return ""; } }) ...
angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", "VariableInterpolator", function($http, VariableInterpolator) { return function(graph, scope) { var tags = graph.tags.map(function(e) { if (e.name) { var n = VariableInterpolator(e.name, scope.vars); return n.spli...
Allow for tags to be interpolated variables.
Allow for tags to be interpolated variables.
JavaScript
apache-2.0
prometheus/promdash,prometheus/promdash,thooams/promdash,lborguetti/promdash,jmptrader/promdash,juliusv/promdash,jonnenauha/promdash,lborguetti/promdash,lborguetti/promdash,jmptrader/promdash,prometheus/promdash,jmptrader/promdash,juliusv/promdash,juliusv/promdash,thooams/promdash,jonnenauha/promdash,lborguetti/promdas...
--- +++ @@ -1,8 +1,9 @@ -angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", function($http) { +angular.module("Prometheus.services").factory('AnnotationRefresher', ["$http", "VariableInterpolator", function($http, VariableInterpolator) { return function(graph, scope) { var tags = g...
ce79d7a652564fed3b86000e9c295f00f28e5223
examples/myShellExtension.js
examples/myShellExtension.js
'use strict'; exports.register = function (callback) { var commands = [{ name : 'hello', desc : 'print Hello, John', options : { wizard : false, params : { required: 'name', optional: 'etc...' } }, handler : function (callback, args) { console.log ('H...
'use strict'; var cmd = {}; cmd.hello = function (callback, args) { console.log ('Hello, ' + args.join (' ')); callback (); }; cmd.wizard = function (callback) { var wizard = [{ /* Inquirer definition... */ type: 'input', name: 'zog', message: 'tell zog' }]; callback (wizard, function (ans...
Split the register function for the readability.
Split the register function for the readability.
JavaScript
mit
Xcraft-Inc/shellcraft.js
--- +++ @@ -1,4 +1,37 @@ 'use strict'; + +var cmd = {}; + +cmd.hello = function (callback, args) { + console.log ('Hello, ' + args.join (' ')); + callback (); +}; + +cmd.wizard = function (callback) { + var wizard = [{ + /* Inquirer definition... */ + type: 'input', + name: 'zog', + message: 'tell zog...
efda627489ccfa3bc6e3f64a40623da2d62ee316
gatsby-browser.js
gatsby-browser.js
exports.onClientEntry = () => { (() => { function OptanonWrapper() { } // eslint-disable-line no-unused-vars })(); };
exports.onClientEntry = () => { (() => { function OptanonWrapper() {} // eslint-disable-line no-unused-vars })(); }; // Always start at the top of the page on a route change. exports.onInitialClientRender = () => { if (!window.location.hash) { window.scrollTo(0, 0); } else { window.location = windo...
Add function to start at top of new page unless window.location has a hash
[MARKENG-156] Add function to start at top of new page unless window.location has a hash
JavaScript
apache-2.0
postmanlabs/postman-docs,postmanlabs/postman-docs
--- +++ @@ -1,5 +1,14 @@ exports.onClientEntry = () => { (() => { - function OptanonWrapper() { } // eslint-disable-line no-unused-vars + function OptanonWrapper() {} // eslint-disable-line no-unused-vars })(); }; + +// Always start at the top of the page on a route change. +exports.onInitialClientRende...
65a50b9a92299366e37a412d99b1b31a4f15b3d9
lib/cape/mixins/propagator_methods.js
lib/cape/mixins/propagator_methods.js
'use strict'; var PropagatorMethods = { attach: function(component) { var target = component; for (var i = 0, len = this._.components.length; i < len; i++) { if (this._.components[i] === component) return; } this._.components.push(component); }, detach: function(component) { for (var i...
'use strict' let PropagatorMethods = { attach: function(component) { let target = component for (let i = 0, len = this._.components.length; i < len; i++) { if (this._.components[i] === component) return } this._.components.push(component) }, detach: function(component) { for (let i = 0...
Rewrite PropagatorMethods module with ES6 syntax
Rewrite PropagatorMethods module with ES6 syntax
JavaScript
mit
capejs/capejs,capejs/capejs
--- +++ @@ -1,27 +1,27 @@ -'use strict'; +'use strict' -var PropagatorMethods = { +let PropagatorMethods = { attach: function(component) { - var target = component; - for (var i = 0, len = this._.components.length; i < len; i++) { - if (this._.components[i] === component) return; + let target = com...
ced84f283761f38156960f2d8e001ba6f3cd2b08
src/hook/index.js
src/hook/index.js
import { Base } from 'yeoman-generator'; import generatorArguments from './arguments'; import generatorOptions from './options'; import generatorSteps from './steps'; export default class HookGenerator extends Base { constructor(...args) { super(...args); Object.keys(generatorArguments).forEach(key => this....
import { Base } from 'yeoman-generator'; import generatorArguments from './arguments'; import generatorOptions from './options'; import generatorSteps from './steps'; export default class HookGenerator extends Base { constructor(...args) { super(...args); Object.keys(generatorArguments).forEach(key => this....
Add description to hook generator
Add description to hook generator
JavaScript
mit
tnunes/generator-trails,IncoCode/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,jaumard/generator-trails,konstantinzolotarev/generator-trails,italoag/generator-sails-rest-api,italoag/generator-sails-rest-api,ghaiklor/generator-sails-rest-api
--- +++ @@ -9,6 +9,8 @@ Object.keys(generatorArguments).forEach(key => this.argument(key, generatorArguments[key])); Object.keys(generatorOptions).forEach(key => this.option(key, generatorOptions[key])); + + this.description = 'Scaffold a custom hook in api/hooks'; } get configuring() {
88135630eeee214e6a6777b325970084305a3028
src/i18n/index.js
src/i18n/index.js
/** * You can customize the initial state of the module from the editor initialization * ```js * const editor = grapesjs.init({ * i18n: { * locale: 'en', * messages: { * en: { * hello: 'Hello', * }, * ... * } * } * }) * ``` * * Once the editor is instantiated you can use ...
/** * You can customize the initial state of the module from the editor initialization * ```js * const editor = grapesjs.init({ * i18n: { * locale: 'en', * messages: { * en: { * hello: 'Hello', * }, * ... * } * } * }) * ``` * * Once the editor is instantiated you can use ...
Add locales methods to i18n
Add locales methods to i18n
JavaScript
bsd-3-clause
artf/grapesjs,QuorumDMS/grapesjs,artf/grapesjs,artf/grapesjs,QuorumDMS/grapesjs
--- +++ @@ -25,11 +25,9 @@ import messages from './messages'; export default () => { - let em; - let config; const { language } = window.navigator || {}; const localeDef = language ? language.split('-')[0] : 'en'; - const configDef = { + const config = { locale: localeDef, localeFallback: 'en'...
9963a7f7e6f161fa6b9b0085ae3f48df33c2fb20
package.js
package.js
var path = Npm.require("path"); Package.describe({ summary: "JavaScript.next-to-JavaScript-of-today compiler", version: "1.0.3+0.0.42" }); Package._transitional_registerBuildPlugin({ name: "compileHarmony", use: [], sources: [ "plugin/compile-harmony.js" ], npmDependencies: { "traceur": "0.0.42"...
var path = Npm.require("path"); Package.describe({ summary: "JavaScript.next-to-JavaScript-of-today compiler", version: "1.0.3+0.0.42" }); Package._transitional_registerBuildPlugin({ name: "compileHarmony", use: [], sources: [ "plugin/compile-harmony.js" ], npmDependencies: { "traceur": "0.0.42"...
Use `imply` instead of `use` and `export` together
Use `imply` instead of `use` and `export` together This commit uses the `api.imply` shorthand to use a package and export its exports.
JavaScript
mit
mquandalle/meteor-harmony
--- +++ @@ -23,8 +23,7 @@ api.add_files(path.join(dir, "traceur-runtime.js")); // Export `module.exports` and `exports` down the package pipeline - api.use('exports'); - api.export(['module', 'exports']); + api.imply('exports'); }); Package.on_test(function (api) {
92e4e867c02ab0d55ad54539568ac29692f01733
src/index.node.js
src/index.node.js
/* eslint-env node */ const Canvas = require('canvas'); const fs = require('fs'); const { Image } = Canvas; /** * Create a new canvas object with height and width * set to the given values. * * @param width {number} The width of the canvas. * @param height {number} The height of the canvas. * * @return {Canva...
/* eslint-env node */ const Canvas = require('canvas'); const fs = require('fs'); const { Image } = Canvas; /** * Create a new canvas object with height and width * set to the given values. * * @param width {number} The width of the canvas. * @param height {number} The height of the canvas. * * @return {Canva...
Use image onload and onerror
Use image onload and onerror
JavaScript
mit
bschlenk/canvas-everywhere
--- +++ @@ -32,9 +32,12 @@ return new Promise((resolve, reject) => { fs.readFile(path, (err, data) => { if (err) { - return reject(err); + reject(err); + return; } const image = new Image(); + image.onload = () => resolve(image); + image.onerror = err => rej...
053ce99dec181fa886818c69fe80507257dffd56
src/Views/PickList.js
src/Views/PickList.js
/* * Copyright (c) 1997-2013, SalesLogix, NA., LLC. All rights reserved. */ /** * @class Mobile.SalesLogix.Views.PickList * * * @extends Sage.Platform.Mobile.List * */ define('Mobile/SalesLogix/Views/PickList', [ 'dojo/_base/declare', 'dojo/string', 'Sage/Platform/Mobile/List' ], function( decl...
/* * Copyright (c) 1997-2013, SalesLogix, NA., LLC. All rights reserved. */ /** * @class Mobile.SalesLogix.Views.PickList * * * @extends Sage.Platform.Mobile.List * */ define('Mobile/SalesLogix/Views/PickList', [ 'dojo/_base/declare', 'dojo/string', 'Sage/Platform/Mobile/List' ], function( decl...
Update the idProperty and labelProperty of the store properly based on what the picklist is using.
Update the idProperty and labelProperty of the store properly based on what the picklist is using.
JavaScript
apache-2.0
Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix
--- +++ @@ -41,6 +41,14 @@ }, show: function(options) { this.set('title', options && options.title || this.title); + if (options.keyProperty) { + this.idProperty = options.keyProperty; + } + + if (options.textProperty) { + t...
433541eee8c71f67265240dcd35323cfb0790e2b
src/about.js
src/about.js
import h from 'hyperscript'; import fetch from 'unfetch'; import audio from './audio'; import aboutSrc from './content/about.md'; let visible = false; let fetched = false; const toggle = () => { visible = !visible; document.body.classList[visible ? 'remove' : 'add']('mod-overflow-hidden'); about.classList[visib...
import h from 'hyperscript'; import fetch from 'unfetch'; import audio from './audio'; import aboutSrc from './content/about.md'; let visible = false; let fetched = false; const toggle = async () => { visible = !visible; document.body.classList[visible ? 'remove' : 'add']('mod-overflow-hidden'); about.classList...
Switch markdown loading to fetch/async/await
Switch markdown loading to fetch/async/await
JavaScript
apache-2.0
puckey/dance-tonite,puckey/dance-tonite
--- +++ @@ -6,23 +6,21 @@ let visible = false; let fetched = false; -const toggle = () => { +const toggle = async () => { visible = !visible; document.body.classList[visible ? 'remove' : 'add']('mod-overflow-hidden'); about.classList[visible ? 'remove' : 'add']('mod-hidden'); audio[visible ? 'pause' :...
eb59950038a363baca64593379739fcb4eeea22f
src/lib/server.js
src/lib/server.js
import express from 'express'; import path from 'path'; import bodyParser from 'body-parser'; import api from './api'; let server = null; function start(port) { return new Promise((resolve, reject) => { if (server !== null) { reject(new Error('The server is already running.')); } ...
import express from 'express'; import path from 'path'; import bodyParser from 'body-parser'; import api from './api'; let server = null; function start(port) { return new Promise((resolve, reject) => { if (server !== null) { reject(new Error('The server is already running.')); } ...
Increase payload limit to 1.5MB
Increase payload limit to 1.5MB When editing a model, this allow the user to upload a 1MB file, rather than something like a 925.3kB file, along with about 500kB of description text.
JavaScript
unlicense
TheFourFifths/consus,TheFourFifths/consus
--- +++ @@ -12,7 +12,7 @@ } let app = express(); app.use(express.static(path.join(__dirname, '../public'))); - app.use(bodyParser.json({ limit: '1MB' })); + app.use(bodyParser.json({ limit: '1.5MB' })); app.use('/api', api); server = app.listen(port, () => { ...
6dbe686652f6e642000b183a4063d68f27c8b6e0
karma.conf.js
karma.conf.js
module.exports = (config) => { config.set({ frameworks: ['mocha', 'karma-typescript'], browsers: ['ChromeHeadless'], singleRun: true, concurrency: Infinity, reporters: ['mocha'], port: 9876, colors: true, logLevel: config.LOG_WARN, files: [ 'src/*.ts', 'test/*.ts', ...
module.exports = (config) => { config.set({ frameworks: ['mocha', 'karma-typescript'], browsers: ['ChromeHeadless'], singleRun: true, concurrency: Infinity, reporters: ['mocha'], port: 9876, colors: true, logLevel: config.LOG_WARN, files: [ 'src/*.ts', 'test/*.ts', { pattern: 'test/*.h...
Add file rule for test template file
Add file rule for test template file
JavaScript
mit
marcoms/make-element,marcoms/make-element,marcoms/make-element
--- +++ @@ -1,28 +1,35 @@ module.exports = (config) => { - config.set({ - frameworks: ['mocha', 'karma-typescript'], - browsers: ['ChromeHeadless'], - singleRun: true, - concurrency: Infinity, - reporters: ['mocha'], - port: 9876, - colors: true, - logLevel: config.LOG_WARN, + config.set({ +...
a7eef3262e571e51f2f8a0403dbfbd7b51b1946a
src/tools/courseraSampleToArray.js
src/tools/courseraSampleToArray.js
var http = require('http'); /* * Convert from coursera sample format to javascript array. * e.g : * * a.txt : * * 111 * 222 * 333 * 444 * * converts to * * [111,222,333,444] * */ var strToArray = function(str) { return str.trim().split('\r\n').map(function (elStr) { return parseInt(elStr); }) } functi...
var http = require('http'); var courseraHttpHandler = function(url, processor, callback) { http.get(url, function(response) { var str = ''; response.on('data', function (chunk) { str += chunk; }); response.on('end', function () { var processedStr = str.trim(...
Refactor coursera tool. Add getAdjacencylist function.
Refactor coursera tool. Add getAdjacencylist function. lzhoucs|G580|Win8|WebStorm9
JavaScript
apache-2.0
lzhoucs/cs-algorithms
--- +++ @@ -1,44 +1,45 @@ var http = require('http'); -/* -* Convert from coursera sample format to javascript array. -* e.g : -* -* a.txt : -* -* 111 -* 222 -* 333 -* 444 -* -* converts to -* -* [111,222,333,444] -* */ -var strToArray = function(str) { - return str.trim().split('\r\n').map(function (elStr) { -...
b43e6f2a5fdbb355369d82a2c5ff65f5b0e42a23
webroot/rsrc/js/application/repository/repository-crossreference.js
webroot/rsrc/js/application/repository/repository-crossreference.js
/** * @provides javelin-behavior-repository-crossreference * @requires javelin-behavior * javelin-dom * javelin-uri */ JX.behavior('repository-crossreference', function(config) { // NOTE: Pretty much everything in this file is a worst practice. We're // constrained by the markup generated...
/** * @provides javelin-behavior-repository-crossreference * @requires javelin-behavior * javelin-dom * javelin-uri */ JX.behavior('repository-crossreference', function(config) { // NOTE: Pretty much everything in this file is a worst practice. We're // constrained by the markup generated...
Make symbol linking more lenient.
Make symbol linking more lenient. Summary: Sometimes a symbol has a nested <span> in it. Clicks on that should count as clicks on the symbol. So keep looking for symbols among the ancestors of the click target. This is a silly method because I don't know if there's a more idiomatic way to do it in Javelin. Test Plan...
JavaScript
apache-2.0
parksangkil/phabricator,hach-que/unearth-phabricator,freebsd/phabricator,phacility/phabricator,dannysu/phabricator,wxstars/phabricator,schlaile/phabricator,apexstudios/phabricator,optimizely/phabricator,Soluis/phabricator,MicroWorldwide/phabricator,Drooids/phabricator,devurandom/phabricator,wikimedia/phabricator-phabri...
--- +++ @@ -19,17 +19,21 @@ function(e) { var target = e.getTarget(); var map = {nc : 'class', nf : 'function'}; - if (JX.DOM.isNode(target, 'span') && (target.className in map)) { - var symbol = target.textContent || target.innerText; - var uri = JX.$U('/diffusion/symbol/' + sym...
48c94504fce5b6ccbdd84dec3e676a6867c0125f
lib/convoy.js
lib/convoy.js
var Queue = require('./queue'); var Job = require('./job'); var Worker = require('./worker'); var redis = require('./redis'); exports.redis = redis; exports.createQueue = function(name){ var q = new Queue(name); q.client = exports.redis.createClient(); q.workerClient = exports.redis.createClient(); return q; ...
var Queue = require('./queue'); var Job = require('./job'); var Worker = require('./worker'); var redis = require('./redis'); exports.redis = redis; exports.createQueue = function(name, opts){ if(!opts) opts = {}; if(typeof opts.redis == 'undefined'){ opts.redis = redis; } var q = new Queue(name, ...
Send redis library to queue via opts
Send redis library to queue via opts
JavaScript
mit
gosquared/convoy,intertwine/convoy
--- +++ @@ -5,10 +5,15 @@ exports.redis = redis; -exports.createQueue = function(name){ - var q = new Queue(name); - q.client = exports.redis.createClient(); - q.workerClient = exports.redis.createClient(); +exports.createQueue = function(name, opts){ + if(!opts) + opts = {}; + + if(typeof opts.redis =...
67ffd189c4717ff78dc04fdc7268d60e4840eebf
lib/linter.js
lib/linter.js
var JSLINT = require("../lib/nodelint"); function addDefaults(options) { 'use strict'; ['node', 'es5'].forEach(function (opt) { if (!options.hasOwnProperty(opt)) { options[opt] = true; } }); return options; } exports.lint = function (script, options) { 'use strict'; ...
var JSLINT = require("../lib/nodelint"); function addDefaults(options) { 'use strict'; ['node', 'es5'].forEach(function (opt) { if (!options.hasOwnProperty(opt)) { options[opt] = true; } }); return options; } exports.lint = function (script, options) { 'use strict'; ...
Fix unexpected error when there is no context in an error
Fix unexpected error when there is no context in an error
JavaScript
bsd-3-clause
BenoitZugmeyer/node-jslint-extractor,BenoitZugmeyer/node-jslint-extractor
--- +++ @@ -29,7 +29,7 @@ if (!ok) { result = JSLINT.data(); result.errors = (result.errors || []).filter(function (error) { - return !(/\/\/.*bypass/).test(error.evidence); + return !error.evidence || !(/\/\/.*bypass/).test(error.evidence); }); result.ok...
35631043b65738731b8dc51dcf6df818b454acfd
app/js/arethusa.artificial_token/directives/artificial_token_list.js
app/js/arethusa.artificial_token/directives/artificial_token_list.js
"use strict"; angular.module('arethusa.artificialToken').directive('artificialTokenList', [ 'artificialToken', 'idHandler', function(artificialToken, idHandler) { return { restrict: 'A', scope: true, link: function(scope, element, attrs) { scope.aT = artificialToken; scope.f...
"use strict"; angular.module('arethusa.artificialToken').directive('artificialTokenList', [ 'artificialToken', 'idHandler', function(artificialToken, idHandler) { return { restrict: 'A', scope: true, link: function(scope, element, attrs) { scope.aT = artificialToken; scope.f...
Fix id formatting in artificialTokenList
Fix id formatting in artificialTokenList
JavaScript
mit
latin-language-toolkit/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,alpheios-project/arethusa
--- +++ @@ -10,7 +10,7 @@ link: function(scope, element, attrs) { scope.aT = artificialToken; scope.formatId = function(id) { - return idHandler.formatId(id, '%w'); + return idHandler.formatId(id, '%s-%w'); }; }, templateUrl: 'templates/arethusa.artifi...
3650f297790e9c53fe609e72c65771b70e1af6ab
app/scripts/directives/radioQuestion.js
app/scripts/directives/radioQuestion.js
'use strict'; angular.module('confRegistrationWebApp') .directive('radioQuestion', function () { return { templateUrl: 'views/radioQuestion.html', restrict: 'E', controller: function ($scope) { $scope.answer = {}; } }; });
'use strict'; angular.module('confRegistrationWebApp') .directive('radioQuestion', function () { return { templateUrl: 'views/radioQuestion.html', restrict: 'E', controller: function ($scope) { $scope.updateAnswer = function (answer) { console.log('block ' + $scope.block.id + ...
Add the previously removed updateAnswer function
Add the previously removed updateAnswer function
JavaScript
mit
CruGlobal/conf-registration-web,CruGlobal/conf-registration-web,CruGlobal/conf-registration-web,CruGlobal/conf-registration-web
--- +++ @@ -6,6 +6,9 @@ templateUrl: 'views/radioQuestion.html', restrict: 'E', controller: function ($scope) { + $scope.updateAnswer = function (answer) { + console.log('block ' + $scope.block.id + ' answer changed to ' + answer); + }; $scope.answer = {}; }...
201376a144a28953616f6412d544ee7585808b53
lib/marked.js
lib/marked.js
var escape = require('./util/escape') var format = require('string-template'); var hljs = require('highlight.js'); var heading = require('./util/writeHeading'); var marked = require('marked'); var multiline = require('multiline'); var mdRenderer = new marked.Renderer(); var HTML_EXAMPLE_TEMPLATE = mul...
var escape = require('./util/escape') var format = require('string-template'); var hljs = require('highlight.js'); var heading = require('./util/writeHeading'); var marked = require('marked'); var multiline = require('multiline'); var mdRenderer = new marked.Renderer(); var HTML_EXAMPLE_TEMPLATE = mul...
Fix incorrect require() path in Marked renderer
Fix incorrect require() path in Marked renderer
JavaScript
mit
zurb/foundation-docs,zurb/foundation-docs
--- +++ @@ -24,7 +24,7 @@ var extraOutput = ''; if (language === 'inky') { - return require('./buildInkySample')(code); + return require('./util/buildInkySample')(code); } if (typeof language === 'undefined') language = 'html';
a1e8fb35145d772c9766b0e279b75969a2192491
src/index.js
src/index.js
export function search(select, queryString, callback) { select.find('input').simulate('change', { target: { value: queryString } }); setTimeout(() => { callback(); }, 0); } export function chooseOption(select, optionText) { const options = select.find('.Select-option span'); const matchingOptions = options.fin...
import Select from 'react-select'; function findSelect(wrapper) { const plainSelect = wrapper.find(Select); if (plainSelect.length > 0) { return plainSelect; } const asyncSelect = wrapper.find(Select.Async); if (asyncSelect.length > 0) { return asyncSelect; } throw "Couldn't find Select or Sele...
Make helpers a little more robust by searching specifically for Select or Select.Async components
Make helpers a little more robust by searching specifically for Select or Select.Async components
JavaScript
mit
patientslikeme/react-select-test-utils
--- +++ @@ -1,19 +1,35 @@ -export function search(select, queryString, callback) { - select.find('input').simulate('change', { target: { value: queryString } }); - setTimeout(() => { callback(); }, 0); +import Select from 'react-select'; + +function findSelect(wrapper) { + const plainSelect = wrapper.find(Select);...
903a944fd035f558f862dc7e8fa86d45625a6a9d
src/index.js
src/index.js
import {StreamTransformer} from './stream.transformer'; import {TracebackTransformer} from './traceback.transformer'; import {LaTeXTransformer} from './latex.transformer'; import {MarkdownTransformer} from 'transformime-commonmark'; import {PDFTransformer} from './pdf.transformer'; export default {StreamTransformer, T...
import {StreamTransformer} from './stream.transformer'; import {TracebackTransformer} from './traceback.transformer'; import {LaTeXTransformer} from './latex.transformer'; import {MarkdownTransformer} from 'transformime-commonmark'; import {PDFTransformer} from './pdf.transformer'; export default { StreamTransform...
Include the PDF and LaTeX Transformers
Include the PDF and LaTeX Transformers
JavaScript
bsd-3-clause
rgbkrk/transformime-jupyter-transformers,jdfreder/transformime-jupyter-transformers,nteract/transformime-jupyter-transformers,nteract/transformime-jupyter-renderers
--- +++ @@ -4,4 +4,10 @@ import {MarkdownTransformer} from 'transformime-commonmark'; import {PDFTransformer} from './pdf.transformer'; -export default {StreamTransformer, TracebackTransformer, MarkdownTransformer}; +export default { + StreamTransformer, + TracebackTransformer, + MarkdownTransformer, + ...
fd91b33f7fb3538a11c5a1096fbef0155a24afe0
lib/routes.js
lib/routes.js
Router.configure({ layoutTemplate: 'layout' }); Router.route('/votes', {name: 'votesList'}); Router.route('/iframe', {name: 'iFrame'}); Router.route('/submitvote', {name: 'submitVote'}); Router.route('/signup', {name: 'signup'}); Router.route('/scores', {name: 'scoreCard'}); Router.route('/login', {name: 'loginpage'}...
Router.configure({ layoutTemplate: 'layout' }); Router.route('/', {name: 'votesList'}); Router.route('/iframe', {name: 'iFrame'}); Router.route('/submitvote', {name: 'submitVote'}); Router.route('/signup', {name: 'signup'}); Router.route('/scores', {name: 'scoreCard'}); Router.route('/login', {name: 'loginpage'}); ...
Change votes route to /
Change votes route to /
JavaScript
agpl-3.0
gazhayes/Popvote-Australia,gazhayes/popvote,gazhayes/Popvote-Australia,gazhayes/popvote
--- +++ @@ -1,7 +1,7 @@ Router.configure({ layoutTemplate: 'layout' }); -Router.route('/votes', {name: 'votesList'}); +Router.route('/', {name: 'votesList'}); Router.route('/iframe', {name: 'iFrame'}); Router.route('/submitvote', {name: 'submitVote'}); Router.route('/signup', {name: 'signup'});
ec8a6e644a68f05da723bf5f463bda662ad0dde1
lib/router.js
lib/router.js
Router.configure({ layoutTemplate: 'layout', loadingTemplate: 'loading', notFoundTemplate: 'notFound', waitOn: function() { return [Meteor.subscribe('posts'), Meteor.subscribe('notifications')]; } }); Router.route('/', { name: 'postsList'}); Router.route('/posts/:_id', { name: 'postPage', waitOn: f...
Router.configure({ layoutTemplate: 'layout', loadingTemplate: 'loading', notFoundTemplate: 'notFound', waitOn: function() { return Meteor.subscribe('notifications'); } }); Router.route('/', { name: 'postsList'}); Router.route('/posts/:_id', { name: 'postPage', waitOn: function() { return Meteor...
Add route to limit posts
Add route to limit posts
JavaScript
mit
Bennyz/microscope,Bennyz/microscope
--- +++ @@ -3,7 +3,7 @@ loadingTemplate: 'loading', notFoundTemplate: 'notFound', waitOn: function() { - return [Meteor.subscribe('posts'), Meteor.subscribe('notifications')]; + return Meteor.subscribe('notifications'); } }); @@ -30,6 +30,14 @@ Router.route('/submit', { name: 'postSubmit' }); ...
c11be7a5d0e635699f079e4d4151a0ffaeec4603
src/candela/components/index.js
src/candela/components/index.js
import BarChart from './BarChart'; import BoxPlot from './BoxPlot'; import BulletChart from './BulletChart'; import GanttChart from './GanttChart'; import Geo from './Geo'; import Heatmap from './Heatmap'; import Histogram from './Histogram'; import LineChart from './LineChart'; import LineUp from './LineUp'; import Pa...
import BarChart from './BarChart'; import BoxPlot from './BoxPlot'; import BulletChart from './BulletChart'; import GanttChart from './GanttChart'; import Geo from './Geo'; import Heatmap from './Heatmap'; import Histogram from './Histogram'; import LineChart from './LineChart'; import LineUp from './LineUp'; import Pa...
Replace lost classes in components list
Replace lost classes in components list
JavaScript
apache-2.0
Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela
--- +++ @@ -23,5 +23,7 @@ LineChart, LineUp, ParallelCoordinates, + ScatterPlot, + ScatterPlotMatrix, UpSet };
f9ea9934ee9cfc21d9b1642452977c4f30474491
src/client/app/trades/trades.js
src/client/app/trades/trades.js
"use strict"; (function () { angular .module("argo") .controller("Trades", Trades); Trades.$inject = ["toastService", "tradesService"]; function Trades(toastService, tradesService) { var vm = this; vm.getTrades = getTrades; vm.closeTrade = closeTrade; trad...
"use strict"; (function () { angular .module("argo") .controller("Trades", Trades); Trades.$inject = ["$mdDialog", "toastService", "tradesService"]; function Trades($mdDialog, toastService, tradesService) { var vm = this; vm.getTrades = getTrades; vm.closeTrade = c...
Add confirmation dialog to close trade.
Add confirmation dialog to close trade.
JavaScript
mit
albertosantini/argo,albertosantini/argo
--- +++ @@ -5,8 +5,8 @@ .module("argo") .controller("Trades", Trades); - Trades.$inject = ["toastService", "tradesService"]; - function Trades(toastService, tradesService) { + Trades.$inject = ["$mdDialog", "toastService", "tradesService"]; + function Trades($mdDialog, toastService, tr...
637339c263e278e99b4bec3eb1b48d3c721ab57b
src/index.js
src/index.js
var Transmitter = function (config) { var router = require('./router.js'); router(config); var io = require('socket.io')(router.server); // Socket.io connection handling io.on('connection', function(socket){ console.log('PULSAR: client connected'); socket.on('disconnect', function() { console...
var Transmitter = function (config) { var router = require('./router.js'); router(config); var io = require('socket.io')(router.server); // Socket.io connection handling io.on('connection', function(socket){ console.log('PULSAR: client connected'); socket.on('disconnect', function() { console....
Use the new EventEmitter input by passing its events to socket.io
Use the new EventEmitter input by passing its events to socket.io
JavaScript
mit
Dermah/pulsar-transmitter
--- +++ @@ -4,7 +4,7 @@ router(config); var io = require('socket.io')(router.server); - // Socket.io connection handling + // Socket.io connection handling io.on('connection', function(socket){ console.log('PULSAR: client connected'); socket.on('disconnect', function() { @@ -13,7 +13,17 @@ ...
0ee8baa8d70d20502f8c3134f6feea475646fbca
src/index.js
src/index.js
"use strict"; const http = require('http'); const mongoose = require('mongoose'); const requireAll = require('require-all'); const TelegramBot = require('node-telegram-bot-api'); const GitHubNotifications = require('./common/GitHubNotifications'); const User = require('./models/User'); const BOT_COMMANDS = requireAll...
"use strict"; const http = require('http'); const mongoose = require('mongoose'); const requireAll = require('require-all'); const TelegramBot = require('node-telegram-bot-api'); const GitHubNotifications = require('./services/GitHubNotifications'); const User = require('./models/User'); const BOT_COMMANDS = requireA...
Implement switching to webhooks in production
feat(bot): Implement switching to webhooks in production
JavaScript
mit
ghaiklor/telegram-bot-github
--- +++ @@ -4,7 +4,7 @@ const mongoose = require('mongoose'); const requireAll = require('require-all'); const TelegramBot = require('node-telegram-bot-api'); -const GitHubNotifications = require('./common/GitHubNotifications'); +const GitHubNotifications = require('./services/GitHubNotifications'); const User = ...
d8e2ceeb05de3c2fda22ef00486d50ef7fe9379c
src/index.js
src/index.js
'use strict'; require('foundation-sites/scss/foundation.scss') require('./styles.scss'); require('font-awesome/css/font-awesome.css'); // Require index.html so it gets copied to dist require('./index.html'); var Elm = require('./Main.elm'); var mountNode = document.getElementById('main'); // The third value on embe...
'use strict'; require('./styles.scss'); require('font-awesome/css/font-awesome.css'); // Require index.html so it gets copied to dist require('./index.html'); var Elm = require('./Main.elm'); var mountNode = document.getElementById('main'); // The third value on embed are the initial values for incomming ports into...
Remove foundation-sites require as foundation is not used anymore.
Remove foundation-sites require as foundation is not used anymore. Signed-off-by: Snorre Magnus Davøen <b6ec5a60a98746258b9d59fdb44419d796d6053e@gmail.com>
JavaScript
mit
Snorremd/builds-dashboard-gitlab,Snorremd/builds-dashboard-gitlab
--- +++ @@ -1,6 +1,5 @@ 'use strict'; -require('foundation-sites/scss/foundation.scss') require('./styles.scss'); require('font-awesome/css/font-awesome.css');
bb40f82aaa28cfef7b362f97bbc0ef332b925fe0
sandbox-react-redux/src/enhancer.js
sandbox-react-redux/src/enhancer.js
export default function enhancer() { return (next) => (reducer, preloadedState) => { const initialState = Object.assign({}, preloadedState, loadState(restoreState)); const store = next(reducer, initialState); store.subscribe(() => saveState(store.getState())); return store; } } ...
export default function enhancer() { return (next) => (reducer, preloadedState) => { const initialState = Object.assign({}, preloadedState, loadState(restoreState)); const store = next(reducer, initialState); store.subscribe(() => saveState(store.getState(), filterState)); return sto...
Tweak sample for react-redux in order to use local storage
Tweak sample for react-redux in order to use local storage
JavaScript
mit
ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox,ohtomi/sandbox
--- +++ @@ -2,7 +2,7 @@ return (next) => (reducer, preloadedState) => { const initialState = Object.assign({}, preloadedState, loadState(restoreState)); const store = next(reducer, initialState); - store.subscribe(() => saveState(store.getState())); + store.subscribe(() => saveSta...
8b9af7220cc36962794a953525505bb57d8f426e
public/assets/wee/build/tasks/legacy-convert.js
public/assets/wee/build/tasks/legacy-convert.js
/* global legacyConvert, module, project */ module.exports = function(grunt) { grunt.registerTask('convertLegacy', function(task) { var dest = legacyConvert[task], content = grunt.file.read(dest), rootSize = project.style.legacy.rootSize, rootValue = 10; // Determine root value for unit conversion if ...
/* global legacyConvert, module, project */ module.exports = function(grunt) { grunt.registerTask('convertLegacy', function(task) { var dest = legacyConvert[task], content = grunt.file.read(dest), rootSize = project.style.legacy.rootSize, rootValue = 10; // Determine root value for unit conversion if ...
Replace :: with : in IE8 for backward compatibility with element pseudo selectors
Replace :: with : in IE8 for backward compatibility with element pseudo selectors
JavaScript
apache-2.0
weepower/wee,janusnic/wee,weepower/wee,janusnic/wee
--- +++ @@ -22,7 +22,7 @@ return (match * rootValue) + 'px'; }).replace(/opacity:([.\d]+)/gi, function(str, match) { return 'filter:alpha(opacity=' + Math.round((match * 100) * 100 / 100) + ');'; - }); + }).replace(/::/g, ':'); grunt.file.write(dest, content); });
729fb1c904ca57b39110894b85e8439a11cab554
src/widgets/Wizard.js
src/widgets/Wizard.js
/* eslint-disable import/no-named-as-default */ /* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Stepper } from './Stepper'; import { TabNavigator } from './TabNavigator'; import DataTablePageView from './DataTab...
/* eslint-disable import/no-named-as-default */ /* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Stepper } from './Stepper'; import { TabNavigator } from './TabNavigator'; import DataTablePageView from './DataTab...
Add renaming of nextTab -> switchTab
Add renaming of nextTab -> switchTab
JavaScript
mit
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
--- +++ @@ -16,12 +16,12 @@ * to completion for completion. See TabNavigator and StepsTracker * for individual component implementation. */ -const WizardComponent = ({ tabs, titles, currentTab, nextTab }) => ( +const WizardComponent = ({ tabs, titles, currentTab, switchTab }) => ( <DataTablePageView> <S...
04b32b2c6f6bc92f9fbe6cc994c137968f4b522c
lib/i18n/dicts.js
lib/i18n/dicts.js
module.exports = { 'ar': require('../../i18n/ar.json'), 'da': require('../../i18n/da.json'), 'de': require('../../i18n/de.json'), 'en': require('../../i18n/en.json'), 'es': require('../../i18n/es.json'), 'fr': require('../../i18n/fr-FR.json'), 'fr-FR': require('../../i18n/fr-FR.json'), 'he': require('.....
module.exports = { 'ar': require('../../i18n/ar.json'), 'da': require('../../i18n/da.json'), 'de': require('../../i18n/de.json'), 'en': require('../../i18n/en.json'), 'es': require('../../i18n/es.json'), 'fr': require('../../i18n/fr-FR.json'), 'fr-FR': require('../../i18n/fr-FR.json'), 'he': require('.....
Add polish dict to base code
Add polish dict to base code
JavaScript
mit
cwilgenhoff/lock,cwilgenhoff/lock,adam2314/lock,cwilgenhoff/lock,adam2314/lock,adam2314/lock
--- +++ @@ -13,6 +13,7 @@ 'nb-NO': require('../../i18n/nb-NO.json'), 'nl': require('../../i18n/nl-NL.json'), 'nl-NL': require('../../i18n/nl-NL.json'), + 'pl': require('../../i18n/pl.json'), 'pt': require('../../i18n/pt.json'), 'pt-BR': require('../../i18n/pt-BR.json'), 'ru': require('../../i18n/ru...
28b05e832339fafe433e5970b00466f5a915b895
website/app/application/core/projects/project/processes/process-list-controller.js
website/app/application/core/projects/project/processes/process-list-controller.js
(function (module) { module.controller('projectListProcess', projectListProcess); projectListProcess.$inject = ["processes", "project", "$state", "mcmodal", "$filter"]; function projectListProcess(processes, project, $state, mcmodal, $filter) { console.log('projectListProcess'); var ctrl = ...
(function (module) { module.controller('projectListProcess', projectListProcess); projectListProcess.$inject = ["processes", "project", "$state", "mcmodal", "$filter"]; function projectListProcess(processes, project, $state, mcmodal, $filter) { var ctrl = this; ctrl.viewProcess = viewProce...
Remove debug of ui router state changes.
Remove debug of ui router state changes.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
--- +++ @@ -3,7 +3,6 @@ projectListProcess.$inject = ["processes", "project", "$state", "mcmodal", "$filter"]; function projectListProcess(processes, project, $state, mcmodal, $filter) { - console.log('projectListProcess'); var ctrl = this; ctrl.viewProcess = viewProcess; @@ -12...
e022dd7bd62f4f088a9d943adfc5258fbfc91006
app/components/Pit/index.js
app/components/Pit/index.js
import React, { PropTypes } from 'react'; import './index.css'; const Pit = React.createClass({ propTypes: { pit: PropTypes.object.isRequired, }, render() { const { pit } = this.props; return ( <div className="Pit"> <div className="Pit-name">{pit.name}</div> <div className="P...
import React, { PropTypes } from 'react'; import './index.css'; const Pit = React.createClass({ propTypes: { pit: PropTypes.object.isRequired, }, render() { const { pit } = this.props; return ( <div className="Pit"> <div className="Pit-name">{pit.name}</div> <div className="P...
Add keys to table loop
Add keys to table loop
JavaScript
mit
transparantnederland/browser,waagsociety/tnl-relationizer,transparantnederland/browser,transparantnederland/relationizer,waagsociety/tnl-relationizer,transparantnederland/relationizer
--- +++ @@ -17,12 +17,14 @@ <div className="Pit-dataset">{pit.dataset}</div> <div className="Pit-id">{pit.id}</div> <table> - {Object.keys(pit.data).map((key) => - <tr> - <td>{key}</td> - <td>{pit.data[key]}</td> - </tr> - )} + ...
885f50a52c41cbc50f8de0d46ef57fc62fce1c17
src/actions/socketActionsFactory.js
src/actions/socketActionsFactory.js
import { SOCKET_SET_OPENING, SOCKET_SET_CLOSING, SOCKET_SEND_MESSAGE } from "../constants/ActionTypes"; export default (socketClient) => ({ open: url => { const action = { type: SOCKET_SET_OPENING }; try { socketClient.open(url); action.payload = url; } catch (er...
import { SOCKET_SET_OPENING, SOCKET_SET_CLOSING, SOCKET_SEND_MESSAGE } from "../constants/ActionTypes"; export default (socketClient) => ({ open: url => { const action = { type: SOCKET_SET_OPENING }; try { socketClient.open(url); action.payload = url; } catch (er...
Add message to SEND_MESSAGE action for debugging.
Add message to SEND_MESSAGE action for debugging.
JavaScript
mit
letitz/solstice-web,letitz/solstice-web
--- +++ @@ -30,6 +30,7 @@ const action = { type: SOCKET_SEND_MESSAGE }; try { socketClient.send(JSON.stringify(message)); + action.payload = message; } catch (err) { action.error = true; action.payload = err;
f9efd3ba4b435a46a47aec284a30abe83efb9e6a
src/reducers/FridgeReducer.js
src/reducers/FridgeReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import moment from 'moment'; import { UIDatabase } from '../database'; import { FRIDGE_ACTIONS } from '../actions/FridgeActions'; const initialState = () => { const fridges = UIDatabase.objects('Location'); return { fridges, selectedFridge...
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import moment from 'moment'; import { UIDatabase } from '../database'; import { FRIDGE_ACTIONS } from '../actions/FridgeActions'; const initialState = () => { const fridges = UIDatabase.objects('Location'); return { fridges, selectedFridge...
Add UTC manipulation of dates for to and froms
Add UTC manipulation of dates for to and froms
JavaScript
mit
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
--- +++ @@ -35,14 +35,20 @@ const { payload } = action; const { date } = payload; - return { ...state, fromDate: date }; + const fromDate = new Date(date); + fromDate.setUTCHours(0, 0, 0, 0); + + return { ...state, fromDate }; } case FRIDGE_ACTIONS.CHANGE_TO_DATE: { ...
d3c58065a12e493e0a30bcdb9d19dcfebebff83e
src/misterT/skills/warnAboutMissingTimesheet.js
src/misterT/skills/warnAboutMissingTimesheet.js
'use strict'; const moment = require('moment') const _ = require('lodash') const lastBusinessDay = require('../../businessDays').last module.exports = ({ getChatUsers, getWorkEntries }) => { return async function warnAboutMissingTimesheet () { const day = lastBusinessDay(moment()).format('YYYY-MM-DD'); con...
'use strict'; const moment = require('moment') const _ = require('lodash') const lastBusinessDay = require('../../businessDays').last module.exports = ({ getChatUsers, getWorkEntries }) => { return async function warnAboutMissingTimesheet () { const day = lastBusinessDay(moment()).format('YYYY-MM-DD'); con...
Add link to report from hell
Add link to report from hell
JavaScript
mit
ideatosrl/mister-t
--- +++ @@ -19,7 +19,7 @@ if (hours < 8) { return { - text: `Ieri ha segnato solo ${hours} ore\n, non è che ti sei dimenticato di qualcosa?`, + text: `Ieri ha segnato solo ${hours} ore, non è che ti sei dimenticato di qualcosa?\n Puoi <https://report.ideato.it/|aggiornare i...
fe0a75812fd1e26ad45cf2457230641ed12af605
static/js/base.js
static/js/base.js
'use strict'; if (!waitlist) { var waitlist = {}; } waitlist.base = (function(){ function getMetaData (name) { return $('meta[name="'+name+'"]').attr('content'); } function displayMessage(message, type, html=false) { var alertHTML = $($.parseHTML(`<div class="alert alert-dismissible alert-${type}" role="ale...
'use strict'; if (!waitlist) { var waitlist = {}; } waitlist.base = (function(){ function getMetaData (name) { return $('meta[name="'+name+'"]').attr('content'); } function displayMessage(message, type, html=false, id=false) { var alertHTML = $($.parseHTML(`<div class="alert alert-dismissible alert-${type}"...
Update alert to allow for setting an id.
Update alert to allow for setting an id.
JavaScript
mit
SpeedProg/eve-inc-waitlist,SpeedProg/eve-inc-waitlist,SpeedProg/eve-inc-waitlist,SpeedProg/eve-inc-waitlist
--- +++ @@ -9,7 +9,7 @@ return $('meta[name="'+name+'"]').attr('content'); } - function displayMessage(message, type, html=false) { + function displayMessage(message, type, html=false, id=false) { var alertHTML = $($.parseHTML(`<div class="alert alert-dismissible alert-${type}" role="alert"> <button t...
d34f4ef6b96090913839b158423d912bd18a585f
release.js
release.js
var shell = require('shelljs'); if (exec('git status --porcelain').output != '') { console.error('Git working directory not clean.'); process.exit(2); } var versionIncrement = process.argv[process.argv.length -1]; if (versionIncrement != 'major' && versionIncrement != 'minor' && versionIncrement != 'patch') { ...
var shell = require('shelljs'); if (exec('git status --porcelain').stdout != '') { console.error('Git working directory not clean.'); process.exit(2); } var versionIncrement = process.argv[process.argv.length -1]; if (versionIncrement != 'major' && versionIncrement != 'minor' && versionIncrement != 'pat...
Fix checking of exec output
Fix checking of exec output
JavaScript
isc
saintedlama/git-visit
--- +++ @@ -1,6 +1,6 @@ var shell = require('shelljs'); -if (exec('git status --porcelain').output != '') { +if (exec('git status --porcelain').stdout != '') { console.error('Git working directory not clean.'); process.exit(2); } @@ -14,7 +14,7 @@ exec('npm version ' + versionIncrement); -exec('npm tes...
d4673dcb8a1b07edec917c390311b20b22fd91c7
app/javascript/app/components/scroll-to-highlight-index/scroll-to-highlight-index.js
app/javascript/app/components/scroll-to-highlight-index/scroll-to-highlight-index.js
import { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { scrollIt } from 'utils/scroll'; class ScrollToHighlightIndex extends PureComponent { // eslint-disable-line react/prefer-stateless-function componentDidMount() { setTimeout(this.handleScroll, 150); } componentWillReceivePr...
import { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { scrollIt } from 'utils/scroll'; class ScrollToHighlightIndex extends PureComponent { // eslint-disable-line react/prefer-stateless-function componentDidMount() { setTimeout(this.handleScroll, 150); } componentWillReceivePr...
Use index to scroll to desired target
Use index to scroll to desired target
JavaScript
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
--- +++ @@ -16,12 +16,11 @@ handleScroll = () => { const { idx, targetElementsSelector } = this.props; - const e = idx + const target = idx ? document.querySelectorAll(targetElementsSelector)[idx] : document.querySelectorAll(targetElementsSelector)[0]; - - if (e) { - scrollIt(doc...
98cb394af2d4244c85ddaf2e5ef02fa4e1c9c2c1
templates/localise.js
templates/localise.js
function localizeHtmlPage() { //Localize by replacing __MSG_***__ meta tags var objects = document.querySelectorAll('.message'); for (var j = 0; j < objects.length; j++) { var obj = objects[j]; var valStrH = obj.innerHTML.toString(); var valNewH = valStrH.replace(/__MSG_(\w+)__/g, function (match, v1) { re...
function localizeHtmlPage() { //Localize by replacing __MSG_***__ meta tags var objects = document.querySelectorAll('.message'); for (var j = 0; j < objects.length; j++) { var obj = objects[j]; var valStrH = obj.innerHTML.toString(); var valNewH = valStrH.replace(/__MSG_(\w+)__/g, function (match, v1) { re...
Change to using textContent instead of innerHTML
Change to using textContent instead of innerHTML
JavaScript
mit
codefisher/mozbutton_sdk,codefisher/mozbutton_sdk
--- +++ @@ -10,7 +10,7 @@ }); if (valNewH != valStrH) { - obj.innerHTML = valNewH; + obj.textContent = valNewH; } } }
1a43f902beb82336e9f66dc75b1768721dc419c0
frontend/app/components/modal-dialog.js
frontend/app/components/modal-dialog.js
import Ember from "ember"; export default Ember.Component.extend({ didInsertElement: function() { // show the dialog this.$('.modal').modal('show'); // send the according action after it has been hidden again var _this = this; this.$('.modal').one('hidden.bs.modal', function() { Ember.run(...
import Ember from "ember"; export default Ember.Component.extend({ didInsertElement: function() { // show the dialog this.$('.modal').modal('show'); // send the according action after it has been hidden again var _this = this; this.$('.modal').one('hidden.bs.modal', function() { Ember.run(...
Hide dialog when leaving route
Hide dialog when leaving route
JavaScript
apache-2.0
uboot/stromx-web,uboot/stromx-web,uboot/stromx-web
--- +++ @@ -14,6 +14,9 @@ }); }); }, + willDestroyElement: function() { + this.$('.modal').modal('hide'); + }, showDoNotAccept: Ember.computed.notEmpty('doNotAcceptText'), actions: { accept: function() {
717f919a0ddc00e989889ac1957209f758d3ce96
test/banterbot.js
test/banterbot.js
// // Copyright (c) 2016-2017 DrSmugleaf // "use strict" require("dotenv").config({ path: __dirname + "/../.env" }) const constants = require("../libs/util/constants") const client = require("../banterbot").client before(function(done) { global.constants = constants global.client = client client.on("dbReady", (...
// // Copyright (c) 2016-2017 DrSmugleaf // "use strict" require("dotenv").config({ path: __dirname + "/../.env" }) const constants = require("../libs/util/constants") const client = require("../banterbot").client before(function(done) { global.constants = constants global.client = client client.on("dbReady", (...
Change mocha tests discord channel name to test
Change mocha tests discord channel name to test
JavaScript
apache-2.0
DrSmugleaf/Banter-Bot,DrSmugleaf/Banter-Bot
--- +++ @@ -12,7 +12,7 @@ global.client = client client.on("dbReady", () => { global.guild = client.guilds.get("260158980343463937") - global.guild.createChannel("mocha-tests", "text").then((channel) => { + global.guild.createChannel("test", "text").then((channel) => { global.channel = channel...
6bfdb7fc09ad70b20fa4864fdde18db311fa3db9
src/main/web/florence/js/functions/_environment.js
src/main/web/florence/js/functions/_environment.js
function isDevOrSandpit () { var hostname = window.location.hostname; var env = {}; if(hostname.indexOf('develop') > -1) { env.name = 'develop' } if(hostname.indexOf('sandpit') > -1) { env.name = 'sandpit' } // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localh...
function isDevOrSandpit () { var hostname = window.location.hostname; var env = {}; if(hostname.indexOf('develop') > -1) { env.name = 'develop' } if(hostname.indexOf('sandpit') > -1) { env.name = 'sandpit' } // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localh...
Check localhost domain to set env notification
Check localhost domain to set env notification
JavaScript
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -10,7 +10,7 @@ env.name = 'sandpit' } - // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localhost'))) { + // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localhost')) > -1) { // env.name = 'localhost' // }
1389db463184fcccbded21eec2ba2c61c6d16d91
tools/utils/gc.js
tools/utils/gc.js
import { throttle } from "underscore"; export const requestGarbageCollection = // For this global function to be defined, the --expose-gc flag must // have been passed to node at the bottom of the ../../meteor script, // probably via the TOOL_NODE_FLAGS environment variable. typeof global.gc === "function" ...
import { throttle } from "underscore"; export const requestGarbageCollection = // For this global function to be defined, the --expose-gc flag must // have been passed to node at the bottom of the ../../meteor script, // probably via the TOOL_NODE_FLAGS environment variable. typeof global.gc === "function" ...
Increase garbage collection throttling delay.
Increase garbage collection throttling delay. May help with this problem, which seems to stem from too much GC: https://github.com/meteor/meteor/pull/8728#issuecomment-337636773 If this isn't enough, we could include this commit in 1.6.1: https://github.com/meteor/meteor/commit/5d212926e795bba714abc9ca2b86429eff2831d...
JavaScript
mit
Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor
--- +++ @@ -5,6 +5,6 @@ // have been passed to node at the bottom of the ../../meteor script, // probably via the TOOL_NODE_FLAGS environment variable. typeof global.gc === "function" - // Restrict actual garbage collections to once per 500ms. - ? throttle(global.gc, 500) + // Restrict actual garbag...
e3389659239731bb5bb367061cc0dd113998097f
src/containers/NewsFeedContainer.js
src/containers/NewsFeedContainer.js
/* NewsFeedContainer.js * Container for our NewsFeed as a view * Dependencies: ActionTypes * Modules: NewsActions, and NewsFeed * Author: Tiffany Tse * Created: July 29, 2017 */ //import dependencie import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; //import modules import { loadN...
/* NewsFeedContainer.js * Container for our NewsFeed as a view * Dependencies: ActionTypes * Modules: NewsActions, and NewsFeed * Author: Tiffany Tse * Created: July 29, 2017 */ //import dependencie import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; //import modules import { loadN...
Update reshapeNewsData to use allNewsSelector and pass state to it
Update reshapeNewsData to use allNewsSelector and pass state to it
JavaScript
mit
titse/NYTimes-Clone,titse/NYTimes-Clone,titse/NYTimes-Clone
--- +++ @@ -17,7 +17,7 @@ //create state for mapStateToProps which exposes state tree's news property as a prop //to NewsFeed called news const mapStateToProps = state ({ - news: reshapeNewsData(state.news); + news: allNewsSelector(state); }); //create the dispatcher for actions as a prop
68f46c73a0de920803aebb9db5b78a28e458ea9e
lib/api/reddit.js
lib/api/reddit.js
/*jshint node:true */ "use strict"; var request = require('request'); var reddit = { top: function (subreddit, callback) { var url = "http://www.reddit.com/r/" + subreddit + "/top.json"; var currentTime = (new Date()).getTime(); request .get({url: url + "?bust=" + currentTime, json: true}, functi...
/*jshint node:true */ "use strict"; var request = require('request'); var reddit = { top: function (subreddit, callback) { var url = "http://www.reddit.com/r/" + subreddit + "/top.json"; var currentTime = new Date(); request .get({url: url + "?bust=" + currentTime, json: true}, function (error, r...
Expand timestamp json for db indicies
Expand timestamp json for db indicies
JavaScript
mit
netherwarhead/netherwarhead,netherwarhead/baconytics2,netherwarhead/netherwarhead,netherwarhead/baconytics2,netherwarhead/baconytics2,netherwarhead/netherwarhead
--- +++ @@ -6,13 +6,20 @@ var reddit = { top: function (subreddit, callback) { var url = "http://www.reddit.com/r/" + subreddit + "/top.json"; - var currentTime = (new Date()).getTime(); + var currentTime = new Date(); request .get({url: url + "?bust=" + currentTime, json: true}, function...
701feebf107a55a5720aca2ee52d40d421647cbc
js/app/app.js
js/app/app.js
App = Ember.Application.create(); // Add routes here App.Router.map(function() { // Atoms (Components) this.resource('atoms', function() { // Sub-routes here this.route('hs-button'); }); // Molecules (Modules) this.resource('molecules', function() { // Sub-routes here }); // Organisms ...
Ember.Route.reopen({ beforeModel: function(transition) { if (transition) { transition.then(function() { Ember.run.scheduleOnce('afterRender', this, function() { $(document).foundation(); }); }); } } }); App = Ember.Application.create(); // Add routes here App.Rout...
Initialize Foundation after every route transition
Initialize Foundation after every route transition
JavaScript
mit
jneurock/pattern-lib
--- +++ @@ -1,3 +1,19 @@ +Ember.Route.reopen({ + beforeModel: function(transition) { + + if (transition) { + + transition.then(function() { + + Ember.run.scheduleOnce('afterRender', this, function() { + + $(document).foundation(); + }); + }); + } + } +}); + App = Ember.Applic...
f7108b212c596ba5c3f2bbf0184d186714130e93
app/assets/javascripts/ng-app/services/control-panel-service.js
app/assets/javascripts/ng-app/services/control-panel-service.js
angular.module('myApp') .factory('ctrlPanelService', ['$rootScope', 'userService', 'locationService','transactionService', function($rootScope, $userService, locationService, transactionService) { var settings = { users: null, userId: null }; settings.updateUsers = function(users) { settings.users = users; $roo...
angular.module('myApp') .factory('ctrlPanelService', ['$rootScope', 'userService', 'locationService','transactionService', function($rootScope, $userService, locationService, transactionService) { // this service is responsible for storing and broadcasting changes // to any of the control panel's settings. These set...
Add comments for ctrlPanelService and its role
Add comments for ctrlPanelService and its role
JavaScript
mit
godspeedyoo/Breeze-Mapper,godspeedyoo/Breeze-Mapper,godspeedyoo/Breeze-Mapper
--- +++ @@ -1,6 +1,11 @@ angular.module('myApp') .factory('ctrlPanelService', ['$rootScope', 'userService', 'locationService','transactionService', function($rootScope, $userService, locationService, transactionService) { + // this service is responsible for storing and broadcasting changes + // to any of the con...
8a60c3bd25bd166d3e4c8a1bf6beb825bd84df81
gulp/psk-config.js
gulp/psk-config.js
module.exports = { // Autoprefixer autoprefixer: { // https://github.com/postcss/autoprefixer#browsers browsers: [ 'Explorer >= 10', 'ExplorerMobile >= 10', 'Firefox >= 30', 'Chrome >= 34', 'Safari >= 7', 'Opera >= 23', 'iOS >= 7', 'Android >= 4.4', 'Bla...
module.exports = { // Autoprefixer autoprefixer: { // https://github.com/postcss/autoprefixer#browsers browsers: [ 'Explorer >= 10', 'ExplorerMobile >= 10', 'Firefox >= 30', 'Chrome >= 34', 'Safari >= 7', 'Opera >= 23', 'iOS >= 7', 'Android >= 4.4', 'Bla...
Add metalsmith config to gulp config
Add metalsmith config to gulp config
JavaScript
mit
StartPolymer/polymer-static-app,StartPolymer/polymer-static-app
--- +++ @@ -14,6 +14,7 @@ 'BlackBerry >= 10' ] }, + // BrowserSync browserSync: { browser: 'default', // or ["google chrome", "firefox"] @@ -21,12 +22,19 @@ notify: false, // The small pop-over notifications in the browser. port: 9000 }, + // GitHub Pages ghPages: { b...
2c1b060470eb3cb5b9c876a3fe64ccebc1bdbcab
app/assets/javascripts/respondent/question_answered.js
app/assets/javascripts/respondent/question_answered.js
$(document).ready(function() { $(document).on('change', '.question-answered-box', function(){ the_id = $(this).data('the-id') text_answer_field = $(this).closest('.text-answer').find('.text-answer-field') matrix_answer_field = $(this).closest('.answer_fields_wrapper').find('.submission-matrix') if($(t...
$(document).ready(function() { $(document).on('change', '.question-answered-box', function(){ the_id = $(this).data('the-id') text_answer_field = $(this).closest('.text-answer').find('.text-answer-field') matrix_answer_field = $(this).closest('.answer_fields_wrapper').find('.submission-matrix') if($(t...
Mark as answered to disable all matrix input types
Mark as answered to disable all matrix input types
JavaScript
bsd-3-clause
unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS
--- +++ @@ -10,6 +10,7 @@ $("li.answer-option-"+the_id+" textarea").attr("disabled", true) $("select#answers_"+the_id).attr("disabled", true) $(matrix_answer_field).find('select').attr("disabled", true) + $(matrix_answer_field).find('input').attr("disabled", true) } else { $...
d76319bf9ba2d629fd21c1cd5ac90f0f5b8a9981
history-handler.js
history-handler.js
/* * Copyright (c) 2010 Kevin Decker (http://www.incaseofstairs.com/) * See LICENSE for license information */ var HistoryHandler = (function() { var currentHash, callbackFn; function loadHash() { return decodeURIComponent(/#(.*)$/.exec(location.href)[1]); } function checkHistory(){ var hashValue = loadHash...
/* * Copyright (c) 2010 Kevin Decker (http://www.incaseofstairs.com/) * See LICENSE for license information */ var HistoryHandler = (function() { var currentHash, callbackFn; function loadHash() { return decodeURIComponent(/#(.*)$/.exec((location.href || []))[1] || ""); } function checkHistory(){ var hashVa...
Fix no hash case in history handler
Fix no hash case in history handler
JavaScript
bsd-3-clause
leonardohipolito/border-image-generator,kpdecker/border-image-generator,kpdecker/border-image-generator,leonardohipolito/border-image-generator
--- +++ @@ -6,7 +6,7 @@ var currentHash, callbackFn; function loadHash() { - return decodeURIComponent(/#(.*)$/.exec(location.href)[1]); + return decodeURIComponent(/#(.*)$/.exec((location.href || []))[1] || ""); } function checkHistory(){ var hashValue = loadHash();
f6596240ba68ce13c08254cb864f0f353320e313
application/widgets/source/class/widgets/view/Start.js
application/widgets/source/class/widgets/view/Start.js
/* ************************************************************************ widgets Copyright: 2009 Deutsche Telekom AG, Germany, http://telekom.com ************************************************************************ */ /** * Start View */ qx.Class.define("widgets.view.Start", { extend : unify.vie...
/* ************************************************************************ widgets Copyright: 2009 Deutsche Telekom AG, Germany, http://telekom.com ************************************************************************ */ /** * Start View */ qx.Class.define("widgets.view.Start", { extend : unify.vie...
Add scroll area to test application
Add scroll area to test application
JavaScript
mit
unify/unify,unify/unify,unify/unify,unify/unify,unify/unify,unify/unify
--- +++ @@ -35,12 +35,32 @@ layer.add(content);*/ var layerWidget = new unify.ui.widget.core.Layer(layer); - var cont = new unify.ui.widget.basic.Label("Das ist ein Test"); + /*var cont = new unify.ui.widget.basic.Label("Das ist ein Test"); layerWidget.add(cont, { left:...
5af993b0c7a5abbf3aca3816458cc8b73055a158
blueprints/factory/files/app/mirage/factories/__name__.js
blueprints/factory/files/app/mirage/factories/__name__.js
import Mirage, {faker} from 'ember-cli-mirage'; export default Mirage.Factory.extend({ });
import Mirage/*, {faker} */ from 'ember-cli-mirage'; export default Mirage.Factory.extend({ });
Update factory blueprint to pass JSHint
Update factory blueprint to pass JSHint JSHint complains about unused {faker} import in default factory.
JavaScript
mit
cs3b/ember-cli-mirage,LevelbossMike/ember-cli-mirage,lazybensch/ember-cli-mirage,jherdman/ember-cli-mirage,ballPointPenguin/ember-cli-mirage,cs3b/ember-cli-mirage,ballPointPenguin/ember-cli-mirage,jherdman/ember-cli-mirage,cibernox/ember-cli-mirage,lependu/ember-cli-mirage,mixonic/ember-cli-mirage,jerel/ember-cli-mirag...
--- +++ @@ -1,4 +1,4 @@ -import Mirage, {faker} from 'ember-cli-mirage'; +import Mirage/*, {faker} */ from 'ember-cli-mirage'; export default Mirage.Factory.extend({ });
72e9f05a844f38eb03611625f5bc639c3c2a5f20
app/javascript/packs/application.js
app/javascript/packs/application.js
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. //...
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. //...
Remove default message from webpack
Remove default message from webpack
JavaScript
mit
apvale/apvale.github.io,apvale/apvale.github.io,apvale/apvale.github.io
--- +++ @@ -6,5 +6,3 @@ // // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate // layout file, like app/views/layouts/application.html.erb - -console.log('Hello World from Webpacker')
80d3bccc16c15681292e67edd69ec1631a4c63d1
chrome/browser/resources/net_internals/http_cache_view.js
chrome/browser/resources/net_internals/http_cache_view.js
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * This view displays information on the HTTP cache. * @constructor */ function HttpCacheView() { const mainBoxId = 'http-cache-view-tab-cont...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * This view displays information on the HTTP cache. */ var HttpCacheView = (function() { // IDs for special HTML elements in http_cache_view....
Refactor HttpCacheView to be defined inside an anonymous namespace.
Refactor HttpCacheView to be defined inside an anonymous namespace. BUG=90857 Review URL: http://codereview.chromium.org/7544008 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@94868 0039d316-1c4b-4281-b951-d872f2087c98
JavaScript
bsd-3-clause
PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,rogerwang/chromium,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging...
--- +++ @@ -4,38 +4,54 @@ /** * This view displays information on the HTTP cache. - * @constructor */ -function HttpCacheView() { - const mainBoxId = 'http-cache-view-tab-content'; - const statsDivId = 'http-cache-view-cache-stats'; - DivView.call(this, mainBoxId); +var HttpCacheView = (function() { + /...
679962935ae5303bde46ca18a216b14504e2327c
worldGenerator/DungeonBluePrints.js
worldGenerator/DungeonBluePrints.js
'use strict'; const common = require('./../server/common'); export class DungeonBluePrints { constructor (number, worldSize, locationSize) { this.number = number; this.worldSize = worldSize; this.locationSize = locationSize; this.blueprints = {}; } generate () { for (let i = 0; i < this.w...
'use strict'; const common = require('./../server/common'); export class DungeonBluePrints { constructor (number, worldSize, locationSize) { this.number = number; this.worldSize = worldSize; this.locationSize = locationSize; this.blueprints = {}; } generate () { const idList = []; wh...
Improve generate method for uniq locations
Improve generate method for uniq locations
JavaScript
mit
nobus/Labyrinth,nobus/Labyrinth
--- +++ @@ -13,13 +13,20 @@ generate () { - for (let i = 0; i < this.worldSize; i++) { - let dungeonId = `dungeon_${i}`; + const idList = []; + while (this.number) { let lx = common.getRandomInt(0, this.worldSize - 1); let ly = common.getRandomInt(0, this.worldSize - 1); ...
bd7bd1f25231434489d425613f41e1bda888a291
webpack.config.js
webpack.config.js
const path = require('path'); module.exports = { entry: "./src/index.tsx", output: { filename: "bundle.js", path: path.resolve(__dirname, "public/") }, resolve: { // Add '.ts' and '.tsx' as resolvable extensions. extensions: [".ts", ".tsx", ".js", ".json"] }, ...
const path = require('path'); module.exports = { entry: "./src/index.tsx", output: { filename: "bundle.js", path: path.resolve(__dirname, "public/") }, resolve: { // Add '.ts' and '.tsx' as resolvable extensions. extensions: [".ts", ".tsx", ".js", ".json"] }, ...
Fix for a source-map warning
:hammer: Fix for a source-map warning
JavaScript
mit
tadashi-aikawa/owlora,tadashi-aikawa/owlora,tadashi-aikawa/owlora
--- +++ @@ -22,6 +22,7 @@ { test: /\.js$/, use: "source-map-loader", + exclude: /node_modules/, enforce: "pre" }, { @@ -35,4 +36,3 @@ ] } }; -
6d40c5a2511368407c86e4f9fc39850d3f2a74c2
js/musichipster.js
js/musichipster.js
window.onload = function() { var tabs = function() { var args = models.application.arguments; var current = $("#"+args[0]); var sections = $(".section"); sections.hide(); current.show(); } sp = getSpotifyApi(1); var models = sp.require("sp://import/scripts/api/m...
window.onload = function() { var tabs = function() { var args = models.application.arguments; var current = $("#"+args[0]); var sections = $(".section"); sections.hide(); current.show(); } sp = getSpotifyApi(1); var models = sp.require("sp://import/scripts/api/m...
Add handler for Judging button
Add handler for Judging button
JavaScript
mit
hassy/music_hipster
--- +++ @@ -11,5 +11,9 @@ sp = getSpotifyApi(1); var models = sp.require("sp://import/scripts/api/models"); models.application.observe(models.EVENT.ARGUMENTSCHANGED, tabs); + + $("#judgeMeButton").click(function() { + console.info("judging..."); + }); }
22e747a989a343402fe54193b2780ef3d91c5d4a
node-tests/unit/utils/make-dir-test.js
node-tests/unit/utils/make-dir-test.js
'use strict'; const td = require('testdouble'); const MakeDir = require('../../../src/utils/make-dir'); const fs = require('fs'); const path = require('path'); describe('MakeDir', () => { context('when base and destPath', () => { afterEach(() => { td.reset(); });...
'use strict'; const td = require('testdouble'); const MakeDir = require('../../../src/utils/make-dir'); const fs = require('fs'); const path = require('path'); describe('MakeDir', () => { context('when base and destPath', () => { let mkdirSync; beforeEach(() => { ...
Update test to move test double replacement to before block
refactor(make-dir): Update test to move test double replacement to before block
JavaScript
mit
isleofcode/splicon
--- +++ @@ -9,13 +9,17 @@ describe('MakeDir', () => { context('when base and destPath', () => { + let mkdirSync; + + beforeEach(() => { + mkdirSync = td.replace(fs, 'mkdirSync'); + }); + afterEach(() => { td.reset(); }); it('makes the directory', () => { - var mkdirSyn...
85ff298cf9f22036f83388a72cc99a868a2fabe5
examples/Node.js/exportTadpoles.js
examples/Node.js/exportTadpoles.js
require('../../index.js'); var scope = require('./Tadpoles'); scope.view.exportFrames({ amount: 200, directory: __dirname, onComplete: function() { console.log('Done exporting.'); }, onProgress: function(event) { console.log(event.percentage + '% complete, frame took: ' + event.delta); } });
require('../../node.js/'); var paper = require('./Tadpoles'); paper.view.exportFrames({ amount: 400, directory: __dirname, onComplete: function() { console.log('Done exporting.'); }, onProgress: function(event) { console.log(event.percentage + '% complete, frame took: ' + event.delta); } });
Clean up Node.js tadpoles example.
Clean up Node.js tadpoles example.
JavaScript
mit
NHQ/paper,NHQ/paper
--- +++ @@ -1,7 +1,7 @@ -require('../../index.js'); -var scope = require('./Tadpoles'); -scope.view.exportFrames({ - amount: 200, +require('../../node.js/'); +var paper = require('./Tadpoles'); +paper.view.exportFrames({ + amount: 400, directory: __dirname, onComplete: function() { console.log('Done exporting....
c5a54ec1b1de01baf05788b0602e20d41ebfc767
packages/babel-plugin-inline-view-configs/__tests__/index-test.js
packages/babel-plugin-inline-view-configs/__tests__/index-test.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native * @format */ 'use strict'; const {transform: babelTransform} = require('@babel/core'); const fixt...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native * @format */ 'use strict'; const {transform: babelTransform} = require('@babel/core'); const fixt...
Fix inline-view-configs test on Windows.
Fix inline-view-configs test on Windows. Summary: *facepalm* The file path is platform specific. Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D20793023 fbshipit-source-id: 4fbcbf982911ee449a4fa5067cc0c5d81088ce04
JavaScript
bsd-3-clause
hammerandchisel/react-native,hoangpham95/react-native,janicduplessis/react-native,exponent/react-native,hammerandchisel/react-native,hoangpham95/react-native,exponentjs/react-native,facebook/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,pandiaraj44/react-native,hammerandchisel/react...
--- +++ @@ -14,15 +14,14 @@ const fixtures = require('../__test_fixtures__/fixtures.js'); const failures = require('../__test_fixtures__/failures.js'); -function transform(fixture, filename) { - return babelTransform(fixture, { +const transform = (fixture, filename) => + babelTransform(fixture, { babelrc: ...
0cae8b6bebd3f28a92084289951b944bed35c937
webpack.config.js
webpack.config.js
var webpack = require('webpack'); var path = require('path'); module.exports = { context: __dirname + '/app', entry: './index.js', output: { path: __dirname + '/bin', publicPath: '/', filename: 'bundle.js', }, stats: { colors: true, progress: true, }, resolve: { extensions: [''...
var webpack = require('webpack'); var path = require('path'); module.exports = { context: __dirname + '/app', entry: './index.js', output: { path: __dirname + '/bin', publicPath: '/', filename: 'bundle.js', }, stats: { colors: true, progress: true, }, resolve: { extensions: [''...
Resolve directories in the app folder
Resolve directories in the app folder
JavaScript
mit
oliverbenns/pong,oliverbenns/pong
--- +++ @@ -18,6 +18,10 @@ resolve: { extensions: ['', '.webpack.js', '.js'], + modulesDirectories: [ + 'app', + 'node_modules', + ], }, module: {
219c639530f7e72ac12980291d03b2e9a2808d3e
webpack.config.js
webpack.config.js
const path = require('path'); module.exports = { devtool: 'inline-source-map', entry: './src/index.js', module: { rules: [ { test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { formatter: require('eslint-fri...
const path = require('path'); const port = process.env.PORT || 9000; module.exports = { devtool: 'inline-source-map', entry: './src/index.js', module: { rules: [ { test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { ...
Use PORT env for dev server
Use PORT env for dev server
JavaScript
isc
muxy/extensions-js,muxy/extensions-js,muxy/extensions-js
--- +++ @@ -1,4 +1,6 @@ const path = require('path'); + +const port = process.env.PORT || 9000; module.exports = { devtool: 'inline-source-map', @@ -30,5 +32,7 @@ umdNamedDefine: true, path: path.resolve(__dirname, 'dist'), filename: 'muxy-extensions-sdk.js' - } + }, + + devServer: { port } ...
cdce8405c85996b5362ef05fc4c715725e640394
webpack.config.prod.js
webpack.config.prod.js
const path = require('path'); const webpack = require('webpack'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const project = require('./project.config.json'); const plugins = [ new CleanWebpackPlugin(['public']), new webpack.optimize.Commo...
const path = require('path'); const webpack = require('webpack'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const project = require('./project.config.json'); const plugins = [ new CleanWebpackPlugin(['public']), new webpack.optimize.Commo...
Add hashing in build HMTL
Add hashing in build HMTL
JavaScript
mit
ibleedfilm/fcc-react-project,ibleedfilm/recipe-box,ibleedfilm/fcc-react-project,ibleedfilm/recipe-box
--- +++ @@ -15,7 +15,8 @@ title: project.title, filename: '../index.html', template: 'index_template.ejs', - inject: true + inject: true, + hash: true }) ];
fb03f18dd8bbf6634e8b9fa69ffc32cb1a71d719
webpack.prod.config.js
webpack.prod.config.js
var webpack = require('webpack'); var BundleTracker = require('webpack-bundle-tracker'); var path = require("path"); module.exports = { context: __dirname, entry: [ './ditto/static/chat/js/base.js', ], output: { path: path.resolve('./ditto/static/dist'), publicPath: '/...
var webpack = require('webpack'); var BundleTracker = require('webpack-bundle-tracker'); var path = require("path"); module.exports = { context: __dirname, entry: [ './ditto/static/chat/js/base.js', ], output: { path: path.resolve('./ditto/static/dist'), publicPath: '/...
Fix prod'n webpack conf for linked deps
Fix prod'n webpack conf for linked deps
JavaScript
bsd-3-clause
Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto
--- +++ @@ -44,6 +44,7 @@ }) ], resolve: { + fallback: path.join(__dirname, 'node_modules'), extensions: ['', '.js', '.jsx'] } };
93d9d4bba873aba0af6c4419b7c731ebd187797c
geoportailv3/static/js/scalelinedirective.js
geoportailv3/static/js/scalelinedirective.js
goog.provide('app_scaleline_directive'); goog.require('app'); goog.require('ngeo_control_directive'); goog.require('ol.control.ScaleLine'); (function() { var module = angular.module('app'); module.directive('appScaleline', [ /** * @return {angular.Directive} The Directive Object Definition. */ ...
goog.provide('app_scaleline_directive'); goog.require('app'); goog.require('ngeo_control_directive'); goog.require('ol.control.ScaleLine'); (function() { var module = angular.module('app'); module.directive('appScaleline', [ /** * @return {angular.Directive} The Directive Object Definition. */ ...
Use quotes for scope properties
Use quotes for scope properties
JavaScript
mit
geoportallux/geoportailv3-gisgr,geoportallux/geoportailv3-gisgr,Geoportail-Luxembourg/geoportailv3,Geoportail-Luxembourg/geoportailv3,geoportallux/geoportailv3-gisgr,Geoportail-Luxembourg/geoportailv3,Geoportail-Luxembourg/geoportailv3,geoportallux/geoportailv3-gisgr,Geoportail-Luxembourg/geoportailv3
--- +++ @@ -15,7 +15,7 @@ return { restrict: 'E', scope: { - map: '=appScalelineMap' + 'map': '=appScalelineMap' }, controller: function() { this['createControl'] = function(target) {
26e3988ea21f5dea1e47cefe51eb546ea6a06f64
blueocean-web/src/main/js/try.js
blueocean-web/src/main/js/try.js
var $ = require('jquery-detached').getJQuery(); var jsModules = require('@jenkins-cd/js-modules'); $(document).ready(function () { var tryBlueOcean = $('<div class="try-blueocean header-callout">Try Blue Ocean UI ...</div>'); tryBlueOcean.click(function () { // We could enhance this further by loo...
var $ = require('jquery-detached').getJQuery(); var jsModules = require('@jenkins-cd/js-modules'); $(document).ready(() => { var tryBlueOcean = $('<div class="try-blueocean header-callout">Try Blue Ocean UI ...</div>'); tryBlueOcean.click(() => { // We could enhance this further by looking at the ...
Add a "Try Blue Ocean UI" button in classic Jenkins - fix lint errors
Add a "Try Blue Ocean UI" button in classic Jenkins - fix lint errors
JavaScript
mit
kzantow/blueocean-plugin,kzantow/blueocean-plugin,tfennelly/blueocean-plugin,alvarolobato/blueocean-plugin,jenkinsci/blueocean-plugin,tfennelly/blueocean-plugin,jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin,ModuloM/blueocean-plugin,tfennelly/blueocean-plugin,alvarolobato/blueocean-plu...
--- +++ @@ -1,17 +1,17 @@ var $ = require('jquery-detached').getJQuery(); var jsModules = require('@jenkins-cd/js-modules'); -$(document).ready(function () { +$(document).ready(() => { var tryBlueOcean = $('<div class="try-blueocean header-callout">Try Blue Ocean UI ...</div>'); - tryBlueOcean.click...
bc864168d477192120b67ff32f71d07ea1674d76
client/src/js/dispatcher/user.js
client/src/js/dispatcher/user.js
/** * Copyright 2015, Government of Canada. * All rights reserved. * * This source code is licensed under the MIT license. * * @providesModule User */ var Cookie = require('react-cookie'); var Events = require('./Events'); /** * An object that manages all user authentication and the user profile. * * @const...
/** * Copyright 2015, Government of Canada. * All rights reserved. * * This source code is licensed under the MIT license. * * @providesModule User */ var Cookie = require('react-cookie'); var Events = require('./Events'); /** * An object that manages all user authentication and the user profile. * * @const...
Delete Loki database and persistent storage on logout.
Delete Loki database and persistent storage on logout.
JavaScript
mit
igboyes/virtool,igboyes/virtool,virtool/virtool,virtool/virtool
--- +++ @@ -38,7 +38,7 @@ this.deauthorize = function (data) { - dispatcher.storage.deleteDatabase(function () { + dispatcher.db.loki.deleteDatabase({}, function () { location.hash = 'home/welcome'; this.name = null;
64019f0ffd4582e8bb047e261152c9a034bfe378
index.js
index.js
window.onload = function() { sectionShow(); blogController(); }; function sectionShow() { var sectionControls = {'home_btn': 'home', 'about_btn': 'about', 'projects_btn': 'projects', 'blog_btn': 'blog'} document.getElementById('menu').addEventListener('click', function(event) { event.preventDefault(); ...
window.onload = function() { sectionShow(); }; function sectionShow() { var sectionControls = {'home_btn': 'home', 'about_btn': 'about', 'projects_btn': 'projects', 'blog_btn': 'blog'} document.getElementById('menu').addEventListener('click', function(event) { event.preventDefault(); hideSections(section...
Move blogController to run only if blog section is loaded
Index.js: Move blogController to run only if blog section is loaded
JavaScript
mit
jorgerc85/jorgerc85.github.io,jorgerc85/jorgerc85.github.io
--- +++ @@ -1,6 +1,5 @@ window.onload = function() { sectionShow(); - blogController(); }; function sectionShow() { @@ -9,6 +8,7 @@ event.preventDefault(); hideSections(sectionControls); document.getElementById(sectionControls[event.target.id]).style.display = 'inline'; + if (event.target.i...
36fd7e3ea6bdaf58995bc1c9da9522c4c0911dee
samples/msal-node-samples/standalone-samples/device-code/index.js
samples/msal-node-samples/standalone-samples/device-code/index.js
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var msal = require('@azure/msal-node'); const msalConfig = { auth: { clientId: "6c04f413-f6e7-4690-b372-dbdd083e7e5a", authority: "https://login.microsoftonline.com/sgonz.onmicrosoft.com", } }...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var msal = require('@azure/msal-node'); const msalConfig = { auth: { clientId: "6c04f413-f6e7-4690-b372-dbdd083e7e5a", authority: "https://login.microsoftonline.com/sgonz.onmicrosoft.com", }...
Fix formating in the device-code sample
Fix formating in the device-code sample
JavaScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -7,8 +7,8 @@ const msalConfig = { auth: { - clientId: "6c04f413-f6e7-4690-b372-dbdd083e7e5a", - authority: "https://login.microsoftonline.com/sgonz.onmicrosoft.com", + clientId: "6c04f413-f6e7-4690-b372-dbdd083e7e5a", + authority: "https://login.microsoftonline.com/sgonz....
c1928257ac5233ad15866c5d4675ebdf7f552203
index.js
index.js
/* jshint node: true */ 'use strict'; module.exports = { name: 'ember-cli-docker-config', contentFor: function(type, config) { if (type === 'head') { return '<script type="text/javascript">window.DynamicENV = ' + this.dynamicConfig(config.DynamicConfig) + ';</script>'; } }, dyna...
/* jshint node: true */ 'use strict'; module.exports = { name: 'ember-cli-docker-config', contentFor: function(type, config) { if (type === 'head') { return '<script type="text/javascript">window.DynamicENV = ' + this.dynamicConfig(config.DynamicConfig) + ';</script>'; } }, dyna...
Add ability to specify a function instead of a string for dynamic configs
Add ability to specify a function instead of a string for dynamic configs
JavaScript
mit
pk4media/ember-cli-docker-config,pk4media/ember-cli-docker-config
--- +++ @@ -21,12 +21,18 @@ var configParams = []; for (param in config) { - if (typeof config[param] === 'object') { - configParams.push('"' + param + '": ' + this.dynamicConfig(config[param])); - } else { - if (process.env[config[param]]) { - configParams.push('"' + para...
d09cd9ef89e9860c7b972cba9fcb1736f4de17c7
lib/node_modules/@stdlib/repl/lib/context/regexp/index.js
lib/node_modules/@stdlib/repl/lib/context/regexp/index.js
'use strict'; var NS = {}; // MODULES // var getKeys = require( 'object-keys' ).shim(); NS.RE_EOL = require( '@stdlib/regexp/eol' ); NS.RE_EXTNAME = require( '@stdlib/regexp/extname' ); NS.RE_EXTNAME_POSIX = require( '@stdlib/regexp/extname-posix' ); NS.RE_EXTNAME_WINDOWS = require( '@stdlib/regexp/extname-windows'...
'use strict'; var NS = {}; // MODULES // var getKeys = require( 'object-keys' ).shim(); NS.RE_EOL = require( '@stdlib/regexp/eol' ); NS.RE_DIRNAME = require( '@stdlib/regexp/dirname' ); NS.RE_DIRNAME_POSIX = require( '@stdlib/regexp/dirname-posix' ); NS.RE_DIRNAME_WINDOWS = require( '@stdlib/regexp/dirname-windows'...
Add dirname RegExps to REPL context
Add dirname RegExps to REPL context
JavaScript
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
--- +++ @@ -7,6 +7,9 @@ var getKeys = require( 'object-keys' ).shim(); NS.RE_EOL = require( '@stdlib/regexp/eol' ); +NS.RE_DIRNAME = require( '@stdlib/regexp/dirname' ); +NS.RE_DIRNAME_POSIX = require( '@stdlib/regexp/dirname-posix' ); +NS.RE_DIRNAME_WINDOWS = require( '@stdlib/regexp/dirname-windows' ); NS.RE_E...
2beadbe92492133a4b643ec257ab40910e520031
src/bot.js
src/bot.js
const Eris = require("eris"); const config = require("./cfg"); const bot = new Eris.Client(config.token, { getAllUsers: true, restMode: true, }); module.exports = bot;
const Eris = require("eris"); const config = require("./cfg"); const bot = new Eris.Client(config.token, { restMode: true, }); module.exports = bot;
Disable getAllUsers from the client
Disable getAllUsers from the client We can lazy-load members instead.
JavaScript
mit
Dragory/modmailbot
--- +++ @@ -2,7 +2,6 @@ const config = require("./cfg"); const bot = new Eris.Client(config.token, { - getAllUsers: true, restMode: true, });
2efd96c382e193197acbbc30c0e0d6be135cd09c
lib/js/tabulate.js
lib/js/tabulate.js
(function($) { $(document).ready(function() { $('#template-entry-hidden').load("entry.template.html"); $('#btn-load-project').click(function(){ var project = $('#project-name').val(); $.getJSON(project, renderData); }); }); function renderData(data) { $.each(data, function(index, en...
(function($) { $(document).ready(function() { $('#template-entry-hidden').load("entry.template.html"); $('#btn-load-project').click(function(){ var project = $('#project-name').val(); $.getJSON(project, renderData); }); }); function renderData(data) { // For each entry $.each(da...
Set the background colour based on exit status.
Set the background colour based on exit status.
JavaScript
bsd-3-clause
nc6/tabula-viewer
--- +++ @@ -10,12 +10,30 @@ }); function renderData(data) { + // For each entry $.each(data, function(index, entry) { + // Clone the template var entryDiv = $('#template-entry-hidden').clone().children(); + // Set background colour based on exit status + entryDiv.css("background-...
feab634e3d57c84f1e76ee6d00f13b2e99050b94
src/view/table/cell/AmountEntryCell.js
src/view/table/cell/AmountEntryCell.js
/** * Cell used for showing an AmountEntry * * Copyright 2015 Ethan Smith */ var Marionette = require('backbone.marionette'); var AmountEntryCell = Marionette.ItemView.extend({ tagName: 'td', render: function() { this.$el.html(this.model.entry.readable()); } }); module.exports = AmountEntryCell;
/** * Cell used for showing an AmountEntry * * Copyright 2015 Ethan Smith */ var Marionette = require('backbone.marionette'); var AmountEntryCell = Marionette.ItemView.extend({ tagName: 'td', className: function() { return this.model.entry.get() === 0 ? 'zero' : ''; }, render: function() { ...
Add zero class to new AmountEntry cell
Add zero class to new AmountEntry cell
JavaScript
mit
onebytegone/banknote-client,onebytegone/banknote-client
--- +++ @@ -8,6 +8,9 @@ var AmountEntryCell = Marionette.ItemView.extend({ tagName: 'td', + className: function() { + return this.model.entry.get() === 0 ? 'zero' : ''; + }, render: function() { this.$el.html(this.model.entry.readable()); }
f937a7643eb831c8ab4d5f4b2356a1ec2335acfa
db/migrations/20131219233339-ripple-addresses.js
db/migrations/20131219233339-ripple-addresses.js
var dbm = require('db-migrate'); var type = dbm.dataType; exports.up = function(db, callback) { db.createTable('ripple_addresses', { id: { type: 'int', primaryKey: true, autoIncrement: true }, user_id: { type: 'int', notNull: true }, managed: { type: 'boolean', default: false, notNull: true}, addr...
var dbm = require('db-migrate'); var type = dbm.dataType; exports.up = function(db, callback) { db.createTable('ripple_addresses', { id: { type: 'int', primaryKey: true, autoIncrement: true }, user_id: { type: 'int', notNull: true }, managed: { type: 'boolean', default: false, notNull: true}, addr...
Make ripple_address address column not required. Add timestamps.
[FEATURE] Make ripple_address address column not required. Add timestamps.
JavaScript
isc
xdv/gatewayd,zealord/gatewayd,Parkjeahwan/awegeeks,whotooktwarden/gatewayd,xdv/gatewayd,crazyquark/gatewayd,whotooktwarden/gatewayd,crazyquark/gatewayd,Parkjeahwan/awegeeks,zealord/gatewayd
--- +++ @@ -6,11 +6,13 @@ id: { type: 'int', primaryKey: true, autoIncrement: true }, user_id: { type: 'int', notNull: true }, managed: { type: 'boolean', default: false, notNull: true}, - address: { type: 'string', notNull: true, unique: true }, + address: { type: 'string', notNull: true }, ...
9b6a769d4c96ea4834c3659c957d0d84b6eb41cc
example/drummer/src/createPredictedFutureElem.js
example/drummer/src/createPredictedFutureElem.js
const renderWay = require('./renderWay'); const predict = require('./predict'); module.exports = (model, dispatch) => { const prediction = predict(model); return renderWay(prediction, { label: 'prediction', numbers: true, numbersBegin: model.history[0].length }); };
const renderWay = require('./renderWay'); const predict = require('./predict'); module.exports = (model, dispatch) => { const prediction = predict(model); return renderWay(prediction, { label: 'future', numbers: true, numbersBegin: model.history[0].length }); };
Rename prediction label to future
Rename prediction label to future
JavaScript
mit
axelpale/lately,axelpale/lately
--- +++ @@ -4,7 +4,7 @@ module.exports = (model, dispatch) => { const prediction = predict(model); return renderWay(prediction, { - label: 'prediction', + label: 'future', numbers: true, numbersBegin: model.history[0].length });
ee71493015ea0a949d6f9dcc77e641ffc77659f0
misc/chrome_plugins/clean_concourse_pipeline/src/inject.user.js
misc/chrome_plugins/clean_concourse_pipeline/src/inject.user.js
// ==UserScript== // @name Remove concourse elements // @namespace cloudpipeline.digital // @description Strips away some of the cruft from the concourse pipeline view when showing it on monitoring screens. // @include https://deployer.*.cloudpipeline.digital/* // @include https://deployer.cloud.servic...
// ==UserScript== // @name Remove concourse elements // @namespace cloudpipeline.digital // @description Strips away some of the cruft from the concourse pipeline view when showing it on monitoring screens. // @include https://deployer.*.cloudpipeline.digital/* // @include https://deployer.cloud.servic...
Update chrome plugin for concourse 2.1.0
Update chrome plugin for concourse 2.1.0 It was mostly working, but just left a dark bar across the top with the env name in it. This updates it to remove that bar as well to maintain consistency with the existing appearence.
JavaScript
mit
alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf
--- +++ @@ -20,7 +20,7 @@ var hostname = location.hostname.replace("deployer.", "").replace(".cloudpipeline.digital","") - var element = document.getElementsByTagName("nav")[0]; + var element = document.getElementById("top-bar-app"); element.innerHTML = "&nbsp;<font size=5>" + host...
e7004fd93bd36390c4d644f1ec0cd66e267ff61a
app/shared/current_user/currentUser.spec.js
app/shared/current_user/currentUser.spec.js
describe('current-user module', function() { var currentUser; beforeEach(module('current-user')); beforeEach(inject(function(_currentUser_) { currentUser = _currentUser_; })); describe('currentUser', function() { it("should be a resource", function() { expect(currentUser).toBeDefined(); }...
describe('current-user module', function() { var currentUser; beforeEach(module('current-user')); beforeEach(inject(function(_currentUser_) { currentUser = _currentUser_; })); describe('currentUser', function() { it("should be a resource", function() { expect(currentUser).toBeDefined(); }...
Update currentUser module test cases
Update currentUser module test cases
JavaScript
mit
christse02/project,christse02/project
--- +++ @@ -25,5 +25,28 @@ 'name': 'tester', }); }); + + it('should delete user cache', function() { + currentUser.setCurrentUser({ + $id: 123, + name: '123', + }); + expect(currentUser.getCurrentUser()).toEqual({ + $id: 123, + name: '123', + });...
2013acb3bdc6905b26a52c060309ba2605ad50f4
jujugui/static/gui/src/app/components/spinner/spinner.js
jujugui/static/gui/src/app/components/spinner/spinner.js
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2015 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License vers...
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2015 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License vers...
Update Spinner to use es6 class.
Update Spinner to use es6 class.
JavaScript
agpl-3.0
mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui
--- +++ @@ -18,17 +18,15 @@ 'use strict'; -const Spinner = React.createClass({ - displayName: 'Spinner', - - render: function() { +class Spinner extends React.Component { + render() { return ( <div className="spinner-container"> <div className="spinner-loading">Loading...</div> </d...
62f3a153dd791bcd8ff30b54aaa2b7c0d8254156
src/utils/math.js
src/utils/math.js
/** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0...
/** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0...
Change add to return the vector itself, for method chaining
Change add to return the vector itself, for method chaining
JavaScript
mit
zedutchgandalf/OpenJGL,zedutchgandalf/OpenJGL
--- +++ @@ -25,6 +25,8 @@ this.x += v.x; this.y += v.y; + + return this; } Vector2.prototype.toString = function() {
e067299612793593a85694901339bcbd78e4d417
themes/hive-learning-networks/js/ui.js
themes/hive-learning-networks/js/ui.js
$("#hive-intro-menu .hive-list li").click(function(event) { var placeName = $(this).find(".the-place").text(); var twitterHandle = $(this).find(".the-details .twitter-handle").text(); var websiteURL = $(this).find(".the-details .website-url").text(); // show content $("#hive-intro-box h2").html(placeName); ...
$("#hive-intro-menu .hive-list li").click(function(event) { var placeName = $(this).find(".the-place").text(); var twitterHandle = $(this).find(".the-details .twitter-handle").text(); var websiteURL = $(this).find(".the-details .website-url").text(); // show content $("#hive-intro-box h2").html(placeName); ...
Hide twitter field if value is empty
Hide twitter field if value is empty
JavaScript
mpl-2.0
mmmavis/hivelearningnetworks.org,mmmavis/hivelearningnetworks.org,mozilla/hivelearningnetworks.org,mmmavis/hivelearningnetworks.org,mozilla/hivelearningnetworks.org
--- +++ @@ -10,6 +10,8 @@ .attr("href", "http://twitter.com/" + twitterHandle) .text(twitterHandle) .removeClass("hide"); + } else { + $("#hive-intro-box .twitter").addClass("hide"); } $("#hive-intro-box .hive-btn") ...
8c6d9d92092b13a86b6cec85be8141757e2da8a4
site/src/electron/ElectronInterface.js
site/src/electron/ElectronInterface.js
class ElectronInterface extends SiteInterface { constructor() { super(); } }
class ElectronInterface extends SiteInterface { constructor() { super(); this.style = new Style(ElectronInterface.STYLE_PATH); } } ElectronInterface.STYLE_PATH = "../interface/SiteInterface/siteInterface.css";
Add style to Electron Interface
Add style to Electron Interface
JavaScript
mit
ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot.github.io,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot,ukahoot/ukahoot
--- +++ @@ -1,5 +1,7 @@ class ElectronInterface extends SiteInterface { constructor() { super(); + this.style = new Style(ElectronInterface.STYLE_PATH); } } +ElectronInterface.STYLE_PATH = "../interface/SiteInterface/siteInterface.css";
2282d93db4422eac35ad3f8a65ed60e6c821eee7
tasks/mochacli.js
tasks/mochacli.js
'use strict'; var mocha = require('../lib/mocha'); module.exports = function (grunt) { grunt.registerMultiTask('mochacli', 'Run Mocha server-side tests.', function () { var options = this.options(); if (!options.files) { options.files = this.file.srcRaw; } mocha(optio...
'use strict'; var mocha = require('../lib/mocha'); module.exports = function (grunt) { grunt.registerMultiTask('mochacli', 'Run Mocha server-side tests.', function () { var options = this.options(); var globs = []; if (!options.files) { this.files.forEach(function (glob) { ...
Fix using the Grunt files format
Fix using the Grunt files format
JavaScript
mit
Rowno/grunt-mocha-cli
--- +++ @@ -6,8 +6,12 @@ module.exports = function (grunt) { grunt.registerMultiTask('mochacli', 'Run Mocha server-side tests.', function () { var options = this.options(); + var globs = []; if (!options.files) { - options.files = this.file.srcRaw; + this.files.for...