commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
624
message
stringlengths
15
4.7k
lang
stringclasses
3 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
07493a4b131cf0185f1b653f12d6d9f1129626e4
database/emulator-suite.js
database/emulator-suite.js
export async function onDocumentReady() { //[START rtdb_emulator_connect] let firebaseConfig = { // Point to the RTDB emulator running on localhost. // Here we supply database namespace 'foo'. databaseURL: "http://localhost:9000?ns=foo" } var myApp = firebase.initializeApp(firebaseConfig); con...
export async function onDocumentReady() { //[START rtdb_emulator_connect] let firebaseConfig = { // Point to the RTDB emulator running on localhost. // Here we supply database namespace 'foo'. databaseURL: "http://localhost:9000?ns=foo" } var myApp = firebase.initializeApp(firebaseConfig); con...
Add RTDB flush method using platform SDK methods.
Add RTDB flush method using platform SDK methods.
JavaScript
apache-2.0
firebase/snippets-web,firebase/snippets-web,firebase/snippets-web,firebase/snippets-web
19647ac3394e4c5e266d99cb6c476d1ee505b974
lib/options.js
lib/options.js
var fs = require('fs'); var path = require('path'); var cjson = require('cjson'); var _ = require('lodash'); var data = null; var OPTS_FILE = 'supersamples.opts'; var DEFAULTS = { output: './tmp', renderer: { name: 'html', options: { title: 'API Documentation', baseUrl: 'http://localh...
var fs = require('fs'); var path = require('path'); var cjson = require('cjson'); var _ = require('lodash'); var data = null; var OPTS_FILE = 'supersamples.opts'; var DEFAULTS = { output: './tmp', renderer: { name: 'html', options: { title: 'API Documentation', baseUrl: 'http://localh...
Fix bug where supersamples would not run without a supersamples.opt file
Fix bug where supersamples would not run without a supersamples.opt file
JavaScript
mit
GranitB/supersamples,mehdivk/supersamples,vickvu/supersamples,vickvu/supersamples,rprieto/supersamples,rprieto/supersamples,mehdivk/supersamples,GranitB/supersamples
712e512cfb33c897a9a7dd8cea0e1001f39b1bea
src/dom-utils/instanceOf.js
src/dom-utils/instanceOf.js
// @flow import getWindow from './getWindow'; /*:: declare function isElement(node: mixed): boolean %checks(node instanceof Element); */ function isElement(node) { const OwnElement = getWindow(node).Element; return node instanceof OwnElement; } /*:: declare function isHTMLElement(node: mixed): boolean %checks(...
// @flow import getWindow from './getWindow'; /*:: declare function isElement(node: mixed): boolean %checks(node instanceof Element); */ function isElement(node) { const OwnElement = getWindow(node).Element; return node instanceof OwnElement || node instanceof Element; } /*:: declare function isHTMLElement(nod...
Fix error in some situations with iframes
Fix error in some situations with iframes When using popper in an iframe, if the elements are created in the code's global context and added to the iframe, exceptions are thrown because prototypeOf does not accurately assess which nodes are Elements or HTMLElements. This fixes https://github.com/popperjs/popper-cor...
JavaScript
mit
floating-ui/floating-ui,FezVrasta/popper.js,FezVrasta/popper.js,floating-ui/floating-ui,FezVrasta/popper.js,floating-ui/floating-ui,FezVrasta/popper.js
ae1e8915d76d4bd983d5a743bbb32dcb7369b985
SPAWithAngularJS/module3/httpService/js/app.menuCategoriesController.js
SPAWithAngularJS/module3/httpService/js/app.menuCategoriesController.js
// app.menuCategoriesController.js (function() { "use strict"; angular.module("MenuCategoriesApp") .controller("MenuCategoriesController", MenuCategoriesController); MenuCategoriesController.$inject = ["MenuCategoriesService"]; function MenuCategoriesController(MenuCategoriesService) { let vm = this...
// app.menuCategoriesController.js (function() { "use strict"; angular.module("MenuCategoriesApp") .controller("MenuCategoriesController", MenuCategoriesController); MenuCategoriesController.$inject = ["GitHubDataService"]; function MenuCategoriesController(GitHubDataService) { let vm = this; v...
Use new service. Implement getRepos
Use new service. Implement getRepos
JavaScript
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
737f1e96233bdd477a4dc932f82118c9f746ea13
src/migrations/20171114034422-create-discord-interaction.js
src/migrations/20171114034422-create-discord-interaction.js
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('DiscordInteractions', { id: { primaryKey: true, type: Sequelize.INTEGER, autoIncrement: true, allowNull: false, }, command: { type: Sequelize.STRING, ...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('DiscordInteractions', { id: { primaryKey: true, type: Sequelize.INTEGER, autoIncrement: true, allowNull: false, }, command: { type: Sequelize.STRING, ...
Fix FK nullability on interaction table
Fix FK nullability on interaction table
JavaScript
mit
steers/lanodized,steers/lanodized
b49edd06baa6d7326f58cf319bfd41cd61147f71
dwinelle/web/js/spaces.js
dwinelle/web/js/spaces.js
function hallwayType1(length) { var space = new THREE.Group(); space.add(makeArrowHelper(0,0,0,0,1,0)); // Lighting for (var i = -length/2; i <= length/2; i+=10) { space.add(makePointLight(i,0,2.5, space)); } // Floor space.add(makePlane(5 , length, 0, 0 , 0, null, null, Math.PI/2, floorMat)); //...
function hallwayType1(length) { var space = new THREE.Group(); space.add(makeArrowHelper(0,0,0,0,1,0)); // Lighting for (var i = -length/2; i <= length/2; i+=10) { space.add(makePointLight(i,0,2.5, space)); } // Floor space.add(makePlane(5 , length, 0, 0 , 0, null, null, Math.PI/2, plainLightGray))...
Make things gray and black so it doesn't kill my browser
Make things gray and black so it doesn't kill my browser
JavaScript
mit
oliverodaa/cs184-final-proj,oliverodaa/cs184-final-proj,oliverodaa/cs184-final-proj
d813789dd4a515e6f3db9f7303ffdaf1c2c0083d
lib/resources/Customers.js
lib/resources/Customers.js
'use strict'; var FusebillResource = require('../FusebillResource'); var utils = require('../utils'); var fusebillMethod = FusebillResource.method; module.exports = FusebillResource.extend({ path: 'customers', includeBasic: [ 'create', 'list', 'retrieve', 'update', 'del', ], /** * Customer: Subscri...
'use strict'; var FusebillResource = require('../FusebillResource'); var utils = require('../utils'); var fusebillMethod = FusebillResource.method; module.exports = FusebillResource.extend({ path: 'customers', includeBasic: [ 'create', 'list', 'retrieve', 'update', 'del', ], /** * Customer: Subscri...
Add back customer list payment methods
Add back customer list payment methods
JavaScript
mit
DanielAudino/fusebill-node,fingerfoodstudios/fusebill-node,bradcavanagh-ffs/fusebill-node
0d17ee888f562ba70d678d9ad9b412704bc2d3af
src/heading/heading_view.js
src/heading/heading_view.js
"use strict"; var TextView = require('../text/text_view'); // Substance.Heading.View // ========================================================================== var HeadingView = function(node) { TextView.call(this, node); this.$el.addClass('heading'); }; HeadingView.Prototype = function() {}; HeadingView.P...
"use strict"; var TextView = require('../text/text_view'); // Substance.Heading.View // ========================================================================== var HeadingView = function(node) { TextView.call(this, node); this.$el.addClass('heading'); this.$el.addClass('level-'+this.node.level); }; Headi...
Add css classes for heading levels.
Add css classes for heading levels.
JavaScript
mit
substance/nodes
23a39bf923f64fbcf590f9fd7f1998c1bd55dad0
web/js/main.js
web/js/main.js
"use strict"; require.config({ shim: { backbone: { deps: ['underscore', 'jquery'], exports: 'Backbone' }, underscore: { exports: '_' }, handlebars: { exports: 'Handlebars' } }, paths: { bootstrap: 'lib/bootstrap', jquery: 'lib/jquery-1.7.2', underscore:...
"use strict"; require.config({ shim: { backbone: { deps: ['underscore', 'jquery'], exports: 'Backbone' }, underscore: { exports: '_' }, handlebars: { exports: 'Handlebars' } }, paths: { bootstrap: 'lib/bootstrap', jquery: 'lib/jquery-1.7.2', underscore:...
Move our router object to the Reitti namespace.
Move our router object to the Reitti namespace.
JavaScript
mit
reitti/reittiopas,reitti/reittiopas
0cb49fd90bf58848859a1e8626cf88ee3158b132
brunch-config.js
brunch-config.js
exports.files = { javascripts: { joinTo: { 'fateOfAllFools.js': /^(?!test)/ } }, stylesheets: { joinTo: 'fateOfAllFools.css' } }; // Tests are handled by Karma exports.conventions = { ignored: /^test/ };
exports.files = { javascripts: { joinTo: { 'fateOfAllFools.js': /^(?!test)/ } }, stylesheets: { joinTo: 'fateOfAllFools.css' } }; /* 1. Tests are handled by Karma. This is to silence a warning that Brunch reports (which is helpful actually in most cases!) because it sees JS files ...
Add detail to exclusion reasoning
Add detail to exclusion reasoning
JavaScript
mit
rslifka/fate_of_all_fools,rslifka/fate_of_all_fools
7e7d86162597794f3452ab69d177300df1cadefd
src/model/fancy/location.js
src/model/fancy/location.js
/** * model/fancy/location.js */ function changePathGen (method) { return function changePath(path) { root.history[method + 'State'](EMPTY_OBJECT, '', path); $(root).trigger(method + 'state'); }; } models.location = baseModel.extend({ /** * Example: * var loc = tbone.models.loc...
/** * model/fancy/location.js */ function changePathGen (method) { return function changePath(path) { root.history[method + 'State'](EMPTY_OBJECT, '', path); window.dispatchEvent(new root.Event(method + 'state')); }; } models.location = baseModel.extend({ /** * Example: * var l...
Remove dependency on JQuery for binding/triggering hashchange/pushstate events
Remove dependency on JQuery for binding/triggering hashchange/pushstate events
JavaScript
mit
appneta/tbone,appneta/tbone,rachellaserzhao/tbone,tillberg/tbone,tillberg/tbone,rachellaserzhao/tbone
ee3fb6243a6a49c1cc0d5d3f78aec555089885d5
public/services/gitlab.js
public/services/gitlab.js
app .factory("gitlab", ["$http", "$q", "Config", function($http, $q, Config) { function gitlab() {} gitlab.prototype.imageUrl = function(path) { return Config.gitlabUrl + path; }; gitlab.prototype.callapi = function(method, path) { var deferred = $q.defer(); v...
app .factory("gitlab", ["$http", "$q", "Config", function($http, $q, Config) { function gitlab() {} gitlab.prototype.imageUrl = function(path) { return Config.gitlabUrl.replace(/\/*$/, "") + path; }; gitlab.prototype.callapi = function(method, path) { var deferred = $...
Remove trailing slash in GitLab url
Remove trailing slash in GitLab url Signed-off-by: kfei <1da1ad03e627cea4baf20871022464fcc6a4b2c4@kfei.net>
JavaScript
mit
kfei/gitlab-auditor,kfei/gitlab-auditor,kfei/gitlab-auditor
a28ca526a35216f276eb7529d0cf1b1b78f2d994
app/routes/edit-form.js
app/routes/edit-form.js
import IdProxy from '../utils/idproxy'; import ProjectedModelRoute from '../routes/base/projected-model-route'; export default ProjectedModelRoute.extend({ model: function(params, transition) { this._super.apply(this, arguments); // :id param defined in router.js var id = IdProxy.mutate(params.id, this....
import IdProxy from '../utils/idproxy'; import ProjectedModelRoute from '../routes/base/projected-model-route'; export default ProjectedModelRoute.extend({ model: function(params, transition) { this._super.apply(this, arguments); // :id param defined in router.js var id = IdProxy.mutate(params.id, this....
Fix ember data "fetchById" deprecation
Fix ember data "fetchById" deprecation
JavaScript
mit
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
adcc739f86f2bb24dc0f2ebe0d7d6bba1501b81c
test/index.js
test/index.js
var vCard = require( '..' ) var fs = require( 'fs' ) var assert = require( 'assert' ) suite( 'vCard', function() { suite( 'Character Sets', function() { test( 'charset should not be part of value', function() { var data = fs.readFileSync( __dirname + '/data/xing.vcf' ) var card = new vCard( d...
var vCard = require( '..' ) var fs = require( 'fs' ) var assert = require( 'assert' ) suite( 'vCard', function() { suite( 'Character Sets', function() { test( 'charset should not be part of value', function() { var data = fs.readFileSync( __dirname + '/data/xing.vcf' ) var card = new vCard( d...
Update test: Adjust assertions to removal of cardinality checks
Update test: Adjust assertions to removal of cardinality checks
JavaScript
mit
jhermsmeier/node-vcf
88da1a072569a503afb157e83e6759779c700da8
test/index.js
test/index.js
const minecraftItems = require('../') const tap = require('tap') const testItem = (test, item, name) => { test.type(item, 'object') test.equal(item.name, name) test.end() } tap.test('should be able to get an item by numeric type', t => { testItem(t, minecraftItems.get(1), 'Stone') }) tap.test('should be able...
const minecraftItems = require('../') const tap = require('tap') const testItem = (test, item, name) => { test.type(item, 'object') test.equal(item.name, name) test.notEqual(typeof item.id, 'undefined', 'items should have an id property') test.notEqual(typeof item.type, 'undefined', 'items should have a type p...
Test for inclusion of icon data.
:white_check_mark: Test for inclusion of icon data.
JavaScript
mit
pandapaul/minecraft-items
cd3b76de38f6d050c8c3c927c06f4575ab456cd2
src/bot/postback.js
src/bot/postback.js
// import { getDocument } from './lib/couchdb'; // getDocument('3cfc9a96341c0e24') // .then(d => console.log(d)) // .catch(d => console.log(d)) export default (bot) => { return async (payload, reply) => { let text = payload.postback.payload; try { const profile = await bot.getProfile(payload.sende...
// import { getDocument } from './lib/couchdb'; // getDocument('3cfc9a96341c0e24') // .then(d => console.log(d)) // .catch(d => console.log(d)) export default (bot) => { return async (payload, reply) => { let text = payload.postback.payload; try { const profile = await bot.getProfile(payload.sende...
Change the template for account linking
Change the template for account linking
JavaScript
mit
nikolay-radkov/ebudgie-server,nikolay-radkov/ebudgie-server
dbdc7968923e320677f3e61f0f381f15d0ddb757
app/assets/javascripts/connect/views/SubscriptionListView.js
app/assets/javascripts/connect/views/SubscriptionListView.js
define([ 'backbone', 'handlebars', 'moment', 'connect/collections/Subscriptions', 'connect/views/SubscriptionListItemView', 'text!connect/templates/subscriptionList.handlebars' ], function(Backbone, Handlebars, moment, Subscriptions, SubscriptionListItemView, tpl) { 'use strict'; var SubscriptionListView ...
define([ 'backbone', 'handlebars', 'moment', 'connect/collections/Subscriptions', 'connect/views/SubscriptionListItemView', 'text!connect/templates/subscriptionList.handlebars' ], function(Backbone, Handlebars, moment, Subscriptions, SubscriptionListItemView, tpl) { 'use strict'; var SubscriptionListView ...
Sort subscription list by date
Sort subscription list by date
JavaScript
mit
Vizzuality/gfw,Vizzuality/gfw
346cd3bd917ef642ed8d132d559e4b16342b29b7
src/transforms/__tests__/textShadow.js
src/transforms/__tests__/textShadow.js
import transformCss from '../..' it('textShadow with all values', () => { expect(transformCss([['text-shadow', '10px 20px 30px red']])).toEqual({ textShadowOffset: { width: 10, height: 20 }, textShadowRadius: 30, textShadowColor: 'red', }) }) it('textShadow omitting blur', () => { expect(transformCs...
import transformCss from '../..' it('textShadow with all values', () => { expect(transformCss([['text-shadow', '10px 20px 30px red']])).toEqual({ textShadowOffset: { width: 10, height: 20 }, textShadowRadius: 30, textShadowColor: 'red', }) }) it('textShadow omitting blur', () => { expect(transformCs...
Remove duplicate test, fix duplicate test
Remove duplicate test, fix duplicate test
JavaScript
mit
styled-components/css-to-react-native
8d4d2eb1b16bb5e527aeb051931d6f834da8b21b
test/scenario/game-start.js
test/scenario/game-start.js
// @flow import { expect } from "chai"; import { Game, GameDescriptor, DefaultDeck } from "stormtide-core"; import type { PlayerDescriptor } from "stormtide-core"; describe("Scenario: Game Start", () => { const settings = new GameDescriptor(); const player1: PlayerDescriptor = { deck: DefaultDeck }; cons...
// @flow import { expect } from "chai"; import { Game, GameDescriptor, DefaultDeck } from "stormtide-core"; import type { PlayerDescriptor } from "stormtide-core"; describe("Scenario: Game Start", () => { const settings = new GameDescriptor(); const player1: PlayerDescriptor = { deck: DefaultDeck }; cons...
Add minor note about future changes
Add minor note about future changes
JavaScript
mit
StormtideGame/stormtide-core
ea02da4f1d26c736d04b83dfdabde3297bba8dc7
packages/ember-runtime/lib/controllers/object_controller.js
packages/ember-runtime/lib/controllers/object_controller.js
require('ember-runtime/system/object_proxy'); require('ember-runtime/controllers/controller'); /** @module ember @submodule ember-runtime */ /** `Ember.ObjectController` is part of Ember's Controller layer. A single shared instance of each `Ember.ObjectController` subclass in your application's namespace will b...
require('ember-runtime/system/object_proxy'); require('ember-runtime/controllers/controller'); /** @module ember @submodule ember-runtime */ /** `Ember.ObjectController` is part of Ember's Controller layer. `Ember.ObjectController` derives its functionality from its superclass `Ember.ObjectProxy` and the `Embe...
Remove obsolete paragraph from ObjectController comments
Remove obsolete paragraph from ObjectController comments
JavaScript
mit
trentmwillis/ember.js,mitchlloyd/ember.js,kidaa/ember.js,seanpdoyle/ember.js,cyberkoi/ember.js,csantero/ember.js,kellyselden/ember.js,michaelBenin/ember.js,cesarizu/ember.js,JesseQin/ember.js,xcambar/ember.js,jmurphyau/ember.js,nruth/ember.js,Trendy/ember.js,seanjohnson08/ember.js,knownasilya/ember.js,rwjblue/ember.js,...
3cf539e029290331c735da82b1c0dc3189eeff6b
src/sprites/Player/index.js
src/sprites/Player/index.js
import Phaser from 'phaser'; import frames from '../../sprite-frames'; import update from './update'; export default class extends Phaser.Sprite { constructor({ game, x, y }) { super(game, x, y, 'guy', frames.GUY.STAND_DOWN); this.anchor.setTo(0.5, 0.5); this.faceDirection = 'DOWN'; this.faceObje...
import Phaser from 'phaser'; import frames from '../../sprite-frames'; import update from './update'; import Inventory from './inventory'; export default class extends Phaser.Sprite { constructor({ game, x, y }) { super(game, x, y, 'guy', frames.GUY.STAND_DOWN); this.anchor.setTo(0.5, 0.5); this.face...
Use inventory class instead of plain object
Use inventory class instead of plain object
JavaScript
mit
ThomasMays/incremental-forest,ThomasMays/incremental-forest
bf85e9c098f4223c23c86ff3626bf8e36917b46c
src/templates/navigation.js
src/templates/navigation.js
import React from 'react' import { NavLink } from 'react-router-dom' import styles from './navigation.module.styl' export default ({ sports }) => ( <nav> <ol className={`${styles['sports-list']}`}> { sports.map(({ node }, idx) => ( <li key={idx} className={`${styles['sport-item']}`}> ...
import React from 'react' import NavLink from 'gatsby-link' import styles from './navigation.module.styl' export default ({ sports }) => ( <nav> <ol className={`${styles['sports-list']}`}> { sports.map(({ node }, idx) => ( <li key={idx} className={`${styles['sport-item']}`}> ...
Update NavLinks: use gatsby-link to avoid code chunks necessary for pages not being loaded.
Update NavLinks: use gatsby-link to avoid code chunks necessary for pages not being loaded.
JavaScript
mit
LuisLoureiro/placard-wrapper
ba1b1ddf5181e78d3220c5e3d1d880bcf775c9ea
blueprints/ember-cli-template-lint/files/.template-lintrc.js
blueprints/ember-cli-template-lint/files/.template-lintrc.js
/* jshint node:true */ 'use strict'; module.exports = { 'bare-strings': true, 'block-indentation': 2, 'html-comments': true, 'nested-interactive': true, 'lint-self-closing-void-elements': true, 'triple-curlies': true, 'deprecated-each-syntax': true };
/* jshint node:true */ 'use strict'; module.exports = { extend: 'recommended' };
Use the recommended config from ember-template-lint.
Use the recommended config from ember-template-lint.
JavaScript
mit
rwjblue/ember-cli-template-lint,rwjblue/ember-cli-template-lint
6a2776fef20474fdcd75abb063ba76b830ea82b3
ws-fallback.js
ws-fallback.js
module.exports = WebSocket || MozWebSocket || window.WebSocket || window.MozWebSocket
var ws = null if (typeof WebSocket !== 'undefined') { ws = WebSocket } else if (typeof MozWebSocket !== 'undefined') { ws = MozWebSocket } else { ws = window.WebSocket || window.MozWebSocket } module.exports = ws
Use typeof for checking globals.
Use typeof for checking globals.
JavaScript
bsd-2-clause
maxogden/websocket-stream,maxogden/websocket-stream
4874126c3445112d491f091be13eb999bf9f8fa3
system/res/js/key_import.js
system/res/js/key_import.js
var KeyImporterController = function() { this.sendArmor = function() { armorContainer = $('#import-armor'); data = "armor="+armorContainer.val(); $.post( '/node/api/keyring/post/import', data, function(data){ obj = $.parseJSON(data); if(obj.result != 'ok') { $('#i...
var KeyImporterController = function() { this.sendArmor = function() { armorContainer = $('#import-armor'); data = "armor="+encodeURIComponent(armorContainer.val()); $.post( '/node/api/keyring/post/import', data, function(data){ obj = $.parseJSON(data); if(obj.result != 'ok...
Correct encoding for key import
Correct encoding for key import The armor was getting mashed on transmission
JavaScript
apache-2.0
SpringDVS/php.web.node,SpringDVS/nodeweb_php,SpringDVS/php.web.node,SpringDVS/nodeweb_php
5c1cee5e80329595c654e95be79888b9d11387cc
app/models/session-type.js
app/models/session-type.js
import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), sessionTypeCssClass: DS.attr('string'), assessment: DS.attr('boolean'), assessmentOption: DS.belongsTo('assessment-option', {async: true}), school: DS.belongsTo('school', {async: true}), aamcMethods: DS.hasMany('aamc-me...
import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), sessionTypeCssClass: DS.attr('string'), assessment: DS.attr('boolean'), assessmentOption: DS.belongsTo('assessment-option', {async: true}), school: DS.belongsTo('school', {async: true}), aamcMethods: DS.hasMany('aamc-me...
Remove sessions from seasionType model
Remove sessions from seasionType model No longer part of the API
JavaScript
mit
jrjohnson/frontend,dartajax/frontend,dartajax/frontend,gboushey/frontend,jrjohnson/frontend,djvoa12/frontend,thecoolestguy/frontend,ilios/frontend,stopfstedt/frontend,thecoolestguy/frontend,ilios/frontend,stopfstedt/frontend,gboushey/frontend,djvoa12/frontend,gabycampagna/frontend,gabycampagna/frontend
0640d35ab77d16c24db7e9b889723ab7f093df2f
build/dev-server-chrome.js
build/dev-server-chrome.js
require('./check-versions')(); var config = require('../config'); if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV); } var webpack = require('webpack'); var webpackConfig = require('./webpack.dev.conf'); const compiler = webpack(webpackConfig); const watching = compiler.watch...
require('./check-versions')(); let config = require('../config'); if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV); } let webpack = require('webpack'); let webpackConfig = require('./webpack.dev.conf'); const compiler = webpack(webpackConfig); const watching = compiler.watch...
Improve output message and lint
Improve output message and lint
JavaScript
mit
nextgensparx/quantum-router,nextgensparx/quantum-router
43bf846321bdbfed04a3f2338805013342bb84d9
js/controllers/imprint.js
js/controllers/imprint.js
"use strict"; // Serves the imprint for the application module.exports = 'controllers/imprint'; var dependencies = []; angular.module(module.exports, dependencies) .controller('ImprintCtrl', function ($scope, $http) { $scope.config = config; if (config.server) { $http.get(config.serve...
"use strict"; // Serves the imprint for the application module.exports = 'controllers/imprint'; var dependencies = []; angular.module(module.exports, dependencies) .controller('ImprintCtrl', function ($scope, $http) { $scope.config = config; $http .get(config.server + '/') ...
Remove unneeded check if there is a server
Remove unneeded check if there is a server
JavaScript
mit
dragonservice/sso-client,dragonservice/sso-client
96ab389bb9a363adecec8241bc4c71e95c71d4c8
coursebuilder/modules/student_groups/_static/js/student_groups_list.js
coursebuilder/modules/student_groups/_static/js/student_groups_list.js
var XSSI_PREFIX = ")]}'"; function parseJson(s) { return JSON.parse(s.replace(XSSI_PREFIX, "")); } $(function(){ $('div[data-delete-url]').each(function(index, element){ var groupName = $(element).data('group-name'); var button = $('<button id="delete-' + groupName + '" ' + 'class="gcb-list__icon ...
var XSSI_PREFIX = ")]}'"; function parseJson(s) { return JSON.parse(s.replace(XSSI_PREFIX, "")); } $(function(){ $('div[data-delete-url]').each(function(index, element){ var groupName = $(element).data('group-name'); var button = $('<button id="delete-' + groupName + '" ' + 'class="gcb-list__icon ...
Change JS parser to only look for 200 success code not the actual "OK".
Change JS parser to only look for 200 success code not the actual "OK". Oddly, in production, Chrome returns request.status as 'parsererror' rather than "OK", which is what we get when running against a dev server. The 'parseerror' is actually fairly reasonable -- we send back JSON with our script-buster prefix of })]...
JavaScript
apache-2.0
andela-angene/coursebuilder-core,andela-angene/coursebuilder-core,andela-angene/coursebuilder-core,andela-angene/coursebuilder-core
644b2a98ded16b7268f0cd2f28b20cbfb4814505
lib/cli/src/generators/REACT/template-csf/.storybook/main.js
lib/cli/src/generators/REACT/template-csf/.storybook/main.js
module.exports = { stories: ['../stories/**/*.stories.js'], addons: ['@storybook/addon-actions', '@storybook/addon-links'], };
module.exports = { stories: ['../stories/**/*.stories.(ts|tsx|js|jsx)'], addons: ['@storybook/addon-actions', '@storybook/addon-links'], };
Support Both js and jsx or ts and tsx
Support Both js and jsx or ts and tsx
JavaScript
mit
kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook
6fb67b0a4047610c067b2e118a695bca742a6201
cloudcode/cloud/main.js
cloudcode/cloud/main.js
// Parse CloudCode Parse.Cloud.beforeSave(Parse.Installation, function(request, response) { Parse.Cloud.useMasterKey(); var androidId = request.object.get("androidId"); if (androidId == null || androidId == "") { console.warn("No androidId found, exit"); response.success(); } var query = new Parse...
// Parse CloudCode Parse.Cloud.beforeSave(Parse.Installation, function(request, response) { Parse.Cloud.useMasterKey(); var androidId = request.object.get("androidId"); if (androidId == null || androidId == "") { console.warn("No androidId found, exit"); return response.success(); } ...
Fix typo on error handling conditional
Fix typo on error handling conditional
JavaScript
mit
timanrebel/Parse,DouglasHennrich/Parse,gimdongwoo/Parse,timanrebel/Parse,DouglasHennrich/Parse,DouglasHennrich/Parse,DouglasHennrich/Parse,timanrebel/Parse,gimdongwoo/Parse,DouglasHennrich/Parse,timanrebel/Parse,gimdongwoo/Parse,gimdongwoo/Parse
a8cf1c8156c2c87cf8a68a5cc362797a29cf760c
src/webWorker/decodeTask/decoders/decodeJPEGLossless.js
src/webWorker/decodeTask/decoders/decodeJPEGLossless.js
"use strict"; (function (cornerstoneWADOImageLoader) { function decodeJPEGLossless(imageFrame, pixelData) { // check to make sure codec is loaded if(typeof jpeg === 'undefined' || typeof jpeg.lossless === 'undefined' || typeof jpeg.lossless.Decoder === 'undefined') { throw 'No JPEG Lossless...
"use strict"; (function (cornerstoneWADOImageLoader) { function decodeJPEGLossless(imageFrame, pixelData) { // check to make sure codec is loaded if(typeof jpeg === 'undefined' || typeof jpeg.lossless === 'undefined' || typeof jpeg.lossless.Decoder === 'undefined') { throw 'No JPEG Lossless...
Fix a bug which causes that JPEG lossless images cannot be decompressed in Safari
Fix a bug which causes that JPEG lossless images cannot be decompressed in Safari
JavaScript
mit
mikewolfd/cornerstoneWADOImageLoader,google/cornerstoneWADOImageLoader,google/cornerstoneWADOImageLoader,chafey/cornerstoneWADOImageLoader,cornerstonejs/cornerstoneWADOImageLoader,mikewolfd/cornerstoneWADOImageLoader,chafey/cornerstoneWADOImageLoader,cornerstonejs/cornerstoneWADOImageLoader,google/cornerstoneWADOImageL...
224e79ca27a2d1d7c0ea4b312ba850ea69e37c40
lib/binding_web/prefix.js
lib/binding_web/prefix.js
var TreeSitter = function() { var initPromise; class Parser { constructor() { this.initialize(); } initialize() { throw new Error("cannot construct a Parser before calling `init()`"); } static init(moduleOptions) { if (initPromise) return initPromise; Module = Object.as...
var TreeSitter = function() { var initPromise; var document = typeof window == 'object' ? {currentScript: window.document.currentScript} : null; class Parser { constructor() { this.initialize(); } initialize() { throw new Error("cannot construct a Parser before calling `init()`")...
Fix script directory that's passed to locateFile
web: Fix script directory that's passed to locateFile
JavaScript
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
45ba55ea6238a1123c3937c50a8036ab9909159c
client/components/titleEditor/titleEditor.controller.js
client/components/titleEditor/titleEditor.controller.js
'use strict'; /*global Wodo*/ angular.module('manticoreApp') .controller('TitleEditorCtrl', function ($scope, $timeout) { function handleTitleChanged(changes) { var title = changes.setProperties['dc:title']; if (title !== undefined && title !== $scope.title) { $timeout(function () { ...
'use strict'; /*global Wodo*/ angular.module('manticoreApp') .controller('TitleEditorCtrl', function ($scope, $timeout) { function handleTitleChanged(changes) { var title = changes.setProperties['dc:title']; if (title !== undefined && title !== $scope.title) { $timeout(function () { ...
Set metadata as UI title only when someone changes it
Set metadata as UI title only when someone changes it
JavaScript
agpl-3.0
adityab/Manticore,adityab/Manticore,adityab/Manticore
4131eb36ac232a33980f706ec201c33c68681596
.infrastructure/webpack/helpers/loadersByExtension.js
.infrastructure/webpack/helpers/loadersByExtension.js
function extsToRegExp (exts) { return new RegExp('\\.(' + exts.map(function (ext) { return ext.replace(/\./g, '\\.') }).join('|') + ')(\\?.*)?$') } module.exports = function loadersByExtension (obj) { var loaders = [] Object.keys(obj).forEach(function (key) { v...
function extsToRegExp (exts) { return new RegExp('\\.(' + exts.map(function (ext) { return ext.replace(/\./g, '\\.') }).join('|') + ')(\\?.*)?$') } module.exports = function loadersByExtension (obj) { var loaders = [] Object.keys(obj).forEach(function (key) { var exts = key.split('|') var value = o...
Update coding styles in webpack loaders
Update coding styles in webpack loaders
JavaScript
mpl-2.0
beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy
429317e11c1c9f4394b3fc27de0b5da23bdbb0d5
app/js/arethusa.relation/directives/nested_menu_collection.js
app/js/arethusa.relation/directives/nested_menu_collection.js
"use strict"; angular.module('arethusa.relation').directive('nestedMenuCollection', function() { return { restrict: 'A', replace: 'true', scope: { current: '=', all: '=', property: '=', ancestors: '=', emptyVal: '@', labelAs: "=", change: "&" }, link: fun...
"use strict"; angular.module('arethusa.relation').directive('nestedMenuCollection', function() { return { restrict: 'A', replace: 'true', scope: { current: '=', all: '=', property: '=', ancestors: '=', emptyVal: '@', labelAs: "=", }, link: function(scope, eleme...
Remove change fn from nestedMenuCollection
Remove change fn from nestedMenuCollection
JavaScript
mit
Masoumeh/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa
b740bdf7394e7325e174d7d4ccab1e1c185240f7
app/scripts/components/issues/comments/issue-comments-form.js
app/scripts/components/issues/comments/issue-comments-form.js
import template from './issue-comments-form.html'; class IssueCommentsFormController { // @ngInject constructor($rootScope, issueCommentsService) { this.$rootScope = $rootScope; this.issueCommentsService = issueCommentsService; } submit() { var form = this.issueCommentsService.$create(this.issue.u...
import template from './issue-comments-form.html'; class IssueCommentsFormController { // @ngInject constructor($rootScope, issueCommentsService, ncUtilsFlash) { this.$rootScope = $rootScope; this.issueCommentsService = issueCommentsService; this.ncUtilsFlash = ncUtilsFlash; } submit() { var f...
Add notifications for comment create processing [WAL-1036].
Add notifications for comment create processing [WAL-1036].
JavaScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
8b321a6c8a960f222477682e447e405971c4548e
website/addons/figshare/static/figshareFangornConfig.js
website/addons/figshare/static/figshareFangornConfig.js
var m = require('mithril'); var Fangorn = require('fangorn'); // Although this is empty it should stay here. Fangorn is going to look for figshare in it's config file. Fangorn.config.figshare = { };
var m = require('mithril'); var Fangorn = require('fangorn'); // Define Fangorn Button Actions function _fangornActionColumn (item, col) { var self = this; var buttons = []; if (item.kind === 'folder') { buttons.push( { 'name' : '', 'tooltip' : 'Upload...
Repair removed figshare checks for action buttons
Repair removed figshare checks for action buttons
JavaScript
apache-2.0
hmoco/osf.io,cldershem/osf.io,barbour-em/osf.io,binoculars/osf.io,bdyetton/prettychart,sbt9uc/osf.io,SSJohns/osf.io,brandonPurvis/osf.io,samchrisinger/osf.io,bdyetton/prettychart,mfraezz/osf.io,baylee-d/osf.io,asanfilippo7/osf.io,felliott/osf.io,binoculars/osf.io,brandonPurvis/osf.io,wearpants/osf.io,monikagrabowska/os...
05eb13e445bd7adb0a7ca0d0fbb44968093a3f9f
lib/query/query.server.js
lib/query/query.server.js
import createGraph from './lib/createGraph.js'; import prepareForProcess from './lib/prepareForProcess.js'; import hypernova from './hypernova/hypernova.js'; import Base from './query.base'; export default class Query extends Base { /** * Retrieves the data. * @param context * @returns {*} */ ...
import createGraph from './lib/createGraph.js'; import prepareForProcess from './lib/prepareForProcess.js'; import hypernova from './hypernova/hypernova.js'; import Base from './query.base'; export default class Query extends Base { /** * Retrieves the data. * @param context * @returns {*} */ ...
Improve fetchOne to only return 1 result
Improve fetchOne to only return 1 result Inspired by meteor's findOne
JavaScript
mit
cult-of-coders/grapher
6215189a16e91c771ed0d4a2f1a83493625480ee
api/server/boot/install.js
api/server/boot/install.js
'use strict'; var installed=true; module.exports = function (app) { if (!installed) { var User = app.models.User; var Role = app.models.Role; var RoleMapping = app.models.RoleMapping; var cb = function (m) { console.log(m) }; User.create([ {us...
'use strict'; var installed=true; module.exports = function (app) { if (!installed) { var Account = app.models.Account; var Role = app.models.Role; var RoleMapping = app.models.RoleMapping; var cb = function (m) { console.log(m) }; Account.create([ ...
Use new Account model to create admin user
Use new Account model to create admin user
JavaScript
mpl-2.0
enimiste/ng4-loopback-blog-tutorial,enimiste/ng4-loopback-blog-tutorial,enimiste/ng4-loopback-blog-tutorial
0ab09a056a19f798fae9582f92da5087b79b67a8
sections/advanced/refs.js
sections/advanced/refs.js
import md from 'components/md' const Refs = () => md` ## Refs Passing a \`ref\` prop to a styled component will give you an instance of the \`StyledComponent\` wrapper, but not to the underlying DOM node. This is due to how refs work. It's not possible to call DOM methods, like \`focus\`, on our wrappers di...
import md from 'components/md' const Refs = () => md` ## Refs Passing a \`ref\` prop to a styled component will give you an instance of the \`StyledComponent\` wrapper, but not to the underlying DOM node. This is due to how refs work. It's not possible to call DOM methods, like \`focus\`, on our wrappers di...
Add function body around ref assignment
Add function body around ref assignment
JavaScript
mit
styled-components/styled-components-website,styled-components/styled-components-website
deff306984bfb46dec7d5ac494a7f2bcb18cfc53
app/resonant-reference-app/views/widgets/MappingView/index.js
app/resonant-reference-app/views/widgets/MappingView/index.js
import Backbone from 'backbone'; import myTemplate from './index.jade'; let MappingView = Backbone.View.extend({ initialize: function () { }, render: function () { this.$el.html(myTemplate()); } }); export default MappingView;
import Backbone from 'backbone'; import myTemplate from './index.jade'; import candela from '../../../../../src'; let MappingView = Backbone.View.extend({ initialize: function () { }, render: function () { const spec = candela.components.Scatter.options; const fields = spec.filter((opt) => opt.selector &...
Gather some information about field selectors
Gather some information about field selectors
JavaScript
apache-2.0
Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela
bf3bdbe2b7dd247b0854f980f03c9270a6d026b7
client/mobrender/redux/action-creators/async-update-widget.js
client/mobrender/redux/action-creators/async-update-widget.js
import { createAction } from './create-action' import * as t from '../action-types' import AuthSelectors from '~authenticate/redux/selectors' import Selectors from '../selectors' export default widget => (dispatch, getState, { api }) => { dispatch(createAction(t.UPDATE_WIDGET_REQUEST)) const credentials = AuthSel...
import { createAction } from './create-action' import * as t from '../action-types' import AuthSelectors from '~authenticate/redux/selectors' import Selectors from '../selectors' export default widget => (dispatch, getState, { api }) => { dispatch(createAction(t.UPDATE_WIDGET_REQUEST)) const credentials = AuthSel...
Fix error update widget action
Fix error update widget action
JavaScript
agpl-3.0
nossas/bonde-client,nossas/bonde-client,nossas/bonde-client
7e9b2abdd8fb3fbd799f8300a4b22269643831f0
client/components/Location/Entriex/Creation/index.js
client/components/Location/Entriex/Creation/index.js
var ui = require('tresdb-ui'); var emitter = require('component-emitter'); var template = require('./template.ejs'); var FormView = require('../../../Entry/Form'); // Remember contents of unsubmitted forms during the session. // Cases where necessary: // - user fills the form but then exits to the map to search releva...
var ui = require('tresdb-ui'); var emitter = require('component-emitter'); var template = require('./template.ejs'); var FormView = require('../../../Entry/Form'); module.exports = function (location) { // Parameters: // location // location object // NOTE only location id is needed but the view ge...
Remove duplicate draft saving features at Location Entries Creation
Remove duplicate draft saving features at Location Entries Creation
JavaScript
mit
axelpale/tresdb,axelpale/tresdb
358406f12becb20701ad28ec28da3fd974fd4e95
test/reject-spec.js
test/reject-spec.js
import { expect } from 'chai'; import u from '../lib'; describe('u.reject', () => { it('freezes the result', () => { expect(Object.isFrozen(u.reject('a', []))).to.be.true; }); });
import { expect } from 'chai'; import u from '../lib'; describe('u.reject', () => { it('can reject by index', () => { const result = u.reject((_, index) => index === 1, [3, 4, 5]); expect(result).to.eql([3, 5]); }); it('freezes the result', () => { expect(Object.isFrozen(u.reject('a', []))).to.be.t...
Add spec for reject by index
Add spec for reject by index
JavaScript
mit
substantial/updeep,substantial/updeep
b0966f22c8ff90a61d87215f3f1e588f4171895c
jest.config.js
jest.config.js
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { roots: ["<rootDir>/src/main/javascript"], collectCoverage: false, collectCoverageFrom: ["**/*.js", "!**/*.{test,spec}.js", "!**/__tests__/**", "!**/WEB-INF/**"], covera...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { roots: ["<rootDir>/src/main/javascript"], collectCoverage: false, collectCoverageFrom: ["**/*.js", "!**/*.{test,spec}.js", "!**/__tests__/**", "!**/WEB-INF/**"], covera...
Migrate deprecated jest testUrl to testEnvironmentOptions.url
Migrate deprecated jest testUrl to testEnvironmentOptions.url
JavaScript
apache-2.0
synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung
1c99a4bcf99b3af5563bed97beedca61727ae3b7
js/src/util.js
js/src/util.js
const path = (props, obj) => { let nested = obj; const properties = typeof props === 'string' ? props.split('.') : props; for (let i = 0; i < properties.length; i++) { nested = nested[properties[i]]; if (nested === undefined) { return nested; } } return nested; }; module.exports = { pat...
/** Wrap DOM selector methods: * document.querySelector, * document.getElementById, * document.getElementsByClassName] */ const dom = { query(...args) { return document.querySelector(args); }, id(...args) { return document.getElementById(args); }, class(...args) { return document.getElementsBy...
Update dom methods to avoid illegal invocation error.
Update dom methods to avoid illegal invocation error.
JavaScript
mit
adrice727/accelerator-core-js,opentok/accelerator-core-js,opentok/accelerator-core-js,adrice727/accelerator-core-js
b26979135e1d39a8294abd664b8bb23c8b135748
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var template = require('gulp-template'); var bower = require('./bower.json'); var dist_dir = './' var dist_file = 'launchpad.js'; gulp.task('version', function(){ return gulp...
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var template = require('gulp-template'); var KarmaServer = require('karma').Server; var bower = require('./bower.json'); var dist_dir = './' var dist_file = 'launchpad.js'; gulp....
Create a gulp test target
Create a gulp test target
JavaScript
mit
dvberkel/LaunchpadJS
2e79e9b49dd49fb72923a45f44ced0608394c409
qml/js/logic/channelPageLogic.js
qml/js/logic/channelPageLogic.js
.import "../applicationShared.js" as Globals function workerOnMessage(messageObject) { if(messageObject.apiMethod === 'channels.history') { addMessagesToModel(messageObject.data); } else if(messageObject.apiMethod === 'channels.info') { addChannelInfoToPage(messageObject.data); } else { ...
.import "../applicationShared.js" as Globals function workerOnMessage(messageObject) { if(messageObject.apiMethod === 'channels.history') { addMessagesToModel(messageObject.data); } else if(messageObject.apiMethod === 'channels.info') { addChannelInfoToPage(messageObject.data); } else { ...
Remove invalid argument of channel.info method
Remove invalid argument of channel.info method
JavaScript
mit
neversun/Slackfish,neversun/Slackfish
1452ae94cec46f13e888a3e80e2ce54ee552bf3f
dist/babelify-config.js
dist/babelify-config.js
const babelifyConfig = { presets: [ ['@babel/preset-env', { 'useBuiltIns': 'entry', }], ], extensions: '.ts', } module.exports = babelifyConfig;
const babelifyConfig = { presets: [ ['@babel/preset-env', { 'useBuiltIns': 'entry', 'targets': { 'firefox': 50, 'chrome': 45, 'opera': 32, 'safari': 11, }, }], ], extensions: '.ts', } module....
Use explicit targets for babel-preset-env
Use explicit targets for babel-preset-env This reduces bundle size by 5 KiB.
JavaScript
agpl-3.0
threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web
2f9a1ff18cd8a495b94dfe9104aa56a2697c3534
chrome/test/data/extensions/samples/subscribe/feed_finder.js
chrome/test/data/extensions/samples/subscribe/feed_finder.js
find(); window.addEventListener("focus", find); function find() { if (window == top) { // Find all the RSS link elements. var result = document.evaluate( '//link[@rel="alternate"][contains(@type, "rss") or ' + 'contains(@type, "atom") or contains(@type, "rdf")]', document, nu...
find(); window.addEventListener("focus", find); function find() { if (window == top) { // Find all the RSS link elements. var result = document.evaluate( '//link[@rel="alternate"][contains(@type, "rss") or ' + 'contains(@type, "atom") or contains(@type, "rdf")]', document, nu...
Fix an occurence of 'chromium' that didn't get changed to 'chrome'
Fix an occurence of 'chromium' that didn't get changed to 'chrome' Review URL: http://codereview.chromium.org/115049 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@15486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
JavaScript
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
f45f0d1e7420f22d92382eb58422c990d8e913d9
_data/split-aggregated.js
_data/split-aggregated.js
/** * Splits the aggregated JSON file into individual JSON files per EIN * Files are then available to Jekyll in the _data folder * * TODO Lots of opportunities to simplify - good first pull request 😉 */ const {chain} = require('stream-chain'); const {parser} = require('stream-json'); const {streamArray} = requ...
/** * Splits the aggregated JSON file into individual JSON files per EIN * Files are then available to Jekyll in the _data folder * * TODO Lots of opportunities to simplify - good first pull request 😉 */ const {chain} = require('stream-chain'); const {parser} = require('stream-json'); const {streamArray} = requ...
Improve handling of large objects in pre-jekyll processes (cont'd)
Improve handling of large objects in pre-jekyll processes (cont'd) Reduce grants arrays across all profiles. Goal is to reduce memory spikes when Jekyll attempts to sort the grants array during build time.
JavaScript
mit
grantmakers/profiles,grantmakers/profiles,grantmakers/profiles
32697b5e5783148d518017943077814c63725257
webpack.config.js
webpack.config.js
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './app/src/app.js', output: { path: path.resolve(__dirname, 'build'), filename: 'app.js' }, plugins: [ // Copy our app's index.html to the build folder. new ...
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './app/src/app.js', output: { path: path.resolve(__dirname, 'build'), filename: 'app.js' }, plugins: [ // Copy our app's index.html to the build folder. new ...
Add support for otf fonts
Add support for otf fonts
JavaScript
mit
Neufund/Contracts
7da24658d59dcb5c64d0777c147ebeba80071489
express-web-app-example.js
express-web-app-example.js
var compression = require("compression"); var express = require("express"); var handlebars = require("express-handlebars"); // Initialize Express var app = express(); // Treat "/foo" and "/Foo" as different URLs app.set("case sensitive routing", true); // Treat "/foo" and "/foo/" as different URLs app.set("stri...
var compression = require("compression"); var express = require("express"); var handlebars = require("express-handlebars"); // Initialize Express var app = express(); // Treat "/foo" and "/Foo" as different URLs app.set("case sensitive routing", true); // Treat "/foo" and "/foo/" as different URLs app.set("stri...
Set the default port to 3001 so it doesn't conflict with the default 3000 of express-rest-api-example.
Set the default port to 3001 so it doesn't conflict with the default 3000 of express-rest-api-example.
JavaScript
mit
stevecochrane/express-web-app-example,stevecochrane/express-web-app-example
fa5c360cd1b642ea6ebc696052e321a7b5e62de1
Assets/scripts/SplashClickHandler.js
Assets/scripts/SplashClickHandler.js
#pragma strict private var _gameManager : GameManager; private var _isTriggered = false; function Start() { _gameManager = GameManager.Instance(); } function Update() { } function OnMouseDown() { if (!_isTriggered) { rollAway(); _isTriggered = true; } } private function rollAway() { iTween.RotateB...
#pragma strict private var _gameManager : GameManager; private var _isTriggered = false; function Start() { _gameManager = GameManager.Instance(); } function Update() { } function OnMouseDown() { if (!_isTriggered) { rollAway(); _isTriggered = true; } } private function rollAway() { iTween.RotateB...
Move splash screen farther afield on click.
Move splash screen farther afield on click.
JavaScript
mit
mildmojo/bombay-intervention,mildmojo/bombay-intervention
3a270f06122001df0204cce8dbd7697748659183
app/assets/javascripts/student_profile_v2/academic_summary.js
app/assets/javascripts/student_profile_v2/academic_summary.js
(function() { window.shared || (window.shared = {}); var dom = window.shared.ReactHelpers.dom; var createEl = window.shared.ReactHelpers.createEl; var merge = window.shared.ReactHelpers.merge; var PropTypes = window.shared.PropTypes; var styles = { caption: { marginRight: 5 }, value: { ...
(function() { window.shared || (window.shared = {}); var dom = window.shared.ReactHelpers.dom; var createEl = window.shared.ReactHelpers.createEl; var merge = window.shared.ReactHelpers.merge; var PropTypes = window.shared.PropTypes; var styles = { caption: { marginRight: 5 }, value: { ...
Tweak padding on summary text
Tweak padding on summary text
JavaScript
mit
studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,erose/studentinsights,erose/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights,erose/studentinsights,jhilde/studentinsights,jhilde/studentinsights,studentinsights/studentinsights
725c60ab2f75a085cde14843ad2f6a73eab8cb76
src/Oro/Bundle/FilterBundle/Resources/public/js/map-filter-module-name.js
src/Oro/Bundle/FilterBundle/Resources/public/js/map-filter-module-name.js
define(function() { 'use strict'; var moduleNameTemplate = 'oro/filter/{{type}}-filter'; var types = { string: 'choice', choice: 'select', single_choice: 'select', selectrow: 'select-row', multichoice: 'multiselect', boolea...
define(function() { 'use strict'; var moduleNameTemplate = 'oro/filter/{{type}}-filter'; var types = { string: 'choice', choice: 'select', single_choice: 'select', selectrow: 'select-row', multichoice: 'multiselect', boolea...
Modify frontend component to load proper filters for both enum and dictionary types
BAP-8615: Modify frontend component to load proper filters for both enum and dictionary types
JavaScript
mit
geoffroycochard/platform,orocrm/platform,hugeval/platform,Djamy/platform,hugeval/platform,northdakota/platform,ramunasd/platform,trustify/oroplatform,trustify/oroplatform,2ndkauboy/platform,northdakota/platform,ramunasd/platform,orocrm/platform,trustify/oroplatform,Djamy/platform,geoffroycochard/platform,2ndkauboy/plat...
f0b4e3cc48e61b221fe2db7aa8be38d506dfd69e
lib/disproperty.js
lib/disproperty.js
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
Fix AMD and CommonJS were mixed up
Fix AMD and CommonJS were mixed up
JavaScript
mit
vlazar/disproperty
adc14a177ba3c37618b2f63f8f4ca272cdc94586
lib/updateModel.js
lib/updateModel.js
var _ = require('underscore'), async = require('async'), curry = require('curry'), Dependency = require('../models').Dependency, compHelper = require('./componentHelper'), compInstall = compHelper.install, compBuild = compHelper.build; module.exports = function updateModel (mode...
var _ = require('underscore'), async = require('async'), curry = require('curry'), Dependency = require('../models').Dependency, compHelper = require('./componentHelper'), compInstall = compHelper.install, compBuild = compHelper.build; module.exports = function updateModel (mode...
Return model when finishing updating model
Return model when finishing updating model
JavaScript
mit
web-audio-components/web-audio-components-service
347d62cc1eac9d5b58729000df03dc43313708cd
api/script-rules-rule.vm.js
api/script-rules-rule.vm.js
(function() { var rule = data.rules[parseInt(request.param.num, 10)] || null; if (rule === null) return response.error(404); switch (request.method) { case 'GET': response.head(200); response.end(JSON.stringify(rule, null, ' ')); return; case 'PUT': if (request.headers['content-type'].match...
(function() { var num = parseInt(request.param.num, 10).toString(10); var rule = data.rules[num] || null; if (rule === null) return response.error(404); switch (request.method) { case 'GET': response.head(200); response.end(JSON.stringify(rule, null, ' ')); return; case 'PUT': if (request....
Fix rule number parameter check
Fix rule number parameter check A parameter validation of rule number must be effective in preventing OS command execution.
JavaScript
mit
polamjag/Chinachu,kanreisa/Chinachu,kounoike/Chinachu,wangjun/Chinachu,tdenc/Chinachu,wangjun/Chinachu,valda/Chinachu,upsilon/Chinachu,xtne6f/Chinachu,xtne6f/Chinachu,miyukki/Chinachu,kounoike/Chinachu,upsilon/Chinachu,wangjun/Chinachu,xtne6f/Chinachu,polamjag/Chinachu,tdenc/Chinachu,miyukki/Chinachu,valda/Chinachu,ups...
505fd5d747f1be4c35397b2821559d21147f5fdb
gui/js/main.js
gui/js/main.js
/** * main.js * * Only runs in modern browsers via feature detection * Requires support for querySelector, classList and addEventListener */ if('querySelector' in document && 'classList' in document.createElement('a') && 'addEventListener' in window) { // Add class "js" to html element document.querySelector...
Add JS class to html element
Add JS class to html element
JavaScript
isc
frippz/valleoptik-prototype,frippz/valleoptik-prototype
4b25bf1240a13fec21cb6a2b1b4a48aa54588716
gulp/config.js
gulp/config.js
'use strict'; module.exports = { 'browserPort' : 3000, 'UIPort' : 3001, 'serverPort' : 3002, 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'build/css', 'prodSourcemap' : true }, 'scripts': { 'src' : 'app/js/**/*.js', 'dest': 'build/js' }, 'images': { 'src' : '...
'use strict'; module.exports = { 'browserPort' : 3000, 'UIPort' : 3001, 'serverPort' : 3002, 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'build/css', 'prodSourcemap' : false }, 'scripts': { 'src' : 'app/js/**/*.js', 'dest': 'build/js' }, 'images': { 'src' : ...
Disable sourcemaps in production, by default
Disable sourcemaps in production, by default
JavaScript
mit
jakemmarsh/angularjs-gulp-browserify-boilerplate,dandiellie/starter,Mojility/angularjs-gulp-browserify-boilerplate,hoodsy/resurgent,dkim-95112/infosys,shoaibkalsekar/angularjs-gulp-browserify-boilerplate,jakemmarsh/angularjs-gulp-browserify-boilerplate,jfarribillaga/angular16,mjpoteet/youtubeapi,Deftunk/TestCircleCi,da...
8ccebea0f071952a40efe56b55853df7b5e21246
app/models/sequence-item.js
app/models/sequence-item.js
import DS from "ember-data"; export default DS.Model.extend({ page: DS.belongsTo('page'), section: DS.belongsTo('section'), sequence: DS.belongsTo('sequence'), title: DS.attr('string'), commentary: DS.hasOneFragment('markdown') });
import DS from "ember-data"; export default DS.Model.extend({ page: DS.belongsTo('page'), section: DS.belongsTo('section', {async: true}), sequence: DS.belongsTo('sequence'), title: DS.attr('string'), commentary: DS.hasOneFragment('markdown') });
Allow async loading of sections
Allow async loading of sections
JavaScript
mit
artzte/fightbook-app
0c410708be0bd112391b0f6f34d0a1cfca39ea85
addon/engine.js
addon/engine.js
import Engine from 'ember-engines/engine'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, Resolver, dependencies: { services: [ 'store',...
import Engine from 'ember-engines/engine'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, Resolver }); loadInitializers(Eng, modulePrefix); export ...
Revert "recieving store and sessions services"
Revert "recieving store and sessions services" This reverts commit 185961492fca2d78bc8d8372c7d08aae08d2a166.
JavaScript
mit
scottharris86/external-admin,scottharris86/external-admin
fe04cf7da47cb7cec0f127d54dcaa3ad17a960bb
dev/app/components/main/reports/reports.controller.js
dev/app/components/main/reports/reports.controller.js
ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports' ]; function ReportsController ($rootScope, TbUtils, reports) { var vm = this; vm.reports = [ { title: 'Reporte de Costos', url: 'http://fiasps.unitec.edu:8085/api/Reports/CostsReport/2015' }, { title: 'Reporte de Horas de Estudiantes', url: 'http:...
ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports', '$state' ]; function ReportsController ($rootScope, TbUtils, reports, $state) { if ($rootScope.Role !== 'Admin') $state.go('main.projects'); var vm = this; vm.reports = [ { title: 'Reporte de Costos', url: 'http://fiasps.unitec.edu:8085/api/Repor...
Fix who can access reports state
Fix who can access reports state
JavaScript
mit
Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC
e78f92680c92e0dcde41875741ea707ad1031172
addon/initializers/syncer.js
addon/initializers/syncer.js
import Syncer from '../syncer'; export function initialize(application) { application.register('syncer:main', Syncer); } export default { name: 'syncer', before: 'store', initialize };
import Syncer from '../syncer'; export function initialize(application) { //Register factory for Syncer. application.register('syncer:main', Syncer); } export default { name: 'syncer', before: 'ember-data', initialize };
Fix using of `store` initializer
Fix using of `store` initializer `store` initializer was added to keep backwards compatibility since ember-data 2.5.0
JavaScript
mit
Flexberry/ember-flexberry-offline,Flexberry/ember-flexberry-offline
b1c0ed1868d8d1aabeb8d76f4fe8d6db10403516
logic/setting/campaign/writeCampaignSettingModelLogic.js
logic/setting/campaign/writeCampaignSettingModelLogic.js
var configuration = require('../../../config/configuration.json') var utility = require('../../../public/method/utility') module.exports = { setCampaignSettingModel: function (redisClient, campaignHashID, payload, callback) { } }
var configuration = require('../../../config/configuration.json') var utility = require('../../../public/method/utility') module.exports = { setCampaignSettingModel: function (redisClient, accountHashID, campaignHashID, payload, callback) { var table var score = utility.getUnixTimeStamp() var multi = red...
Implement Create a Campaign Model Setting Dynamically
Implement Create a Campaign Model Setting Dynamically
JavaScript
mit
Flieral/Announcer-Service,Flieral/Announcer-Service
3b3d8b40a5b4dda16440a0262246aa6ff8da4332
gulp/watch.js
gulp/watch.js
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
Test again when TestudocParser is recreated
Test again when TestudocParser is recreated
JavaScript
mit
jlenoble/ecmascript-parser
dc39fb557e985ee534bc8ae2e12d0c6c83efe4fe
gulp/build.js
gulp/build.js
'use strict'; var gulp = require('gulp'); var config = require('./_config.js'); var paths = config.paths; var $ = config.plugins; var source = require('vinyl-source-stream'); var browserify = require('browserify'); var istanbul = require('browserify-istanbul'); gulp.task('clean', function () { return gulp.src(pat...
'use strict'; var gulp = require('gulp'); var config = require('./_config.js'); var paths = config.paths; var $ = config.plugins; var source = require('vinyl-source-stream'); var browserify = require('browserify'); var istanbul = require('browserify-istanbul'); gulp.task('clean', function () { return gulp.src(pat...
Fix JS task to be async. Should fix travis.
Fix JS task to be async. Should fix travis.
JavaScript
mpl-2.0
learnfwd/learnfwd.com,learnfwd/learnfwd.com,learnfwd/learnfwd.com
cac5bc79f106a67c56c00448a8b4408c0f31f6f3
lib/request.js
lib/request.js
var api = require('../config/api.json'); var appId = process.env.APPLICATION_ID; var https = require('https'); var querystring = require('querystring'); module.exports = function requestExports(config) { return request.bind(null, api[config]); }; function request(config, endpoint, body, callback) { body.applicati...
var api = require('../config/api.json'); var appId = process.env.APPLICATION_ID; var https = require('https'); var querystring = require('querystring'); var util = require('util'); module.exports = function requestExports(config) { return request.bind(null, api[config]); }; function request(config, endpoint, body, ...
Include all the fields of a wargaming error.
Include all the fields of a wargaming error.
JavaScript
isc
CodeMan99/wotblitz.js
37dc947297bb6b630e3442cd93451ab2a88a791b
app/instance-initializers/ember-href-to.js
app/instance-initializers/ember-href-to.js
import Em from 'ember'; function _getNormalisedRootUrl(router) { let rootURL = router.rootURL; if(rootURL.charAt(rootURL.length - 1) !== '/') { rootURL = rootURL + '/'; } return rootURL; } export default { name: 'ember-href-to', initialize: function(applicationInstance) { let router = applicationI...
import Em from 'ember'; function _getNormalisedRootUrl(router) { let rootURL = router.rootURL; if(rootURL.charAt(rootURL.length - 1) !== '/') { rootURL = rootURL + '/'; } return rootURL; } function _lookupRouter(applicationInstance) { const container = 'lookup' in applicationInstance ? applicationInstan...
Fix router lookup to avoid deprecations in ember >= 2
Fix router lookup to avoid deprecations in ember >= 2
JavaScript
apache-2.0
intercom/ember-href-to,intercom/ember-href-to
8a199d43edacae40ea7c1f6395dc861f196a59ba
app/GUI/Filter/activeTags.js
app/GUI/Filter/activeTags.js
import React, { Component, PropTypes } from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; export default class ActiveTags extends Component { removeTag(tag) { const { filterObject, position, setFilter } = this.props; const temp = filterObject[position]; temp.delete(tag); const newFi...
import React, { Component, PropTypes } from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; export default class ActiveTags extends Component { removeTag(tag) { const { filterObject, position, setFilter } = this.props; const temp = filterObject[position]; temp.delete(tag); const newFi...
Change active tags button layout.
Change active tags button layout.
JavaScript
mit
bgrsquared/places,bgrsquared/places,bgrsquared/places
b3ee9cd866a0669bfe3776b66a2e2edc7f64931d
app/components/Views/Home.js
app/components/Views/Home.js
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 01 June, 2016 * License: MIT * * React App Main Layout Component */ import React from "react"; import Header from "./Head...
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 01 June, 2016 * License: MIT * * React App Main Layout Component */ import React from "react"; import Header from "./Head...
Hide Jumbotron on movie details page.
Hide Jumbotron on movie details page.
JavaScript
mit
kushalpandya/poster,kushalpandya/poster
d9504ba850c26c779bceae62ea5c903c8f505126
library/Denkmal/library/Denkmal/Component/MessageList/All.js
library/Denkmal/library/Denkmal/Component/MessageList/All.js
/** * @class Denkmal_Component_MessageList_All * @extends Denkmal_Component_MessageList_Abstract */ var Denkmal_Component_MessageList_All = Denkmal_Component_MessageList_Abstract.extend({ /** @type String */ _class: 'Denkmal_Component_MessageList_All', ready: function() { this.bindStream('global-internal...
/** * @class Denkmal_Component_MessageList_All * @extends Denkmal_Component_MessageList_Abstract */ var Denkmal_Component_MessageList_All = Denkmal_Component_MessageList_Abstract.extend({ /** @type String */ _class: 'Denkmal_Component_MessageList_All', ready: function() { this.bindStream('global-internal...
Add check to not add messages twice
Add check to not add messages twice
JavaScript
mit
njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,denkmal/denkmal.org
979fc3418b738838ee7187a11cf28ac65371cfb6
app/components/validations-errors.js
app/components/validations-errors.js
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['error-messages'], didInsertElement: function () { this._super(); Ember.run.next(function(){ var errors = this.get('validationErrors') , errorsKeys = Ember.keys(errors); errorsKeys.forEach(function(property...
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['error-messages'], didInsertElement: function () { this._super(); Ember.run.next(function(){ var errors = this.get('validationErrors') , errorsKeys = Ember.keys(errors); errorsKeys.forEach(function(property...
Fix problem if it takes long to valdiate
Fix problem if it takes long to valdiate
JavaScript
mit
alexferreira/ember-cli-validations-errors
26cd6df2d95a4d81968d01b06144d6aeddcf5863
index.js
index.js
module.exports = compressible compressible.specs = compressible.specifications = require('./specifications.json') compressible.regex = compressible.regexp = /json|text|javascript|dart|ecmascript|xml/ compressible.get = get function compressible(type) { if (!type || typeof type !== "string") return false var i =...
module.exports = compressible compressible.specs = compressible.specifications = require('./specifications.json') compressible.regex = compressible.regexp = /json|text|javascript|dart|ecmascript|xml/ compressible.get = get function compressible(type) { if (!type || typeof type !== "string") return false var i =...
Use ~ operator to check for -1
[minor] Use ~ operator to check for -1 This is mainly a style change as other expressjs modules use this. Performance is mostly indifferent. However, this tests specifically for -1.
JavaScript
mit
jshttp/compressible
683737e2e6bc4689c26afdb573d8ca0b581fa5c6
client/config/bootstrap.js
client/config/bootstrap.js
/** * Bootstrap * Client entry point * @flow */ // Polyfills import 'babel/polyfill' // Modules import React from 'react' import ReactDOM from 'react-dom' import { Router } from 'react-router' import { createHistory } from 'history' import ReactRouterRelay from 'react-router-relay' // Routes import routes from '...
/** * Bootstrap * Client entry point * @flow */ // Polyfills import 'babel/polyfill' // Modules import React from 'react' import Relay from 'react-relay' import ReactDOM from 'react-dom' import { Router } from 'react-router' import { createHistory } from 'history' import ReactRouterRelay from 'react-router-relay'...
Update Relay to send cookies
Update Relay to send cookies
JavaScript
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
67aaa90ac0564920d8a65db7129a0e32804bdaea
index.js
index.js
import express from 'express'; import http from 'http'; import {renderFile} from 'ejs'; import request from 'superagent'; var app = express(); var FRIGG_API = process.env.FRIGG_API || 'https://ci.frigg.io'; app.engine('html', renderFile); app.set('view engine', 'html'); app.set('views', '' + __dirname); app.use('/st...
import express from 'express'; import http from 'http'; import {renderFile} from 'ejs'; import request from 'superagent'; var app = express(); var FRIGG_API = process.env.FRIGG_API || 'https://ci.frigg.io'; app.engine('html', renderFile); app.set('view engine', 'html'); app.set('views', '' + __dirname); app.use('/st...
Add caching of proxy requests in dev server
Add caching of proxy requests in dev server
JavaScript
mit
frigg/frigg-hq-frontend,frigg/frigg-hq-frontend
c39d828243e5e00b997c703e6ed41912ea7da6c5
packages/@sanity/base/src/preview/PreviewMaterializer.js
packages/@sanity/base/src/preview/PreviewMaterializer.js
import React, {PropTypes} from 'react' import observeForPreview from './observeForPreview' import shallowEquals from 'shallow-equals' export default class PreviewMaterializer extends React.PureComponent { static propTypes = { value: PropTypes.any.isRequired, type: PropTypes.shape({ preview: PropTypes.s...
import React, {PropTypes} from 'react' import observeForPreview from './observeForPreview' import shallowEquals from 'shallow-equals' export default class PreviewMaterializer extends React.PureComponent { static propTypes = { value: PropTypes.any.isRequired, type: PropTypes.shape({ preview: PropTypes.s...
Set subscription to null after unsubscribe
[preview] Set subscription to null after unsubscribe
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
8e7bfe3b0c136794de0be1802fdf9e8a90f7645d
embeds/buffer-tpc-check.js
embeds/buffer-tpc-check.js
/* globals self, bufferpm, chrome */ // buffer-tpc-check.js // (c) 2013 Sunil Sadasivan // Check if third party cookies are disabled // ;(function () { if (window !== window.top) return; ;(function check() { if((self.port) || (xt && xt.options)) { //if the 3rd party cookies check is disabled, store ...
/* globals self, bufferpm, chrome */ // buffer-tpc-check.js // (c) 2013 Sunil Sadasivan // Check if third party cookies are disabled // ;(function () { if (window !== window.top) return; ;(function check() { if((self.port) || (xt && xt.options)) { //if the 3rd party cookies check is disabled, store ...
Add info inside TPC check iframe attribute for curious eyes
Add info inside TPC check iframe attribute for curious eyes
JavaScript
mit
bufferapp/buffer-extension-shared,bufferapp/buffer-extension-shared
683ba6fcaf2072bfe7f7884b81bf04a3899c6d60
Response.js
Response.js
'use strict' class Response { constructor(messenger, msg) { this.messenger = messenger this.queue = msg.properties.replyTo this.corr = msg.properties.correlationId } send (msg) { if(this.queue){ this.messenger.publish(this.queue, msg) } } ok (payload) { this.send({ stat...
'use strict' class Response { constructor(messenger, msg) { this.messenger = messenger this.queue = msg.properties.replyTo this.corr = msg.properties.correlationId } send (msg) { if(this.queue){ this.messenger.publish(this.queue, msg) } } ok (payload) { this.send({ stat...
Add notify to actor service
Add notify to actor service
JavaScript
mit
domino-logic/domino-actor-service
d01d51c6e3d8d7dcc7a72384277bee95db813474
client/app/components/dnt-hytteadmin-editor-section-kontakt.js
client/app/components/dnt-hytteadmin-editor-section-kontakt.js
import Ember from 'ember'; export default Ember.Component.extend({ });
import Ember from 'ember'; export default Ember.Component.extend({ actions: { setKontaktinfoGruppeById: function (id) { var model = this.get('model'); if (typeof model.setKontaktinfoGruppeById) { model.setKontaktinfoGruppeById(id); } } } });
Add action for setting kontaktinfo by group id
Add action for setting kontaktinfo by group id
JavaScript
mit
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
9d576f6f805f5a6a72319fc1f690d9520abd215a
packages/redux-resource/src/action-types/action-types.js
packages/redux-resource/src/action-types/action-types.js
export default { REQUEST_IDLE: 'REQUEST_IDLE', REQUEST_PENDING: 'REQUEST_PENDING', REQUEST_FAILED: 'REQUEST_FAILED', REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED', UPDATE_RESOURCES: 'UPDATE_RESOURCES', };
export default { REQUEST_IDLE: 'REQUEST_IDLE', // These will be used in Redux Resource v3.1.0. For now, // they are reserved action types. // REQUEST_PENDING: 'REQUEST_PENDING', // REQUEST_FAILED: 'REQUEST_FAILED', // REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED', // UPDATE_RESOURCES: 'UPDATE_RESOURCES', };
Comment out reserved action types
Comment out reserved action types
JavaScript
mit
jmeas/resourceful-redux,jmeas/resourceful-redux
223b0dd3ba63184336d615150c945bb52941c17a
packages/create-universal-package/lib/config/build-shared.js
packages/create-universal-package/lib/config/build-shared.js
const template = ({env, format, esEdition}) => `${env}.${format}.${esEdition}.js`; const formats = ['es', 'cjs']; module.exports = { template, formats, };
const template = ({env, format, esEdition}) => `${env}.${format}${esEdition ? `.${esEdition}` : ''}.js`; const formats = ['es', 'cjs']; module.exports = { template, formats, };
Fix output filepath in non-ES2015 bundles
Fix output filepath in non-ES2015 bundles
JavaScript
mit
rtsao/create-universal-package,rtsao/create-universal-package
c2765365104001dc4e2277c6a45c175cbb0750fe
_static/documentation_options.js
_static/documentation_options.js
var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.1.10', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' };
var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.1.11', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' };
Update docs after building Travis build 224 of regro/regolith
Update docs after building Travis build 224 of regro/regolith The docs were built from the branch 'master' against the commit 2cae806beee82e089f843dfbb254603d838475f7. The Travis build that generated this commit is at https://travis-ci.org/regro/regolith/jobs/355514019. The doctr command that was run is /home/t...
JavaScript
bsd-2-clause
scopatz/regolith-docs,scopatz/regolith-docs
a392baf961f197b8268ec0666b898f82d33b35fa
app/assets/javascripts/les/profile_matrix_editor/template_updater/battery_template_updater.js
app/assets/javascripts/les/profile_matrix_editor/template_updater/battery_template_updater.js
var BatteryTemplateUpdater = (function () { 'use strict'; var defaultPercentage = 20.0, batteryToggles = ".editable.profile", batteries = [ "congestion_battery", "households_flexibility_p2p_electricity" ], sliderSettings = { tooltip: 'hide', ...
var BatteryTemplateUpdater = (function () { 'use strict'; var defaultPercentage = 20.0, batteryToggles = ".editable.profile", batteries = [ "congestion_battery", "households_flexibility_p2p_electricity" ], sliderSettings = { tooltip: 'hide', ...
Set slider value when adding a new congestion battery
Set slider value when adding a new congestion battery This would work when editing an existing battery, but without triggering the event manually it would default to 0% when adding a new battery.
JavaScript
mit
quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses
cbb2235784307d250b6320ab8bb262da3c2fb686
client/app/scripts/services/application.js
client/app/scripts/services/application.js
angular.module('app').factory('applicationService', ['$http', 'MARLINAPI_CONFIG', function($http, MARLINAPI_CONFIG) { var url = MARLINAPI_CONFIG.base_url; // create and expose service methods var exports = {}; // get all items exports.getAll = function() { retu...
angular.module('app').factory('applicationService', ['$http', 'MARLINAPI_CONFIG', function($http, MARLINAPI_CONFIG) { var url = MARLINAPI_CONFIG.base_url; // create and expose service methods var exports = {}; // Generic find functionality exports.find = function(query) { ...
Add flexible find Application service
Add flexible find Application service
JavaScript
mit
brettshollenberger/mrl001,brettshollenberger/mrl001
4758be5962095ad86055cd0083fa9f8961f11fb7
app/components/RecipeList.js
app/components/RecipeList.js
var React = require('react'); var Parse = require('parse'); var ParseReact = require('parse-react'); var RecipeList = new React.createClass({ mixins: [ParseReact.Mixin], observe: function() { return { recipes: (new Parse.Query('Recipe')).equalTo("createdBy", Parse.User.current().id) }; }, render: functi...
var React = require('react'); var Parse = require('parse'); var RecipeStore = require('../stores/RecipeStore'); var RecipeItem = require('./RecipeItem'); var RecipeList = new React.createClass({ getInitialState: function() { return { ownedRecipes: null }; }, componentDidMount: function() { RecipeStore.g...
Add recipe list to overview view
Add recipe list to overview view
JavaScript
mit
bspride/ModernCookbook,bspride/ModernCookbook,bspride/ModernCookbook
157db3722cc41586c41c115227be619ea62a0788
desktop/app/main-window.js
desktop/app/main-window.js
import Window from './window' import {ipcMain} from 'electron' import resolveRoot from '../resolve-root' import hotPath from '../hot-path' import flags from '../shared/util/feature-flags' import {globalResizing} from '../shared/styles/style-guide' export default function () { const mainWindow = new Window( resol...
import Window from './window' import {ipcMain} from 'electron' import resolveRoot from '../resolve-root' import hotPath from '../hot-path' import flags from '../shared/util/feature-flags' import {globalResizing} from '../shared/styles/style-guide' export default function () { const mainWindow = new Window( resol...
Use content size when creating the main window
Use content size when creating the main window
JavaScript
bsd-3-clause
keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client
a99f9dd83e0a15dfd923ab0ae873f84755f99b0e
feedpaper-web/params.js
feedpaper-web/params.js
var fs = require('fs'); var p = require('path'); var slug = require('slug'); var url = require('url'); var util = require('util'); slug.defaults.mode ='rfc3986'; var env = process.env['FEEDPAPER_ENV']; var feedsCategories = JSON.parse(fs.readFileSync(p.join('..', 'conf', env, 'feeds.json'))); var conf = JSON.pa...
var fs = require('fs'); var p = require('path'); var slug = require('slug'); var url = require('url'); var util = require('util'); slug.defaults.mode ='rfc3986'; var env = process.env['FEEDPAPER_ENV']; var feedsCategories = JSON.parse(fs.readFileSync(p.join('..', 'conf', env, 'feeds.json'))); var conf = JSON.pa...
Add encode on global.js file read. node v4.x compat.
Add encode on global.js file read. node v4.x compat.
JavaScript
mit
cliffano/feedpaper,cliffano/feedpaper,cliffano/feedpaper
4709f623b41dffe1ad227908e3f92782987bbfa9
server/models/card/card.js
server/models/card/card.js
'use strict'; var mongoose = require('mongoose'); const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT'; const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND'; const SENT = 'SENT'; var statusKeys = [ WAITING_FOR_PRINT, PRINTED_WAITING_FOR_SEND, SENT ]; var cardSchema = mongoose.Schema({ message: Stri...
'use strict'; var mongoose = require('mongoose'); const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT'; const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND'; const SENT = 'SENT'; var statusKeys = [ WAITING_FOR_PRINT, PRINTED_WAITING_FOR_SEND, SENT ]; var cardSchema = mongoose.Schema({ message: { typ...
Make message field as required
Make message field as required
JavaScript
mit
denisnarush/postcard,denisnarush/postcard
dfb7fd375cc6e073df2add406c9ca3e81fe211d0
js/scripts.js
js/scripts.js
// DOM Ready $(function() { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update if (!Modernizr.svg) { var imgs = document.getElementsByTagName('img'); for (var i = 0; i < imgs.length; i++) { if (/.*\.svg$/.test(imgs[i].src)) { imgs[i].src = imgs[i].src.sli...
// DOM Ready jQuery(document).ready(function($) { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update if (!Modernizr.svg) { var imgs = document.getElementsByTagName('img'); for (var i = 0; i < imgs.length; i++) { if (/.*\.svg$/.test(imgs[i].src)) { imgs[i]...
Handle jQuery in noConflict mode.
Handle jQuery in noConflict mode. See: http://api.jquery.com/ready/
JavaScript
mit
martinleopold/prcs-website,martinleopold/prcs-website
a774ca427a200270c770dd278d55119cb31de65c
src/containers/Console.js
src/containers/Console.js
import {connect} from 'react-redux'; import Console from '../components/Console'; import { getCurrentCompiledProjectKey, getConsoleHistory, getCurrentProjectKey, getHiddenUIComponents, getRequestedFocusedLine, isCurrentProjectSyntacticallyValid, isExperimental, isTextSizeLarge, } from '../selectors'; im...
import {connect} from 'react-redux'; import Console from '../components/Console'; import { getCurrentCompiledProjectKey, getConsoleHistory, getCurrentProjectKey, getHiddenUIComponents, getRequestedFocusedLine, isCurrentProjectSyntacticallyValid, isExperimental, isTextSizeLarge, } from '../selectors'; im...
Fix console input focus on clearing.
Fix console input focus on clearing.
JavaScript
mit
outoftime/learnpad,outoftime/learnpad,jwang1919/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,popcodeorg/popcode
98216fdd8b2cbd8d62b2c04884939923e5719437
examples/src/controller.js
examples/src/controller.js
import inputData from './data.js'; import infiniteDivs from '../../lib/infinitedivs.js'; let rootElement = document.body; function divGenerator(item) { let div = document.createElement('div'), img = document.createElement('img'), span = document.createElement('span'); img.setAttribute('src', item.img); ...
import inputData from './data.js'; import infiniteDivs from '../../lib/infinitedivs.js'; let rootElement = document.body; function divGenerator(item) { let div = document.createElement('div'), img = document.createElement('img'), span = document.createElement('span'); img.setAttribute('src', item.img); ...
Add border bottom to divs.
Add border bottom to divs.
JavaScript
mit
supreetpal/infinite-divs,supreetpal/infinite-divs
17beb5e36f014b3cab661981b00ad65fc2ed988d
example/index.js
example/index.js
const http = require("http") const url = require("url") const namor = require("namor") const server = http.createServer((req, res) => { const { query } = url.parse(req.url, true) const payload = JSON.stringify( { generated_name: namor.generate({ words: query.words, saltLength: query.saltLength, sal...
const http = require("http") const url = require("url") const namor = require("namor") const server = http.createServer((req, res) => { const { query } = url.parse(req.url, true) const payload = JSON.stringify( { generated_name: namor.generate({ words: query.words, saltLength: query.saltLength, sal...
Add cors header to example
Add cors header to example
JavaScript
mit
jsonmaur/namor,jsonmaur/namor
68fd319b09b021742ad309255d6a444a655a6fee
babel.config.js
babel.config.js
module.exports = { presets: ["es2015-node4", "stage-0", "react"], plugins: [ "add-module-exports", ["transform-async-to-module-method", { module: "bluebird", method: "coroutine" }] ], ignore: false, only: /.es$/ }
module.exports = { presets: ["es2015-node4", "react"], plugins: [ "add-module-exports", ["transform-async-to-module-method", { module: "bluebird", method: "coroutine" }] ], ignore: false, only: /.es$/ }
Remove babel-stage-0 preset to prevent crash in Electron 1.x
Remove babel-stage-0 preset to prevent crash in Electron 1.x
JavaScript
mit
PHELiOX/poi,poooi/poi,syncsyncsynchalt/poi,yudachi/poi,syncsyncsynchalt/poi,KagamiChan/poi,poooi/poi,poooi/poi,poooi/poi,gnattu/poi,syncsyncsynchalt/poi,syncsyncsynchalt/poi,yudachi/poi,yudachi/poi,gnattu/poi,PHELiOX/poi,KagamiChan/poi,nagatoyk/poi,nagatoyk/poi
86b3ad30b978d227bd3b596d176c8d11b2a1995d
forum-web-app/src/ui.js
forum-web-app/src/ui.js
"use strict"; // src/ui.js let ui = { renderPosts(posts) { console.log(posts); } }; export { ui };
"use strict"; // src/ui.js let ui = { renderPosts(posts) { let elements = posts.map( (post) => { let { title, lastReply } = post; return articleTemplate(title, lastReply); }); let target = document.querySelector(".container"); target.innerHTML = elements.join(""); } }; function arti...
Add articleTemplate method. Edit renderPosts
Add articleTemplate method. Edit renderPosts
JavaScript
mit
var-bin/reactjs-training,var-bin/reactjs-training,var-bin/reactjs-training
cf0cb38ea897541e667193ca2699ecf5e3caaacc
app/src/js/modules/events.js
app/src/js/modules/events.js
/** * Events. * * @mixin * @namespace Bolt.events * * @param {Object} bolt - The Bolt module. */ (function (bolt) { 'use strict'; /* * Bolt.events mixin container. * * @private * @type {Object} */ var events = {}; /* * Event broker object. * * @private ...
/** * Events. * * @mixin * @namespace Bolt.events * * @param {Object} bolt - The Bolt module. */ (function (bolt) { 'use strict'; /* * Bolt.events mixin container. * * @private * @type {Object} */ var events = {}; /* * Event broker object. * * @private ...
Use jQuery nomenclature (event => eventType)
Use jQuery nomenclature (event => eventType)
JavaScript
mit
GawainLynch/bolt,nikgo/bolt,rarila/bolt,CarsonF/bolt,lenvanessen/bolt,romulo1984/bolt,electrolinux/bolt,Intendit/bolt,bolt/bolt,rarila/bolt,lenvanessen/bolt,electrolinux/bolt,Raistlfiren/bolt,GawainLynch/bolt,romulo1984/bolt,Raistlfiren/bolt,GawainLynch/bolt,lenvanessen/bolt,Raistlfiren/bolt,HonzaMikula/masivnipostele,...
a1b0d42fa832c518466d4a9502dd1543ac155bfd
spec/filesize-view-spec.js
spec/filesize-view-spec.js
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { // Disable tooltip, only enable on tests when needed atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe...
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { // Disable tooltip, only enable on tests when needed atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe...
Remove extra line in the end of file
Remove extra line in the end of file
JavaScript
mit
mkautzmann/atom-filesize
30a6393c9ea13501afbaae3cd349310645ce7c4a
lib/tilelive/mappool.js
lib/tilelive/mappool.js
/** * Small wrapper around node-pool. Establishes a pool of 5 mapnik map objects * per mapfile. * @TODO: Make pool size configurable. */ module.exports = new function() { return { pools: {}, acquire: function(mapfile, options, callback) { if (!this.pools[mapfile]) { ...
/** * Small wrapper around node-pool. Establishes a pool of 5 mapnik map objects * per mapfile. * @TODO: Make pool size configurable. */ module.exports = new function() { return { pools: {}, acquire: function(mapfile, options, callback) { if (!this.pools[mapfile]) { ...
Use try/catch for loading mapfiles.
Use try/catch for loading mapfiles.
JavaScript
bsd-3-clause
topwood/tilelive,mapbox/tilelive,Norkart/tilelive.js,tomhughes/tilelive.js,kyroskoh/tilelive,paulovieira/tilelive,mapbox/tilelive.js,nyurik/tilelive.js,gravitystorm/tilelive.js