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
af50546f56a995ae69158bed8679eed9a2b69894
app/assets/party/profile.js
app/assets/party/profile.js
'use strict'; app.controller('party/profile', [ '$scope', 'displayService', 'party', 'pageService', function ($scope, display, party, page) { $scope.clickUser = function(user){ _.each($scope.volumes, function(v, i){ $scope.volumes[i].selectedClass = (v.users.indexOf(user.id) > -1) ? "volumeSelec...
'use strict'; app.controller('party/profile', [ '$scope', 'displayService', 'party', 'pageService', function ($scope, display, party, page) { // This function takes in a user, and loops through // volumes, and attaches a "volumeSelected" class // to all the pertinent volumes. $scope.clickUser ...
Add comments and fix formatting.
Add comments and fix formatting.
JavaScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
f084957ab6edc9c70333bc83637271730cf3c036
src/finalisers/shared/getExportBlock.js
src/finalisers/shared/getExportBlock.js
function propertyAccess ( name ) { return name === 'default' ? `['default']` : `.${name}`; } export default function getExportBlock ( bundle, exportMode, mechanism = 'return' ) { if ( exportMode === 'default' ) { const defaultExportName = bundle.exports.lookup( 'default' ).name; return `${mechanism} ${defaultEx...
function wrapAccess ( id ) { return ( id.originalName !== 'default' && id.module && id.module.isExternal ) ? id.module.name + propertyAccess( id.originalName ) : id.name; } function propertyAccess ( name ) { return name === 'default' ? `['default']` : `.${name}`; } export default function getExportBlock ( bundle,...
Access reexports of externals safely when needed.
Access reexports of externals safely when needed.
JavaScript
mit
lukeapage/rollup,Victorystick/rollup,alalonde/rollup,Permutatrix/rollup,corneliusweig/rollup
f29302c93dfb5b6e41193a14e82552a04cc9177e
MUMPSCompiler.js
MUMPSCompiler.js
'use strict'; const fs = require('fs'); const util = require('util'); const _ = require('lodash'); const LineTokens = require('./LineTokens'); const AbstractSyntaxTree = require('./AbstractSyntaxTree'); class MUMPSCompiler { readFile(fileName) { return fs.readFileSync(fileName, 'utf8').split('\n'); } ...
'use strict'; const fs = require('fs'); const util = require('util'); const _ = require('lodash'); const LineTokens = require('./LineTokens'); const AbstractSyntaxTree = require('./AbstractSyntaxTree'); class MUMPSCompiler { readFile(fileName) { return fs.readFileSync(fileName, 'utf8').split('\n'); } ...
Restructure the creation of the AST
Restructure the creation of the AST
JavaScript
apache-2.0
mfuroyama/mumps-compiler
102b402570437fa38dfbd4d5afb94115aaa495dc
public/test/spec/config_spec.js
public/test/spec/config_spec.js
define(['config'], function(config) { 'use strict'; describe('config module', function() { it('should allow values to be functions with returns', function() { config.option('fn_test', function() { return (1 + 2 + 3) / 4; }); expect(config.fn_test).toEqual(1.5); }); it('should force boolean...
define(['config'], function(config) { 'use strict'; describe('config module', function() { it('should allow values to be functions with returns', function() { config._priv.set_option('fn_test', function() { return (1 + 2 + 3) / 4; }); expect(config.fn_test).toEqual(1.5); }); it('should for...
Fix config unit tests with methods moved to _priv (see commit ef68784)
Fix config unit tests with methods moved to _priv (see commit ef68784)
JavaScript
mit
gavinhungry/debugger.io,gavinhungry/debugger.io
0dd80408bb9b2ab204f984b8f16f964cef6ab629
src/test/integration-test.js
src/test/integration-test.js
!function (assert, path) { 'use strict'; require('vows').describe('Integration test').addBatch({ 'When minifying a CSS file': { topic: function () { var callback = this.callback, topic; require('publishjs')({ cache: fa...
!function (assert, path) { 'use strict'; require('vows').describe('Integration test').addBatch({ 'When minifying a CSS file': { topic: function () { var callback = this.callback, topic; require('publishjs')({ cache: fa...
Use build() result for test
Use build() result for test
JavaScript
mit
candrholdings/publishjs-less,candrholdings/publishjs-less
6a5bac62634300a1f34977694840d1cfa1154fd6
assets/js/adminselection.js
assets/js/adminselection.js
function editselection(adminname, adminusername, adminpassword, adminid){ document.getElementById("inputadminname").value = adminname; document.getElementById("inputadminusername").value = adminusername; document.getElementById("inputadminpassword").value = adminpassword; document.getElementById("inputadminadminid"...
function editselection(adminname, adminusername, adminpassword, adminid){ document.getElementById("inputadminname").value = adminname; document.getElementById("inputadminusername").value = adminusername; document.getElementById("inputadminpassword").value = adminpassword; document.getElementById("inputadminadminid"...
Add changeyear() and commented on selected functions.
Add changeyear() and commented on selected functions.
JavaScript
mit
altusgerona/cmsc127project,altusgerona/cmsc127project,altusgerona/cmsc127project
8dc69b9f6571baaff8dad5ff61debd0c10cfb0f3
app/initializers/honeybadger.js
app/initializers/honeybadger.js
import Ember from 'ember'; import ENV from '../config/environment'; export function initialize() { $.getScript('//js.honeybadger.io/v0.2/honeybadger.min.js').then(function() { if (window.Honeybadger) { var apiKey = Ember.get(ENV, 'honeybadger.apiKey'); var environment = Ember.get(ENV, 'honeyba...
import Ember from 'ember'; import ENV from '../config/environment'; export function initialize() { Ember.$.getScript('//js.honeybadger.io/v0.2/honeybadger.min.js').then(function() { if (window.Honeybadger) { var apiKey = Ember.get(ENV, 'honeybadger.apiKey'); var environment = Ember.get(ENV, 'h...
Use Ember alias for jQuery
Use Ember alias for jQuery
JavaScript
mit
webnuts/ember-cli-honeybadger,webnuts/ember-cli-honeybadger
a7c61ddb11083242d38c64e6db4f6de2e0dd76d1
app/lib/stub-router-context.js
app/lib/stub-router-context.js
import _ from 'lodash'; import React from 'react/addons'; var stubRouterContext = (Component, props, stubs) => { return React.createClass({ childContextTypes: { getCurrentPath: React.PropTypes.func, getCurrentRoutes: React.PropTypes.func, getCurrentPathname: React.PropTypes.func, getCurre...
import _ from 'lodash'; import React from 'react/addons'; var stubRouterContext = (Component, props, stubs) => { return React.createClass({ childContextTypes: { getCurrentPath: React.PropTypes.func, getCurrentRoutes: React.PropTypes.func, getCurrentPathname: React.PropTypes.func, getCurre...
Add ref to stub router component for accessibility
Add ref to stub router component for accessibility
JavaScript
isc
jeffreymoya/sprintly-kanban,pipermerriam/sprintly-kanban,pipermerriam/sprintly-kanban,florapdx/sprintly-kanban,datachand/sprintly-kanban,sprintly/sprintly-kanban,datachand/sprintly-kanban,sprintly/sprintly-kanban,whitebird08/sprintly-kanban,whitebird08/sprintly-kanban,jeffreymoya/sprintly-kanban,florapdx/sprintly-kanba...
fd0b38cd3e80b84fc0d9965d61e849d507203e41
app/assets/javascripts/views/user/mega_drop.js
app/assets/javascripts/views/user/mega_drop.js
Teikei.module("User", function(User, App, Backbone, Marionette, $, _) { User.MegaDropView = Marionette.View.extend({ el: "#mega-drop", ui: { toggle: ".toggle", slider: ".slider", toggleText: ".toggle b" }, isOpen: false, events: { "click .toggle": "toggleDropdown", ...
Teikei.module("User", function(User, App, Backbone, Marionette, $, _) { User.MegaDropView = Marionette.View.extend({ el: "#mega-drop", ui: { toggle: ".toggle-button", slider: ".slider", toggleText: ".toggle-button b" }, isOpen: false, events: { "click .toggle-button": ...
Fix a bug in the mega-drop that prevented it opening.
Fix a bug in the mega-drop that prevented it opening.
JavaScript
agpl-3.0
sjockers/teikei,sjockers/teikei,teikei/teikei,sjockers/teikei,teikei/teikei,teikei/teikei
e2c43007eec0e388425f4fc07693fae1b33fa775
webpack.config.js
webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); module.exports = { entry: './client/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, plugins: [new HtmlWebpackPlugin({ title: 'Beer.ly' })] }
const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); module.exports = { entry: './client/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, plugins: [new HtmlWebpackPlugin({ title: 'Beer.ly', template: './client/index.ejs', ...
Add HtmlWebpackPlugin options for template and script injection
Add HtmlWebpackPlugin options for template and script injection
JavaScript
mit
ntoung/beer.ly,ntoung/beer.ly
576da3b37112a0eba4ff1ab61f0029c66a8a66a4
app/javascript/app/pages/ndcs/ndcs-reducers.js
app/javascript/app/pages/ndcs/ndcs-reducers.js
export const initialState = { loading: false, loaded: false, error: false, data: {} }; const setLoading = (state, loading) => ({ ...state, loading }); const setError = (state, error) => ({ ...state, error }); const setLoaded = (state, loaded) => ({ ...state, loaded }); export default { fetchNDCSInit: state ...
export const initialState = { loading: false, loaded: false, error: false, data: {} }; const setLoading = (state, loading) => ({ ...state, loading }); const setError = (state, error) => ({ ...state, error }); const setLoaded = (state, loaded) => ({ ...state, loaded }); export default { fetchNDCSInit: state ...
Create mapCategories on ndcs reducer
Create mapCategories on ndcs reducer
JavaScript
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
e60823af502d8fb5a51be7d41c177f5b2fab5055
src/index.js
src/index.js
function wrap(res, fn) { return function(...args) { if (res.timedout) { return res; } else { return fn.apply(res, args); } }; } export default (timeoutValue) => { return (req, res, next) => { const {send, sendStatus, status} = res; res.setTime...
function wrap(res, fn) { return function(...args) { if (res.timedout) { return res; } else { return fn.apply(res, args); } }; } export default (timeoutValue) => { return (req, res, next) => { const {send, sendStatus, status} = res; res.setTime...
Change from 408 to 503 since it is a server error
Change from 408 to 503 since it is a server error
JavaScript
mit
fjodorekstrom/timeout-middleware
05b841b505d91a974a06bb20ae78652cbb9b48e6
src/index.js
src/index.js
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, Route } from 'react-router' import config from 'react-global-configuration' //views import HomePage from './views/Home' import ListPageContainer from './views/List' //store import { store, history } fr...
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, Route } from 'react-router' import config from 'react-global-configuration' //views import HomePage from './views/Home' import ListPageContainer from './views/List' //store import { store, history } fr...
Update config for plugin (still needs moving outside this lib)
Update config for plugin (still needs moving outside this lib)
JavaScript
mit
aerian-studios/react-crud
74ee10552c8791941df3c436dddf25ba2680cc78
tests/integration/components/permission-language-test.js
tests/integration/components/permission-language-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('permission-language', 'Integration | Component | permission language', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value')...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import Ember from 'ember'; moduleForComponent('permission-language', 'Integration | Component | permission language', { integration: true }); test('it renders', function(assert) { // Set any properties with this...
Add Component testing for permission-language component. The test passes three provider names to the component and verify that the returned results is correct.
Add Component testing for permission-language component. The test passes three provider names to the component and verify that the returned results is correct. Ticket ID: EOSF-403
JavaScript
apache-2.0
CenterForOpenScience/ember-preprints,laurenrevere/ember-preprints,caneruguz/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints,baylee-d/ember-preprints,caneruguz/ember-preprints,laurenrevere/ember-preprints
907f0b008587aadbcaf1da93491662e874a0301d
share/spice/canistreamit/spice.js
share/spice/canistreamit/spice.js
function ddg_spice_canistreamit(movies) { // console.log(xk); var result,img,snippet,link,div; var items = new Array(); for(var i = 0; i<movies.length; i++) { result = movies[i]; // Make title for header var header = result.title + " ("+result.year+")"; ...
function ddg_spice_canistreamit(movies) { // console.log(xk); var result,img,snippet,link,div; var items = new Array(); for(var i = 0; i<movies.length; i++) { result = movies[i]; // Make title for header var header = 'Watch ' + result.title + " ("+result.yea...
Add watch to Canistreamit header.
Add watch to Canistreamit header.
JavaScript
apache-2.0
andrey-p/zeroclickinfo-spice,mr-karan/zeroclickinfo-spice,alexandernext/zeroclickinfo-spice,xaviervalarino/zeroclickinfo-spice,soleo/zeroclickinfo-spice,rubinovitz/zeroclickinfo-spice,sagarhani/zeroclickinfo-spice,deserted/zeroclickinfo-spice,claytonspinner/zeroclickinfo-spice,Kakkoroid/zeroclickinfo-spice,mr-karan/zer...
c63cc693b7854745c2abdd8eea55dd695c669821
Core/BaseLoader.js
Core/BaseLoader.js
const fetch = require('node-fetch'); class BaseLoader { constructor(APIToken, baseURL) { this.APIToken = APIToken; this.fetch = fetch this.baseURL = baseURL } get fetchConfiguration() { const headers = { Authorization: `Bearer ${this.APIToken}`, }; const configuration = { me...
const fetch = require("node-fetch"); class BaseLoader { constructor(APIToken, baseURL) { this.APIToken = APIToken; this.fetch = fetch; this.baseURL = baseURL; } get fetchConfiguration() { const headers = { Authorization: `Bearer ${this.APIToken}` }; const configuration = { me...
Add status code check for error handling
Add status code check for error handling
JavaScript
mit
dbsystel/1BahnQL
e12a57b8d5c005bbb4e7a4f4f98638aa70df3562
web/static/js/components/game/header.js
web/static/js/components/game/header.js
import React, {PropTypes} from 'react'; export default class Header extends React.Component { _renderContent() { const { game } = this.props; return ( <h1>Place your ships</h1> ); } render() { return ( <header id="game_header">{::this._renderContent()}</header> ); } }
import React, {PropTypes} from 'react'; export default class Header extends React.Component { _renderContent() { const { game } = this.props; const title = this._titleText(game); return ( <h1>{::this._titleText(game)}</h1> ); } _titleText(game) { const { my_board, opponents_board } = ...
Set title depending on boards statuses
Set title depending on boards statuses
JavaScript
mit
bigardone/phoenix-battleship,bigardone/phoenix-battleship
f65d07bd4493f4af71e30722f496bbef8f37832c
src/js/utils/code-list-utils.js
src/js/utils/code-list-utils.js
export function nbCodesFromId(codeListById, id) { return id ? nbCodes(codeListById[id]) : 0 } function nbCodes({ isSpec, isLoaded, codes }) { return isSpec && !isLoaded ? 10 : codes.length }
/** * Returns the number of code in a code list from its `id` * * For a code list specification, it returns `1`. * If the `id` is not provided, it returns `1`. * * Explanations : * * For a code list specification which has not been loaded yet, we do not know * the number of codes in the code list. We need this...
Use 1 as a default value for the number of codes in a code list
Use 1 as a default value for the number of codes in a code list This number is used to build the right number of responses when serializing the questionnaire. If we work with a code list specification, It's not trivial to get this information: we need to load the code list specificaiton before serializing the question...
JavaScript
mit
Zenika/Pogues,Zenika/Pogues,InseeFr/Pogues,InseeFr/Pogues,InseeFr/Pogues,Zenika/Pogues
1df6a847d47cee94cbc2c761a794521a66f2392c
src/block/selection.js
src/block/selection.js
define([], function() { var saveSelection, restoreSelection; if (window.getSelection && document.createRange) { saveSelection = function(el) { var sel = window.getSelection && window.getSelection(); if (sel && sel.rangeCount > 0) { return sel.getRangeAt(0); ...
define([], function() { var saveSelection, restoreSelection; if (window.getSelection && document.createRange) { saveSelection = function(el) { var sel = window.getSelection && window.getSelection(); if (sel && sel.rangeCount > 0) { return sel.getRangeAt(0); ...
Fix typo startContanier should be startContainer.
Fix typo startContanier should be startContainer.
JavaScript
mit
mervick/emojionearea
97290f01c55a2426856d4c9fe095760bf2483e44
src/components/Menu.js
src/components/Menu.js
import React from 'react'; import { Link } from 'react-router'; import './Menu.css'; import User from './User'; import language from '../language/language'; const menuLanguage = language.components.menu; let Menu = React.createClass ({ getInitialState() { return { showUser: false }; }, onClick(e) { ...
import React from 'react'; import { Link } from 'react-router'; import './Menu.css'; import User from './User'; import language from '../language/language'; const menuLanguage = language.components.menu; let Menu = React.createClass ({ getInitialState() { return { showUser: false }; }, toggleUser(e) { ...
Rename click handler function so it’s more explicit what it does
Rename click handler function so it’s more explicit what it does
JavaScript
bsd-3-clause
jeromelachaud/Last.fm-Activities-React,jeromelachaud/Last.fm-Activities-React
bf7b3c5fb899a1f7b7fef673f691bf20cae94571
src/main/resources/static/mp.js
src/main/resources/static/mp.js
angular.module('webapp').factory('mp', function($q, $rootScope, $timeout, host) { var socket = new WebSocket("ws://" + host + ":8080/stomp"); var stompClient = Stomp.over(socket); //stompClient.debug = angular.noop(); var connectedDeferred = $q.defer(); var connected = connectedDeferred.promise; stompClient.co...
angular.module('webapp').factory('mp', function($q, $rootScope, $timeout, host) { var socket = new WebSocket("ws://" + host + ":8080/stomp"); var stompClient = Stomp.over(socket); stompClient.debug = angular.noop(); var connectedDeferred = $q.defer(); var connected = connectedDeferred.promise; stompClient.conn...
Revert accidental commit of debug logging
Revert accidental commit of debug logging
JavaScript
apache-2.0
gillius/lunchbus,gillius/lunchbus
bd26a8c14f8f1f44a6ad745cf93af2a9898299e7
src/main/webapp/scripts/main.js
src/main/webapp/scripts/main.js
$().ready(() => { loadContentSection().then(() =>{ $("#loader").addClass("hide"); $("#real-body").removeClass("hide"); $("#real-body").addClass("body"); $(".keyword").click(function() { $(this).addClass("active"); $(".base").hide(200); $("#real-body").addClass("focus"); }); ...
$().ready(() => { loadContentSection().then(() =>{ $("#loader").addClass("hide"); $("#real-body").removeClass("hide"); $("#real-body").addClass("body"); $(".keyword").click(function() { $(this).addClass("active"); $(".base").hide(200); $("#real-body").addClass("focus"); $(".a...
Fix redirecting and back button bug
Fix redirecting and back button bug
JavaScript
apache-2.0
googleinterns/step36-2020,googleinterns/step36-2020,googleinterns/step36-2020
fe88f534341eabeff89313ae046a2be48043833f
client/src/components/NavBar.js
client/src/components/NavBar.js
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { logoutUser } from '../../redux/actions'; const NavBar = ({ isAuthenticated, logoutUser }) => ( <ul className="navbar"> <li className="navbar__link"><Link to="/">Home</Link></li> { is...
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { logoutUser } from '../../redux/actions'; const NavBar = ({ isAuthenticated, logoutUser }) => ( <ul className="navbar"> <li key={0} className="navbar__link"><Link to="/">Home</Link></li> ...
Fix React missing key iterator warning
Fix React missing key iterator warning
JavaScript
mit
mbchoa/presence,mbchoa/presence
942b75631721f83ac139bf08eb4712718630d552
main.js
main.js
var STATUSES = { UP: 0, DOWN: 1 } var mouseStatus = { left: STATUSES.UP, right: STATUSES.UP } var BUTTONS = { LEFT: 1, RIGHT: 3 }; document.onmousedown = function(event) { if (event.which === BUTTONS.LEFT) { mouseStatus.left = STATUSES.DOWN; if (mouseStatus.right === STATUSES.DOWN) { chrom...
var STATUSES = { UP: 0, DOWN: 1 } var mouseStatus = { left: STATUSES.UP, right: STATUSES.UP } var BUTTONS = { LEFT: 1, RIGHT: 3 }; document.addEventListener('mousedown', function(event) { if (event.which === BUTTONS.LEFT) { mouseStatus.left = STATUSES.DOWN; if (mouseStatus.right === STATUSES.DOW...
Use addEventListener instead of setting old onmouse* properties
Use addEventListener instead of setting old onmouse* properties
JavaScript
isc
wendorf/mousetures,wendorf/mousetures
1b63df7382dea64feaa9d22ba415b141837277fc
main.js
main.js
define(['mathlive/mathlive'], function(mLive) { MathLive = mLive; MathLive.renderMathInDocument(); TheActiveMathField = MathLive.makeMathField( document.getElementById('mathEditorActive'), {//commandbarToggle: 'hidden', overrideDefaultInlineShortcuts: false, onSelectionDidChange: Updat...
define(['mathlive/mathlive'], function(mLive) { MathLive = mLive; MathLive.renderMathInDocument(); TheActiveMathField = MathLive.makeMathField( document.getElementById('mathEditorActive'), {commandbarToggle: 'hidden', overrideDefaultInlineShortcuts: false, onSelectionDidChange: UpdateP...
Add handler for cntl+backspace/delete to be a crossout
Add handler for cntl+backspace/delete to be a crossout
JavaScript
mit
NSoiffer/ProceduralMathEditor,NSoiffer/ProceduralMathEditor
e92ff29bd378db3d07fa389d9b950834234dbc61
main.js
main.js
const {app, BrowserWindow} = require('electron') const path = require('path') const url = require('url') let win function createWindow () { win = new BrowserWindow({width: 650, height: 450}) win.loadURL(url.format({ pathname: path.join(__dirname, 'public/index.html'), protocol: 'file:', slashes: true...
const {app, shell, BrowserWindow, Menu} = require('electron') const path = require('path') const url = require('url') let win process.env.PATH = `${process.env.PATH}:/usr/local/bin` const menu = Menu.buildFromTemplate([ { label: app.getName(), submenu: [{ label: 'About', click() { shell...
Add menu to open dev tools
:wheelchair: Add menu to open dev tools
JavaScript
apache-2.0
jysperm/elecpass,jysperm/elecpass
426fc75610582bbcfad0a8d1cac575e400419326
lib/store.js
lib/store.js
var uuid = require('node-uuid'); var JSData = require('js-data'); var store; var adapter; var Report; function error(msg) { return new Promise(function(resolve, reject) { return resolve({ error: msg }); }); } function get(id) { if (!id) return error('No id specified.'); if (!adapter) { return new Pr...
var uuid = require('node-uuid'); var JSData = require('js-data'); var store; var adapter; var Report; function error(msg) { return new Promise(function(resolve, reject) { return resolve({ error: msg }); }); } function get(id) { if (!id) return error('No id specified.'); if (!adapter) { return new Pr...
Add more data to the report
Add more data to the report
JavaScript
mit
zalmoxisus/remotedev-server,zalmoxisus/remotedev-server
be3833211473eaa2f24e4f8ef20af9969d2bd0d0
webpack.config.js
webpack.config.js
const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const path = require("path"); module.exports = { mode: "development", devtool: "inline-source-map", entry: { IntelliSearch: "./src/SearchClient.ts", "IntelliSearch.min": "./src/SearchClient.ts" }, output: { path: pat...
const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const path = require("path"); module.exports = { mode: "development", devtool: "inline-source-map", entry: { IntelliSearch: "./src/SearchClient.ts", "IntelliSearch.min": "./src/SearchClient.ts" }, output: { path: pat...
Remove comments and source-map from the minified version.
Remove comments and source-map from the minified version.
JavaScript
mit
IntelliSearch/search-client,IntelliSearch/search-client
68e3266af5daacee80d207b14ea123898c201b0b
webpack.config.js
webpack.config.js
var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { index: './src/main/index.js' }, output: { path: './target/out', filename: '[name].js', libraryTarget: 'commonjs' }, externals: [ { 'react': true, 'react-dom': true } ], plugins:...
var path = require('path'), ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { index: [ './src/main/index.js', './src/main/index.less' ] }, output: { path: './target/out', filename: '[name].js', libraryTarget: 'commonjs' }, externals: [...
Build styles apart from JS code
Build styles apart from JS code
JavaScript
mit
smikhalevski/react-text-input,smikhalevski/react-text-input
5113f6ac77db5315c9b311505f86a3dc1e627204
fetch.js
fetch.js
const fs = require('fs'); const path = require('path'); const exec = require('child_process').exec; const version = process.versions.v8; const tmpfile = path.join(__dirname, version+'.flags.json'); if (!fs.existsSync(tmpfile)) { exec('node --v8-options', function (execErr, result) { var flags; if (execErr) ...
const fs = require('fs'); const path = require('path'); const exec = require('child_process').exec; const nodepath = process.env._; const version = process.versions.v8; const tmpfile = path.join(__dirname, version+'.flags.json'); if (!fs.existsSync(tmpfile)) { exec(nodepath+' --v8-options', function (execErr, resul...
Use node path from process.env._
Fix: Use node path from process.env._
JavaScript
mit
tkellen/js-v8flags,js-cli/js-v8flags
72a8fa47e9f43325b1eb78afda1abea84f79d3fb
jslib/controlNode.js
jslib/controlNode.js
// Modules var http = require('http'), urllib = require('url'), RPCHandler = require('jsonrpc').RPCHandler, scheduler = require('./schedulerRpcWrapper'); // Configuration var cfg = require('config')('ControlNode', { port: 46212, address: "", jsonRpcPath: "/jsonrpc", debugRpc: false }); // Local va...
// Modules var http = require('http'), urllib = require('url'), RPCHandler = require('jsonrpc').RPCHandler, scheduler = require('./schedulerRpcWrapper'); // Configuration var cfg = require('config')('ControlNode', { port: 46212, address: "", jsonRpcPath: "/jsonrpc", debugRpc: false }); // Local va...
Change version string in control node.
Change version string in control node.
JavaScript
apache-2.0
anthony-kolesov/kts46,anthony-kolesov/kts46,anthony-kolesov/kts46,anthony-kolesov/kts46
1a55d508fdb0c9f3fc5bf9a74aea73ab922f287b
packages/core/lib/debug/compiler.js
packages/core/lib/debug/compiler.js
const { Compile } = require("@truffle/compile-solidity"); class DebugCompiler { constructor(config) { this.config = config; } async compile(sources = undefined) { const compileConfig = this.config.with({ quiet: true }); const { compilations } = sources ? await Compile.sources({ sources, optio...
const { Compile } = require("@truffle/compile-solidity"); const WorkflowCompile = require("@truffle/workflow-compile"); class DebugCompiler { constructor(config) { this.config = config; } async compile(sources = undefined) { const compileConfig = this.config.with({ quiet: true }); const { compilati...
Allow CLI debugger to compile non-Solidity sources
Allow CLI debugger to compile non-Solidity sources
JavaScript
mit
ConsenSys/truffle
ca7e4f4c5d6ba470b557e87c47b7f298ce40437e
audio_channel.js
audio_channel.js
var AudioChannel = function(args) { this.context = AudioContext ? new AudioContext() : new webkitAudioContext(); this.oscill = this.context.createOscillator(); this.gain = this.context.createGain(); if(args) { this.frequency = args.freq ? args.freq : 220; this.wave = args.wave ? args.wave : "triangle";...
var AudioChannel = function(args) { this.context = AudioContext ? new AudioContext() : new webkitAudioContext(); this.oscill = this.context.createOscillator(); this.gain = this.context.createGain(); var args = args ? args : {}; this.frequency = args.freq ? args.freq : 220; this.wave = args.wave ? args.wav...
Update AudioChannel.playSong to use noteToFreq
Update AudioChannel.playSong to use noteToFreq
JavaScript
mit
peternatewood/pac-man-replica,peternatewood/pac-man-replica
b44662de07df147bc64fb439db554f5d045cbb5e
api/models/Image.js
api/models/Image.js
/** * Image.js * * @description :: This represents a product image with file paths for different variations (original, thumb, ...). * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ module.exports = { attributes: { width: { type: 'integer', min: 0 }, ...
/** * Image.js * * @description :: This represents a product image with file paths for different variations (original, thumb, ...). * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ module.exports = { attributes: { width: { type: 'integer', min: 0 }, ...
Fix bug where images could not be created
Fix bug where images could not be created
JavaScript
mit
joschaefer/online-shop-api
1eede171c8f8d0d8e141832414d258708fac9579
lib/index.js
lib/index.js
"use strict"; function createDefaultFormatter() { return function defaultFormatter(ctx, errors) { ctx.body = {}; if (errors && errors.length) { ctx.status = 500; if (errors.length === 1) { ctx.status = errors[0].status; } ctx.body['ok'] = 0; ctx.body['status'] = ctx.stat...
"use strict"; function createDefaultFormatter() { return function defaultFormatter(ctx, errors) { ctx.body = {}; if (errors && errors.length) { ctx.status = 500; if (errors.length === 1) { ctx.status = errors[0].status || ctx.status; } ctx.body['ok'] = 0; ctx.body['statu...
Add status fallback when an error does not expose one
Add status fallback when an error does not expose one
JavaScript
mit
njakob/koa-formatter
10ddc5f85fe449bed94a3bb751f0250d2ca4e01f
lib/index.js
lib/index.js
"use strict"; var util = require("util"); var AbstractError = require("./AbstractError.js"), defaultRenderer = require("./defaultRenderer.js"); /** * generate Error-classes based on AbstractError * * @param error * @returns {Function} */ function erroz(error) { var errorFn = function (data) { ...
"use strict"; var util = require("util"); var AbstractError = require("./AbstractError.js"), defaultRenderer = require("./defaultRenderer.js"); /** * generate Error-classes based on AbstractError * * @param error * @returns {Function} */ function erroz(error) { var errorFn = function (data) { ...
Handle toJSON call with missing this.data
Handle toJSON call with missing this.data
JavaScript
mit
peerigon/erroz
7e05dc3eafd6a5ba970624b242d00bd139ec46eb
docs/src/lib/docs/md-loader.js
docs/src/lib/docs/md-loader.js
const fm = require('gray-matter'); // makes mdx in next.js suck less by injecting necessary exports so that // the docs are still readable on github // (Shamelessly stolen from Expo.io docs) // @see https://github.com/expo/expo/blob/master/docs/common/md-loader.js module.exports = async function (src) { const callba...
const fm = require('gray-matter'); // makes mdx in next.js suck less by injecting necessary exports so that // the docs are still readable on github // (Shamelessly stolen from Expo.io docs) // @see https://github.com/expo/expo/blob/master/docs/common/md-loader.js module.exports = async function (src) { const callba...
Enable fast refresh on mdx pages
Enable fast refresh on mdx pages
JavaScript
apache-2.0
jaredpalmer/formik,jaredpalmer/formik,jaredpalmer/formik
d6b653841d6b3553acdda2cf721e4be9b751bc24
static/js/page_index.js
static/js/page_index.js
"use strict"; $(document).ready(function() { $("#link_play").click(function (event) { $.cookie("user_name", $("#credentials").find("input#username").val()); return true; }); });
"use strict"; $(document).ready(function() { $("#link_play").click(function (event) { $.cookie( "user_name", $("#credentials").find("input#username").val(), {path: "/page/"} ); return true; }); });
Set user name cookie only for the /page/ path where it is used.
Set user name cookie only for the /page/ path where it is used.
JavaScript
agpl-3.0
mose/poietic-generator,mose/poietic-generator,mose/poietic-generator
40a85d221a90d4af0fe4377b77eaf9f10348a5c5
bin/gitter-bot.js
bin/gitter-bot.js
var program = require('commander'); var pkg = require('../package.json'); var GitterBot = require('../lib/GitterBot'); program .version(pkg.version) .description('Gitter bot for evaluating expressions') .usage('[options]') .option('-k, --key <key>', 'Set API key') .option('-r, --room <room>', 'Set room') ....
var program = require('commander'); var pkg = require('../package.json'); var GitterBot = require('../lib/GitterBot'); program .version(pkg.version) .description('Gitter bot for evaluating expressions') .usage('[options]') .option('-k, --key <key>', 'Set API key') .option('-r, --room <room>', 'Set room') ....
Add overriding pattern from CLI
Add overriding pattern from CLI
JavaScript
mit
ghaiklor/uwcua-vii
25103c5b77422b369c9e1171fa0f03d9ed8dd337
src/jsx/routes/portfolio/index.js
src/jsx/routes/portfolio/index.js
import echoRidge from './echo-ridge'; import fireflies from './fireflies'; export default [ echoRidge, fireflies ];
export default [ require('./echo-ridge').default, require('./fireflies').default ];
Clean up the portfolio imports
Clean up the portfolio imports
JavaScript
mit
VoxelDavid/voxeldavid-website,VoxelDavid/voxeldavid-website,vocksel/my-website,vocksel/my-website
d5b71ae723decdf033d995247ee76a103df800ff
index.js
index.js
"use strict"; module.exports = { rules: { "sort-object-props": function(context) { var caseSensitive = context.options[0].caseSensitive; var ignoreMethods = context.options[0].ignoreMethods; var ignorePrivate = context.options[0].ignorePrivate; var MSG = "Pr...
"use strict"; module.exports = { rules: { "sort-object-props": function(context) { var caseSensitive = context.options[0].caseSensitive; var ignoreMethods = context.options[0].ignoreMethods; var ignorePrivate = context.options[0].ignorePrivate; var MSG = "Pr...
Add checking if lastPropId is undefined
Add checking if lastPropId is undefined
JavaScript
mit
shane-tomlinson/eslint-plugin-sorting,jacobrask/eslint-plugin-sorting
a23126cf3c1f6dc74d6759d33d238e8bcd80f2fb
cantina-vhosts.js
cantina-vhosts.js
module.exports = function (app) { // Default conf. app.conf.add({ vhosts: { match: 'hostname', notFound: true } }); // Depends on cantina-web. app.require('cantina-web'); // Load stuff. app.load('plugins'); app.load('middleware'); };
module.exports = function (app) { // Default conf. app.conf.add({ vhosts: { match: 'hostname', middleware: true, notFound: true } }); // Depends on cantina-web. app.require('cantina-web'); // Load stuff. app.load('plugins'); if (app.conf.get('vhosts:middleware')) { app.lo...
Allow middleware to be disabled.
Allow middleware to be disabled.
JavaScript
apache-2.0
cantina/cantina-vhosts
56f30e597acc3cef1380f287531ba2f75668498d
index.js
index.js
/* * redbloom * Copyright(c) 2016 Benjamin Bartolome * Apache 2.0 Licensed */ 'use strict'; module.exports = redbloom; var ee = require('event-emitter'); var Immutable = require('immutable'); var Rx = require('rx'); function redbloom(initialState, options) { var state = Immutable.Map(initialState || {}); // ...
/* * redbloom * Copyright(c) 2016 Benjamin Bartolome * Apache 2.0 Licensed */ 'use strict'; module.exports = redbloom; var ee = require('event-emitter'); var Immutable = require('immutable'); var Rx = require('rx'); function redbloom(initialState, options) { var state = Immutable.Map(initialState || {}); // ...
Handle the default pattern with the last state when the command is not mathcing.
fix: Handle the default pattern with the last state when the command is not mathcing.
JavaScript
apache-2.0
eq8/redbloom
1d9e4ee3231173d5acaf96dbce94a7529b15396b
index.js
index.js
'use strict'; const net = require('net'); const isAvailable = options => new Promise((resolve, reject) => { const server = net.createServer(); server.unref(); server.on('error', reject); server.listen(options, () => { const {port} = server.address(); server.close(() => { resolve(port); }); }); }); const...
'use strict'; const net = require('net'); const isAvailable = options => new Promise((resolve, reject) => { const server = net.createServer(); server.unref(); server.on('error', reject); server.listen(options, () => { const {port} = server.address(); server.close(() => { resolve(port); }); }); }); const...
Use the correct `host` when falling back
Use the correct `host` when falling back
JavaScript
mit
sindresorhus/get-port,sindresorhus/get-port
f23074f8943c95085c164455b3816c48940cc365
index.js
index.js
/* jshint node: true */ 'use strict'; module.exports = { name: 'telling-stories', included: function(app) { if (!this.shouldIncludeFiles()) { return; } this._super.included.apply(this, arguments); app.import('vendor/telling-stories/qunit-configuration.js', { type: 'test' }); app.import...
/* jshint node: true */ 'use strict'; module.exports = { name: 'telling-stories', included: function(app) { if (!this.shouldIncludeFiles()) { return; } this._super.included.apply(this, arguments); app.import('vendor/telling-stories/qunit-configuration.js', { type: 'test' }); app.import...
Validate if app.tests are available
Validate if app.tests are available Instead of relying on the environment
JavaScript
mit
mvdwg/telling-stories,mvdwg/telling-stories
821f52c62015f457b98086643a49f2a000d9b033
index.js
index.js
#!/usr/bin/env node global.__base = __dirname + '/src/'; // Commands var cli = require('commander'); cli .version('0.0.1') .option('-p, --port <port>' , 'Change static server port [8000]', 8000) .option('-P, --livereload-port <port>' , 'Change livereload port [35729]', 35729) .option('-d, --direct...
#!/usr/bin/env node global.__base = __dirname + '/src/'; // Commands var cli = require('commander'); cli .version('0.0.1') .option('-p, --port <port>' , 'Change static server port [8000]', 8000) .option('-P, --livereload-port <port>' , 'Change livereload port [35729]', 35729) .option('-d, --direct...
Fix error if trying to do slr in current dir
Fix error if trying to do slr in current dir
JavaScript
mit
eth0lo/slr
5ec930689e6a43b010b1ba67099412db9ab2dd0e
hits.js
hits.js
export class Serializable { constructor(props) { this.properties = props || {}; } toObject() { return this.properties; } toString() { return JSON.stringify(this.toObject()); } toJSON() { return JSON.stringify(this.properties); } toQueryString() { ...
export class Serializable { constructor(props) { this.properties = props || {}; } toObject() { return this.properties; } toString() { return JSON.stringify(this.toObject()); } toJSON() { return JSON.stringify(this.properties); } toQueryString() { ...
Fix screenName parameter in ScreenHit class
Fix screenName parameter in ScreenHit class Changed property dp to cd to match Google Analytics screen hit request reference See https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide *Request* `` v=1 // Version. &tid=UA-XXXXX-Y // Tracking ID /...
JavaScript
mit
ryanvanderpol/expo-analytics
458ec938cf110488e3e1caca6738d837b95eae8a
index.js
index.js
'use strict'; var p4 = require('node-perforce'); var through = require('through2'); var gutil = require('gulp-util'); var PluginError = gutil.PluginError; var PLUGIN_NAME = 'gulp-p4'; module.exports = function (p4cmd, options) { if (!p4cmd) throw new PluginError(PLUGIN_NAME, 'Missing p4 command'); if (!p4[p4cmd]...
'use strict'; var p4 = require('node-perforce'); var through = require('through2'); var gutil = require('gulp-util'); var PluginError = gutil.PluginError; var PLUGIN_NAME = 'gulp-p4'; module.exports = function (p4cmd, options) { if (!p4cmd) throw new PluginError(PLUGIN_NAME, 'Missing p4 command'); if (!p4[p4cmd]...
Fix to work with trail pipes
Fix to work with trail pipes
JavaScript
mit
wokim/gulp-p4
3c75375bf0c61e544c8f720ab4a5c2da7f495abd
index.js
index.js
#!/usr/bin/env node "use strict"; const moment = require("moment"); const sugar = require("sugar"); const chalk = require("chalk"); const exec = require("child_process").exec; process.argv.splice(0, 2); if (process.argv.length > 0) { // Attempt to parse the date let date = process.argv.join(" "); let parsedDa...
#!/usr/bin/env node "use strict"; const moment = require("moment"); const sugar = require("sugar"); const chalk = require("chalk"); const exec = require("child_process").exec; // Throw a fatal error const fatal = err => { console.error(`fatal: ${err}`); } process.argv.splice(0, 2); if (process.argv.length > 0) { ...
Move fatal throw to separate function
Move fatal throw to separate function
JavaScript
mit
sam3d/git-date
b6f80db17489eb5adea2e6afa1f1318de42f13e5
index.js
index.js
/** * Module dependencies. */ var reduceCSSCalc = require("reduce-css-calc") /** * Expose `plugin`. */ module.exports = plugin /** * Plugin to convert all function calls. * * @param {Object} stylesheet */ function plugin() { return function(style) { style.eachDecl(function declaration(dec) { if ...
/** * Module dependencies. */ var reduceCSSCalc = require("reduce-css-calc") /** * Expose plugin & helper */ module.exports = plugin module.exports.transformDecl = transformDecl /** * PostCSS plugin to reduce calc() function calls. */ function plugin() { return function(style) { style.eachDecl(transformDe...
Update comment & expose transformDecl
Update comment & expose transformDecl That will allow direct usage un a plugin to avoid multiple loop to apply transformation directly in a global plugin
JavaScript
mit
postcss/postcss-calc
cd6156a92c7641fa3b3e7b0cfb2c258e5789bf6c
index.js
index.js
var os = require('os') var path = require('path') var homedir = require('os-homedir') function linux (id) { var cacheHome = process.env.XDG_CACHE_HOME || path.join(homedir(), '.cache') return path.join(cacheHome, id) } function darwin (id) { return path.join(homedir(), 'Library', 'Caches', id) } function win32...
var os = require('os') var path = require('path') var homedir = require('os-homedir') function posix (id) { var cacheHome = process.env.XDG_CACHE_HOME || path.join(homedir(), '.cache') return path.join(cacheHome, id) } function darwin (id) { return path.join(homedir(), 'Library', 'Caches', id) } function win32...
Clean up existing OS handling a little
Clean up existing OS handling a little * Avoid fall-through in switch statement. * Improve error message in the case of incompatibility. * Rename linux() function to posix(). * Sort cases alphabetically for improved readability.
JavaScript
mit
LinusU/node-cachedir
3c7d404115288f70c300e0ad26a7f23298ae25fd
index.js
index.js
var stati = [ 'irritable', 'gassy', 'diuretic', 'constipated', 'twisted', 'cramped' // Have another idea? Submit a pull request or issue // https://github.com/itsananderson/gut-status/issues ]; function getStatus() { var index = Math.floor(Math.random() * stati.length); return s...
var stati = [ 'irritable', 'gassy', 'diuretic', 'constipated', 'twisted', 'cramped', 'surly', 'churlish', 'hungry', 'famished' // Have another idea? Submit a pull request or issue // https://github.com/itsananderson/gut-status/issues ]; function getStatus() { var ind...
Add surly, churlish, hungry, and famished
Add surly, churlish, hungry, and famished
JavaScript
mit
itsananderson/gut-status
5dca57f086d68d9b5846f25c2a07d33a80abfa78
index.js
index.js
'use strict'; var tape = require('tape'); var through = require('through2'); var PluginError = require('gulp-util').PluginError; var requireUncached = require('require-uncached'); var PLUGIN_NAME = 'gulp-tape'; var gulpTape = function(opts) { opts = opts || {}; var outputStream = opts.outputStream || process.st...
'use strict'; var tape = require('tape'); var through = require('through2'); var PluginError = require('gulp-util').PluginError; var requireUncached = require('require-uncached'); var PLUGIN_NAME = 'gulp-tape'; var gulpTape = function(opts) { opts = opts || {}; var outputStream = opts.outputStream || process.st...
Call `cb` immediately if `pending` is zero
Call `cb` immediately if `pending` is zero
JavaScript
mit
yuanqing/gulp-tape
b57b340ac0bcc369156fcfe3295dc5e4a54aad55
index.js
index.js
'use strict'; const appPath = require('app-path'); const bundleId = require('bundle-id'); const osxAppVersion = require('osx-app-version'); const appSize = require('app-size'); module.exports = app => { if (process.platform !== 'darwin') { return Promise.reject(new Error('Only OS X is supported')); } if (typeof ...
'use strict'; const appPath = require('app-path'); const bundleId = require('bundle-id'); const osxAppVersion = require('osx-app-version'); const appSize = require('app-size'); module.exports = app => { if (process.platform !== 'darwin') { return Promise.reject(new Error('Only OS X is supported')); } if (typeof ...
Reorder object to make more sense
Reorder object to make more sense
JavaScript
mit
gillstrom/osx-app
de29f2833d776a6405ab9f9fdf10f558ec916c7d
index.js
index.js
'use strict'; /** * Helper to avoid: * var DatasetEditController = require('../../../app/hello/dataset/edit/DatasetEditController'); * Just use rrequire('DatasetEditController') instead! */ var path = require('path'); var rrequire = function (filename) { var absPath = __dirname; var projectRoot = process.cwd();...
'use strict'; /** * Helper to avoid: * var DatasetEditController = require('../../../app/hello/dataset/edit/DatasetEditController'); * Just use rrequire('DatasetEditController') instead! */ var path = require('path'); var callsite = require('callsite'); var rrequire = function (filename) { var absPath = path.dirn...
Use callsite to get path of caller
Use callsite to get path of caller
JavaScript
mit
baelter/require-helper
4bcce86558e7be9e0baadef5e2686229241d5d6b
index.js
index.js
/*! * days <https://github.com/jonschlinkert/days> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ module.exports = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; module.exports.abbr = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; mod...
/*! * days <https://github.com/jonschlinkert/days> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ // English module.exports.en = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; module.exports.en.abbr = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', '...
Update to include multi-language support
Update to include multi-language support Adding French and updating for English
JavaScript
mit
datetime/days
34c1352671382808810760a9908f4d8b1b3d507d
index.js
index.js
var postcss = require('postcss'), color = require('color'); module.exports = postcss.plugin('postcss-lowvision', function () { return function (css) { css.walkDecls('color', function (decl) { var val = decl.value; var rgb = color(val); rgb.rgb(); decl.va...
var postcss = require('postcss'), color = require('color'); module.exports = postcss.plugin('postcss-lowvision', function () { return function (css) { css.walkDecls('color', function (decl) { var val = decl.value; var rgb = color(val); rgb = rgb.rgbArray(); ...
Add text-shadow with used color rgb value
Add text-shadow with used color rgb value
JavaScript
mit
keukenrolletje/postcss-lowvision
75f75e238be54a709a29ddf4aa69adc693f3ef4a
index.js
index.js
module.exports = function (options) { options = options || {} options.property = options.property || 'body' options.stringify = options.stringify || JSON.stringify return function (req, res, next) { req.removeAllListeners('data') req.removeAllListeners('end') if(req.headers['content-length'] !== u...
module.exports = function (options) { options = options || {} options.property = options.property || 'body' options.stringify = options.stringify || JSON.stringify return function (req, res, next) { req.removeAllListeners('data') req.removeAllListeners('end') if(req.headers['content-length'] !== u...
Set content-length in bytes instead of characters
Set content-length in bytes instead of characters
JavaScript
mit
dominictarr/connect-restreamer
11de7f2f5db1b6107626a490cfd7f841a5f29568
src/__tests__/TimeTable.test.js
src/__tests__/TimeTable.test.js
import React from 'react'; import ReactDOM from 'react-dom'; import { shallow } from 'enzyme'; import TimeTable from './../TimeTable.js'; import ErrorMsg from './../ErrorMsg'; import LoadingMsg from './../LoadingMsg'; describe('TimeTable', () => { it('renders without crashing', () => { const div = document.createEl...
import React from 'react'; import ReactDOM from 'react-dom'; import { shallow } from 'enzyme'; import TimeTable from './../TimeTable.js'; import ErrorMsg from './../ErrorMsg'; import LoadingMsg from './../LoadingMsg'; import DepartureInfo from './../DepartureInfo.js'; jest.mock('../APIQuery'); describe('TimeTable', (...
Test that departure infos are rendered.
Test that departure infos are rendered.
JavaScript
mit
kangasta/timetablescreen,kangasta/timetablescreen
1bd01d06e230b4f3a09f3404ac2ba4460a78fb8b
index.js
index.js
'use strict'; module.exports = function (scope) { var rc = require('rc')('npm'); return rc[scope + ':registry'] || rc.registry || 'https://registry.npmjs.org/'; };
'use strict'; module.exports = function (scope) { var rc = require('rc')('npm', {registry: 'https://registry.npmjs.org/'}); return rc[scope + ':registry'] || rc.registry; };
Make it work in browsers
Make it work in browsers
JavaScript
mit
sindresorhus/registry-url,sindresorhus/registry-url
6adbbb3a8de7bd37fe4508d0c8e16a564dd85413
src/app/FacetsWrapper/index.js
src/app/FacetsWrapper/index.js
import React from 'react' import Range from '../Range' import RefinementList from '../RefinementList' import SidebarSection from '../SidebarSection' import './style.scss' function Facets () { return ( <div data-app='facets-wrapper'> <RefinementList title='category' attributeName='category' /> <Refine...
import React from 'react' import Range from '../Range' import RefinementList from '../RefinementList' import SidebarSection from '../SidebarSection' import './style.scss' function Facets () { return ( <div data-app='facets-wrapper'> <RefinementList title='category' attributeName='category' /> <Refine...
Improve mast and fin size facets
Improve mast and fin size facets
JavaScript
mit
windtoday/windtoday-marketplace,windtoday/windtoday-marketplace,windtoday/windtoday-app
997a25099704796203d9c0364c0046e82b028ea9
index.js
index.js
'use strict'; var gutil = require('gulp-util'); var through = require('through2'); var assign = require('object-assign'); var nunjucks = require('nunjucks'); module.exports = function (opts) { return through.obj(function (file, enc, cb) { if (file.isNull()) { cb(null, file); return; } if (file.isStream()...
'use strict'; var gutil = require('gulp-util'); var through = require('through2'); var assign = require('object-assign'); var nunjucks = require('nunjucks'); module.exports = function (opts) { return through.obj(function (file, enc, cb) { if (file.isNull()) { cb(null, file); return; } if (file.isStream()...
Fix wrong options variable assignment
Fix wrong options variable assignment This caused the name options's function to ran only for the first file.
JavaScript
mit
sindresorhus/gulp-nunjucks
3f7358297887dbff61704835a8cf782de9735846
lib/utils/runGulp.js
lib/utils/runGulp.js
const path = require('path'); const execa = require('execa'); const errorHandler = require('./errorHandler'); module.exports = function runGulp() { execa('gulp', [ '--cwd', process.cwd(), '--gulpfile', path.join(__dirname, '../gulpfile.js'), ], { stdio: 'inherit' }, ) .catch(err => erro...
const path = require('path'); const execa = require('execa'); const errorHandler = require('./errorHandler'); module.exports = function runGulp() { execa('node', [ path.join(__dirname, '../../node_modules/.bin/gulp'), '--cwd', process.cwd(), '--gulpfile', path.join(__dirname, '../gulpfile.js'),...
Use bundled gulp instead of global
Use bundled gulp instead of global
JavaScript
mit
strt/bricks
fcb2b86684d814825b3efc4d7b37484482e1a784
index.js
index.js
'use strict'; var bind = require('function-bind'); var define = require('define-properties'); var replace = bind.call(Function.call, String.prototype.replace); var rightWhitespace = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u20...
'use strict'; var bind = require('function-bind'); var define = require('define-properties'); var replace = bind.call(Function.call, String.prototype.replace); var rightWhitespace = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u20...
Fix a bug in node 0.10 (and presumably other browsers) where the zero-width space is erroneously trimmed.
Fix a bug in node 0.10 (and presumably other browsers) where the zero-width space is erroneously trimmed.
JavaScript
mit
es-shims/String.prototype.trimRight,ljharb/String.prototype.trimRight
0d5e4b013ae933aeb42a2c1c630206010c42e8ac
index.js
index.js
'use babel'; import editorconfig from 'editorconfig'; import generateConfig from './commands/generate'; function init(editor) { generateConfig(); if (!editor) { return; } const file = editor.getURI(); if (!file) { return; } editorconfig.parse(file).then(config => { if (Object.keys(config).length === 0...
'use babel'; import editorconfig from 'editorconfig'; import generateConfig from './commands/generate'; function init(editor) { generateConfig(); if (!editor) { return; } const file = editor.getURI(); if (!file) { return; } editorconfig.parse(file).then(config => { if (Object.keys(config).length === 0...
Fix error with operator precedence
Fix error with operator precedence
JavaScript
mit
florianb/atom-editorconfig,sindresorhus/atom-editorconfig,peterblazejewicz/atom-editorconfig
f4644972b893e61bece5f40ec9bbd76fbae61765
index.js
index.js
/** * @typedef {import('unist').Node} Node * @typedef {import('unist').Parent} Parent */ import {modifyChildren} from 'unist-util-modify-children' export const affixEmoticonModifier = modifyChildren(mergeAffixEmoticon) /** * Merge emoticons into an `EmoticonNode`. * * @param {Node} child * @param {number} ind...
/** * @typedef {import('unist').Node} Node * @typedef {import('unist').Parent} Parent */ import {modifyChildren} from 'unist-util-modify-children' export const affixEmoticonModifier = modifyChildren(mergeAffixEmoticon) /** * Merge emoticons into an `EmoticonNode`. * * @param {Node} node * @param {number} inde...
Fix tests for changes in `@types/unist`
Fix tests for changes in `@types/unist`
JavaScript
mit
wooorm/nlcst-affix-emoticon-modifier
9a93e67a36a9618c6f4511d267bf361ea104a07b
js/components/Incident.js
js/components/Incident.js
import React, { PropTypes } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import styles from './Incident.css'; import Map from './Map'; import GridTile from 'material-ui/lib/grid-list/grid-tile'; const Incident = ({ incident }) => ( <ReactCSSTransitionGroup transitionName...
import React, { PropTypes } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import styles from './Incident.css'; import Map from './Map'; import GridTile from 'material-ui/lib/grid-list/grid-tile'; import Paper from 'material-ui/lib/paper'; const Incident = ({ incident }) => ( ...
Add paper for neat effect on incidents
Add paper for neat effect on incidents
JavaScript
mit
nickbabcock/udps,nickbabcock/udps,nickbabcock/udps
cc260e279f5055058471ad101266dd46199b9ae1
public/dist/js/voter-ballot.js
public/dist/js/voter-ballot.js
$(document).ready(function() { $('#ballot_response').submit(function(event) { confirm("Are you sure you want to submit your ballot?"); var sortableList = $("#candidates"); var listElements = sortableList.children(); var listValues = []; for (var i = 0; i < listElemen...
$(document).ready(function() { $('#ballot_response').submit(function(event) { if(confirm("Are you sure you want to submit your ballot?")) { var sortableList = $("#candidates"); var listElements = sortableList.children(); var listValues = []; for (var i = 0; i ...
Update confirm to be if
Update confirm to be if
JavaScript
agpl-3.0
WireShoutLLC/votehaus,WireShoutLLC/votehaus,WireShoutLLC/votehaus,WireShoutLLC/votehaus
47c554a5ffa52d7c2a24ab3143a977edc99e1c8e
main/announcement.js
main/announcement.js
module.exports = { init } var electron = require('electron') var get = require('simple-get') var config = require('../config') var log = require('./log') var ANNOUNCEMENT_URL = config.ANNOUNCEMENT_URL + '?version=' + config.APP_VERSION + '&platform=' + process.platform function init () { get.concat(ANNOUNCE...
module.exports = { init } var electron = require('electron') var get = require('simple-get') var config = require('../config') var log = require('./log') var ANNOUNCEMENT_URL = config.ANNOUNCEMENT_URL + '?version=' + config.APP_VERSION + '&platform=' + process.platform function init () { get.concat(ANNOUNCE...
Support custom window title, main message, details
Announcement: Support custom window title, main message, details
JavaScript
mit
webtorrent/webtorrent-desktop,feross/webtorrent-desktop,feross/webtorrent-app,yciabaud/webtorrent-desktop,yciabaud/webtorrent-desktop,yciabaud/webtorrent-desktop,feross/webtorrent-desktop,feross/webtorrent-app,webtorrent/webtorrent-desktop,michaelgeorgeattard/webtorrent-desktop,feross/webtorrent-desktop,webtorrent/webt...
7e962bb5df10f4740c37501360a8437b952853f7
client/js/main.js
client/js/main.js
//make sure all dependencies are loaded require([ 'es5shim', 'angular', 'json!data/config.json', 'angular-ui-router', 'angular-flash', 'angular-moment', 'angular-sanitize', 'emoji', 'socketio', 'socket', 'jquery', 'jquery-filedrop', 'app', 'services/services', 'controllers/controller...
//make sure all dependencies are loaded require([ 'es5shim', 'angular', 'json!data/config.json', 'angular-ui-router', 'angular-flash', 'angular-moment', 'angular-sanitize', 'emoji', 'socketio', 'socket', 'jquery', 'jquery-filedrop', 'app', 'services/services', 'controllers/controller...
Check for active session before bootstrapping
Check for active session before bootstrapping
JavaScript
mit
rserve/arrangr,rserve/arrangr
363716de3e6996605d2457d1ac8d6b5fa09ad994
lib/PropertyValue.js
lib/PropertyValue.js
const ParserCommon = require('./ParserCommon'); function PropertyValue(xml) { this.Annotations = {}; this.validElements = { }; this.validAttributes = { 'Bool': {bool: true}, 'String': {}, 'Path': {}, 'Property': {alreadyHandeled: true} }; var init = ParserCommon.initEntity.b...
const ParserCommon = require('./ParserCommon'); function PropertyValue(xml) { this.Annotations = {}; this.validElements = { }; this.validAttributes = { 'Bool': {bool: true}, 'String': {}, 'Path': {}, 'Property': {alreadyHandeled: true}, 'EnumMember': {} }; var init = Pa...
Add EnumMember as a valid expression
Add EnumMember as a valid expression
JavaScript
apache-2.0
pboyd04/CSDLParser
299db6b86cdc1434c9ab4ce181a7c58affb36afd
lib/decryptStream.js
lib/decryptStream.js
var crypto = require('crypto'), util = require('util'), Transform = require('stream').Transform; function DecryptStream(options) { if (!(this instanceof DecryptStream)) return new DecryptStream(options); Transform.call(this, options); this.key = options.key; this._decipher = crypto.createDecipheri...
var crypto = require('crypto'), util = require('util'), Transform = require('stream').Transform; function DecryptStream(options) { if (!(this instanceof DecryptStream)) return new DecryptStream(options); Transform.call(this, options); this.key = options.key; this._decipher = crypto.createDecipheri...
Call final() on stream flush.
Call final() on stream flush.
JavaScript
mit
oliviert/node-snapchat
f1aa11423921ee52238330d68f7aa60d9c89d7cf
scripts/autoreload/reload.js
scripts/autoreload/reload.js
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ // <![CDATA[ $(document).ready(function() { $.ajaxSetup({ cache: false }); // This part addresses an IE bug. without it, IE will onl...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ // <![CDATA[ $(document).ready(function() { $.ajaxSetup({ cache: false }); // This part addresses an IE bug. without it, IE will onl...
Change cache-control from 60s expired to 86.400 (1 day)
Change cache-control from 60s expired to 86.400 (1 day)
JavaScript
apache-2.0
solusi-integral/reserv,solusi-integral/reserv,solusi-integral/reserv,solusi-integral/reserv
5b50d1999c4dc41f7b47b47df24461fd7e098396
agent.js
agent.js
/** * Helper module used to alias browser names parsed out of the 'useragent' * module to the equivalent names used in the config.json for each polyfill. * Should always be lowercase values as it makes comparisons easier. */ var agentlist = { "chromium": "chrome", "mobile safari": "safari ios" }; /** * Return...
/** * Helper module used to alias browser names parsed out of the 'useragent' * module to the equivalent names used in the config.json for each polyfill. * Should always be lowercase values as it makes comparisons easier. */ var agentlist = { "chromium": "chrome", "mobile safari": "safari ios", "firefox beta": ...
Add fx beta and mobile safari
Add fx beta and mobile safari
JavaScript
mit
kdzwinel/polyfill-service,jonathan-fielding/polyfill-service,mcshaz/polyfill-service,JakeChampion/polyfill-service,mcshaz/polyfill-service,jonathan-fielding/polyfill-service,kdzwinel/polyfill-service,jonathan-fielding/polyfill-service,JakeChampion/polyfill-service,mcshaz/polyfill-service,kdzwinel/polyfill-service
8f98c3375a4f0d3172ad1b7f34112ebe7cb5280e
src/firefox/lib/url-handler.js
src/firefox/lib/url-handler.js
var { Cc, Ci, Cr } = require('chrome'); exports.setup = function(panel) { var observer = { observe: function (subject, topic, data) { if ('http-on-modify-request' !== topic) { return; } subject.QueryInterface(Ci.nsIHttpChannel); var url = subject.URI.spec if (!/https:\/\/w...
var { Cc, Ci, Cr } = require('chrome'); exports.setup = function(panel) { var observer = { observe: function (subject, topic, data) { if ('http-on-modify-request' !== topic) { return; } subject.QueryInterface(Ci.nsIHttpChannel); var url = subject.URI.spec if (!/https:\/\/w...
Fix a small mistake in how opening the uProxy panel is done in Firefox
Fix a small mistake in how opening the uProxy panel is done in Firefox
JavaScript
apache-2.0
jpevarnek/uproxy,roceys/uproxy,roceys/uproxy,IveWong/uproxy,chinarustin/uproxy,itplanes/uproxy,chinarustin/uproxy,MinFu/uproxy,roceys/uproxy,itplanes/uproxy,qida/uproxy,MinFu/uproxy,itplanes/uproxy,dhkong88/uproxy,MinFu/uproxy,qida/uproxy,itplanes/uproxy,MinFu/uproxy,IveWong/uproxy,chinarustin/uproxy,qida/uproxy,qida/u...
33e91cd319b71c6960a663a1462aee291825f753
src/js/markovWordsetBuilder.js
src/js/markovWordsetBuilder.js
'use strict'; var markovWordsetBuilder = (function() { var max_words = 80000; function stripChars(word) { return word.replace(/[^A-Za-z0-9\s\.\!\?\'\,\—\-]/gi, ''); } function addWords(words, delimiter) { var wordSet = []; var aw = words.split(delimiter); var len = aw.length; if (len > max_words) len...
'use strict'; var markovWordsetBuilder = (function() { var max_words = 80000; function transformWord(word) { word = word.replace("Mr.", "Mr"); word = word.replace("Mrs.", "Mrs"); return word.replace(/[^A-Za-z0-9\s\.\!\?\'\,\—\-]/gi, ''); } function addWords(words, delimiter) { var wordSet = []; var a...
Rename stripChars() to transformWord(), and add some transforms to it (drop period from "Mr." and "Mrs.")
Rename stripChars() to transformWord(), and add some transforms to it (drop period from "Mr." and "Mrs.")
JavaScript
bsd-3-clause
petejscott/jsMarkov
cdfe747966fed67ea9ad59ff8ad036984d986839
util/load-config.js
util/load-config.js
"use strict"; var fs = require("fs"); var yaml = require("js-yaml"); module.exports = function loadConfig () { var config = yaml.safeLoad(fs.readFileSync(".titorrc", "utf8")); if (typeof config !== "object") throw Error("Invalid .titorrc"); if (typeof config.export !== "string") throw Error("Invalid or mi...
"use strict"; var sh = require("shelljs"); sh.set("-e"); var yaml = require("js-yaml"); module.exports = function loadConfig () { var config = yaml.safeLoad(sh.cat(".titorrc")); if (typeof config !== "object") throw Error("Invalid .titorrc"); if (typeof config.export !== "string") throw Error("Invalid o...
Use shelljs instead of fs for consistency
Use shelljs instead of fs for consistency
JavaScript
mit
meeber/titor,meeber/titor
08f877cb5d0434e6d2ef605dceb7e7c53d0015a4
server/build/loaders/polyfill-loader.js
server/build/loaders/polyfill-loader.js
import { getOptions, stringifyRequest } from 'loader-utils' module.exports = function (content, sourceMap) { this.cacheable() const options = getOptions(this) const { buildId, modules } = options this.callback(null, ` // Webpack Polyfill Injector function main() {${modules.map(module => `\n require(${st...
import { getOptions, stringifyRequest } from 'loader-utils' module.exports = function (content, sourceMap) { this.cacheable() const options = getOptions(this) const { buildId, modules } = options this.callback(null, ` // Webpack Polyfill Injector function main() {${modules.map(module => `\n require(${st...
Use next public path for polyfill loader
Use next public path for polyfill loader
JavaScript
mit
kpdecker/next.js
419cc5591ecd9f10e8036b99cef314ee879c2395
test/util/atomHelper.js
test/util/atomHelper.js
if (typeof global.atom === 'undefined') { global.atom = { notifications: { addError: function (desc, obj) { return new Promise(function (resolve, reject) { console.log('wtf', obj) reject(obj.error) }) } } } }
if (typeof global.atom === 'undefined') { global.atom = { notifications: { addError: function (desc, obj) { return new Promise(function (resolve, reject) { reject(obj.error) }) } } } }
Stop logging error notifications in tests
Stop logging error notifications in tests At least with Node.js v6 these unhandled rejections get reported to the console already.
JavaScript
isc
gustavnikolaj/linter-js-standard-engine
9afaf5672c012d944416e984b62e80e7f3bfbcd9
config/default.js
config/default.js
/* eslint key-spacing:0 spaced-comment:0 */ const path = require('path'); const ip = require('ip'); const projectBase = path.resolve(__dirname, '..'); /************************************************ /* Default configuration *************************************************/ module.exports = { env : process.env.NO...
/* eslint key-spacing:0 spaced-comment:0 */ const path = require('path'); const ip = require('ip'); const projectBase = path.resolve(__dirname, '..'); /************************************************ /* Default configuration *************************************************/ var configuration = { env : process.env...
Add root path to configuration
Add root path to configuration
JavaScript
mit
Picta-it/barebare,Picta-it/barebare
180173646ed757adf89a0fd4753cd9366cae481e
lib/persistent_session.js
lib/persistent_session.js
Session.old_set = Session.set; Session.set = function _psSet(key, value, persist) { if (persist === undefined) { persist = true; } Session.old_set(key, value); if (persist) { if (value === undefined) { value = null; // we can't pass (key, undefined) to amplify.store() to unset a value } am...
Session.old_set = Session.set; Session.set = function _psSet(key, value, persist) { if (persist === undefined) { persist = true; } Session.old_set(key, value); if (persist) { if (value === undefined) { value = null; // we can't pass (key, undefined) to amplify.store() to unset a value } am...
Add comment about unused get call
Add comment about unused get call
JavaScript
mit
ryepdx/meteor-persistent-session,okgrow/meteor-persistent-session
f59ee0289334a31336aadfae02cb28ebfc0ebbc8
server/services/CardService.js
server/services/CardService.js
const _ = require('underscore'); const logger = require('../log.js'); class CardService { constructor(db) { this.cards = db.get('cards'); this.packs = db.get('packs'); } replaceCards(cards) { return this.cards.remove({}) .then(() => this.cards.insert(cards)); } ...
const _ = require('underscore'); const logger = require('../log.js'); class CardService { constructor(db) { this.cards = db.get('cards'); this.packs = db.get('packs'); } replaceCards(cards) { return this.cards.remove({}) .then(() => this.cards.insert(cards)); } ...
Fix role restriction validation bug
Fix role restriction validation bug
JavaScript
mit
jeremylarner/ringteki,gryffon/ringteki,jeremylarner/ringteki,jeremylarner/ringteki,gryffon/ringteki,gryffon/ringteki
df01fedc57674fb198c3a80889fabe546178a627
signup/static/invite-dialog.js
signup/static/invite-dialog.js
if (!document.createElement('dialog').showModal) { var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'static/dialog-polyfill.css'; var script = document.createElement('script'); script.src = 'static/dialog-polyfill.js'; var head = document.getElementsByTagName('head')[0]; hea...
window.addEventListener("load", function() { if (!document.createElement('dialog').showModal) { var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'static/dialog-polyfill.css'; var script = document.createElement('script'); script.src = 'static/dialog-polyfill.js'; ...
Fix JS error in invite dialog button
Fix JS error in invite dialog button
JavaScript
apache-2.0
notriddle/aelita,notriddle/aelita,notriddle/aelita,notriddle/aelita,notriddle/aelita
5e73ba5ca42329defbf277327cb21f2f1830c7ba
assets/js/review.js
assets/js/review.js
( function( $ ) { 'use strict'; $( function() { var body = $( 'body' ), writeReview = $( '.write-a-review' ); // If review link exists. if ( writeReview.length ) { // On click trigger review window. writeReview.on( 'click', function( e ) { // Prevent default browser action. e.preve...
( function( $ ) { 'use strict'; $( function() { var body = $( 'body' ), writeReview = $( '.write-a-review' ), singleReview = $( '.single-re-google-reviews' ); // If review link exists. if ( writeReview.length ) { // On click trigger review window. writeReview.on( 'click', function( e )...
Update JS to prepend html from CPT to body.
Update JS to prepend html from CPT to body.
JavaScript
mit
xBLADEx/re-google-review,xBLADEx/re-google-review
bfea8583060472a9d1996d59a4fe0128375bdacd
rendering/cases/layer-group/main.js
rendering/cases/layer-group/main.js
import Map from '../../../src/ol/Map.js'; import View from '../../../src/ol/View.js'; import {Group as LayerGroup, Tile as TileLayer} from '../../../src/ol/layer.js'; import XYZ from '../../../src/ol/source/XYZ'; new Map({ target: 'map', view: new View({ center: [0, 0], zoom: 3 }), layers: new LayerGro...
import Map from '../../../src/ol/Map.js'; import View from '../../../src/ol/View.js'; import {Group as LayerGroup, Tile as TileLayer} from '../../../src/ol/layer.js'; import XYZ from '../../../src/ol/source/XYZ.js'; new Map({ target: 'map', view: new View({ center: [0, 0], zoom: 3 }), layers: new Layer...
Add missing extension in import
Add missing extension in import
JavaScript
bsd-2-clause
geekdenz/ol3,adube/ol3,ahocevar/ol3,geekdenz/openlayers,geekdenz/ol3,openlayers/openlayers,bjornharrtell/ol3,ahocevar/openlayers,geekdenz/openlayers,stweil/openlayers,adube/ol3,adube/ol3,stweil/ol3,ahocevar/openlayers,oterral/ol3,ahocevar/ol3,tschaub/ol3,ahocevar/ol3,bjornharrtell/ol3,ahocevar/openlayers,openlayers/ope...
ab5432a99e858fe0bd1d82f09c2c1ac51b819138
packages/meteor-tool/package.js
packages/meteor-tool/package.js
Package.describe({ summary: "The Meteor command-line tool", version: '1.0.27-rc0' }); Package.includeTool();
Package.describe({ summary: "The Meteor command-line tool", version: '1.0.27-rc1' }); Package.includeTool();
Bump meteor-tool version (not totally sure why... is Blaze used in the tool?)
Bump meteor-tool version (not totally sure why... is Blaze used in the tool?)
JavaScript
mit
udhayam/meteor,mjmasn/meteor,ashwathgovind/meteor,somallg/meteor,yinhe007/meteor,papimomi/meteor,chiefninew/meteor,udhayam/meteor,dev-bobsong/meteor,brdtrpp/meteor,codedogfish/meteor,jirengu/meteor,jirengu/meteor,DAB0mB/meteor,Puena/meteor,aleclarson/meteor,IveWong/meteor,codedogfish/meteor,jenalgit/meteor,chasertech/m...
d55b8a04a1618e570c0bc3f3f266a2c1a96f860a
static/scripts/teamOverview.js
static/scripts/teamOverview.js
$(document).ready(() => { console.log('event bla'); $('.section-teamInvitations a').click(function handler(e) { e.stopPropagation(); e.preventDefault(); const id = $(this).parents('.sc-card-wrapper').data('id'); console.log(id, $(this).parents('.sc-card-wrapper')); $.ajax({ url: `/teams/invitation/acce...
$(document).ready(() => { $('.section-teamInvitations a').click(function handler(e) { e.stopPropagation(); e.preventDefault(); const id = $(this).parents('.sc-card-wrapper').data('id'); $.ajax({ url: `/teams/invitation/accept/${id}`, method: 'GET', }).done(() => { $.showNotification('Einladung erf...
Implement click handler for team card
Implement click handler for team card
JavaScript
agpl-3.0
schul-cloud/schulcloud-client,schul-cloud/schulcloud-client,schul-cloud/schulcloud-client
1333b6206866a2e1a8f3c4ce038f97f046105701
app/actions/index.js
app/actions/index.js
'use strict'; export const TOGGLE_EVENT_MODAL = 'TOGGLE_EVENT_MODAL'; export const toggleEventModal = () => ({ type: TOGGLE_EVENT_MODAL });
'use strict'; export const LOG_EVENT_MODAL_DATA = 'LOG_EVENT_MODAL_DATA'; export const TOGGLE_EVENT_MODAL = 'TOGGLE_EVENT_MODAL'; export const logEventModalData = (payload) => ({ type: LOG_EVENT_MODAL_DATA, payload }); export const toggleEventModal = () => ({ type: TOGGLE_EVENT_MODAL });
Include Redux action for managing Modal's data
feat: Include Redux action for managing Modal's data
JavaScript
mit
IsenrichO/react-timeline,IsenrichO/react-timeline
59f1f7b14072ce7757b43f16d87d83db718a5bfb
gulpfile.js/tasks/javascript.js
gulpfile.js/tasks/javascript.js
'use strict'; // Modules // =============================================== var gulp = require('gulp'), paths = require('../paths'), gutil = require('gulp-util'), browserSync = require("browser-sync"), changed = require('gulp-changed'); // Сopy javascript to build folder // ======================================...
'use strict'; // Modules // =============================================== var gulp = require('gulp'), paths = require('../paths'), gutil = require('gulp-util'), browserSync = require("browser-sync"), debug = require('gulp-debug'), changed = require('gulp-changed'); // Сopy javascript to build folder // ======...
Add info in js task
Add info in js task
JavaScript
mit
ilkome/frontend,ilkome/frontend,ilkome/front-end,ilkome/front-end
1b8bbca8489cea7a697ccfac935604fb3c41f36b
build.js
build.js
({ baseUrl: 'src', name: '../node_modules/almond/almond', include: ['quick-switcher'], out: 'dist/quick-switcher.min.js', wrap: { startFile: '.almond/start.frag', endFile: '.almond/end.frag', }, paths: { 'text': '../node_modules/requirejs-text/text', }, });
({ baseUrl: 'src', name: '../node_modules/almond/almond', include: ['quick-switcher'], out: 'dist/quick-switcher.min.js', wrap: { startFile: '.almond/start.frag', endFile: '.almond/end.frag', }, paths: { 'text': '../node_modules/text/text', }, });
Fix path to requirejs-text plugin
Fix path to requirejs-text plugin
JavaScript
mit
lightster/quick-switcher,lightster/quick-switcher,lightster/quick-switcher
60ee494ac85e0d3d15462b04ce27f3f6f7de2a5b
lib/ui/src/containers/preview.js
lib/ui/src/containers/preview.js
import React from 'react'; import { Preview } from '@storybook/components'; import memoize from 'memoizerific'; import { Consumer } from '../core/context'; const createPreviewActions = memoize(1)(api => ({ toggleFullscreen: () => api.toggleFullscreen(), })); const createProps = (api, layout, location, path, storyId...
import React from 'react'; import { Preview } from '@storybook/components'; import memoize from 'memoizerific'; import { Consumer } from '../core/context'; const createPreviewActions = memoize(1)(api => ({ toggleFullscreen: () => api.toggleFullscreen(), })); const createProps = (api, layout, location, path, storyId...
FIX failure to pass location
FIX failure to pass location
JavaScript
mit
kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook
ce3a7bb211bbcadd3b2483d5a88c0f471003d06c
function-bind-polyfill.js
function-bind-polyfill.js
if ( ! Function.prototype.bind) { Function.prototype.bind = function bind(that) { // .length is 1 var target = this; if (typeof target != "function") { throw new TypeError("Function.prototype.bind called on incompatible " + target); } var args = Array.prototype.slice.call...
if ( ! Function.prototype.bind) { Function.prototype.bind = function bind(that) { // .length is 1 var target = this; if (typeof target !== "function") { throw new TypeError("Function.prototype.bind called on incompatible " + target); } var args = Array.prototype.slice.cal...
Make jshint happy with new bind polyfill
Make jshint happy with new bind polyfill
JavaScript
mit
princed/karma-chai-plugins
93b2510b8f6125eeaf9dbb5aa6e10cc5696c228c
webpack.build.config.js
webpack.build.config.js
const commonConfig = require("./webpack.common.config"); const nodeExternals = require("webpack-node-externals"); const merge = (...objs) => require("deepmerge").all(objs, {arrayMerge: (arr1, arr2) => arr1.concat(arr2) }); const combinedConfig = merge({}, commonConfig, { output: { path: "./dist", libraryTarget: "...
const path = require("path"); const commonConfig = require("./webpack.common.config"); const nodeExternals = require("webpack-node-externals"); const merge = (...objs) => require("deepmerge").all(objs, {arrayMerge: (arr1, arr2) => arr1.concat(arr2) }); const combinedConfig = merge({}, commonConfig, { output: { path...
Fix absolute path requirement for output.path since webpack 2.3.0
Fix absolute path requirement for output.path since webpack 2.3.0
JavaScript
mit
aeinbu/webpack-application-template,aeinbu/webpack-application-template
dcd67ec9df7eeab92557e74aec127efb50a3a1ac
bin/babel-minify.js
bin/babel-minify.js
var code = ''; var replaceOptIndex = process.argv.indexOf('--replace'); if (replaceOptIndex !== -1) { var replacements = []; process.argv[replaceOptIndex + 1].split(',').forEach(function(record) { var tmp = record.split(':'); var id = tmp[0]; var repl = tmp[1]; var member; if (id.match(/\./)) {...
// TODO
Remove bin (it's fb-specific api)
Remove bin (it's fb-specific api)
JavaScript
mit
babel/babili,babel/babili,garyjN7/babili,garyjN7/babili,garyjN7/babili,babel/babili
612a0782d71884c1f43e53083d2e02d3212a88ca
config/ember-try.js
config/ember-try.js
module.exports = { scenarios: [ { name: 'default', dependencies: { } }, { name: 'ember-1.10', dependencies: { ember: '~1.10.0' } }, { name: 'ember-1.11', dependencies: { ember: '~1.11.0' } }, { name: 'ember-1.12', ...
module.exports = { scenarios: [ { name: 'default', dependencies: { } }, { name: 'ember-1.10', dependencies: { ember: '~1.10.0' } }, { name: 'ember-1.11', dependencies: { ember: '~1.11.0' } }, { name: 'ember-1.12', ...
Test against ember 2.0.x and 2.1.x in CI
Test against ember 2.0.x and 2.1.x in CI
JavaScript
mit
mike-north/ember-load,mike-north/ember-load,mike-north/ember-load
4ac00c206641644670113cee3dff506bd9b5ece6
bufferjs/indexOf.js
bufferjs/indexOf.js
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/ (function () { "use strict"; /** * A naiive 'Buffer.indexOf' function. Requires both the * needle and haystack to be Buffer instances. */ function indexOf(haystack, needle, i) { if (...
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/ (function () { "use strict"; /** * A naiive 'Buffer.indexOf' function. Requires both the * needle and haystack to be Buffer instances. */ function indexOf(haystack, needle, i) { if (...
Use array index instead of Buffer.get
Use array index instead of Buffer.get Buffer.get was depracted in 2013 [1] and removed entirely in Node 6 [2]. Closes #13. [1] https://github.com/nodejs/node/issues/4587 [2] https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6#buffer
JavaScript
mit
coolaj86/node-bufferjs
1782ff515a8d4ddd1fcad495cadb9ce27eba361f
test/resources/BadConfigSuite/config.js
test/resources/BadConfigSuite/config.js
module.exports = { build: function(promise, promiseTrigger) { setTimeout(function() { promise.reject(new Error('boom')); }, 0); return promise.promise; } }
module.exports = { build: function(promise) { setTimeout(function() { promise.reject(new Error('boom')); }, 0); return promise.promise; } }
Remove obsolete promise trigger in test
Remove obsolete promise trigger in test
JavaScript
agpl-3.0
MattiSG/Watai,MattiSG/Watai
3ef6ecdaaf556dd67d82275883e0c9cd344e9fa8
connectors/v2/odnoklassniki.js
connectors/v2/odnoklassniki.js
'use strict'; /* global Connector */ Connector.playerSelector = 'body'; Connector.artistSelector = '.mus_player_artist'; Connector.trackSelector = '.mus_player_song'; Connector.isPlaying = function () { return $('#topPanelMusicPlayerControl').hasClass('toolbar_music-play__active'); };
'use strict'; /* global Connector */ var INFO_CURRENT_TIME = 1; var INFO_DURATION = 2; Connector.playerSelector = 'body'; Connector.artistSelector = '.mus_player_artist'; Connector.trackSelector = '.mus_player_song'; Connector.getCurrentTime = function() { return getTimeInfo(INFO_CURRENT_TIME); }; Connector.get...
Add current time/duration processing to Odnoklassniki connector
Add current time/duration processing to Odnoklassniki connector
JavaScript
mit
galeksandrp/web-scrobbler,alexesprit/web-scrobbler,carpet-berlin/web-scrobbler,david-sabata/web-scrobbler,fakelbst/Chrome-Last.fm-Scrobbler,david-sabata/web-scrobbler,galeksandrp/web-scrobbler,alexesprit/web-scrobbler,Paszt/web-scrobbler,inverse/web-scrobbler,usdivad/web-scrobbler,carpet-berlin/web-scrobbler,ex47/web-s...
70e12c9f72267b70cf19d39913431a3a1315ec3d
app/Config.js
app/Config.js
'use strict'; module.exports = Config; Config.$inject = ['$stateProvider', '$urlRouterProvider', '$anchorScrollProvider']; function Config($stateProvider, $urlRouterProvider, $anchorScrollProvider) { $anchorScrollProvider.disableAutoScrolling(); $urlRouterProvider.otherwise('/dashboard/profile'); $stateProv...
'use strict'; module.exports = Config; Config.$inject = ['$stateProvider', '$urlRouterProvider', '$uiViewScrollProvider']; function Config($stateProvider, $urlRouterProvider, $uiViewScrollProvider) { $uiViewScrollProvider.useAnchorScroll(); $urlRouterProvider.otherwise('/dashboard/profile'); $stateProvider ...
Fix the dumb scrolling issue
Fix the dumb scrolling issue
JavaScript
mit
failpunk/angular-playground,failpunk/angular-playground
a3403a51a21ceade309af191278215c4c5244e69
app/components/gravatar-image.js
app/components/gravatar-image.js
import Ember from 'ember'; export default Ember.Component.extend({ size: 250, email: '', alt: '', imgClass: '', gravatarUrl: function() { var email = this.get('email'), size = this.get('size'); return '//www.gravatar.com/avatar/' + md5(email) + '?s=' + size; }.property('email', 'size'), ...
import Ember from 'ember'; export default Ember.Component.extend({ size: 250, email: '', alt: '', imgClass: '', default: '', gravatarUrl: function() { var email = this.get('email'), size = this.get('size'), def = this.get('default'); return '//www.gravatar.com/avatar/' + md5(email...
Add property for default images.
Add property for default images.
JavaScript
mit
johnotander/ember-cli-gravatar,johnotander/ember-cli-gravatar,nightsh/ember-cli-libravatar,nightsh/ember-cli-libravatar