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 |
|---|---|---|---|---|---|---|---|---|---|---|
d968fe324bddd13c645d75aa874c811cfcc98056 | server/helpers/encrypt.js | server/helpers/encrypt.js | import bcrypt from 'bcrypt';
module.exports = {
encryptPassword(password) {
const passwordHash = bcrypt.hashSync(password, 10);
return passwordHash;
},
};
| import bcrypt from 'bcrypt';
module.exports = {
encryptPassword(password) {
// const passwordHash = bcrypt.hashSync(password, 10);
// return passwordHash;
const salt = bcrypt.genSaltSync(10);
const hash = bcrypt.hashSync(password, salt);
return {
hash,
salt
};
},
};
| Edit function for password validation | Edit function for password validation
| JavaScript | mit | 3m3kalionel/PostIt,3m3kalionel/PostIt | ---
+++
@@ -2,8 +2,14 @@
module.exports = {
encryptPassword(password) {
- const passwordHash = bcrypt.hashSync(password, 10);
- return passwordHash;
+ // const passwordHash = bcrypt.hashSync(password, 10);
+ // return passwordHash;
+ const salt = bcrypt.genSaltSync(10);
+ const hash = bcrypt.h... |
5993e26d58c3bc099bdc01b71166fe8814289667 | server/migrations/20170625133452-create-message.js | server/migrations/20170625133452-create-message.js | module.exports = {
up: (queryInterface, Sequelize) => queryInterface.createTable('Messages', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
content: {
type: Sequelize.STRING
},
createdAt: {
allowNull: false,
typ... | module.exports = {
up: (queryInterface, Sequelize) => queryInterface.createTable('Messages', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
content: {
type: Sequelize.STRING
},
createdAt: {
allowNull: false,
typ... | Delete references field to fix userId and groupId bugs | Delete references field to fix userId and groupId bugs
| JavaScript | mit | 3m3kalionel/PostIt,3m3kalionel/PostIt | ---
+++
@@ -19,21 +19,11 @@
},
userId: {
type: Sequelize.INTEGER,
- onDelete: 'CASCADE',
- references: {
- model: 'Users',
- key: 'id',
- as: 'userId',
- },
+ onDelete: 'CASCADE'
},
groupId: {
type: Sequelize.INTEGER,
- onDelete: 'CASCADE... |
23d7bce1eab8f6b770ab2c527c23c3c0908ce907 | function/_define-length.js | function/_define-length.js | 'use strict';
var test = function (a, b) {}, desc, defineProperty
, generate, mixin;
try {
Object.defineProperty(test, 'length', { configurable: true, writable: false,
enumerable: false, value: 1 });
} catch (ignore) {}
if (test.length === 1) {
// ES6
desc = { configurable: true, writable: false, enumerable: ... | 'use strict';
var toUint = require('../number/to-uint')
, test = function (a, b) {}, desc, defineProperty
, generate, mixin;
try {
Object.defineProperty(test, 'length', { configurable: true, writable: false,
enumerable: false, value: 1 });
} catch (ignore) {}
if (test.length === 1) {
// ES6
desc = { configu... | Return same function if length doesn't differ | Return same function if length doesn't differ
| JavaScript | isc | medikoo/es5-ext | ---
+++
@@ -1,6 +1,7 @@
'use strict';
-var test = function (a, b) {}, desc, defineProperty
+var toUint = require('../number/to-uint')
+ , test = function (a, b) {}, desc, defineProperty
, generate, mixin;
try {
@@ -13,6 +14,8 @@
desc = { configurable: true, writable: false, enumerable: false };
definePr... |
bba2cfe90230b4b4d8120c61b90ede8cc8febb0a | frontend/reducers/index.js | frontend/reducers/index.js | import Shogi from '../src/shogi';
import * as CONST from '../constants/actionTypes';
const InitialState = {
board: Shogi.Board,
isHoldingPiece: undefined
};
const ShogiReducer = (state = InitialState, action) => {
switch (action.type) {
case CONST.HOLD_PIECE:
if (action.piece.type == '*') {
return s... | import Shogi from '../src/shogi';
import * as CONST from '../constants/actionTypes';
const InitialState = {
board: Shogi.Board,
isHoldingPiece: undefined
};
const ShogiReducer = (state = InitialState, action) => {
switch (action.type) {
case CONST.HOLD_PIECE:
if (action.piece.type == '*') {
return s... | Use let instead of var | Use let instead of var
| JavaScript | mit | mgi166/usi-front,mgi166/usi-front | ---
+++
@@ -18,7 +18,7 @@
case CONST.MOVE_PIECE:
// if same piece click, release piece.
if (state.isHoldingPiece) {
- var newBoard = state.board.movePiece(state.isHoldingPiece, action.piece);
+ let newBoard = state.board.movePiece(state.isHoldingPiece, action.piece);
return Object.assi... |
9efb161d405226438d27a73c628f49b445e01aa6 | gatsby-browser.js | gatsby-browser.js | import React from 'react'
import ComponentRenderer from './src/templates/component-renderer-with-pagination'
exports.replaceComponentRenderer = ({ props, loader }) => {
if (props.layout) {
return null
}
return <ComponentRenderer {...props} loader={loader} />
}
| import React from 'react'
import ComponentRenderer from './src/templates/component-renderer-with-pagination'
export default {
replaceComponentRenderer: ({ props, loader }) => {
if (props.layout) {
return null
}
return <ComponentRenderer {...props} loader={loader} />
}
}
| Convert to either pure CommonJS or pure ES6 (ES6, in this case) | Convert to either pure CommonJS or pure ES6 (ES6, in this case)
| JavaScript | mit | LuisLoureiro/placard-wrapper | ---
+++
@@ -2,10 +2,12 @@
import ComponentRenderer from './src/templates/component-renderer-with-pagination'
-exports.replaceComponentRenderer = ({ props, loader }) => {
- if (props.layout) {
- return null
+export default {
+ replaceComponentRenderer: ({ props, loader }) => {
+ if (props.layout) {
+ ... |
15c6f23ff43b1dcc1056c9d63bd7df10b79e65be | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
igv: {
src: [
'js/**/*.js',
'vendor/inflate.js',
'vendor/zlib_and... | module.exports = function (grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
igv: {
src: [
'js/**/*.js',
'vendor/inflate.js',
'vendor/zlib_and... | Create sourceMap for minified js | Create sourceMap for minified js
| JavaScript | mit | igvteam/igv.js,NabaviLab/CNV-Visualizer,NabaviLab/CNV-Visualizer,NabaviLab/CNV-Visualizer,NabaviLab/CNV-Visualizer,NabaviLab/CNV-Visualizer,igvteam/igv.js | ---
+++
@@ -18,7 +18,8 @@
uglify: {
options: {
- mangle: false
+ mangle: false,
+ sourceMap: true
},
igv: { |
2a5c56794ba90d34efff284e4771b5922f70c1e4 | app/assets/javascripts/solidus_paypal_braintree/frontend.js | app/assets/javascripts/solidus_paypal_braintree/frontend.js | // This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | // This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | Add braintree_error script into manifest | Add braintree_error script into manifest
| JavaScript | bsd-3-clause | solidusio/solidus_paypal_braintree,solidusio/solidus_paypal_braintree,solidusio/solidus_paypal_braintree,solidusio/solidus_paypal_braintree | ---
+++
@@ -4,6 +4,7 @@
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
+//= require solidus_paypal_braintree/braintree_errors
//= require solidus_paypal_braintree/constants
//= require solidus_paypal_braintree/promise
//= require solidu... |
35fdaf00c8e11976b9bcc1dc03b661d4281ff012 | teamcity-reporter.js | teamcity-reporter.js | 'use strict';
var util = require('util');
/**
* @param {Errors[]} errorsCollection
*/
module.exports = function(errorsCollection) {
var errorCount = 0;
/**
* Formatting every error set.
*/
errorsCollection.forEach(function(errors) {
var file = errors.getFilename();
console.log(u... | "use strict";
var util = require("util");
/**
* @param {Errors[]} errorsCollection
*/
module.exports = function(errorsCollection) {
var errorCount = 0;
console.log(util.format("##teamcity[testSuiteStarted name='JSCS']"));
/**
* Formatting every error set.
*/
errorsCollection.forEach(funct... | Fix format of messages for teamcity: 1. Replace " by ' - because Teamcity can't process messages with " 2. Change messages structrure | Fix format of messages for teamcity:
1. Replace " by ' - because Teamcity can't process messages with "
2. Change messages structrure
| JavaScript | mit | wurmr/jscs-teamcity-reporter | ---
+++
@@ -1,31 +1,35 @@
-'use strict';
+"use strict";
-var util = require('util');
+var util = require("util");
/**
* @param {Errors[]} errorsCollection
*/
module.exports = function(errorsCollection) {
var errorCount = 0;
+
+ console.log(util.format("##teamcity[testSuiteStarted name='JSCS']"));
+
... |
63d22bfa615b999e0601da71acae794af3ee4865 | component.js | component.js | // This is a function that decorates React's createClass.
// It's used only internally in this library,
// but could be used externally eventually.
// See the mixins for more information on what this does.
var UI = require('reapp-ui');
var Component = require('reapp-component')();
var React = require('react');
var Id... | // This is a function that decorates React's createClass.
// It's used only internally in this library,
// but could be used externally eventually.
// See the mixins for more information on what this does.
var UI = require('reapp-ui');
var Component = require('reapp-component')();
var React = require('react');
var Id... | Remove tappable by default mixin | Remove tappable by default mixin
| JavaScript | mit | Lupino/reapp-ui,oToUC/reapp-ui,jhopper28/reapp-ui,zackp30/reapp-ui,srounce/reapp-ui,zenlambda/reapp-ui,reapp/reapp-ui | ---
+++
@@ -12,7 +12,6 @@
var Classed = require('./mixins/Classed');
var Animated = require('./mixins/Animated');
var ComponentProps = require('./mixins/ComponentProps');
-var Tappable = require('./mixins/Tappable');
Component.addDecorator(spec => {
spec.mixins = [].concat(
@@ -30,8 +29,6 @@
// any comp... |
0ec851372caa9309df9651126d71361d8163f889 | app/components/crate-toml-copy.js | app/components/crate-toml-copy.js | import { action } from '@ember/object';
import { later } from '@ember/runloop';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export default class CrateTomlCopy extends Component {
@tracked showSuccess = false;
@tracked showNotification = false;
toggleClipboardProps(is... | import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { rawTimeout, task } from 'ember-concurrency';
export default class CrateTomlCopy extends Component {
@tracked showSuccess = false;
@tracked showNotification = false;
@(task(f... | Convert `toggleClipboardProps()` to ember-concurrency task | CrateTomlCopy: Convert `toggleClipboardProps()` to ember-concurrency task
| JavaScript | apache-2.0 | rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io | ---
+++
@@ -1,32 +1,28 @@
import { action } from '@ember/object';
-import { later } from '@ember/runloop';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
+
+import { rawTimeout, task } from 'ember-concurrency';
export default class CrateTomlCopy extends Component {
@... |
896a87b740c5e228a81f23a11a26845aa849e346 | constants.js | constants.js | // URLs grom telegram
const TELEGRAM_BASE_URL = 'https://api.telegram.org';
const TELEGRAM_MESSAGE_PHOTO_ENDPOINT = '/sendPhoto';
const DEFAULT_PHOTO_URL = 'http://media.salemwebnetwork.com/cms/CROSSCARDS/17343-im-sorry-pug.jpg';
// URLs from giphy
const {GIPHY_PUBLIC_API_KEY} = require('./variables');
const GIPHY_BA... | // URLs grom telegram
const TELEGRAM_BASE_URL = 'https://api.telegram.org';
const TELEGRAM_MESSAGE_GIF_ENDPOINT = '/sendVideo';
const DEFAULT_GIF_URL = 'http://gph.is/1KuNTVa';
// URLs from giphy
const {GIPHY_PUBLIC_API_KEY} = require('./variables');
const GIPHY_BASE_URL = 'http://api.giphy.com';
const GIPHY_API_KEY_... | Rename parameters from photo to gif to get more meaningful names | Rename parameters from photo to gif to get more meaningful names
| JavaScript | apache-2.0 | bserh/giphify_bot | ---
+++
@@ -1,7 +1,7 @@
// URLs grom telegram
const TELEGRAM_BASE_URL = 'https://api.telegram.org';
-const TELEGRAM_MESSAGE_PHOTO_ENDPOINT = '/sendPhoto';
-const DEFAULT_PHOTO_URL = 'http://media.salemwebnetwork.com/cms/CROSSCARDS/17343-im-sorry-pug.jpg';
+const TELEGRAM_MESSAGE_GIF_ENDPOINT = '/sendVideo';
+const ... |
461281865ccd7521f25b2d4e893eb55c036f56dc | static/js/crowdsource.interceptor.js | static/js/crowdsource.interceptor.js | /**
* Date: 1/9/15
* Author: Shirish Goyal
*/
(function () {
'use strict';
angular
.module('crowdsource.interceptor', [])
.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor);
AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q'];
function AuthHttpResponseInterc... | /**
* Date: 1/9/15
* Author: Shirish Goyal
*/
(function () {
'use strict';
angular
.module('crowdsource.interceptor', [])
.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor);
AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q'];
function AuthHttpResponseInterc... | Remove deferred as not needed | Remove deferred as not needed
| JavaScript | mit | crowdresearch/crowdsource-platform,crowdresearch/crowdsource-platform,crowdresearch/daemo,rakshit-agrawal/crowdsource-platform,Milstein/crowdsource-platform,DESHRAJ/crowdsource-platform,Macbull/crowdsource-platform,crowdresearch/daemo,xasos/crowdsource-platform,crowdresearch/crowdsource-platform,shirishgoyal/crowdsourc... | ---
+++
@@ -26,8 +26,6 @@
if (!Authentication.isAuthenticated()) {
$location.path('/login');
- }else{
- deferred.resolve(data);
}
}
} |
d19a0feb10b945a14e5bc0da69d3b47eea6fd47a | packages/mastic-node-server/start.js | packages/mastic-node-server/start.js | const mastic = require('./server.js');
const { promise } = require('mastic-polyfills/bundles');
const server = mastic({
polyfills: [promise]
});
server.listen();
| const mastic = require('./server.js');
const bundles = require('mastic-polyfills/bundles');
const server = mastic({
polyfills: Object.keys(bundles).map(bundleName => bundles[bundleName])
});
server.listen();
| Load all default mastic polyfills in server | Load all default mastic polyfills in server
| JavaScript | mit | thibthib/mastic | ---
+++
@@ -1,8 +1,8 @@
const mastic = require('./server.js');
-const { promise } = require('mastic-polyfills/bundles');
+const bundles = require('mastic-polyfills/bundles');
const server = mastic({
- polyfills: [promise]
+ polyfills: Object.keys(bundles).map(bundleName => bundles[bundleName])
});
server.list... |
a441848f22a460a462280c885e4cf53b8eed672b | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// load all tasks from package.json
require('load-grunt-config')(grunt);
require('time-grunt')(grunt);
/**
* TASKS
*/
// build everything ready for a commit
grunt.registerTask('build', ['img', 'css', 'js']);
// just CSS
grunt.registerTask('css', ['sass', 'cssmi... | module.exports = function(grunt) {
// load all tasks from package.json
require('load-grunt-config')(grunt);
require('time-grunt')(grunt);
/**
* TASKS
*/
// build everything ready for a commit
grunt.registerTask('build', ['css', 'js']);
// just CSS
grunt.registerTask('css', ['sass', 'cssmin']);
... | Remove img task from grunt build | Remove img task from grunt build
As it takes ages, and it always seems to change the images every time someone else runs it. Probably no one else will ever need to update the images, or very rarely, in which case they can manually run the build img task.
| JavaScript | mit | jackocnr/intl-tel-input,jackocnr/intl-tel-input,Bluefieldscom/intl-tel-input,Bluefieldscom/intl-tel-input | ---
+++
@@ -8,7 +8,7 @@
* TASKS
*/
// build everything ready for a commit
- grunt.registerTask('build', ['img', 'css', 'js']);
+ grunt.registerTask('build', ['css', 'js']);
// just CSS
grunt.registerTask('css', ['sass', 'cssmin']);
// just images |
874886cda57b80b5f06a9e3003bd9e20c6601feb | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
"babel": {
options: {
sourceMap: false
},
dist: {
files: [
{
"expand": true,
"cwd": "modules/",
"src": ["**/*.js"],
"dest": "dist",
"ext": ".js"
}]
}
... | module.exports = function(grunt) {
grunt.initConfig({
"babel": {
options: {
sourceMap: false,
presets: ['es2015']
},
dist: {
files: [
{
"expand": true,
"cwd": "modules/",
"src": ["**/*.js"],
"dest": "dist",
"ext": ... | Add es2015 preset to babel | Add es2015 preset to babel
| JavaScript | mit | simonlovesyou/file-wipe | ---
+++
@@ -2,7 +2,8 @@
grunt.initConfig({
"babel": {
options: {
- sourceMap: false
+ sourceMap: false,
+ presets: ['es2015']
},
dist: {
files: [ |
fc0bcc9db1e93a520706d21e8766ad38ac1fe00f | public/src/bacon-0.0.1.js | public/src/bacon-0.0.1.js |
(function() {
var metaKeyword = '';
var src = window.location.href;
var metas = document.getElementsByTagName('meta');
for (i in metas) {
console.log(metas[i]);
if (metas[i].name && metas[i].name.indexOf('keyword') > -1) {
metaKeyword += metas[i].content;
}
}
console.log(metaKeyword, s... |
(function() {
var metaKeyword = '';
var baconServerUrl = "http://127.0.0.1";
var src = window.location.href;
var metas = document.getElementsByTagName('meta');
for (i in metas) {
if (metas[i].name && metas[i].name.indexOf('keyword') > -1) {
metaKeyword += metas[i].content;
}
}
var divs =... | Add front end ajax call | Add front end ajax call
| JavaScript | mit | codingtwinky/itchy-octo-fibula | ---
+++
@@ -1,14 +1,42 @@
(function() {
var metaKeyword = '';
+ var baconServerUrl = "http://127.0.0.1";
var src = window.location.href;
var metas = document.getElementsByTagName('meta');
for (i in metas) {
- console.log(metas[i]);
if (metas[i].name && metas[i].name.indexOf('keyword') > -1) {
... |
bd42878d39a42486565548f0c4cc69fcf4e7ce69 | test/web-platform.js | test/web-platform.js | "use strict";
/*global describe */
/*global it */
const assert = require("assert");
const fs = require("fs");
const URL = require("../lib/url").URL;
const uRLTestParser = require("./web-platform-tests/urltestparser");
const testCases = fs.readFileSync(__dirname + "/web-platform-tests/urltestdata.txt", { encoding: "ut... | "use strict";
/*global describe */
/*global it */
const assert = require("assert");
const fs = require("fs");
const URL = require("../lib/url").URL;
const uRLTestParser = require("./web-platform-tests/urltestparser");
const testCases = fs.readFileSync(__dirname + "/web-platform-tests/urltestdata.txt", { encoding: "ut... | Move function creation out of loop | Move function creation out of loop
Linter complained (it's not actually moved out of it though, function creation still occurs within the loop)
| JavaScript | mit | jsdom/whatwg-url,jsdom/whatwg-url,aaronshaf/whatwg-url,tilgovi/whatwg-url,jsdom/whatwg-url | ---
+++
@@ -10,27 +10,37 @@
const testCases = fs.readFileSync(__dirname + "/web-platform-tests/urltestdata.txt", { encoding: "utf-8" });
const urlTests = uRLTestParser(testCases);
+function testURL(expected) {
+ return function () {
+ let url;
+ try {
+ url = new URL(expected.input, expected.base);
+ ... |
c606a7d8c4bd008098e6bda631b13cefe96cc82f | lib/collections/notifications.js | lib/collections/notifications.js | Notifications = new Mongo.Collection('notifications');
// TODO add allow/deny rules
// user is owner of project - deny
// user is not logged in - deny
createRequestNotification = function(request) {
check(request, {
user: Object,
project: Object,
createdAt: Date,
status: String
});
Notification... | Notifications = new Mongo.Collection('notifications');
// TODO add allow/deny rules
// user is owner of project - deny
// user is not logged in - deny
createRequestNotification = function(request) {
check(request, {
user: Object,
project: Object,
createdAt: Date,
status: String,
_id: String
})... | Add new fields and add method to set notification as read | Add new fields and add method to set notification as read
| JavaScript | mit | PUMATeam/puma,PUMATeam/puma | ---
+++
@@ -9,7 +9,8 @@
user: Object,
project: Object,
createdAt: Date,
- status: String
+ status: String,
+ _id: String
});
Notifications.insert({
@@ -20,7 +21,20 @@
read: false,
type: 'interactive',
extraFields: {
- projectId: request.project.projectId
+ proj... |
d2bfa4fc9abb6b47cd5c2c64652d315e9a0d1699 | app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js | app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js | (function($) {
$.widget('pageflow.hiddenTextIndicator', {
_create: function() {
var parent = this.options.parent,
that = this;
parent.on('pageactivate', function(event) {
that.element.toggleClass('invert', $(event.target).hasClass('invert'));
that.element.toggleClass('hidden... | (function($) {
$.widget('pageflow.hiddenTextIndicator', {
_create: function() {
var parent = this.options.parent,
that = this;
parent.on('pageactivate', function(event) {
var pageOrPageWrapper = $(event.target).add('.content_and_background', event.target);
that.element.togg... | Allow setting hide text related css classes on wrapper | Allow setting hide text related css classes on wrapper
So far the css classes `hide_content_with_text` and
`no_hidden_text_indicator` had to be present on the page's `section`
element. Allowing them also on the `.content_and_background` wrapper
element makes things much easer to control for page types since that
eleme... | JavaScript | mit | tf/pageflow,tf/pageflow-dependabot-test,codevise/pageflow,Modularfield/pageflow,tf/pageflow-dependabot-test,tf/pageflow,Modularfield/pageflow,codevise/pageflow,codevise/pageflow,tf/pageflow,tf/pageflow,Modularfield/pageflow,tf/pageflow-dependabot-test,tf/pageflow-dependabot-test,codevise/pageflow,Modularfield/pageflow,... | ---
+++
@@ -5,10 +5,12 @@
that = this;
parent.on('pageactivate', function(event) {
+ var pageOrPageWrapper = $(event.target).add('.content_and_background', event.target);
+
that.element.toggleClass('invert', $(event.target).hasClass('invert'));
that.element.toggleClass('hi... |
bf2c1b5f09c348f172846087db10344f53bd3c44 | js/MidiInput.js | js/MidiInput.js | var MidiInput = function() {
this.init = function(visualizer) {
this.visualizer = visualizer;
if (navigator.requestMIDIAccess) {
navigator.requestMIDIAccess().then(onMidiSuccess, onMidiReject);
} else {
console.log('No MIDI support: navigator.requestMIDIAccess is not defined');
}
};
... | var MidiInput = function() {
this.init = function(visualizer) {
this.visualizer = visualizer;
if (navigator.requestMIDIAccess) {
navigator.requestMIDIAccess().then(onMidiSuccess.bind(this), onMidiReject);
} else {
console.log('No MIDI support: navigator.requestMIDIAccess is not defined');
... | Read note on and control change events from MIDI input | Read note on and control change events from MIDI input
| JavaScript | mit | jakate/AudioViz,jakate/AudioViz,jakate/AudioViz | ---
+++
@@ -3,7 +3,7 @@
this.visualizer = visualizer;
if (navigator.requestMIDIAccess) {
- navigator.requestMIDIAccess().then(onMidiSuccess, onMidiReject);
+ navigator.requestMIDIAccess().then(onMidiSuccess.bind(this), onMidiReject);
} else {
console.log('No MIDI support: navigat... |
102e8120046d6a39aa0db05961288fec320eb3f3 | tests/unit/helpers/upload-validation-active-test.js | tests/unit/helpers/upload-validation-active-test.js |
import { uploadValidationActive } from 'preprint-service/helpers/upload-validation-active';
import { module, test } from 'qunit';
module('Unit | Helper | upload validation active');
// Replace this with your real tests.
test('it works', function(assert) {
var editMode = true;
var nodeLocked = true;
var h... |
import { uploadValidationActive } from 'preprint-service/helpers/upload-validation-active';
import { module, test } from 'qunit';
module('Unit | Helper | upload validation active');
test('edit mode upload validation active', function(assert) {
var editMode = true;
var nodeLocked = true;
var hasOpened = t... | Add tests for upload-validation-active helper. | Add tests for upload-validation-active helper.
| JavaScript | apache-2.0 | caneruguz/ember-preprints,caneruguz/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints,laurenrevere/ember-preprints,baylee-d/ember-preprints,CenterForOpenScience/ember-preprints | ---
+++
@@ -4,11 +4,35 @@
module('Unit | Helper | upload validation active');
-// Replace this with your real tests.
-test('it works', function(assert) {
+test('edit mode upload validation active', function(assert) {
var editMode = true;
var nodeLocked = true;
var hasOpened = true;
let result... |
d8a312185800fd7ee32f7a1bbe590cca63beb32e | lib/modules/apostrophe-search/public/js/always.js | lib/modules/apostrophe-search/public/js/always.js | $(function() {
$('body').on('click', '[data-apos-search-filter]', function() {
$(this).closest('form').submit();
});
$('body').on('keyup', '[data-apos-search-field]').keyup(function (e) {
if (e.keyCode == 13) {
$(this).closest('form').submit();
return false;
}
});
});
| $(function() {
$('body').on('click', '[data-apos-search-filter]', function() {
$(this).closest('form').submit();
});
$('body').on('keyup', '[data-apos-search-field]', function (e) {
if (e.keyCode == 13) {
$(this).closest('form').submit();
return false;
}
});
});
| Fix typo on a keyup handler that was causing chrome to throw errors on every key press | Fix typo on a keyup handler that was causing chrome to throw errors on every key press
| JavaScript | mit | punkave/apostrophe,punkave/apostrophe | ---
+++
@@ -2,7 +2,7 @@
$('body').on('click', '[data-apos-search-filter]', function() {
$(this).closest('form').submit();
});
- $('body').on('keyup', '[data-apos-search-field]').keyup(function (e) {
+ $('body').on('keyup', '[data-apos-search-field]', function (e) {
if (e.keyCode == 13) {
$(th... |
fbf1c83e2fce602a7c7d19ac78372309b6b86be7 | script.js | script.js | /**
* Script for AutoTabber
* Handles Tab Keypress
* @author MarcosBL <soy@marcosbl.com>
*/
/* DOKUWIKI:include taboverride.js */
/* DOKUWIKI:include taboverride.escape.js */
jQuery(window).load(function(){
var textareas = document.getElementsByTagName('textarea');
tabOverride.set(textareas).tabSiz... | /**
* Script for AutoTabber
* Handles Tab Keypress
* @author MarcosBL <soy@marcosbl.com>
*/
/* DOKUWIKI:include taboverride.js */
/* DOKUWIKI:include taboverride.escape.js */
jQuery(window).on('load', function(){
var textareas = document.getElementsByTagName('textarea');
tabOverride.set(textareas).... | Fix exception for 'load' on jQuery 1.8 and above | Fix exception for 'load' on jQuery 1.8 and above
The 'load' event has been deprecated for a couple of years, and thus broke the plugin. | JavaScript | apache-2.0 | MarcosBL/dokuwiki-plugin-autotabber | ---
+++
@@ -7,7 +7,7 @@
/* DOKUWIKI:include taboverride.js */
/* DOKUWIKI:include taboverride.escape.js */
-jQuery(window).load(function(){
+jQuery(window).on('load', function(){
var textareas = document.getElementsByTagName('textarea');
tabOverride.set(textareas).tabSize(0).autoIndent(true).esc... |
396a996b4c49e3230fea28590bcebeeb461b4622 | backend/app/assets/javascripts/spree/backend/translation.js | backend/app/assets/javascripts/spree/backend/translation.js | (function() {
// Resolves string keys with dots in a deeply nested object
// http://stackoverflow.com/a/22129960/4405214
var resolveObject = function(path, obj) {
return path
.split('.')
.reduce(function(prev, curr) {
return prev && prev[curr];
}, obj || self);
}
Spree.t = funct... | (function() {
// Resolves string keys with dots in a deeply nested object
// http://stackoverflow.com/a/22129960/4405214
var resolveObject = function(path, obj) {
return path
.split('.')
.reduce(function(prev, curr) {
return prev && prev[curr];
}, obj || self);
}
Spree.t = funct... | Use console.warn instead of console.error | Use console.warn instead of console.error
| JavaScript | bsd-3-clause | pervino/solidus,pervino/solidus,pervino/solidus,pervino/solidus | ---
+++
@@ -18,7 +18,7 @@
if (translation) {
return translation;
} else {
- console.error("No translation found for " + key + ".");
+ console.warn("No translation found for " + key + ".");
return key;
}
} |
6034574f1299343c7df07cfbb65b889fd8b526fd | src/actions/appActions.js | src/actions/appActions.js | export function changeLocation(location) {
return {
type: 'CHANGE_LOCATION',
location
};
}
export function changeUnitType(unitType) {
return {
type: 'CHANGE_UNIT_TYPE',
unitType
};
}
export function setAlert({type, message}) {
return {
type: 'SET_ALERT',
alert: {
type,
me... | export function changeLocation(location) {
return {
type: 'CHANGE_LOCATION',
location
};
}
export function changeUnitType(unitType) {
return {
type: 'CHANGE_UNIT_TYPE',
unitType
};
}
export function setAlert({type, message}) {
return {
type: 'SET_ALERT',
alert: {
type,
me... | Add hide alert action creator | Add hide alert action creator
| JavaScript | mit | JavierPDev/Weather-D3,JavierPDev/Weather-D3 | ---
+++
@@ -22,6 +22,13 @@
};
}
+export function hideAlert() {
+ return {
+ type: 'SET_ALERT',
+ alert: {}
+ };
+}
+
export function setTooltip({x, y, contentElement, originTarget, title}) {
return {
type: 'SET_TOOLTIP', |
3ee7ed2698db579ec2d8b4cb6c6c4afc509993c2 | lib/core/abstract-component.js | lib/core/abstract-component.js | /** @babel */
import etch from 'etch'
import {CompositeDisposable} from 'atom'
export default class AbstractComponent {
constructor(properties, children, callback) {
if (properties) this.properties = properties
else this.properties = {}
if (children) this.children = children
else this.children = []... | /** @babel */
import etch from 'etch'
import {Emitter, CompositeDisposable} from 'atom'
export default class AbstractComponent {
constructor(properties, children, callback) {
if (properties) this.properties = properties
else this.properties = {}
if (children) this.children = children
else this.chil... | Add an emitter to AbstractComponent | Add an emitter to AbstractComponent
| JavaScript | unlicense | berenm/xoreos-editor,berenm/game-data-explorer | ---
+++
@@ -2,7 +2,7 @@
import etch from 'etch'
-import {CompositeDisposable} from 'atom'
+import {Emitter, CompositeDisposable} from 'atom'
export default class AbstractComponent {
constructor(properties, children, callback) {
@@ -12,6 +12,7 @@
else this.children = []
this.disposables = new Co... |
12ed1dbfd2cfa2d9c5ef9dd93b1ede0e28c32fdf | bin/ballz-repl.js | bin/ballz-repl.js | #!/usr/bin/env node
/*!
* BALLZ repl module
*
* @author pfleidi
*/
var Readline = require('readline');
var Util = require('util');
var Parser = require('../lib/parser');
var Environment = require('../lib/environment');
var interpreter = require('../lib/interpreter').createInterpreter(
Environment.createEnviron... | #!/usr/bin/env node
/*!
* BALLZ repl module
*
* @author pfleidi
*/
var Readline = require('readline');
var Eyes = require('eyes');
var Parser = require('../lib/parser');
var Environment = require('../lib/environment');
var interpreter = require('../lib/interpreter').createInterpreter(
Environment.createEnviron... | Add colored output to repl | Add colored output to repl
| JavaScript | mit | pfleidi/ballz.js | ---
+++
@@ -7,7 +7,7 @@
*/
var Readline = require('readline');
-var Util = require('util');
+var Eyes = require('eyes');
var Parser = require('../lib/parser');
var Environment = require('../lib/environment');
@@ -19,7 +19,7 @@
function exec(cmd) {
var ast = Parser.parse(cmd);
- return Util.inspect(int... |
d7e2221203de3f69a952ae02562d8e6556ae1087 | test/functional/cucumber/step_definitions/commonSteps.js | test/functional/cucumber/step_definitions/commonSteps.js | var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
module.exports = function() {
disclaimer = element(by.css('div.disclaimer'));
this.Given(/^that I am at the HMDA homepage$/, function(next) {
browser.get('http://dev.hmda... | var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
module.exports = function() {
disclaimer = element(by.css('div.disclaimer'));
this.Given(/^that I am at the HMDA homepage$/, function(next) {
passwordBox = element.all(by... | Set up tests to log in on first getting to the site | Set up tests to log in on first getting to the site
| JavaScript | cc0-1.0 | LinuxBozo/hmda-pilot,LinuxBozo/hmda-pilot,cfpb/hmda-pilot,cfpb/hmda-pilot,LinuxBozo/hmda-pilot,cfpb/hmda-pilot | ---
+++
@@ -9,11 +9,20 @@
disclaimer = element(by.css('div.disclaimer'));
this.Given(/^that I am at the HMDA homepage$/, function(next) {
+ passwordBox = element.all(by.id('txt-pwd'));
+ loginButton = element.all(by.css('.login-button'))
+
browser.get('http://dev.hmda-pilot.ec2.devi... |
c596901ffce073b75635fe86000b5911e2d98cf7 | packages/app/source/client/controllers/layout-controller.js | packages/app/source/client/controllers/layout-controller.js | Space.Object.extend('Todos.LayoutController', {
mixin: [
Space.messaging.EventSubscribing
],
dependencies: {
layout: 'Layout',
_: 'underscore'
},
Constructor() {
this._currentLayout = null;
this._currentSections = {};
},
eventSubscriptions() {
return [{
'Todos.RouteTrigge... | Space.Object.extend('Todos.LayoutController', {
mixin: [
Space.messaging.EventSubscribing
],
dependencies: {
layout: 'Layout',
_: 'underscore'
},
_currentLayout: null,
_currentSections: {},
eventSubscriptions() {
return [{
'Todos.RouteTriggered': function(event) {
switch... | Refactor layout controllers layout attributes to static members | Refactor layout controllers layout attributes to static members
| JavaScript | mit | meteor-space/todos,meteor-space/todos,meteor-space/todos | ---
+++
@@ -9,10 +9,9 @@
_: 'underscore'
},
- Constructor() {
- this._currentLayout = null;
- this._currentSections = {};
- },
+ _currentLayout: null,
+
+ _currentSections: {},
eventSubscriptions() {
return [{ |
6b3ad70d9bd6c0559adc067fc432174689e3012b | angular-web-applications/src/scripts/app.js | angular-web-applications/src/scripts/app.js | (function () {
// Set to true to show console.log for debugging
var DEBUG_MODE = true;
'use strict';
var Slide = function (title) {
// Constructor
this.title = title;
this.eleRef = null;
};
Slide.prototype.SetReference = function (dom) {
this.eleRef = dom;
... | (function () {
// Set to true to show console.log for debugging
var DEBUG_MODE = true;
'use strict';
var Slide = function (title) {
// Constructor
this.title = title;
this.eleRef = null;
};
Slide.prototype.SetReference = function (dom) {
this.eleRef = dom;
... | Set each slide to have it's own z-index. | Set each slide to have it's own z-index.
| JavaScript | mit | renesansz/presentations,renesansz/presentations | ---
+++
@@ -49,6 +49,9 @@
for (var i = 0, limit = slidesDOM.length; i < limit; ++i) {
+ // Set z-index for each slide
+ slidesDOM[i].style.zIndex = 10 + i;
+
var newSlide = new Slide(slidesDOM[i].dataset.title);
newSl... |
8e23e794a17df6638f060284b272d6b99691f269 | src/App/Body/Display/Summary/SummaryBody/summaryFunctions/isEnterprise.js | src/App/Body/Display/Summary/SummaryBody/summaryFunctions/isEnterprise.js | import { withName } from './shared';
import { FEATURES } from 'data/columns';
export default function isEnterprise(modules) {
const serverModule = modules.find(withName('SERVER'));
const hasFeatures = /[CDEFSW]/.test(serverModule[FEATURES]);
const hasModules = ['WSINPUT', 'WSOUTPUT', 'ECOPY'].some(name => (
... | import { withName } from './shared';
export default function isEnterprise(modules) {
const hasModules = ['WSINPUT', 'WSOUTPUT', 'ECOPY'].some(name => (
modules.some(withName(name))
));
return hasModules;
}
| Stop checking server features to determine enterprise vs. standard | Stop checking server features to determine enterprise vs. standard
| JavaScript | cc0-1.0 | ksmithbaylor/emc-license-summarizer,ksmithbaylor/emc-license-summarizer,ksmithbaylor/emc-license-summarizer | ---
+++
@@ -1,13 +1,9 @@
import { withName } from './shared';
-import { FEATURES } from 'data/columns';
export default function isEnterprise(modules) {
- const serverModule = modules.find(withName('SERVER'));
-
- const hasFeatures = /[CDEFSW]/.test(serverModule[FEATURES]);
const hasModules = ['WSINPUT', 'WSO... |
5cf04bb912fc64d119a5c0c2693e9e2fa0823e4f | src/geom/Vector2.js | src/geom/Vector2.js | export default class Vector2 {
constructor(x = 0, y = 0) {
this.x = x;
this.y = y;
}
set(x, y) {
this.x = x;
this.y = y;
return this;
}
add(vec2) {
this.x = vec2.x;
this.y = vec2.y;
return this;
}
subtract(vec2) {
th... | export default class Vector2 {
constructor(x = 0, y = 0) {
this.x = x;
this.y = y;
}
set(x, y) {
this.x = x;
this.y = y;
return this;
}
add(vec2) {
this.x = vec2.x;
this.y = vec2.y;
return this;
}
subtract(vec2) {
th... | Implement scalar/vector multiply and divide | Implement scalar/vector multiply and divide
| JavaScript | mit | lucidfext/light2d-es6 | ---
+++
@@ -23,15 +23,27 @@
return this;
}
- multiply(vec2) {
+ multiplyVector(vec2) {
this.x *= vec2.x;
this.y *= vec2.y;
return this;
}
- divide(vec2) {
+ multiplyScalar(scalar) {
+ this.x *= scalar;
+ this.y *= scalar;
+ return this... |
2c067908d8fae5425e2568c43f0501021caf172b | src/components/Nav/Nav.js | src/components/Nav/Nav.js | import React from 'react';
import classnames from 'classnames';
import { GridContainer, GridRow, GridCol } from '../Grid';
const Nav = props => (
<div
className={classnames('ui-nav', {
'ui-nav-fixed': props.fixed,
'ui-nav-inverse': props.inverse,
})}
>
<GridContainer fluid>
<GridRow>
... | import React from 'react';
import classnames from 'classnames';
function Nav({ inverse, children, fixed, prefix }) {
const className = classnames('ui-nav', {
'ui-nav-fixed': fixed,
'ui-nav-inverse': inverse,
});
return (
<div className={className}>
{prefix && <div className="ui-nav-prefix">{pr... | Enhance nav component and introduce prefix prop | Enhance nav component and introduce prefix prop
| JavaScript | mit | wundery/wundery-ui-react,wundery/wundery-ui-react | ---
+++
@@ -1,36 +1,35 @@
import React from 'react';
import classnames from 'classnames';
-import { GridContainer, GridRow, GridCol } from '../Grid';
-const Nav = props => (
- <div
- className={classnames('ui-nav', {
- 'ui-nav-fixed': props.fixed,
- 'ui-nav-inverse': props.inverse,
- })}
- >
- ... |
7d162867c86ae3c2952b167245898d78ee0f1468 | server.js | server.js | var express = require('express');
var app = express();
var config = require('./config');
var bodyParser = require('body-parser');
var morgan = require('morgan')
var mongoose = require('mongoose');
var Recording = require('./models/measurement');
var Station = require('./models/station');
var measurements = require... | var express = require('express');
var app = express();
var config = require('./config');
var bodyParser = require('body-parser');
var morgan = require('morgan')
var mongoose = require('mongoose');
var Recording = require('./models/measurement');
var Station = require('./models/station');
var measurements = require... | Change URLs so they can live aside eachother. | Change URLs so they can live aside eachother.
Exception: /wrm.aspx for saving... | JavaScript | apache-2.0 | vindsiden/vindsiden-server | ---
+++
@@ -21,13 +21,14 @@
var router = express.Router();
router.get('/wrm.aspx', measurements.saveMeasurement);
-router.get('/measurements', measurements.allMeasurements)
+router.post('/v2/measurements', measurements.saveMeasurement);
+router.get('/v2/measurements', measurements.allMeasurements)
-router.get('... |
0f077bd8eaf30107a691b60c9500fe0c71d0dad0 | src/docs/ComponentPage.js | src/docs/ComponentPage.js | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... | Switch to a truly unique key | Switch to a truly unique key
| JavaScript | mit | coryhouse/ps-react,coryhouse/ps-react | ---
+++
@@ -14,7 +14,7 @@
<h3>Example{examples.length > 1 && "s"}</h3>
{
examples.length > 0 ?
- examples.map( example => <Example key={example.name} example={example} componentName={name} /> ) :
+ examples.map( example => <Example key={example.code} example={example} componentNam... |
9bc6041852edacb2eb85bf31b5aa5a2e0a67dc28 | server/trello-microservice/src/utils/passportMiddleweare.js | server/trello-microservice/src/utils/passportMiddleweare.js | import fetch from 'node-fetch';
import { userModel } from '../models/index';
export const authenticatedWithToken = (req, res, next) => {
let csrf;
let jwt;
if (req && req.cookies && req.headers){
csrf = req.headers.csrf;
jwt = req.cookies.jwt;
const opts = {
headers: {
csrf,
... | import fetch from 'node-fetch';
import { userModel } from '../models/index';
export const authenticatedWithToken = async (req, res, next) => {
if (req && req.cookies && req.cookies.jwt && req.headers && req.headers.csrf) {
let csrf = req.headers.csrf;
let jwt = req.cookies.jwt;
const opts = {
hea... | Replace promise with async await and handle error cases | Replace promise with async await and handle error cases
| JavaScript | mit | Madmous/madClones,Madmous/madClones,Madmous/madClones,Madmous/Trello-Clone,Madmous/Trello-Clone,Madmous/madClones,Madmous/Trello-Clone | ---
+++
@@ -2,13 +2,10 @@
import { userModel } from '../models/index';
-export const authenticatedWithToken = (req, res, next) => {
- let csrf;
- let jwt;
-
- if (req && req.cookies && req.headers){
- csrf = req.headers.csrf;
- jwt = req.cookies.jwt;
+export const authenticatedWithToken = async (req, re... |
46924430441a011b105a6874f72061ddd2c9fe02 | spec/readFile.spec.js | spec/readFile.spec.js | var path = require('path'),
fs = require('fs'),
crypto = require('crypto');
describe("readFile functionality", function() {
var _this = this;
require('./harness.js')(_this);
it("creates a directory", function(done) {
var fname = "testDir";
var resolved = path.resolve(_this.tempdir, ... | var path = require('path'),
fs = require('fs'),
crypto = require('crypto');
describe("readFile functionality", function() {
var _this = this;
require('./harness.js')(_this);
it("reads a file", function(done) {
var fname = "testDir";
var resolved = path.resolve(_this.tempdir, fname);... | Fix name of readFile test | Fix name of readFile test
| JavaScript | bsd-2-clause | terribleplan/WorkingDirectory | ---
+++
@@ -5,7 +5,7 @@
describe("readFile functionality", function() {
var _this = this;
require('./harness.js')(_this);
- it("creates a directory", function(done) {
+ it("reads a file", function(done) {
var fname = "testDir";
var resolved = path.resolve(_this.tempdir, fname);
... |
d0b0423b2d4ef343d09bb27063d8b8162fb7d466 | day10/10.js | day10/10.js | // look for groups of matching characters
// pass each group to say() and concatenate returns
var look = function(lookString) {
var i = 0;
var j = 1;
var sayString = '';
while (i < lookString.length) {
while (lookString[i] === lookString[j]) {
j++;
}
sayString += say(lookString.slice(i,j));
... | // Look for groups of matching characters.
// Map the conversion function to each.
// Join & return the new string.
var convert = function(input) {
var groups = input.match(/(\d)\1*/g);
return groups.map(s => s.length + s[0]).join('');
}
// run look-and-say on a given input n times and
// print the result's length... | Refactor solution to use regex and map | Refactor solution to use regex and map
| JavaScript | mit | ptmccarthy/advent-of-code | ---
+++
@@ -1,34 +1,19 @@
-// look for groups of matching characters
-// pass each group to say() and concatenate returns
-var look = function(lookString) {
- var i = 0;
- var j = 1;
- var sayString = '';
-
- while (i < lookString.length) {
- while (lookString[i] === lookString[j]) {
- j++;
- }
- sa... |
f1edda2564b4ee70bbd151ed79b26991d575e4e4 | src/ErrorReporting.js | src/ErrorReporting.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/Snackbar';
import { red900, grey50 } from 'material-ui/styles/colors';
class ErrorReporting extends Component {
static defaultProps = {
open: false,
action: '',
error: null,
... | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/Snackbar';
import { red900, grey50 } from 'material-ui/styles/colors';
class ErrorReporting extends Component {
static defaultProps = {
open: false,
action: '',
error: null,
... | Set default contentStyle prop to make message more readable | Set default contentStyle prop to make message more readable
| JavaScript | mit | corpix/material-ui-error-reporting,corpix/material-ui-error-reporting | ---
+++
@@ -15,7 +15,34 @@
style: {
backgroundColor: red900,
color: grey50
+ },
+ contentStyle: {
+ display: 'block',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden'
}
+ }
+
+ exclusive... |
22ffe9c0158a27314ae24163592752d392ec3b7c | tests/e2e/utils/setup-site-kit.js | tests/e2e/utils/setup-site-kit.js | /**
* setupSiteKit utility.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | /**
* setupSiteKit utility.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | Update helper to set auth type. | Update helper to set auth type.
| JavaScript | apache-2.0 | google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp | ---
+++
@@ -29,8 +29,11 @@
setSearchConsoleProperty,
} from '.';
-export const setupSiteKit = async ( { verified, property } = {} ) => {
- await activatePlugin( 'e2e-tests-auth-plugin' );
+export const setupSiteKit = async ( { verified, property, auth = 'proxy' } = {} ) => {
+ if ( auth !== 'proxy' && auth !== '... |
cae745eee63931ce361e1f235c6c135ec973f8cb | src/Presenters/Controls/Text/TextBox/TextBoxViewBridge.js | src/Presenters/Controls/Text/TextBox/TextBoxViewBridge.js | var bridge = function (presenterPath) {
window.rhubarb.viewBridgeClasses.HtmlViewBridge.apply(this, arguments);
};
bridge.prototype = new window.rhubarb.viewBridgeClasses.HtmlViewBridge();
bridge.prototype.constructor = bridge;
bridge.spawn = function (spawnData, index, parentPresenterPath) {
var textBox = do... | var bridge = function (presenterPath) {
window.rhubarb.viewBridgeClasses.HtmlViewBridge.apply(this, arguments);
};
bridge.prototype = new window.rhubarb.viewBridgeClasses.HtmlViewBridge();
bridge.prototype.constructor = bridge;
bridge.spawn = function (spawnData, index, parentPresenterPath) {
var textBox = do... | Fix for textbox view bridge causing recursion | Fix for textbox view bridge causing recursion
| JavaScript | apache-2.0 | RhubarbPHP/Module.Leaf,RhubarbPHP/Module.Leaf | ---
+++
@@ -18,7 +18,7 @@
return textBox;
};
-bridge.prototype.onKeyPress = function(event){
+bridge.prototype.keyPressed = function(event){
if (this.onKeyPress){
this.onKeyPress(event);
}
@@ -30,11 +30,11 @@
var self = this;
if (!this.viewNode.addEventListener) {
- this.... |
a74850c23873f3f6ac4033e1632262d43bf56689 | server/configuration/environment_configuration.js | server/configuration/environment_configuration.js | "use strict";
var config = require("12factor-config");
var appConfig = config({
apiUrl: {
env: "AGFAPHD_WEBAPP_API_URL",
type: "string",
default: "http://localhost:8089"
},
emailApiKey: {
env: "AGFAPHD_WEBAPP_EMAIL_API_KEY",
type: "string",
required: true
},
emailApiUrl: {
env: "... | "use strict";
var config = require("12factor-config");
var appConfig = config({
apiUrl: {
env: "AGFAPHD_WEBAPP_API_URL",
type: "string",
default: "http://localhost:8089"
},
emailApiKey: {
env: "AGFAPHD_WEBAPP_EMAIL_API_KEY",
type: "string",
required: true
},
emailApiUrl: {
env: "... | Add email api url requirement | Add email api url requirement
| JavaScript | mit | agoodfriendalwayspayshisdebts/agoodfriendalwayspayshisdebts-webapp,Yuyuu/agoodfriendalwayspayshisdebts-webapp,Yuyuu/agoodfriendalwayspayshisdebts-webapp,agoodfriendalwayspayshisdebts/agoodfriendalwayspayshisdebts-webapp,agoodfriendalwayspayshisdebts/agoodfriendalwayspayshisdebts-webapp,Yuyuu/agoodfriendalwayspayshisdeb... | ---
+++
@@ -16,7 +16,7 @@
emailApiUrl: {
env: "AGFAPHD_WEBAPP_EMAIL_API_URL",
type: "string",
- default: "sandboxa92275a42f30470c860fda4a09140bf6.mailgun.org"
+ required: true
},
emailFrom: {
env: "AGFAPHD_WEBAPP_EMAIL_FROM", |
0a6844c2d9ac4c4c67cee668f25db1ce742a8951 | packages/plugin-avatar/test/unit/spec/avatar-url-batcher.js | packages/plugin-avatar/test/unit/spec/avatar-url-batcher.js | /**!
*
* Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@ciscospark/test-helper-chai';
import Avatar, {config} from '../../';
// import '@ciscospark/test-helper-sinon';
import {MockSpark} from '@ciscospark/test-helper-mock-spark';
describe(`Services`, () => {
describe(`Avat... | /**!
*
* Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@ciscospark/test-helper-chai';
import Avatar from '../../';
import MockSpark from '@ciscospark/test-helper-mock-spark';
describe(`Services`, () => {
describe(`Avatar`, () => {
describe(`AvatarUrlBatcher`, () => {
... | Refactor ciscospark Migrate Avatar to packages | Refactor ciscospark Migrate Avatar to packages
use default SparkMock
issue #62 Migrate Avatar
| JavaScript | mit | CiscoHRIT/spark-js-sdk,glhewett/spark-js-sdk,tran2/spark-js-sdk,CiscoHRIT/spark-js-sdk,aimeex3/spark-js-sdk,mwegman/spark-js-sdk,mwegman/spark-js-sdk,adamweeks/spark-js-sdk,ciscospark/spark-js-sdk,tran2/spark-js-sdk,aimeex3/spark-js-sdk,bbender/spark-js-sdk,ianwremmel/spark-js-sdk,mwegman/spark-js-sdk,adamweeks/spark-j... | ---
+++
@@ -3,9 +3,8 @@
* Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@ciscospark/test-helper-chai';
-import Avatar, {config} from '../../';
-// import '@ciscospark/test-helper-sinon';
-import {MockSpark} from '@ciscospark/test-helper-mock-spark';
+import Avatar from '.... |
21f294d4aa2364cca03642e71e4872e945e64904 | client/views/hosts/hostCreate/hostCreate.js | client/views/hosts/hostCreate/hostCreate.js | Template.HostCreate.events({
'submit form' : function (event, template) {
event.preventDefault();
// Define form field variables.
var hostname = event.target.hostname.value,
type = event.target.type.value,
version = event.target.version.value;
// Need more validation here.
if (hostna... | Template.HostCreate.events({
'submit form' : function (event, template) {
event.preventDefault();
// Define form field variables.
var hostname = event.target.hostname.value,
type = event.target.type.value,
version = event.target.version.value;
// Need more validation here.
if (hostna... | Use route names instead of paths. | 54: Use route names instead of paths.
| JavaScript | mit | steyep/syrinx,bfodeke/syrinx,steyep/syrinx,bfodeke/syrinx,shrop/syrinx,shrop/syrinx,hb5co/syrinx,hb5co/syrinx | ---
+++
@@ -28,7 +28,7 @@
});
// Reset form.
template.find('form').reset();
- Router.go('/');
+ Router.go('home');
}
}
}); |
d956307fb81bc0b6561ec13a0cf1655c4d6ffc6c | lib/middleware.js | lib/middleware.js | const assert = require('assert');
'use strict';
/**
* Once middleware will block an event if there is already a scheduled event
* @param {Event} event the event to check
* @param {DBWrkr} wrkr wrkr instance to work with
* @param {function} done callback
*/
function once(event, wrkr, done) {
assert(typeof event... | 'use strict';
/**
* Once middleware will block an event if there is already a scheduled event
* @param {Event} event the event to check
* @param {DBWrkr} wrkr wrkr instance to work with
* @param {function} done callback
*/
function once(event, wrkr, done) {
const findSpec = {
name: event.name
};
if (e... | Remove assert on event.name (handled somewhere else) | Once: Remove assert on event.name (handled somewhere else)
| JavaScript | mit | whyhankee/dbwrkr | ---
+++
@@ -1,4 +1,3 @@
-const assert = require('assert');
'use strict';
@@ -9,7 +8,6 @@
* @param {function} done callback
*/
function once(event, wrkr, done) {
- assert(typeof event.name === 'string', 'event must be a valid event');
const findSpec = {
name: event.name |
8e10d4221b8231f4de72130a8014bb79c9b277d0 | src/assets/js/main.js | src/assets/js/main.js | (function () {
function initTwinklingStars() {
particlesJS('stars', {
particles: {
number: {
value: 180,
density: {
enable: true,
value_area: 600
}
},
... | (function () {
function initTwinklingStars(devicePixelRatio) {
particlesJS('stars', {
particles: {
number: {
value: 180,
density: {
enable: true,
value_area: 600
}
... | Tweak stars size on retina devices | Tweak stars size on retina devices
| JavaScript | mit | rfgamaral/ricardoamaral.net,rfgamaral/ricardoamaral.net | ---
+++
@@ -1,5 +1,6 @@
(function () {
- function initTwinklingStars() {
+ function initTwinklingStars(devicePixelRatio) {
+
particlesJS('stars', {
particles: {
number: {
@@ -25,12 +26,12 @@
}
},
size: {
- ... |
2e4f0c043868c764fa2719ab11964a929d74bf01 | app/domain/ebmeds/System.js | app/domain/ebmeds/System.js | var moment = require('moment');
var System = {
create: function(activityInstance, user, language, nation) {
var now = moment();
return {
"User": {
"HealthCareRole": user.startsWith("Patient") ? "Citizen" : "Physician",
"HealthCareOrganization": {
... | var moment = require('moment');
var System = {
create: function(activityInstance, user, language, nation) {
var now = moment();
return {
"User": {
"HealthCareRole": user.startsWith("Patient") ? "Citizen" : "Physician",
"HealthCareOrganization": {
... | Set organization code to fhirdemo | Set organization code to fhirdemo
| JavaScript | mit | ebmeds/ebmeds-fhir,ebmeds/ebmeds-fhir | ---
+++
@@ -10,7 +10,7 @@
"User": {
"HealthCareRole": user.startsWith("Patient") ? "Citizen" : "Physician",
"HealthCareOrganization": {
- "CodeValue": {},
+ "CodeValue": "fhirdemo",
"CodeSystem": {},
... |
e5374eca0b7f8eb61de6fc0ce27085a6be01c519 | assets/buttons.js | assets/buttons.js | require(['gitbook'], function(gitbook) {
gitbook.events.bind('start', function(e, config) {
var opts = config.toolbar;
if (!opts || !opts.buttons) return;
var buttons = opts.buttons.slice(0);
buttons.reverse();
buttons.forEach(function(button) {
... | require(['gitbook'], function(gitbook) {
gitbook.events.bind('start', function(e, config) {
var opts = config.toolbar;
if (!opts || !opts.buttons) return;
var buttons = opts.buttons.slice(0);
buttons.reverse();
buttons.forEach(function(button) {
... | Allow to set link target (_self to change current window's location) | Allow to set link target (_self to change current window's location)
| JavaScript | apache-2.0 | Simran-B/gitbook-plugin-toolbar | ---
+++
@@ -20,9 +20,14 @@
"{{url}}": encodeURIComponent(location.href)
};
var re = RegExp(Object.keys(mapping).join("|"), "g");
- window.open(button.url.replace(re, function(matched) {
+ var url = button.url.repl... |
f65229875c39b09eab54526b11738c8cc6097247 | src/components/RecipeModal/ReadModeModal/index.js | src/components/RecipeModal/ReadModeModal/index.js | import React, { PropTypes } from 'react';
import { Modal } from 'react-bootstrap';
const ReadModeModal = props => (
<div>
<Modal.Header>
<Modal.Title>{props.recipe.name}</Modal.Title>
</Modal.Header>
<Modal.Body>
<div id='description'>
{props.recipe.description}
</div>
<u... | import React, { PropTypes } from 'react';
import { Modal } from 'react-bootstrap';
const ReadModeModal = props => (
<div>
<Modal.Header>
<Modal.Title>{props.recipe.name}</Modal.Title>
</Modal.Header>
<Modal.Body>
<div id='description'>
{props.recipe.description}
</div>
<u... | Update PropTypes of ReadModeModal component | Update PropTypes of ReadModeModal component
| JavaScript | mit | ibleedfilm/recipe-box,ibleedfilm/recipe-box | ---
+++
@@ -33,7 +33,11 @@
ReadModeModal.PropTypes = {
recipeId: PropTypes.number.isRequired,
- recipe: PropTypes.object.isRequired,
+ recipe: PropTypes.shape({
+ name: PropTypes.string.isRequired,
+ description: PropTypes.string.isRequired,
+ ingredients: PropTypes.string.isRequired
+ }),
onHide... |
b82800fc66b5744a962217b7a0d529dd1c9b2dee | src/models/Token.js | src/models/Token.js | 'use strict'
const mongoose = require('mongoose')
const uuid = require('uuid').v4
const schema = new mongoose.Schema({
id: {
type: String,
required: true,
unique: true,
default: uuid
},
created: {
type: Date,
required: true,
default: Date.now
},
updated: {
type: Date,
required: true,
default:... | 'use strict'
const mongoose = require('mongoose')
const uuid = require('uuid').v4
const schema = new mongoose.Schema({
id: {
type: String,
required: true,
unique: true,
default: uuid
},
title: {
type: String
},
permanent: {
type: Boolean,
default: false
},
created: {
type: Date,
required: tru... | Add title and permanent flag to token model | Add title and permanent flag to token model
| JavaScript | mit | electerious/Ackee | ---
+++
@@ -9,6 +9,13 @@
required: true,
unique: true,
default: uuid
+ },
+ title: {
+ type: String
+ },
+ permanent: {
+ type: Boolean,
+ default: false
},
created: {
type: Date, |
765444e800cd10f7a6347c82f1b272d64875e835 | middleware/ensure-found.js | middleware/ensure-found.js | /*
* Ensures something has been found during the request. Returns 404 if
* res.template is unset, res.locals is empty and statusCode has not been set
* to 204.
*
* Should be placed at the very end of the middleware pipeline,
* after all project specific routes but before the error handler & responder.
*
* @mod... | /*
* Ensures something has been found during the request. Returns 404 if
* res.template is unset, res.locals is empty and statusCode has not been set
* to 204.
*
* Should be placed at the very end of the middleware pipeline,
* after all project specific routes but before the error handler & responder.
*
* @mod... | Optimize and classify only res.locals.scripts as not found | Optimize and classify only res.locals.scripts as not found
| JavaScript | mit | thebitmill/midwest | ---
+++
@@ -11,12 +11,19 @@
'use strict';
-const _ = require('lodash');
+function isEmpty(obj) {
+ for (const prop in obj) {
+ if (prop !== 'scripts' && obj.hasOwnProperty(prop)) {
+ return false;
+ }
+ }
+ return true;
+}
module.exports = function ensureFound(req, res, next) {
// it seems mo... |
3b95b1734cdfa3b7bb5cb38990265dc1db683ab1 | lib/unexpectedMockCouchdb.js | lib/unexpectedMockCouchdb.js | var BufferedStream = require('bufferedstream');
var createMockCouchAdapter = require('./createMockCouchAdapter');
var http = require('http');
var mockCouch = require('mock-couch-alexjeffburke');
var url = require('url');
function generateCouchdbResponse(databases, req, res) {
var responseObject = null;
var co... | var BufferedStream = require('bufferedstream');
var createMockCouchAdapter = require('./createMockCouchAdapter');
var http = require('http');
var mockCouch = require('mock-couch-alexjeffburke');
var url = require('url');
function generateCouchdbResponse(databases, req, res) {
var responseObject = null;
var co... | Use expect.shift instead of building an array of arguments for expect when delegating to the next assertion. | Use expect.shift instead of building an array of arguments for expect when delegating to the next assertion.
| JavaScript | bsd-3-clause | alexjeffburke/unexpected-couchdb | ---
+++
@@ -26,13 +26,11 @@
expect.addAssertion('<any> with couchdb mocked out <object> <assertion>', function (expect, subject, couchdb) {
expect.errorMode = 'nested';
- var nextAssertionArgs = this.args.slice(1);
- var args = [subject, 'with http mocked out', {
+ ... |
9a4358f6f1726f7834fa009b18ef57c781a5937b | fis-conf.js | fis-conf.js | // default settings. fis3 release
// Global start
fis.match('src/ui-p2p-lending.less', {
parser: fis.plugin('less'),
rExt: '.css'
})
fis.match('src/*.less', {
packTo: 'dist/ui-p2p-lending.css'
})
// Global end
// default media is `dev`
// extends GLOBAL config
| fis.match('src/ui-p2p-lending.less', {
parser: fis.plugin('less'),
rExt: '.css',
release: 'dist/ui-p2p-lending.css'
})
| Modify the configuration of fis to remove the useless configurations | Modify the configuration of fis to remove the useless configurations
| JavaScript | mit | PeachScript/ui-p2p-lending,Hellocyy/ui-p2p-lending,Hellocyy/ui-p2p-lending,PeachScript/ui-p2p-lending | ---
+++
@@ -1,17 +1,5 @@
-// default settings. fis3 release
-
-// Global start
fis.match('src/ui-p2p-lending.less', {
parser: fis.plugin('less'),
- rExt: '.css'
+ rExt: '.css',
+ release: 'dist/ui-p2p-lending.css'
})
-
-fis.match('src/*.less', {
- packTo: 'dist/ui-p2p-lending.css'
-})
-
-// Global end
-
-// ... |
dcf3b88a466c82c06715badb541e09f3c9d64f1b | src/singlePlayer.js | src/singlePlayer.js | import React, { Component } from 'react'
import { propTypes, defaultProps } from './props'
import Player from './Player'
import { isEqual, getConfig } from './utils'
export default function createSinglePlayer (activePlayer) {
return class SinglePlayer extends Component {
static displayName = `${activePlayer.dis... | import React, { Component } from 'react'
import { propTypes, defaultProps, DEPRECATED_CONFIG_PROPS } from './props'
import { getConfig, omit, isEqual } from './utils'
import Player from './Player'
const SUPPORTED_PROPS = Object.keys(propTypes)
export default function createSinglePlayer (activePlayer) {
return clas... | Add single player wrapper div | Add single player wrapper div
Keeps structure consistent with the full player, and enable props like `className` and `wrapper`
Fixes https://github.com/CookPete/react-player/issues/346
| JavaScript | mit | CookPete/react-player,CookPete/react-player | ---
+++
@@ -1,8 +1,10 @@
import React, { Component } from 'react'
-import { propTypes, defaultProps } from './props'
+import { propTypes, defaultProps, DEPRECATED_CONFIG_PROPS } from './props'
+import { getConfig, omit, isEqual } from './utils'
import Player from './Player'
-import { isEqual, getConfig } from './... |
bb03359cfccfa8a1300435339ef91911e4b611af | lib/fs-watch-tree.js | lib/fs-watch-tree.js | module.exports = process.platform === "linux" ?
require("./watch-tree-unix") :
require("./watch-tree-generic");
| module.exports = process.platform === "linux" || process.platform === "darwin" ?
require("./watch-tree-unix") :
require("./watch-tree-generic");
| Use unix fs-watch for OSX because of problems with OSX Lion | Use unix fs-watch for OSX because of problems with OSX Lion
| JavaScript | bsd-3-clause | busterjs/fs-watch-tree | ---
+++
@@ -1,3 +1,3 @@
-module.exports = process.platform === "linux" ?
+module.exports = process.platform === "linux" || process.platform === "darwin" ?
require("./watch-tree-unix") :
require("./watch-tree-generic"); |
01c3baa8c43e976267c47934b99f7f4b210d36b6 | tests/unit/core/randomGeneration.spec.js | tests/unit/core/randomGeneration.spec.js | import { expect } from 'chai';
import jsf from '../../../src';
/* global describe, it */
describe('Random Generation', () => {
it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', async () => {
jsf.option({
alwaysFakeOptionals: true,
});
const schema... | import { expect } from 'chai';
import jsf from '../../../src';
/* global describe, it */
describe('Random Generation', () => {
it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', () => {
jsf.option({
alwaysFakeOptionals: true,
});
const schema = {
... | Disable async/await to run on v6 | Disable async/await to run on v6
| JavaScript | mit | json-schema-faker/json-schema-faker,pateketrueke/json-schema-faker,json-schema-faker/json-schema-faker | ---
+++
@@ -4,7 +4,7 @@
/* global describe, it */
describe('Random Generation', () => {
- it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', async () => {
+ it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', () => ... |
842bfdc503c25008027025fa1ba4f64f11b8300c | src/devtools/model.js | src/devtools/model.js | // @flow
import type {Snapshot, SnapshotItem} from 'redux-ship';
export type State = {
logs: {action: mixed, snapshot: Snapshot<mixed, mixed>}[],
selectedLog: ?number,
selectedSnapshotItem: ?SnapshotItem<mixed, mixed>,
};
export const initialState: State = {
logs: [],
selectedLog: null,
selectedSnapshotIt... | // @flow
import type {Snapshot, SnapshotItem} from 'redux-ship';
export type State = {
logs: {action: mixed, snapshot: Snapshot<mixed, mixed>}[],
selectedLog: ?number,
selectedSnapshotItem: ?SnapshotItem<mixed, mixed>,
};
export const initialState: State = {
logs: [],
selectedLog: null,
selectedSnapshotIt... | Hide the selected state when already on it | Hide the selected state when already on it
| JavaScript | mit | clarus/redux-ship-devtools,clarus/redux-ship-devtools | ---
+++
@@ -39,9 +39,10 @@
],
};
case 'SelectLog':
- return {
+ return commit.logIndex === state.selectedLog ? state : {
...state,
selectedLog: commit.logIndex,
+ selectedSnapshotItem: null,
};
case 'SelectSnapshotItem':
return { |
e1275063a762e4748aae86bfcf9a9e60deb40e70 | app/assets/javascripts/ember-bootstrap-rails/all.js | app/assets/javascripts/ember-bootstrap-rails/all.js | //= require ./core
//= require ./mixins
//= require ./forms
//= require_tree ./forms
//= require_tree ./views | //= require ./core
//= require ./mixins
//= require ./forms
//= require ./forms/field
//= require_tree ./forms
//= require_tree ./views | Fix dependency loading order for checkbox | Fix dependency loading order for checkbox
| JavaScript | mit | kristianmandrup/ember-bootstrap-rails,kristianmandrup/ember-bootstrap-rails | ---
+++
@@ -1,5 +1,6 @@
//= require ./core
//= require ./mixins
//= require ./forms
+//= require ./forms/field
//= require_tree ./forms
//= require_tree ./views |
70459cb61f753ce11bc85a801442de85879f716e | modules/chartDataController.js | modules/chartDataController.js | var express = require('express');
var DataStore = require('./regard-data-store.js');
var Chart = require('../schemas/chart.js');
var router = express.Router();
var dataStore = new DataStore('Adobe', 'Brackets');
router.get('/chartdata', function (req, res, next) {
var id = req.query.ids[0];
dataStore.runQuery(id... | var express = require('express');
var DataStore = require('./regard-data-store.js');
var Chart = require('../schemas/chart.js');
var router = express.Router();
var dataStore = new DataStore('Adobe', 'Brackets');
router.get('/chartdata', function (req, res, next) {
var id = req.query.ids[0];
dataStore.runQuery(id... | Revert "Register query on create." | Revert "Register query on create."
This reverts commit 9b1d857a288861a8a93acb242c05d1830e61a7e5.
| JavaScript | apache-2.0 | with-regard/regard-website-api | ---
+++
@@ -9,21 +9,21 @@
var id = req.query.ids[0];
dataStore.runQuery(id).then(function (result) {
- res.json({
+ res.json({
chartdata: [{
_id: id,
values: JSON.parse(result).Results
}]
});
- }, next);
+ });
});
-router.post('/charts', function (req, res, next) ... |
e790505df6398acdcd2dbe81f353cbf7a3cafaf9 | mantis_feeder_contextMenu.js | mantis_feeder_contextMenu.js | function hook_menu(){
$.contextMenu({
selector: '.feeder_entry',
callback: function(key, options) {
if(key == 'gallery'){
var id = $(this).attr('specie_id');
var folder = '';
$.each(collection_data.species,function(){
i... | function hook_menu(){
$.contextMenu('destroy','.feeder_entry');
$.contextMenu({
selector: '.feeder_entry',
callback: function(key, options) {
if(key == 'gallery'){
var id = $(this).attr('specie_id');
var folder = '';
$.each(collection_... | Destroy any old bind, makes this function repeat-callable | Destroy any old bind, makes this function repeat-callable
| JavaScript | mit | soundspawn/mantis_feeder,soundspawn/mantis_feeder | ---
+++
@@ -1,4 +1,5 @@
function hook_menu(){
+ $.contextMenu('destroy','.feeder_entry');
$.contextMenu({
selector: '.feeder_entry',
callback: function(key, options) { |
13975ebc0b8253e12b746d88f97d2a2d7f4c91ea | ui/app/controllers/application.js | ui/app/controllers/application.js | import Ember from 'ember';
const { Controller, computed } = Ember;
export default Controller.extend({
error: null,
errorStr: computed('error', function() {
return this.get('error').toString();
}),
errorCodes: computed('error', function() {
const error = this.get('error');
const codes = [error.co... | import Ember from 'ember';
const { Controller, computed, inject, run, observer } = Ember;
export default Controller.extend({
config: inject.service(),
error: null,
errorStr: computed('error', function() {
return this.get('error').toString();
}),
errorCodes: computed('error', function() {
const er... | Throw errors that cause a redirect to make debugging easier | Throw errors that cause a redirect to make debugging easier
| JavaScript | mpl-2.0 | Ashald/nomad,Ashald/nomad,nak3/nomad,dvusboy/nomad,dvusboy/nomad,burdandrei/nomad,nak3/nomad,Ashald/nomad,burdandrei/nomad,Ashald/nomad,dvusboy/nomad,nak3/nomad,dvusboy/nomad,hashicorp/nomad,Ashald/nomad,hashicorp/nomad,nak3/nomad,burdandrei/nomad,burdandrei/nomad,Ashald/nomad,dvusboy/nomad,nak3/nomad,hashicorp/nomad,d... | ---
+++
@@ -1,8 +1,10 @@
import Ember from 'ember';
-const { Controller, computed } = Ember;
+const { Controller, computed, inject, run, observer } = Ember;
export default Controller.extend({
+ config: inject.service(),
+
error: null,
errorStr: computed('error', function() {
@@ -32,4 +34,12 @@
is500... |
da4c52e2ba3dfc46f6523616df9ecad489266835 | js/background.js | js/background.js | var txt_cache='604800';chrome.webRequest.onHeadersReceived.addListener(function(object){'use strict';var object_type=object.type.toLowerCase();if((object_type!=='main_frame')&&(object_type!=='sub_frame')&&(object_type!=='xmlhttprequest')){var headers=object.responseHeaders,len=headers.length-1,f=false,elem=null;do{elem... | var txt_cache='604800';chrome.webRequest.onHeadersReceived.addListener(function(object){'use strict';if(object){var object_type=object.type.toLowerCase();if((object_type!=='main_frame')&&(object_type!=='sub_frame')&&(object_type!=='xmlhttprequest')){var headers=object.responseHeaders,len=headers.length-1,f=false,elem=n... | Make sure there actually is an object | Make sure there actually is an object | JavaScript | mit | mubaidr/Speed-up-Browsing,mubaidr/Speed-up-Browsing | ---
+++
@@ -1,3 +1,3 @@
-var txt_cache='604800';chrome.webRequest.onHeadersReceived.addListener(function(object){'use strict';var object_type=object.type.toLowerCase();if((object_type!=='main_frame')&&(object_type!=='sub_frame')&&(object_type!=='xmlhttprequest')){var headers=object.responseHeaders,len=headers.length-... |
b2a6fa1a1e6771a662029d3f52b6d57dcabc6ae2 | src/icarus/station.js | src/icarus/station.js | import { EventEmitter } from 'events'
import PouchDB from 'pouchdb'
import Serial from '../serial'
import Classifier from './classifier'
import { parser, dataHandler } from './data-handler'
/**
* Handles everything a Station should.
* Brings Serial, data parsing and database saving together.
*/
export default class... | import { EventEmitter } from 'events'
import PouchDB from 'pouchdb'
import Serial from '../serial'
import Classifier from './classifier'
import { parser, dataHandler } from './data-handler'
/**
* Handles everything a Station should.
* Brings Serial, data parsing and database saving together.
*/
export default class... | Add missing Station super() call | Add missing Station super() call
| JavaScript | mit | cansat-icarus/capture-lib | ---
+++
@@ -13,6 +13,8 @@
* Sets up all relevant class instances (Serial, parsers...) and events listeners.
*/
constructor () {
+ super()
+
/**
* Database instance, internal to the station.
*/ |
5b0f2e638a1ca645f000f0bd23bde42b7a90f334 | js/page/watch.js | js/page/watch.js | var videoStyle = {
width: '100%',
height: '100%',
backgroundColor: '#000'
};
var WatchPage = React.createClass({
propTypes: {
name: React.PropTypes.string,
},
render: function() {
return (
<main>
<video style={videoStyle} src={"/view?name=" + this.props.name} controls />
</main... | var videoStyle = {
width: '100%',
height: '100%',
backgroundColor: '#000'
};
var WatchPage = React.createClass({
propTypes: {
name: React.PropTypes.string,
},
getInitialState: function() {
return {
readyToPlay: false,
loadStatusMessage: "Requesting stream",
};
},
componentDidMou... | Hide video until it's playable and show loading message | Hide video until it's playable and show loading message
| JavaScript | mit | lbryio/lbry-electron,jsigwart/lbry-app,jsigwart/lbry-app,akinwale/lbry-app,jsigwart/lbry-app,lbryio/lbry-app,MaxiBoether/lbry-app,akinwale/lbry-app,lbryio/lbry-electron,MaxiBoether/lbry-app,lbryio/lbry-electron,jsigwart/lbry-app,MaxiBoether/lbry-app,akinwale/lbry-app,lbryio/lbry-app,MaxiBoether/lbry-app,akinwale/lbry-a... | ---
+++
@@ -8,12 +8,42 @@
propTypes: {
name: React.PropTypes.string,
},
-
+ getInitialState: function() {
+ return {
+ readyToPlay: false,
+ loadStatusMessage: "Requesting stream",
+ };
+ },
+ componentDidMount: function() {
+ lbry.getStream(this.props.name);
+ this.updateLoadStatu... |
d65379f168c569209d073f3473ffcdb859f430b7 | src/js/clock/clock.js | src/js/clock/clock.js | var Clock = module.exports;
Clock.weekday = function(weekday, hour, minute, seconds) {
return moment({ hour: hour, minute: minute, seconds: seconds }).day(weekday).unix();
};
| var Clock = module.exports;
Clock.weekday = function(weekday, hour, minute, seconds) {
var now = moment();
var target = moment({ hour: hour, minute: minute, seconds: seconds }).day(weekday);
if (moment.max(now, target) === now) {
target.add(1, 'week');
}
return target.unix();
};
| Fix Clock weekday to always return a time in the future | Fix Clock weekday to always return a time in the future
| JavaScript | mit | ishepard/TransmissionTorrent,carlo-colombo/dublin-bus-pebble,pebble/pebblejs,demophoon/Trimet-Tracker,daduke/LMSController,Scoutski/pebblejs,carlo-colombo/dublin-bus-pebble,jiangege/pebblejs-project,frizzr/CatchOneBus,bkbilly/Tvheadend-EPG,Scoutski/pebblejs,stephanpavlovic/pebble-kicker-app,pebble/pebblejs,dhpark/pebbl... | ---
+++
@@ -1,5 +1,10 @@
var Clock = module.exports;
Clock.weekday = function(weekday, hour, minute, seconds) {
- return moment({ hour: hour, minute: minute, seconds: seconds }).day(weekday).unix();
+ var now = moment();
+ var target = moment({ hour: hour, minute: minute, seconds: seconds }).day(weekday);
+ i... |
59ad47aa54b15a420efea1b2bbc0f44a2e5e5b3e | gulpfile.js | gulpfile.js | var plugins = require('gulp-load-plugins')({
lazy: true
});
////////// TASKS ////////////
/**
* Prints out the list of available tasks.
*/
gulp.task('default', plugins.taskListing);
/////// ACCESSORY FUNCTIONS ////////
| var plugins = require('gulp-load-plugins')({
lazy: true
});
////////// TASKS ////////////
/**
* Prints out the list of available tasks.
*/
gulp.task('default', plugins.taskListing);
////// igonzalez tasks /////////////
gulp.task('analyze');
////// fjfernandez tasks /////////////
/////// ACCESSORY FUNCTIONS... | Add personal areas to prevent merge conflicts. | Add personal areas to prevent merge conflicts.
| JavaScript | mit | natete/matrix-angular-gulp,natete/matrix-angular-gulp | ---
+++
@@ -11,5 +11,10 @@
gulp.task('default', plugins.taskListing);
+////// igonzalez tasks /////////////
+gulp.task('analyze');
+
+////// fjfernandez tasks /////////////
+
/////// ACCESSORY FUNCTIONS //////// |
dbcb98136ecf6d2f6200d2e5fb29f7d1684c9edf | js/colors.js | js/colors.js | module.exports = {
BLACK: 1,
RED: 1,
GREEN: 2,
BLUE: 3
} | module.exports = {
BLACK: 0,
RED: 1,
GREEN: 2,
BLUE: 3
} | Correct color value for Black | Correct color value for Black
| JavaScript | mit | gbirke/textiles-web,gbirke/textiles-web | ---
+++
@@ -1,5 +1,5 @@
module.exports = {
- BLACK: 1,
+ BLACK: 0,
RED: 1,
GREEN: 2,
BLUE: 3 |
5ca496397a1f948ecd2e1e0cb07fc3ad3e40bc64 | src/main/webapp/public/app-reset.js | src/main/webapp/public/app-reset.js | require.config({
paths: {
"jquery": "js/jquery-2.1.4.min",
"underscore": "js/underscore-min",
"knockout": "js/knockout-min-3.3.0"
}
});
require(['jquery', 'js/modules/dukecondb', 'js/modules/dukeconsettings', 'domReady!'], function($, db, settings) {
console.log("Clearing DB");
... | require.config({
paths: {
"jquery": "js/jquery-2.1.4.min",
"underscore": "js/underscore-min",
"domReady": "js/domReady",
"knockout": "js/knockout-min-3.3.0"
}
});
require(['jquery', 'js/modules/dukecondb', 'js/modules/dukeconsettings', 'domReady!'], function($, db, settings) {
... | Add missing "domReady" module declaration | Add missing "domReady" module declaration
| JavaScript | mit | dukecon/dukecon_html5,dukecon/dukecon_html5 | ---
+++
@@ -2,6 +2,7 @@
paths: {
"jquery": "js/jquery-2.1.4.min",
"underscore": "js/underscore-min",
+ "domReady": "js/domReady",
"knockout": "js/knockout-min-3.3.0"
}
}); |
23b3ba56043fed9a53a3ec6ed6e622063d7ca5e5 | src/nls/zh-tw/urls.js | src/nls/zh-tw/urls.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | Update CC BY 3.0 link to zh-TW localized version. | Update CC BY 3.0 link to zh-TW localized version.
| JavaScript | mit | zhukaixy/brackets,Live4Code/brackets,2youyouo2/cocoslite,adrianhartanto0/brackets,srinivashappy/brackets,albertinad/brackets,emanziano/brackets,fcjailybo/brackets,MahadevanSrinivasan/brackets,michaeljayt/brackets,tan9/brackets,chrismoulton/brackets,fronzec/brackets,MantisWare/brackets,IAmAnubhavSaini/brackets,malinkie/... | ---
+++
@@ -28,5 +28,5 @@
// Relative to the samples folder
"GETTING_STARTED" : "root/Getting Started",
"ADOBE_THIRD_PARTY" : "http://www.adobe.com/go/thirdparty/",
- "WEB_PLATFORM_DOCS_LICENSE" : "http://creativecommons.org/licenses/by/3.0/"
+ "WEB_PLATFORM_DOCS_LICENSE" : "htt... |
8923137c551fd8ab14798e0fe35ff2018f6b966f | app/constants/Images.js | app/constants/Images.js | /*
* Copyright 2017-present, Hippothesis, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
export const Images = {
logo: null
};
export default Images;
| /*
* Copyright 2017-present, Hippothesis, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
export const Images = {
icons: {
home: require('../images/home-icon.png'),
... | Add file paths to icons | Add file paths to icons
| JavaScript | bsd-3-clause | hippothesis/Recipezy,hippothesis/Recipezy,hippothesis/Recipezy | ---
+++
@@ -11,7 +11,11 @@
'use strict';
export const Images = {
- logo: null
+ icons: {
+ home: require('../images/home-icon.png'),
+ search: require('../images/search-icon.png'),
+ profile: require('../images/profile-icon.png')
+ }
};
export default Images; |
7c52422a46c92c85d6ddb482cce389d5fa80e5ba | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var tsc = require('gulp-tsc');
var tape = require('gulp-tape');
var tapSpec = require('tap-spec');
var del = require('del');
gulp.task("test:clean", function(done) {
del(['build-test/**']).then(function(paths) {
console.log("=====\nDeleted the following files:\n" + paths.join('\n')+ "... | var gulp = require('gulp');
var tsc = require('gulp-tsc');
var tape = require('gulp-tape');
var tapSpec = require('tap-spec');
var del = require('del');
gulp.task("test:clean", function(done) {
del(['build-test/**']).then(function(paths) {
console.log("=====\nDeleted the following files:\n" + paths.join('\n')+ "... | Call completion callback in test:run | Call completion callback in test:run
| JavaScript | mit | Jameskmonger/isaac-crypto | ---
+++
@@ -22,7 +22,8 @@
gulp.src('build-test/test/**/*.test.js')
.pipe(tape({
reporter: tapSpec()
- }));
+ }))
+ .on('end', done);;
});
gulp.task("test", ["test:build"], function (done) { |
4993dac019eb6eb43b74d5999efebeb5e5c99bdb | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var watch = require('gulp-watch');
var harp = require('harp');
var browserSync = require('browser-sync');
var ghPages = require('gulp-gh-pages');
var harpServerOptions = {
port: 9000
};
var paths = {
projectDir: './',
outputDir: './dist',
outputFiles: './dist/**/*.*'... | 'use strict';
var gulp = require('gulp');
var watch = require('gulp-watch');
var harp = require('harp');
var browserSync = require('browser-sync');
var ghPages = require('gulp-gh-pages');
var harpServerOptions = {
port: 9000
};
var paths = {
projectDir: './',
outputDir: './dist',
outputFiles: './dist/**/*',
... | Modify files globs to include all files | Modify files globs to include all files
The wildcard pattern was not picking up CNAME. Now it does.
| JavaScript | mit | josh-egan/tech.joshegan.com,josh-egan/tech.joshegan.com,josh-egan/tech.joshegan.com | ---
+++
@@ -13,8 +13,8 @@
var paths = {
projectDir: './',
outputDir: './dist',
- outputFiles: './dist/**/*.*',
- srcFiles: './public/**/*.*'
+ outputFiles: './dist/**/*',
+ srcFiles: './public/**/*'
};
gulp.task('default', ['watch']); |
7baa60230492c34ca9b1bb881731e0f6b5827d25 | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const browserify = require('gulp-browserify');
const pkg = require('./package.json')
gulp.task('build', () =>
gulp.src(pkg.main)
.pipe(browserify({
insertGlobals : true,
debug : !gulp.env.production
}))
.pipe(gulp.dest('dist'))
);
gulp.task('default', ['build'])... | const gulp = require('gulp');
const browserify = require('gulp-browserify');
const rename = require("gulp-rename");
const pkg = require('./package.json');
gulp.task('build', () =>
gulp.src(pkg.main)
.pipe(browserify({
insertGlobals: true,
debug: !gulp.env.production
}))
.pipe(rename(function(path) {
... | Add renaming of index.js to memefy.js | Add renaming of index.js to memefy.js
| JavaScript | mit | Kaioru/memefy.js | ---
+++
@@ -1,14 +1,18 @@
const gulp = require('gulp');
const browserify = require('gulp-browserify');
-const pkg = require('./package.json')
+const rename = require("gulp-rename");
+const pkg = require('./package.json');
gulp.task('build', () =>
gulp.src(pkg.main)
.pipe(browserify({
- insertGlobals... |
132822c44fc6916a01a547a2cfb70e1305b737ea | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
rimraf = require('rimraf'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
insert = require('gulp-insert'),
p = require('./package.json')
;
//Folders and annotation
var src = 'src/',
dest = 'dist/',
anno... | var gulp = require('gulp'),
rimraf = require('rimraf'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
insert = require('gulp-insert'),
p = require('./package.json')
;
//Folders and annotation
var src = 'src/',
dest = 'dist/',
anno... | Update gulp to change name of generated file | Update gulp to change name of generated file
| JavaScript | mit | Sevrahk/seSlider,Sevrahk/seSlider | ---
+++
@@ -21,7 +21,7 @@
.pipe(jshint())
.pipe(jshint.reporter())
.pipe(uglify())
- .pipe(rename('jquery.seslider-' + p.version + '.min.js'))
+ .pipe(rename('jquery.seslider.min.js'))
.pipe(insert.prepend(annotation))
.pipe(gulp.dest(dest));
; |
3ee6f9293edd48a1ca8302f799f8a339549952a1 | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var del = require('del');
var babel = require('gulp-babel');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var mocha = require('gulp-mocha');
var mochaBabelRegister = require('babel/register');
var ... | 'use strict';
var gulp = require('gulp');
var del = require('del');
var babel = require('gulp-babel');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var mocha = require('gulp-mocha');
var mochaBabelRegister = require('babel/register');
var ... | Add gulp task to run tests on file change. | Add gulp task to run tests on file change.
| JavaScript | mit | jnhuynh/min-flux | ---
+++
@@ -28,18 +28,14 @@
});
gulp.task('test', function() {
- var MinFlux = require('./index');
- var expect = require('chai').expect;
-
-
return gulp.src(['test/**/*.js'], { read: false })
.pipe(mocha({
reporter: 'dot',
- require: [
- './index',
- 'chai',
- ],
}))... |
59ca17998801770666c812e00942c0887ded1156 | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var iife = require('gulp-iife');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
gulp.task('default', ['scripts']);
gulp.task('scripts', function () {
gulp.src('src/**/*.js')
.pipe(concat('vk-api-angular.js'))
.pi... | var gulp = require('gulp');
var iife = require('gulp-iife');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
gulp.task('default', ['scripts']);
gulp.task('scripts', function () {
return gulp.src('src/**/*.js')
.pipe(concat('vk-api-angular.js'))
... | Add return statement to gulp task | Add return statement to gulp task
| JavaScript | mit | kefir500/vk-api-angular | ---
+++
@@ -7,7 +7,7 @@
gulp.task('default', ['scripts']);
gulp.task('scripts', function () {
- gulp.src('src/**/*.js')
+ return gulp.src('src/**/*.js')
.pipe(concat('vk-api-angular.js'))
.pipe(iife())
.pipe(gulp.dest('dist/')) |
0c5e8cd6c96275a1db428bc572bea0418e7b3c31 | gulpfile.js | gulpfile.js | var del = require('del');
var gulp = require('gulp');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var $ = require('gulp-load-plugins')();
var config = require('./webpack.config.js');
gulp.task('js', function (cb) {
webpack(config, function (err, stats) {
if(err) thr... | var del = require('del');
var gulp = require('gulp');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var $ = require('gulp-load-plugins')();
var config = require('./webpack.config.js');
gulp.task('js', function (cb) {
webpack(config, function (err, stats) {
if(err) thr... | Fix an error in the clean task | Fix an error in the clean task
| JavaScript | mit | darthmall/once-in-a-blue-moon,darthmall/once-in-a-blue-moon,darthmall/once-in-a-blue-moon | ---
+++
@@ -29,7 +29,9 @@
});
gulp.task('clean', function (cb) {
- del(['build']).then(cb);
+ del(['build']).then(function () {
+ cb()
+ });
});
gulp.task('build', ['html', 'css', 'js']); |
5f9884433df23b78ca063001cfb594081ca5bc35 | app/libs/utils/index.js | app/libs/utils/index.js | 'use strict';
module.exports = {
camelCase: require('./camel-case'),
colorString: require('./color-string'),
nestOptions: require('./nest-options'),
uid: require('./uid'),
request: require('./request'),
metadata: require('./metadata'),
framerate: require('./framerate'),
normalizeLanguage: require('./no... | 'use strict';
module.exports = {
camelCase: require('./camel-case'),
colorString: require('./color-string'),
nestOptions: require('./nest-options'),
uid: require('./uid'),
request: require('./request'),
metadata: require('./metadata'),
framerate: require('./framerate'),
normalizeLanguage: require('./no... | Add command exists to utils | Add command exists to utils
| JavaScript | apache-2.0 | transmutejs/core | ---
+++
@@ -10,5 +10,6 @@
framerate: require('./framerate'),
normalizeLanguage: require('./normalize-language'),
pad: require('./pad'),
- output: require('./output')
+ output: require('./output'),
+ commandExists: require('./command-exists')
}; |
1cde6271d8b7a3c38dfb6e75f0229b670921238a | src/targets/native/ios-simulator.js | src/targets/native/ios-simulator.js | const createWebsocketTarget = require('./create-websocket-target');
const osnap = require('osnap/src/ios');
const saveScreenshotToFile = filename => osnap.saveToFile({ filename });
const createIOSSimulatorTarget = socketUri =>
createWebsocketTarget(socketUri, 'ios', saveScreenshotToFile);
module.exports = createIO... | const fs = require('fs-extra');
const osnap = require('osnap/src/ios');
const { withRetries } = require('../../failure-handling');
const createWebsocketTarget = require('./create-websocket-target');
const saveScreenshotToFile = withRetries(3)(async filename => {
await osnap.saveToFile({ filename });
const { size }... | Add retry mechanism for iOS screenshots | Add retry mechanism for iOS screenshots
| JavaScript | mit | oblador/loki,oblador/loki,oblador/loki | ---
+++
@@ -1,7 +1,15 @@
+const fs = require('fs-extra');
+const osnap = require('osnap/src/ios');
+const { withRetries } = require('../../failure-handling');
const createWebsocketTarget = require('./create-websocket-target');
-const osnap = require('osnap/src/ios');
-const saveScreenshotToFile = filename => osnap... |
c29eb1e9d74438621585ac56c239a92ba2eb503b | vendor/assets/javascripts/koi/form-for.js | vendor/assets/javascripts/koi/form-for.js | (function($) {
$(function(){
// https://stackoverflow.com/questions/20658402/internet-explorer-issue-with-html5-form-attribute-for-button-element
// detect if browser supports this
var sampleElement = $('[form]').get(0);
var isIE11 = !(window.ActiveXObject) && "ActiveXObject" in window;
if (sampl... | (function($) {
$(function(){
// https://stackoverflow.com/questions/20658402/internet-explorer-issue-with-html5-form-attribute-for-button-element
// detect if browser supports this
$("body").on("click", "button[form]", function(e){
var $element = $(this);
var sampleElement = this;
if (sa... | Fix for Nav items duplicating | Fix for Nav items duplicating
| JavaScript | mit | katalyst/koi,katalyst/koi,katalyst/koi | ---
+++
@@ -1,17 +1,14 @@
(function($) {
$(function(){
-
// https://stackoverflow.com/questions/20658402/internet-explorer-issue-with-html5-form-attribute-for-button-element
// detect if browser supports this
- var sampleElement = $('[form]').get(0);
- var isIE11 = !(window.ActiveXObject) && "Acti... |
8fa4ec3b7d2ba0145b16e6e2a1c8f9e7366e96de | webapp/client/app/transforms/timestamp.js | webapp/client/app/transforms/timestamp.js | import DS from 'ember-data';
import Firebase from 'firebase';
export default DS.DateTransform.extend({
serialize: function(date) {
if (date === Firebase.ServerValue.TIMESTAMP){
return date;
}
return this._super(date);
}
});
| import DS from 'ember-data';
import Firebase from 'firebase';
export default DS.DateTransform.extend({
serialize: function(date) {
if (date === Firebase.ServerValue.TIMESTAMP){
return date;
}
// to timestamp
return new Date(date).getTime();
}
});
| Fix date issue on edit | Fix date issue on edit
| JavaScript | agpl-3.0 | asm-products/autora,asm-products/autora,MartinMalinda/autora,MartinMalinda/autora,asm-products/autora,MartinMalinda/autora | ---
+++
@@ -7,6 +7,7 @@
return date;
}
- return this._super(date);
+ // to timestamp
+ return new Date(date).getTime();
}
}); |
ad736959264f0cdc2bae5fa0391569f432fb3c65 | 029-distinct-powers/javascript-solution.js | 029-distinct-powers/javascript-solution.js | exponentiateStrings = function(string1, string2) {
// must have a powers function for strings because 100 ** 100 is too high for JS...
}
// var powers = [];
// for (var a = 2; a <= 100; a++) {
// for (var b = 2; b <= 100; b++) {
// powers.push(exponentiateStrings(a.toString(), b.toString()));
// }
// }
// ... | require("../custom-methods")
// exponentiateStrings = function(string1, string2) {
// // must have a powers function for strings because 100 ** 100 is too high for JS...
// }
// var powers = [];
// for (var a = 2; a <= 100; a++) {
// for (var b = 2; b <= 100; b++) {
// powers.push(exponentiateStrings(a.toSt... | Add and require custom-methods file | Add and require custom-methods file
| JavaScript | mit | JacobCrofts/project-euler,JacobCrofts/project-euler,JacobCrofts/project-euler | ---
+++
@@ -1,6 +1,9 @@
-exponentiateStrings = function(string1, string2) {
- // must have a powers function for strings because 100 ** 100 is too high for JS...
-}
+require("../custom-methods")
+
+
+// exponentiateStrings = function(string1, string2) {
+// // must have a powers function for strings because 100 **... |
2f58bac8452ec8981b5e8cc0ed45434768bf63ef | models/campground.js | models/campground.js | var mongoose = require('mongoose');
// SCHEMA SETUP:
var campgroundSchema = new mongoose.Schema({
name: String,
image: String,
description: String,
comments: [
{
type: mongoose.Schema.Types.ObjectId,
ref: 'Comment'
}
]
});
module.exports = mongoose.model('Campground', campgro... | var mongoose = require('mongoose');
// SCHEMA SETUP:
var campgroundSchema = new mongoose.Schema({
name: String,
image: String,
description: String,
author: {
id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User'
},
username: String
},
comments: [
{
type: ... | Add relations between Campgrounds and User models. | Add relations between Campgrounds and User models.
| JavaScript | mit | JuanHenriquez/yelp-camp,JuanHenriquez/yelp-camp | ---
+++
@@ -5,6 +5,13 @@
name: String,
image: String,
description: String,
+ author: {
+ id: {
+ type: mongoose.Schema.Types.ObjectId,
+ ref: 'User'
+ },
+ username: String
+ },
comments: [
{
type: mongoose.Schema.Types.ObjectId, |
ef675c190419fcb18c426484ba707dfddf9b866c | lib/hooks.js | lib/hooks.js | 'use strict'
var http = require('http')
var shimmer = require('shimmer')
var asyncState = require('./async-state')
module.exports = function (client) {
shimmer({ logger: client.logger.error })
shimmer.massWrap(http.Server.prototype, ['on', 'addListener'], function (fn) {
return function (event, listener) {
... | 'use strict'
var http = require('http')
var shimmer = require('shimmer')
var asyncState = require('./async-state')
module.exports = function (client) {
// TODO: This will actual just use the logger of the last client parsed in.
// In most use-cases this is a non-issue, but if someone tries to initiate
// multip... | Add TODO related to the auto-request hook feature | Add TODO related to the auto-request hook feature
| JavaScript | bsd-2-clause | opbeat/opbeat-node,opbeat/opbeat-node | ---
+++
@@ -5,7 +5,11 @@
var asyncState = require('./async-state')
module.exports = function (client) {
+ // TODO: This will actual just use the logger of the last client parsed in.
+ // In most use-cases this is a non-issue, but if someone tries to initiate
+ // multiple clients with different loggers, this w... |
739fa1573e59dee5c862ecf1f5e0dd71342ddfcc | lib/index.js | lib/index.js |
var math = require('mathjs');
var ERROR_RESPONSE = 'I can\'t calculate that!';
module.exports = function(argv, response) {
var respBody = ERROR_RESPONSE;
try {
var expression = argv.slice(1).join('');
var result = math.eval(expression);
if (typeof result === 'function') {
console.error('Someh... |
var math = require('mathjs');
var ERROR_RESPONSE = 'I can\'t calculate that!';
module.exports = function(argv, response, logger) {
var respBody = ERROR_RESPONSE;
try {
var expression = argv.slice(1).join('');
var result = math.eval(expression);
if (typeof result === 'function') {
logger.error... | Use the botstrap logger instead of console for logging | Use the botstrap logger instead of console for logging
| JavaScript | mit | elvinyung/scalk | ---
+++
@@ -3,7 +3,7 @@
var ERROR_RESPONSE = 'I can\'t calculate that!';
-module.exports = function(argv, response) {
+module.exports = function(argv, response, logger) {
var respBody = ERROR_RESPONSE;
try {
@@ -11,13 +11,13 @@
var result = math.eval(expression);
if (typeof result === 'functi... |
c4812b1d7f7164a5c23c1c723d564cfdac584680 | lib/praat.js | lib/praat.js | var info = require('./info');
var path = require('path');
var myPackageJson = require('../package.json');
var version = myPackageJson.praatVersion;
module.exports = [__dirname, '..', 'node_modules', '.bin', info.praatRealExecName(info.getOsInfo(), version)].join(path.sep);
| var info = require('./info');
var path = require('path');
var myPackageJson = require('../package.json');
var version = myPackageJson.praatVersion;
module.exports = path.resolve(__dirname, '..', 'node_modules', '.bin', info.praatRealExecName(info.getOsInfo(), version));
| Use path.resolve instead of string join | Use path.resolve instead of string join
| JavaScript | mit | motiz88/node-praat | ---
+++
@@ -2,4 +2,4 @@
var path = require('path');
var myPackageJson = require('../package.json');
var version = myPackageJson.praatVersion;
-module.exports = [__dirname, '..', 'node_modules', '.bin', info.praatRealExecName(info.getOsInfo(), version)].join(path.sep);
+module.exports = path.resolve(__dirname, '..'... |
a47d6f43d397f6ac52fabb3881056af9e8c0a86a | lib/utils.js | lib/utils.js | var STATUS_CODES = require('http');
exports.error = function (statusCode, message) {
var err;
if (message instanceof Error) {
err = message;
} else {
err = new Error(message || STATUS_CODES[statusCode]);
}
err.status = statusCode;
return err;
};
exports.extend = function exte... | var STATUS_CODES = require('http').STATUS_CODES;
exports.error = function (statusCode, message) {
var err;
if (message instanceof Error) {
err = message;
} else {
err = new Error(message || STATUS_CODES[statusCode]);
}
err.status = statusCode;
return err;
};
exports.extend = ... | Fix HTTP status code error messages | Fix HTTP status code error messages
| JavaScript | mit | ericf/open-marriage,HandyCodeJob/open-marriage,djscholl/open-marriage,djscholl/open-marriage,FerriNRachel/getting-married,FerriNRachel/getting-married | ---
+++
@@ -1,4 +1,4 @@
-var STATUS_CODES = require('http');
+var STATUS_CODES = require('http').STATUS_CODES;
exports.error = function (statusCode, message) {
var err; |
26bc33be05e3c4ec5403f8074bace5aa447dacf4 | demo/js/demo.js | demo/js/demo.js | 'use strict';
var require = typeof require === 'undefined' ? function() {} : require;
var React = window.React || require('react');
var ReactDom = window.ReactDOM || require('react-dom') || React;
var ElementPan = React.createFactory(window.reactElementPan || require('react-element-pan'));
// Simple image demo
React... | 'use strict';
var require = typeof require === 'undefined' ? function() {} : require;
var React = window.React || require('react');
var ReactDom = window.ReactDOM || require('react-dom') || React;
var ElementPan = React.createFactory(window.reactElementPan || require('react-element-pan'));
if (React.initializeTouchE... | Enable touch events on old React versions | Enable touch events on old React versions
| JavaScript | mit | rexxars/react-element-pan | ---
+++
@@ -5,6 +5,10 @@
var React = window.React || require('react');
var ReactDom = window.ReactDOM || require('react-dom') || React;
var ElementPan = React.createFactory(window.reactElementPan || require('react-element-pan'));
+
+if (React.initializeTouchEvents) {
+ React.initializeTouchEvents(true);
+}
/... |
7a45d261a7720133c7004487f273915c48cfef7b | app/assets/javascripts/discourse/components/private_message_map_component.js | app/assets/javascripts/discourse/components/private_message_map_component.js | /**
The controls at the top of a private message in the map area.
@class PrivateMessageMapComponent
@extends Ember.Component
@namespace Discourse
@module Discourse
**/
Discourse.PrivateMessageMapComponent = Ember.View.extend({
templateName: 'components/private-message-map',
tagName: 'section',
classNam... | /**
The controls at the top of a private message in the map area.
@class PrivateMessageMapComponent
@extends Ember.Component
@namespace Discourse
@module Discourse
**/
Discourse.PrivateMessageMapComponent = Ember.View.extend({
templateName: 'components/private-message-map',
tagName: 'section',
classNam... | Fix inviting others to private messages. | Fix inviting others to private messages.
| JavaScript | mit | natefinch/discourse,natefinch/discourse | ---
+++
@@ -15,7 +15,6 @@
init: function() {
this._super();
this.set('context', this);
- this.set('controller', this);
},
actions: {
@@ -34,7 +33,7 @@
},
showPrivateInvite: function() {
- this.sendAction('showPrivateInviteAction');
+ this.get('controller').send('showPriva... |
2d9feaa714088dafc473434b8a57e559b3416a5d | kolibri/plugins/learn/assets/src/modules/pluginModule.js | kolibri/plugins/learn/assets/src/modules/pluginModule.js | import mutations from './coreLearn/mutations';
import * as getters from './coreLearn/getters';
import * as actions from './coreLearn/actions';
import classAssignments from './classAssignments';
import classes from './classes';
import examReportViewer from './examReportViewer';
import examViewer from './examViewer';
imp... | import { PageNames, ClassesPageNames } from './../constants';
import mutations from './coreLearn/mutations';
import * as getters from './coreLearn/getters';
import * as actions from './coreLearn/actions';
import classAssignments from './classAssignments';
import classes from './classes';
import examReportViewer from '.... | Update learn getters to create page link references | Update learn getters to create page link references
| JavaScript | mit | learningequality/kolibri,learningequality/kolibri,learningequality/kolibri,learningequality/kolibri | ---
+++
@@ -1,3 +1,4 @@
+import { PageNames, ClassesPageNames } from './../constants';
import mutations from './coreLearn/mutations';
import * as getters from './coreLearn/getters';
import * as actions from './coreLearn/actions';
@@ -20,7 +21,60 @@
};
},
actions,
- getters,
+ getters: {
+ ...getter... |
b223c3f57215b8e42ee1792d507c146afad1129d | test/subscribers.js | test/subscribers.js | /* global describe, it */
'use strict'
var expect = require('expect.js')
var MailerLite = require('..')
var ML = new MailerLite()
const LIST_NAME = 'Mocha Test'
const TEST_SUBSCRIBERS = [
{
email: 'foo@bar.com',
name: 'Foo Bar'
},
{
email: 'john@doe.net',
name: 'John Doe'
}
]
describe('Sub... | Test to add a subscriber to new list and remove it. | Test to add a subscriber to new list and remove it.
| JavaScript | mit | fmoliveira/mailerlite-sdk-nodejs,fmoliveira/mailerlite-sdk-nodejs | ---
+++
@@ -0,0 +1,44 @@
+/* global describe, it */
+
+'use strict'
+
+var expect = require('expect.js')
+
+var MailerLite = require('..')
+var ML = new MailerLite()
+
+const LIST_NAME = 'Mocha Test'
+
+const TEST_SUBSCRIBERS = [
+ {
+ email: 'foo@bar.com',
+ name: 'Foo Bar'
+ },
+ {
+ email: 'john@doe.ne... | |
8de92e7e3acee87e6bf9b2932a56783d0d3ebacf | test/test-github.js | test/test-github.js | "use strict";
const {expect} = require("chai");
before(() => {
browser.url("/login");
browser.setCookie({
name: "user_session",
value: process.env.USER_SESSION,
});
});
describe("Pull Requests (listings)", () => {
it("should redact the author", () => {
browser.url("/pulls/mentioned");
const... | "use strict";
const {expect} = require("chai");
before(() => {
browser.url("/login");
browser.setCookie({
name: "user_session",
value: process.env.USER_SESSION,
});
});
describe("Pull Requests (listings)", () => {
it("should redact the author", () => {
browser.url("/pulls/mentioned");
const... | Add test for PR page, check if author is redacted | Add test for PR page, check if author is redacted
| JavaScript | mit | zombie/blind-reviews,zombie/blind-reviews | ---
+++
@@ -19,3 +19,18 @@
expect(prInfo).to.match(/^#1 opened \d+ days ago by$/);
});
});
+
+describe("(single) Pull Request Page", () => {
+ it("should redact the author", () => {
+ browser.url("/zombie/testing-reviews/pull/3");
+
+ const topFlash = $("div.flash > div").getText();
+ expect(topFla... |
20476caed9ff374a9b201b057d2dcff3522c6ca4 | test/typeOf-test.js | test/typeOf-test.js | "use strict";
var buster = require("buster");
var sinon = require("../lib/sinon");
var assert = buster.assert;
buster.testCase("sinon.typeOf", {
"returns boolean": function () {
assert.equals(sinon.typeOf(false), "boolean");
},
"returns string": function () {
assert.equals(sinon.typeOf("S... | /*eslint-env mocha*/
/*eslint max-nested-callbacks: 0*/
"use strict";
var referee = require("referee");
var sinon = require("../lib/sinon");
var assert = referee.assert;
describe("sinon.typeOf", function () {
it("returns boolean", function () {
assert.equals(sinon.typeOf(false), "boolean");
});
i... | Convert typeof tests to mocha | Convert typeof tests to mocha
| JavaScript | bsd-3-clause | fatso83/Sinon.JS,Khan/Sinon.JS,Khan/Sinon.JS,fatso83/Sinon.JS,jishi/sinon,mroderick/Sinon.JS,mroderick/Sinon.JS,jishi/sinon,Khan/Sinon.JS,cjohansen/Sinon.JS,fatso83/Sinon.JS,cjohansen/Sinon.JS,jishi/sinon,andpor/sinon,andpor/sinon,mroderick/Sinon.JS,andpor/sinon,cjohansen/Sinon.JS | ---
+++
@@ -1,47 +1,49 @@
+/*eslint-env mocha*/
+/*eslint max-nested-callbacks: 0*/
"use strict";
-var buster = require("buster");
+var referee = require("referee");
var sinon = require("../lib/sinon");
-var assert = buster.assert;
+var assert = referee.assert;
-buster.testCase("sinon.typeOf", {
- "returns b... |
fb6bb2e453ea1b49593df36addb5c7f90f683452 | client/src/actions/index.js | client/src/actions/index.js | import * as types from './ActionTypes'
import axios from 'axios'
export function addPattern(name, pattern) {
return {
type: types.ADD_PATTERN,
name: name,
pattern: pattern
}
}
export function selectPattern(pattern) {
return {
type: types.SELECT_PATTERN,
name: pattern
}
}
export function d... | import * as types from './ActionTypes'
import axios from 'axios'
export function addPattern(name, pattern) {
return {
type: types.ADD_PATTERN,
name: name,
pattern: pattern
}
}
export function selectPattern(pattern) {
return {
type: types.SELECT_PATTERN,
name: pattern
}
}
export function d... | Fix URL to use HTTPS. | Fix URL to use HTTPS.
| JavaScript | mit | Subzidion/riveter,Subzidion/riveter,Subzidion/riveter | ---
+++
@@ -52,7 +52,7 @@
export function evaluateText(pattern, text) {
return function(dispatch) {
dispatch(requestData())
- return axios.post('http://api.riveter.site/v1/process/', {
+ return axios.post('https://api.riveter.site/v1/process/', {
pattern: pattern,
textContent: text
}... |
025610aea87b2cec86855b29c7042a6b37c35de5 | lib/initializer.js | lib/initializer.js | "use strict";
var
Promise = require('./promise');
module.exports = function (API) {
var
self = Object.create(null),
promise = Promise.resolve(API);
self.init = function (initializer) {
promise = promise.then(function () {
return initializer(API);
});
return self;
};
return self;
};
| "use strict";
var
Promise = require('./promise');
module.exports = function (API) {
var
self = Object.create(null),
initializers = [],
promise = Promise.resolve(API);
self.init = function (initializer) {
initializers.push(initializer);
promise = promise.then(function () {
initia... | Add stop() method to Initializer. | Add stop() method to Initializer.
modified: lib/initializer.js
| JavaScript | mit | kixxauth/enginemill | ---
+++
@@ -6,15 +6,28 @@
module.exports = function (API) {
var
- self = Object.create(null),
- promise = Promise.resolve(API);
+ self = Object.create(null),
+ initializers = [],
+ promise = Promise.resolve(API);
self.init = function (initializer) {
+ initializers.push(initializer);
... |
b5a4f896615b9a15f0cb975982447a96e0959368 | migrations/util.js | migrations/util.js | var stream = require('stream')
var mongoose = require('mongoose')
exports.mongoose = mongoose
exports.connectMongoose = function() {
mongoose.connect(process.env.MONGO_URL || 'mongodb://localhost/meku')
return this
}
exports.progressMonitor = function(num) {
var ii = 0
var tick = num || 250
return function... | var stream = require('stream')
var mongoose = require('mongoose')
exports.mongoose = mongoose
exports.connectMongoose = function() {
mongoose.connect(process.env.MONGOHQ_URL || 'mongodb://localhost/meku')
return this
}
exports.progressMonitor = function(num) {
var ii = 0
var tick = num || 250
return functi... | Fix migrations mongo url variable | Fix migrations mongo url variable
| JavaScript | mit | kavi-fi/meku,kavi-fi/meku,kavi-fi/meku | ---
+++
@@ -4,7 +4,7 @@
exports.mongoose = mongoose
exports.connectMongoose = function() {
- mongoose.connect(process.env.MONGO_URL || 'mongodb://localhost/meku')
+ mongoose.connect(process.env.MONGOHQ_URL || 'mongodb://localhost/meku')
return this
}
|
31fb423a90cdb5445bf1d3fada17195a85773e1e | gruntfile.js | gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkgFile: 'package.json',
clean: ['build'],
babel: {
options: {
sourceMap: false
},
dist: {
files: [{
expand: true,
cwd: './lib',
... | module.exports = function(grunt) {
grunt.initConfig({
pkgFile: 'package.json',
clean: ['build'],
babel: {
options: {
sourceMap: false
},
dist: {
src: 'index.js',
dest: 'build/index.js'
}
}... | Revert "Add a babel task to watch which works" | Revert "Add a babel task to watch which works"
This reverts commit 9b22494b461448d9e75e153610c1629d8e455074.
| JavaScript | mit | webdriverio/wdio-sync | ---
+++
@@ -7,13 +7,8 @@
sourceMap: false
},
dist: {
- files: [{
- expand: true,
- cwd: './lib',
- src: 'index.js',
- dest: 'build/index.js',
- ext: '.js'
- ... |
5503337e5452e62eb7bb8b77b4cf4dccb6703015 | components/icon/Icon.js | components/icon/Icon.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class Icon extends PureComponent {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
color: PropTypes.oneOf(['... | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class Icon extends PureComponent {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
color: PropTypes.oneOf(['... | Add extra check to ensure child is an actual React component | Add extra check to ensure child is an actual React component
| JavaScript | mit | teamleadercrm/teamleader-ui | ---
+++
@@ -27,6 +27,12 @@
return (
<Box className={classNames} data-teamleader-ui="icon" element="span" {...others}>
{React.Children.map(children, child => {
+ // Check if child is an actual React component
+ // if so, pass the needed props. If not, just render it.
+ i... |
af8887e9c755638f306cc17617c62e0032d31912 | Apps/CesiumViewer/CesiumViewer.profile.js | Apps/CesiumViewer/CesiumViewer.profile.js | var profile = {
basePath : '../..',
baseUrl : '.',
releaseDir : './Build/Apps/CesiumViewer',
action : 'release',
cssOptimize : 'comments',
mini : true,
optimize : 'closure',
layerOptimize : 'closure',
stripConsole : 'all',
selectorEngine : 'acme',
layers : {
'dojo/doj... | var profile = {
basePath : '../..',
baseUrl : '.',
releaseDir : './Build/Apps/CesiumViewer',
action : 'release',
cssOptimize : 'comments',
mini : true,
optimize : 'closure',
layerOptimize : 'closure',
stripConsole : 'all',
selectorEngine : 'acme',
layers : {
'dojo/doj... | Tweak CesiumViewer build to avoid some warnings. | Tweak CesiumViewer build to avoid some warnings.
| JavaScript | apache-2.0 | progsung/cesium,aelatgt/cesium,CesiumGS/cesium,NaderCHASER/cesium,esraerik/cesium,ggetz/cesium,jason-crow/cesium,CesiumGS/cesium,kiselev-dv/cesium,wallw-bits/cesium,soceur/cesium,oterral/cesium,kiselev-dv/cesium,kaktus40/cesium,omh1280/cesium,CesiumGS/cesium,denverpierce/cesium,geoscan/cesium,YonatanKra/cesium,emackey/... | ---
+++
@@ -28,7 +28,9 @@
'dojo-publish-privates' : 0,
'dojo-sync-loader' : 0,
'dojo-xhr-factory' : 0,
- 'dojo-test-sniff' : 0
+ 'dojo-test-sniff' : 0,
+ 'dom-addeventlistener' : 1,
+ 'dojo-firebug' : 0
},
resourceTags : { |
fd4522d63e7d9dc18abc03f16fc5cf00a59409d9 | lib/generators/half_pipe/templates/tasks/options/watch.js | lib/generators/half_pipe/templates/tasks/options/watch.js | module.exports = {
debug: {
files: ['app/scripts/**/*', 'app/styles/**/*'],
tasks: ['build:debug']
},
rails: {
files: ['config/**/*.rb', 'lib/**/*.rb', 'Gemfile.lock'],
tasks: ['rails:server:restart'],
options: {
interrupt: true
}
}
};
| module.exports = {
debug: {
files: ['app/scripts/**/*', 'app/styles/**/*', 'config/build.js'],
tasks: ['build:debug']
},
rails: {
files: ['config/**/*.rb', 'lib/**/*.rb', 'Gemfile.lock'],
tasks: ['rails:server:restart'],
options: {
interrupt: true
}
}
};
| Watch for build configuration changes | Watch for build configuration changes
| JavaScript | mit | half-pipe/half-pipe,half-pipe/half-pipe | ---
+++
@@ -1,6 +1,6 @@
module.exports = {
debug: {
- files: ['app/scripts/**/*', 'app/styles/**/*'],
+ files: ['app/scripts/**/*', 'app/styles/**/*', 'config/build.js'],
tasks: ['build:debug']
},
rails: { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.