commit
stringlengths
40
40
old_file
stringlengths
4
236
new_file
stringlengths
4
236
old_contents
stringlengths
1
3.26k
new_contents
stringlengths
16
4.43k
subject
stringlengths
16
624
message
stringlengths
17
3.29k
lang
stringclasses
5 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
bc0211568aa9ce77b4156346cf70dc76348e923e
src/gutiBot.js
src/gutiBot.js
"use strict"; const slack = require('./utils/slackUtils'); const axios = require('axios'); function _ok(response) { return response.status(200); } function respondOk(response) { return _ok(response).end(); } function respondWith(response, message) { const payload = slack.outgoingWebhook.createResponse(message...
"use strict"; const slack = require('./utils/slackUtils'); const axios = require('axios'); function _ok(response) { return response.status(200); } function _getIncomingWebhookUrl() { return process.env.SLACK_INCOMING_WEBHOOK_URL; } function _getBotUserApiToken() { return process.env.SLACK_BOT_USER_API_TOKEN; ...
Allow Gutibot to supply incoming hook url
Allow Gutibot to supply incoming hook url
JavaScript
mit
awseward/silly-slacker,awseward/gutibot
846949d03b2567c591fe284f7ef201de60324578
src/js/math.js
src/js/math.js
import * as THREE from 'three'; export function randomPointOnSphere( vector = new THREE.Vector3() ) { const theta = 2 * Math.PI * Math.random(); const u = 2 * Math.random() - 1; const v = Math.sqrt( 1 - u * u ); return vector.set( v * Math.cos( theta ), v * Math.sin( theta ), u ); } export func...
import * as THREE from 'three'; export function randomPointOnSphere( vector = new THREE.Vector3() ) { const theta = 2 * Math.PI * Math.random(); const u = 2 * Math.random() - 1; const v = Math.sqrt( 1 - u * u ); return vector.set( v * Math.cos( theta ), v * Math.sin( theta ), u ); } export func...
Remove custom 1D lerp() function.
Remove custom 1D lerp() function. THREE.Math.lerp() was added in three.js r82.
JavaScript
mit
razh/flying-machines,razh/flying-machines
415e6315f263345c3f06bcc3d33c6403fd1cfed3
src/js/main.js
src/js/main.js
let dictionary = new Dictionary(); let httpRequest = new HttpRequest(); httpRequest.get(dictionary.randomUrl, function(o) { console.log(o) });
let dictionary = new Dictionary(); let httpRequest = new HttpRequest(); //(Math.random() * (max - min) + min) let interval = (Math.random() * (10000 - 5000)) + 5000; window.setInterval(function() { let url = dictionary.randomUrl; httpRequest.get(url); }, interval);
Set random 5-10 second interval
Set random 5-10 second interval
JavaScript
mit
brat-corp/applesauce,brat-corp/applesauce
9ff5270aa8c75a56df883a7b734156d2f8eded99
client/src/store/rootReducer.js
client/src/store/rootReducer.js
import { reducer as formReducer } from 'redux-form'; import { combineReducers } from 'redux'; import { routerReducer } from 'react-router-redux'; import { organization, starredBoard, notification, modals, board, home } from '../app/routes/home/modules/index'; import { signUp } from '../app/routes/signUp/module...
import { reducer as formReducer } from 'redux-form'; import { combineReducers } from 'redux'; import { routerReducer } from 'react-router-redux'; import { organization, starredBoard, notification, modals, board, home } from '../app/routes/home/modules/index'; import { signUp } from '../app/routes/signUp/module...
Reset state when user logs out
Reset state when user logs out
JavaScript
mit
Madmous/madClones,Madmous/madClones,Madmous/Trello-Clone,Madmous/madClones,Madmous/Trello-Clone,Madmous/Trello-Clone,Madmous/madClones
b78fe2c8157e90cea5535189b63120f4608b75b9
src/js/AppRouter.js
src/js/AppRouter.js
define([ "backbone", "jquery", "view/HomeView", "collection/Presentation", "view/PresentationView", "model/Slide", "view/SlideView" ], function (Backbone, $, HomeView, Presentation, PresentationView, Slide, SlideView) { return Backbone.Router.extend({ routes: { "home...
define([ "backbone", "jquery", "view/HomeView", "collection/Presentation", "view/PresentationView", "model/Slide", "view/SlideView" ], function (Backbone, $, HomeView, Presentation, PresentationView, Slide, SlideView) { var presentation = new Presentation(); return Backbone.Router....
Edit slides by finding them from the collection
Edit slides by finding them from the collection
JavaScript
mit
pads/yap,pads/yap
82a6130b3ca36cf474959ea882e3910d4135d283
src/featureExtractors.js
src/featureExtractors.js
import rms from './extractors/rms'; import energy from './extractors/energy'; import spectralSlope from './extractors/spectralSlope'; import spectralCentroid from './extractors/spectralCentroid'; import spectralRolloff from './extractors/spectralRolloff'; import spectralFlatness from './extractors/spectralFlatness'; im...
import rms from './extractors/rms'; import energy from './extractors/energy'; import spectralSlope from './extractors/spectralSlope'; import spectralCentroid from './extractors/spectralCentroid'; import spectralRolloff from './extractors/spectralRolloff'; import spectralFlatness from './extractors/spectralFlatness'; im...
Modify export to allow importing selectively
Modify export to allow importing selectively
JavaScript
mit
meyda/meyda,hughrawlinson/meyda,meyda/meyda,meyda/meyda
4dbb60abd9df648f4a963f6584f4090b39b8caa3
lib/poet.js
lib/poet.js
var fs = require('fs'), _ = require('underscore'), createTemplates = require('./poet/templates'), createHelpers = require('./poet/helpers'), routes = require('./poet/routes'), methods = require('./poet/methods'), utils = require('./poet/utils'), method = utils.method; function Poet (app, options) { t...
var fs = require('fs'), _ = require('underscore'), createTemplates = require('./poet/templates'), createHelpers = require('./poet/helpers'), routes = require('./poet/routes'), methods = require('./poet/methods'), utils = require('./poet/utils'), method = utils.method; function Poet (app, options) { t...
Remove method that was vestigial from pre-1.0.0 release
Remove method that was vestigial from pre-1.0.0 release
JavaScript
mit
Nayar/poet,r14r/fork_nodejs_poet,jhuang314/poet,jhuang314/poet,r14r/fork_nodejs_poet,jsantell/poet,Nayar/poet,jsantell/poet
d90307b810d5a6952f969935b0b6275776c1e17a
app/assets/javascripts/ping.js
app/assets/javascripts/ping.js
var Pinger = { }; // http://stackoverflow.com/a/573784 Pinger.getPing = function(target, callback) { var start; var client = Pinger.getClient(); // xmlhttprequest object client.onreadystatechange = function() { if (client.readyState >= 2) { // request received lag_ms = Pinger.pingDone(start); //handle ...
var Pinger = { seq: 0 }; // http://stackoverflow.com/a/573784 Pinger.getPing = function(target, callback) { var start; var client = Pinger.getClient(); // xmlhttprequest object client.onreadystatechange = function() { if (client.readyState >= 2) { // request received lag_ms = Pinger.pingDone(start); ...
Use sequence number instead of timestamp to avoid cache
Use sequence number instead of timestamp to avoid cache
JavaScript
mit
zunda/ping,zunda/ping,zunda/ping
2f1f3e808af300a633a1435c425d2f23550e5211
lib/ember-pusher/bindings.js
lib/ember-pusher/bindings.js
var global = (typeof window !== 'undefined') ? window : {}, Ember = global.Ember; var Bindings = Ember.Mixin.create({ needs: 'pusher', init: function() { var pusherController, target; this._super(); if(!this.PUSHER_SUBSCRIPTIONS) { return; } pusherController = this.get('controllers.pusher'); ...
var global = (typeof window !== 'undefined') ? window : {}, Ember = global.Ember; var Bindings = Ember.Mixin.create({ needs: 'pusher', init: function() { var pusherController, target; this._super(); if(!this.PUSHER_SUBSCRIPTIONS) { return; } pusherController = this.get('controllers.pusher'); ...
Fix improper grab of the pusher controller in unwire
Fix improper grab of the pusher controller in unwire
JavaScript
mit
jamiebikies/ember-pusher,mmun/ember-pusher,mmun/ember-pusher,jamiebikies/ember-pusher
415d3ab16903f58293aaa09cc1b465686cdd5332
app/lib/process.js
app/lib/process.js
const Promise = require('bluebird') const { exec } = require('child_process') Promise.config({ cancellation: true, }) class Process { static execute (script, options = {}) { return new Promise((resolve, reject, onCancel) => { const cmd = exec(script, (error, stdout, stderr) => { if (error) { ...
const Promise = require('bluebird') const { exec } = require('child_process') Promise.config({ cancellation: true, }) class Process { static execute (script, userOptions = {}) { const options = Object.assign({}, { cwd: process.cwd(), env: process.env, }, userOptions) return new Promise((re...
Allow user scripts to execute in their directories.
Allow user scripts to execute in their directories.
JavaScript
mit
tinytacoteam/zazu,tinytacoteam/zazu
81cea94ac6192477a0750be60be5d225ab644ff2
src/tedious.js
src/tedious.js
'use strict'; module.exports.BulkLoad = require('./bulk-load'); module.exports.Connection = require('./connection'); module.exports.Request = require('./request'); module.exports.library = require('./library'); module.exports.TYPES = require('./data-type').typeByName; module.exports.ISOLATION_LEVEL = require('./trans...
'use strict'; module.exports.BulkLoad = require('./bulk-load'); module.exports.Connection = require('./connection'); module.exports.Request = require('./request'); module.exports.library = require('./library'); module.exports.ConnectionError = require('./errors').ConnectionError; module.exports.RequestError = require...
Add ConnectionError and RequestError to module.exports
Add ConnectionError and RequestError to module.exports
JavaScript
mit
tediousjs/tedious,tediousjs/tedious,pekim/tedious
b2d5054e5810ab94b0f42eb582af05efd366e8cd
app/util/logger.js
app/util/logger.js
import { GOOGLE_ANALYTICS_ID } from '../AppSettings'; import { GoogleAnalyticsTracker } from 'react-native-google-analytics-bridge'; let tracker = new GoogleAnalyticsTracker(GOOGLE_ANALYTICS_ID); /** * A module containing logging helper functions * @module util/logger */ module.exports = { /** * Send a log mes...
import { GOOGLE_ANALYTICS_ID } from '../AppSettings'; import { GoogleAnalyticsTracker } from 'react-native-google-analytics-bridge'; let tracker = new GoogleAnalyticsTracker(GOOGLE_ANALYTICS_ID); /** * A module containing logging helper functions * @module util/logger */ module.exports = { /** * Send a log mes...
Add google event tracking capability
Add google event tracking capability
JavaScript
mit
UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile
0c0e961f1d9ff4f44f2c593971a5235418c09390
index.js
index.js
var gulp = require('gulp'); var elixir = require('laravel-elixir'); var karma = require('karma').server; var _ = require('underscore'); var gutils = require('gulp-util'); var task = elixir.Task; function isTddOrWatchTask() { return gutils.env._.indexOf('watch') > -1 || gutils.env._.indexOf('tdd') > -1; } elixir....
var gulp = require('gulp'); var elixir = require('laravel-elixir'); var KarmaServer = require('karma').Server; var _ = require('underscore'); var gutils = require('gulp-util'); var task = elixir.Task; function isTddOrWatchTask() { return gutils.env._.indexOf('watch') > -1 || gutils.env._.indexOf('tdd') > -1; } e...
Use Karma 0.14 style programmatic calling
Use Karma 0.14 style programmatic calling Fixes https://github.com/olyckne/laravel-elixir-karma/issues/2
JavaScript
mit
olyckne/laravel-elixir-karma
48011046ae3904c2818b311e8cd0e474505a206c
index.js
index.js
'use strict'; const express = require('express'); const moment = require('moment'); const app = express(); const port = process.argv[2] || 3000; app.get('/:timestamp', (request, response) => { const timestamp = request.params.timestamp; let result = {}; if (moment.unix(timestamp).isValid()) { result = { ...
'use strict'; const express = require('express'); const moment = require('moment'); const app = express(); const port = process.argv[2] || 3000; app.get('/:timestamp', (request, response) => { const timestamp = request.params.timestamp; let result = {}; if (moment.unix(timestamp).isValid()) { result = { ...
Use express' response.json() method because it sets proper header automatically
Use express' response.json() method because it sets proper header automatically
JavaScript
mit
NicholasAsimov/timestamp-microservice
16d5a32553342cdff499ca0bb96b767d9bbbcedf
index.js
index.js
'use strict'; module.exports = function (deck/*, options*/) { var options = Object(arguments[1]), root = options.root || '/' , update, activateSlide; activateSlide = function (index) { if (index === deck.slide()) return; deck.slide(index); }; update = function (e) { var id = location.pathname.slice(root...
'use strict'; module.exports = function (deck/*, options*/) { var options = arguments[1], root, update, activateSlide; if (typeof options === 'string') { root = options; } else { options = Object(options); root = options.root || '/'; } activateSlide = function (index) { if (index === deck.slide()) retur...
Support `root` as direct argument
Support `root` as direct argument
JavaScript
mit
medikoo/bespoke-history
5a24e17fc6f172526d68428c4a40b0e59bc0fea9
index.js
index.js
'use strict'; var HOSTS = process.platform === 'win32' ? 'C:/Windows/System32/drivers/etc/hosts' : '/etc/hosts' var readFileSync = require('fs').readFileSync; module.exports = function () { return readFileSync(HOSTS, { encoding: 'utf8' }) .split(/\r?\n/) .map(function(line){ // R.E from feross/hostile v...
'use strict'; var once = require('once'); var split = require('split'); var through = require('through'); var readFileSync = require('fs').readFileSync; var createReadStream = require('fs').createReadStream; var HOSTS = process.platform === 'win32' ? 'C:/Windows/System32/drivers/etc/hosts' : '/etc/hosts'; var massageI...
Return array of objs and using stream.
Return array of objs and using stream.
JavaScript
mit
hemanth/get-hosts
d26945e785f8b98776ff8e0c0e0bc6ecdf5fc81d
index.js
index.js
'use strict'; var _ = require('underscore'); var config = require('./config'); var express = require('express'); var knox = require('knox'); var app = express(); // Configure knox. app.s3 = knox.createClient({ key: config.accessKeyId, secret: config.secretAccessKey, bucket: config.bucket }); // Don't waste by...
'use strict'; var _ = require('underscore'); var config = require('./config'); var express = require('express'); var knox = require('knox'); var app = express(); // Configure knox. app.s3 = knox.createClient({ key: config.accessKeyId, secret: config.secretAccessKey, bucket: config.bucket }); // Don't waste by...
Remove Connect 3 deprecation warning
Remove Connect 3 deprecation warning
JavaScript
mit
orgsync/servo
9b562aed4d0d8490f9f2a36d8cf3eac64d80eb61
index.js
index.js
var VOWELS = /[aeiou]+/gi; var WHITE_SPACE = /\s+/g; var NOTHING = ''; function tokenize(str){ return str.split(WHITE_SPACE); } function replace(tokens){ return tokens.map(function(t){ return t.replace(VOWELS,NOTHING); }); } exports.parse = function parse(string, join){ if(typeof string !== 'string'){...
var VOWELS = /[aeiou]/gi; var VOWELS_AND_SPACE = /[aeiou\s]/g; exports.parse = function parse(string, join){ if(typeof string !== 'string'){ throw new TypeError('Expected a string as the first option'); } join = join || false; var replacer = VOWELS; if (join) { replacer = VOWELS_AND_SPACE; } ...
Reduce amount of transformations by ~66%
Reduce amount of transformations by ~66%
JavaScript
mit
lestoni/unvowel
3c4a2e9a777e1d18f7886df57d616f5a9d69925c
tests/index.js
tests/index.js
// let referee = require('referee') // let {assert} = referee // let {beforeEach, afterEach} = window // // // assertions counting // let expected = 0 // referee.add('expect', { // assert: (exp) => { // expected = exp // return true // } // }) // beforeEach(() => { // referee.count = 0 // }) // afterEach(...
// let referee = require('referee') // let {assert} = referee // let {beforeEach, afterEach} = window // // // assertions counting // let expected = 0 // referee.add('expect', { // assert: (exp) => { // expected = exp // return true // } // }) // beforeEach(() => { // referee.count = 0 // }) // afterEach(...
Make tests pass in all browsers (co relies on global Promise)
Make tests pass in all browsers (co relies on global Promise)
JavaScript
mit
QubitProducts/cherrytree,QubitProducts/cherrytree,nathanboktae/cherrytree,nathanboktae/cherrytree
2b330e110da8849d5edd4258f6e65e266fd48073
index.js
index.js
var fs = require('fs'); var _ = require('lodash'); var Datastore = require('nedb'), db = new Datastore({ filename: './data/xkcd', autoload: true }); module.exports = function (words, callback) { db.find({ word: { $in: words } }, function (err, docs) { if (err) return callback(err); if (!docs.length) { ca...
var fs = require('fs'); var _ = require('lodash'); var Datastore = require('nedb'), db = new Datastore({ filename: __dirname + '/data/xkcd', autoload: true }); module.exports = function (words, callback) { db.find({ word: { $in: words } }, function (err, docs) { if (err) return callback(err); if (!docs.leng...
Use an absolute path to load the db file
Use an absolute path to load the db file This makes it so that the module can also be used in other node projects even when xkcd-cli is contained within the `node_modules` of the depending package
JavaScript
mit
necccc/xkcd-cli
fd6144bacd22dbf4d8b9e74ebb56835726d631d8
index.js
index.js
'use strict'; module.exports = { name: 'ember-cli-stripe' };
'use strict'; module.exports = { name: 'ember-cli-stripe', contentFor: function(type) { if(type === 'body') { return '<script src="https://checkout.stripe.com/checkout.js"></script>'; } }, };
Add content-for hook to add Stripe's checkout.js
Add content-for hook to add Stripe's checkout.js
JavaScript
mit
vladucu/ember-cli-stripe,vladucu/ember-cli-stripe
32c5de2ad9c490aa9ae9eb05745947f060fb1ea9
www/js/main.js
www/js/main.js
window.onload = action var action = document.pesan.action = login(); function login() { var nama = document.pesan.nama.value; var no-bpjs = document.pesan.no-bpjs.value; var name = "Andre Christoga"; var bpjs-no = ""; if ((nama == name) && (no-bpjs == bpjs-no)) { window.location.href = "rs.html"; }; else { ...
window.onload = action var action = document.pesan.action = login(); function login() { var nama = document.pesan.nama.value; var no-bpjs = document.pesan.no-bpjs.value; var name = "Andre Christoga"; var bpjs-no = ""; if ((nama == name) && (no-bpjs == bpjs-no)) { window.location.href = "rs.html"; return true...
Return true if its true
Return true if its true
JavaScript
mit
cepatsembuh/cordova,christoga/cepatsembuh,cepatsembuh/cordova,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,cepatsembuh/cordova,christoga/cepatsembuh,cepatsembuh/cordova,christoga/cepatsembuh,christoga/cepatsembuh,cepatsembuh/cordova,christoga/cepatse...
27704f4330fd2307ce5013b34fdb8a0e7bde6b2a
config/env/production.js
config/env/production.js
'use strict'; module.exports = { db: 'mongodb://localhost/mean-prod', app: { name: 'MEAN - A Modern Stack - Production' }, facebook: { clientID: 'APP_ID', clientSecret: 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' }, twitter: { ...
'use strict'; module.exports = { db: process.env.MONGOHQ_URL, app: { name: 'MEAN - A Modern Stack - Production' }, facebook: { clientID: 'APP_ID', clientSecret: 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' }, twitter: { client...
Use config property for db.
Use config property for db.
JavaScript
mit
wombleton/hardholdr,wombleton/hardholdr
360f33015fb0c4f7c33099b9b24cf6216f1adcc6
src/helpers.js
src/helpers.js
import { flatten, groupBy, map, omit } from 'lodash'; import { plural } from 'pluralize'; export function populateByService(app, documents, idField, typeField, options) { let types = groupBy(documents, typeField); return Promise.all( Object.keys(types).map((type) => { let entries = types[type]; ret...
import fp from 'lodash/fp'; import { plural } from 'pluralize'; const populateList = (list, idField) => (data) => { return fp.map((doc) => { let item = data.find((item) => { return String(doc[idField]) === String(item.id); }); return item; })(list); }; const populateByService = (app, idField, ty...
Fix populateByService and make it functional
Fix populateByService and make it functional
JavaScript
mit
PlayingIO/playing-content-services
50d1f0fd46066aa370aa7753d9102b2514a62caa
src/router/index.js
src/router/index.js
import Vue from 'vue' import Router from 'vue-router' import Hello from '@/components/Hello' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'Hello', component: Hello } ] })
import Vue from 'vue' import Router from 'vue-router' import Conversations from '@/components/Conversations.vue' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'conversations-list', component: Conversations } ] })
Update router to conversation list
Update router to conversation list
JavaScript
apache-2.0
Serubin/PulseClient,Serubin/PulseClient
9ac734d489af8e44a64c535e688d4e7c8663f62b
src/hooks/use-moralis.js
src/hooks/use-moralis.js
let Moralis; export function useMoralis() { if (Moralis) return { Moralis }; // Moralis Initialization if (typeof window !== `undefined`) { Moralis = require('moralis'); Moralis.initialize('knjJS1n0Hf0vkWjluePnByHQKVgUNdujnbtPbMUD'); Moralis.serverURL = 'https://memk9nntn6p4.moralis.io:2053/server'; ...
let Moralis; export function useMoralis() { if (Moralis) return { Moralis }; // Moralis Initialization if (typeof window !== `undefined`) { Moralis = require('moralis'); Moralis.initialize(process.env.MORALIS_APPLICATION_ID); Moralis.serverURL = process.env.MORALIS_SERVER_ID; } return { Moralis };...
Switch back to env variables, troubleshoot with Fleek
Switch back to env variables, troubleshoot with Fleek
JavaScript
mit
iammatthias/.com,iammatthias/.com,iammatthias/.com
0ef21e977f51aeffa279442326785704a16347fe
src/supp_classes.js
src/supp_classes.js
export class Date{ constructor(day, hour, min){ this.day = day; this.hour = hour; this.min = min; } toString(){ return ("date: " + this.day + "-- " + this.hour + ":" + this.min); } /* if a < b : return -1 if a == b : return 0 if a > b ...
export class Date{ constructor(day, hour, min){ this.day = day; this.hour = hour; this.min = min; } toString(){ return ("date: " + this.day + "-- " + this.hour + ":" + this.min); } /* if a < b : return -1 if a == b : return 0 if a > b ...
Fix comparison for weekly limits
Fix comparison for weekly limits
JavaScript
mit
bnan/dhroraryus,bnan/dhroraryus
3620be72778c761dbd61e8549ccbbf15496ebc8f
server/static-seo-server.js
server/static-seo-server.js
"use strict"; var system = require("system"); if (system.args.length < 2) { console.log("Missing arguments."); phantom.exit(); } var server = require("webserver").create(); var url = system.args[1]; var renderHtml = function(url, cb) { var page = require("webpage").create(); var finished = false; page.settings...
"use strict"; var system = require("system"); if (system.args.length < 2) { console.log("Missing arguments."); phantom.exit(); } var url = system.args[1]; var renderHtml = function(url, cb) { var page = require("webpage").create(); var finished = false; page.settings.loadImages = false; page.settings.localToRem...
Remove dead code in phantomjs server.
Remove dead code in phantomjs server.
JavaScript
mit
zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io
34f89e654a07a99216d666ea78e34916fa28df57
src/components/Navbar.js
src/components/Navbar.js
import React, { Component } from 'react' import { connect } from 'react-redux' import LoginButton from './LoginButton' import LogoutButton from './LogoutButton' import { getIsAuthenticated } from '../selectors/user' class Navbar extends Component { render() { return ( <nav className='navbar navbar-default'...
import React, { Component } from 'react' import { connect } from 'react-redux' import { Nav, NavItem } from 'react-bootstrap' import { Navbar as NavbarReactBootstrap } from 'react-bootstrap' import LoginButton from './LoginButton' import LogoutButton from './LogoutButton' import { getIsAuthenticated } from '../selector...
Add organizations link in navbar
Add organizations link in navbar
JavaScript
apache-2.0
CovenantCollege/ChoirMasterClient,CovenantCollege/ChoirMasterClient
384d069210bfecc66dcff065847e3b2d1af7779a
src/computers/constant_infinite_computer.js
src/computers/constant_infinite_computer.js
var InfiniteComputer = require('./infinite_computer.js'); class ConstantInfiniteComputer extends InfiniteComputer { getTotalScrollableHeight(): number { return this.heightData * this.numberOfChildren; } getDisplayIndexStart(windowTop: number): number { return Math.floor(windowTop / this.heightData); }...
/* @flow */ var InfiniteComputer = require('./infinite_computer.js'); class ConstantInfiniteComputer extends InfiniteComputer { getTotalScrollableHeight()/* : number */ { return this.heightData * this.numberOfChildren; } getDisplayIndexStart(windowTop/* : number */)/* : number */ { return Math.floor(wi...
Add to one more file.
Add to one more file.
JavaScript
bsd-3-clause
NordicSemiconductor/react-infinite,ahutchings/react-infinite,cesarandreu/react-infinite,pierregoutheraud/react-infinite,herojobs/react-infinite,beni55/react-infinite,NordicSemiconductor/react-infinite,amplii/react-infinite,noitakomentaja/react-infinite
9b35d559517447e9ffb9f32468eb14f0b6c6b4da
src/main/webapp/js/hayabusa-shortcutkeys.js
src/main/webapp/js/hayabusa-shortcutkeys.js
//open command bar Mousetrap.bindGlobal(['shift+up', 'ctrl+shift+.'], function(e) { document.getElementById('light').style.display='block'; return false; }); //close command bar Mousetrap.bindGlobal(['shift+down', 'esc'], function(e) { document.getElementById('light').style.display='none'; return false; });
//open command bar Mousetrap.bindGlobal(['shift+up'], function(e) { document.getElementById('light').style.display='block'; return false; }); //close command bar Mousetrap.bindGlobal(['shift+down', 'esc'], function(e) { document.getElementById('light').style.display='none'; return false; }); //open command ba...
Update again to show voice engine dialog for shortcutkeys
Update again to show voice engine dialog for shortcutkeys
JavaScript
bsd-3-clause
blackboard/hayabusa,blackboard/hayabusa,blackboard/hayabusa
b6198eacf719c91614f635b189a980afb97ffed2
test/config.js
test/config.js
/*jslint sloppy: true */ module.exports = function (config) { config.set({ basePath: '../', frameworks: ['jasmine'], browsers: ['Chrome', 'PhantomJS'], autoWatch: true, files: [ {pattern: 'bower_components/**/*.js', watched: false, server: true, included: true}, 'lib/matrix.js', ...
/*jslint sloppy: true */ module.exports = function (config) { config.set({ basePath: '../', frameworks: ['jasmine'], browsers: ['Chrome', 'PhantomJS'], autoWatch: true, files: [ {pattern: 'bower_components/**/*.js', watched: false, server: true, included: true}, 'lib/matrix.js', ...
Add additional files to karma setup
Add additional files to karma setup
JavaScript
mit
yetu/pocketry
3fbe8a01d93b77b496a28229ffdf3792ebab22c1
test/helper.js
test/helper.js
var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary' var BUNDLE_...
var browserify = require('browserify') var cp = require('child_process') var envify = require('envify/custom') var fs = require('fs') var once = require('once') var path = require('path') var CHROME if (process.env.CHROME) { CHROME = process.env.CHROME } else if (process.platform === 'win32') { CHROME = '"%Program...
Add Chrome path for Windows
tests: Add Chrome path for Windows
JavaScript
mit
feross/chrome-net,feross/chrome-net
e7b58e5c5438ff630c00638714db087a691b002f
task/config.js
task/config.js
// config.js var http2 = require('http2'); var path = require('./path'); module.exports = { task: { watch: { exclude: /\.map$/ } }, plugin: { pug: { pretty: '\t', basedir: path.source.template }, htmlmin: { removeComments: true, removeCommentsFromCDATA: true, removeCDATASectionsFromCD...
// config.js var path = require('./path'); module.exports = { task: { watch: { exclude: /\.map$/ } }, plugin: { pug: { pretty: '\t', basedir: path.source.template }, htmlmin: { removeComments: true, removeCommentsFromCDATA: true, removeCDATASectionsFromCDATA: true, collapseWhitespa...
Remove http2 usage on browser-sync
Remove http2 usage on browser-sync
JavaScript
cc0-1.0
thasmo/website
a4c0dc926c6986cee7dd9f9b3156559fcad0be8d
test/eslint-test.js
test/eslint-test.js
const cp = require('child_process') describe('eslint-test', function() { it('eslint should pass', function() { cp.execSync('npm run eslint') }) })
const cp = require('child_process') describe('eslint-test', function() { it('eslint should pass', process.env.MIGSI_SKIP_ESLINT ? undefined : function() { cp.execSync('npm run eslint') }) })
Allow skipping eslint test with an environment variable
Allow skipping eslint test with an environment variable This can be helpful when developing new tests, so that you do not need to be 100% compliant at all times
JavaScript
mit
BaronaGroup/migsi,BaronaGroup/migsi
1f3c9a469a96b8b80134a16f3843cda1a368f097
src/style_manager/view/PropertyColorView.js
src/style_manager/view/PropertyColorView.js
import PropertyIntegerView from './PropertyIntegerView'; import InputColor from 'domain_abstract/ui/InputColor'; export default PropertyIntegerView.extend({ setValue(value, opts = {}) { opts = { ...opts, silent: 1 }; this.inputInst.setValue(value, opts); }, remove() { PropertyIntegerView.prototype.r...
import PropertyIntegerView from './PropertyIntegerView'; import InputColor from 'domain_abstract/ui/InputColor'; export default PropertyIntegerView.extend({ setValue(value, opts = {}) { opts = { ...opts, silent: 1 }; this.inputInst.setValue(value, opts); }, remove() { PropertyIntegerView.prototype.r...
Check if input exists before remove
Check if input exists before remove
JavaScript
bsd-3-clause
artf/grapesjs,artf/grapesjs,artf/grapesjs
739ba2e9ebfb12617d5ef1926702248274ced74b
test/runner.js
test/runner.js
var checkForDevFile = function (callback) { var cwd = process.cwd(); var fs = require("fs"); var path = require("path"); var testFile = path.join(cwd, "lib", "modernizr-dev.js"); var remoteTestFile = "http://modernizr.com/downloads/modernizr-latest.js"; var http = require("http"); var file = fs.createWriteStr...
var checkForDevFile = function (callback) { var cwd = process.cwd(); var fs = require("fs"); var path = require("path"); var testFile = path.join(cwd, "lib", "modernizr-dev.js"); var remoteTestFile = "http://modernizr.com/downloads/modernizr-latest.js"; var http = require("http"); var file = fs.createWriteStr...
Reset the Gruntfile after a test failure.
Reset the Gruntfile after a test failure.
JavaScript
mit
dailymotion/grunt-modernizr,mrawdon/grunt-modernizr,Irmiz/grunt-modernizr,Modernizr/grunt-modernizr,GrimaceOfDespair/grunt-modernizr,shadowmint/grunt-modernizr,grumpydev22/grunt-modernizr,bdaenen/grunt-modernizr,optimizely/grunt-modernizr,CastroIgnacio/grunt-modernizr,tobania/grunt-modernizr,virtualidentityag/grunt-mod...
1b433b5b0e73838ecaa365f3fa5d4cb2f5edbff8
aura-components/src/main/components/ui/image/imageController.js
aura-components/src/main/components/ui/image/imageController.js
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Revert the ui:image cmp validity checking. @bug W-2533777@
Revert the ui:image cmp validity checking. @bug W-2533777@
JavaScript
apache-2.0
madmax983/aura,SalesforceSFDC/aura,madmax983/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,SalesforceSFDC/aura,badlogicmanpreet/aura,navyliu/aura,badlogicmanpreet/aura,madmax983/aura,DebalinaDey/AuraDevelopDeb,lcnbala/aura,SalesforceSFDC/aura,TribeMedia/aura,DebalinaDey/AuraDev...
f888316ee7907e94b30f32040a98c56ef2334649
tasks/xcode.js
tasks/xcode.js
/* * grunt-xcode * https://github.com/matiassingers/grunt-xcode * * Copyright (c) 2014 Matias Singers * Licensed under the MIT license. */ 'use strict'; var Promise = require('bluebird'); var exec = Promise.promisify(require('child_process').exec); String.prototype.format = function() { var formatted = this...
/* * grunt-xcode * https://github.com/matiassingers/grunt-xcode * * Copyright (c) 2014 Matias Singers * Licensed under the MIT license. */ 'use strict'; var Promise = require('bluebird'); var exec = Promise.promisify(require('child_process').exec); String.prototype.format = function() { var formatted = this...
Create executeCommand and handleCommandError helper functions
Create executeCommand and handleCommandError helper functions
JavaScript
mit
matiassingers/grunt-xcode
9e1de3f52aaecc9532b3b3b0988a14aaf4ab713f
lib/global-admin/addon/cluster-templates/new/route.js
lib/global-admin/addon/cluster-templates/new/route.js
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import { hash } from 'rsvp'; export default Route.extend({ globalStore: service(), access: service(), clusterTemplates: service(), model() { return hash({ clusterTemplate: this.global...
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import { hash } from 'rsvp'; export default Route.extend({ globalStore: service(), access: service(), clusterTemplates: service(), model() { return hash({ clusterTemplate: this.global...
Change ct default revision name to v1
Change ct default revision name to v1 https://github.com/rancher/rancher/issues/22162
JavaScript
apache-2.0
rancher/ui,westlywright/ui,vincent99/ui,westlywright/ui,rancher/ui,vincent99/ui,rancherio/ui,rancherio/ui,rancher/ui,westlywright/ui,vincent99/ui,rancherio/ui
4f4e6454f6a498fbb1a13320c4bb66c6c9ba83ec
lib/index.js
lib/index.js
'use strict'; var hash = require('./hash'); exports.escapeDiacritic = require('./escape_diacritic'); exports.escapeHTML = require('./escape_html'); exports.escapeRegExp = require('./escape_regexp'); exports.highlight = require('./highlight'); exports.htmlTag = require('./html_tag'); exports.Pattern = require('./patte...
'use strict'; var hash = require('./hash'); exports.escapeDiacritic = require('./escape_diacritic'); exports.escapeHTML = require('./escape_html'); exports.escapeRegExp = require('./escape_regexp'); exports.highlight = require('./highlight'); exports.htmlTag = require('./html_tag'); exports.Pattern = require('./patte...
Fix camelCaseKeys is not exported
Fix camelCaseKeys is not exported
JavaScript
mit
hexojs/hexo-util,hexojs/hexo-util
11ceffc8dc5578dc089c52f3a0a80a35d31bae8c
lib/index.js
lib/index.js
'use strict'; var configViewer = require('./configViewer'); var jQueryName = 'D2L.LP.Web.UI.Html.jQuery'; var vuiName = 'D2L.LP.Web.UI.Html.Vui'; module.exports.jquery = function( opts ) { return configViewer.readConfig( jQueryName, opts ) .then( function( value ) { return value.jqueryBaseLocation + 'jquery.j...
'use strict'; var configViewer = require('./configViewer'); var jQueryName = 'D2L.LP.Web.UI.Html.jQuery'; var vuiName = 'D2L.LP.Web.UI.Html.Vui'; module.exports.jquery = function( opts ) { return configViewer.readConfig( jQueryName, opts ) .then( function( value ) { return value.jqueryBaseLocation + 'jquery.j...
Include CSS files in VUI loaded library.
Include CSS files in VUI loaded library.
JavaScript
apache-2.0
Brightspace/web-library-loader
25d859b3a2597ba00c988ed4a814452558e2c1b4
foundation-ui/utils/ReactUtil.js
foundation-ui/utils/ReactUtil.js
import React from 'react'; const ReactUil = { /** * Wrap React elements * * @param {Array.<ReactElement>|ReactElement} elements * @param {function|String} wrapper component * @param {boolean} [alwaysWrap] * * @returns {ReactElement} wrapped react elements */ wrapElements(elements, wrapper ...
import React from 'react'; const ReactUil = { /** * Wrap React elements * * If elements is an array with a single element, it will not be wrapped * unless alwaysWrap is true. * * @param {Array.<ReactElement>|ReactElement} elements * @param {function|String} wrapper component * @param {boolea...
Expand description to include single-element array behavior
Expand description to include single-element array behavior
JavaScript
apache-2.0
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
4878fc74206e4cb01cd8874570f50f5fc2db903a
fixtures/users.js
fixtures/users.js
module.exports = [ { "model": "User", "data": { "email": "test@abakus.no", "name": "Test Bruker", // Password: test hash: '$2a$10$Gm09SZEHzdqx4eBV06nNheenfKpw3R1rXrMzmYfjX/.9UFPHnaAn6' } }, { "model": "User", "data": { "email": "backup@abakus.no", "name": "B...
module.exports = [ { model: 'User', data: { email: 'test@abakus.no', name: 'Test Bruker', // Password: test hash: '$2a$10$Gm09SZEHzdqx4eBV06nNheenfKpw3R1rXrMzmYfjX/.9UFPHnaAn6' } }, { model: 'User', data: { e...
Fix linting errors in fixture
Fix linting errors in fixture
JavaScript
mit
abakusbackup/abacash-api,abakusbackup/abacash-api
077ab3f2110c6c2e5984484596209383c2df3c01
flow-typed/npm/@storybook/addon-info_v3.x.x.js
flow-typed/npm/@storybook/addon-info_v3.x.x.js
import type { RenderFunction, Story } from '@storybook/react'; declare module '@storybook/addon-info' { declare type Options = { inline?: boolean, header?: boolean, source?: boolean, propTables?: ?Array<React$Element<*>>, maxPropsIntoLine?: number, maxPropObjectKeys?: number, maxPropArray...
import type { RenderFunction, Story } from '@storybook/react'; declare module '@storybook/addon-info' { declare type Renderable = React$Element<any>; declare type RenderFunction = () => Renderable; declare type Options = { text?: string | Renderable, inline?: boolean, header?: boolean, source?: ...
Update Storybook info addon Flow types
Update Storybook info addon Flow types
JavaScript
unlicense
pascalduez/react-module-boilerplate
76df4116aaec99c285f9ab7bee45f253ce652b8d
lib/ModalFooter/examples/ModalFooterExample.js
lib/ModalFooter/examples/ModalFooterExample.js
/** * Modal: With ModalFooter component */ /* eslint-disable */ import React from 'react'; import ModalFooter from '@folio/stripes-components/lib/ModalFooter'; import Button from '@folio/stripes-components/lib/Button'; import Modal from '@folio/stripes-components/lib/Modal'; export default () => { const footer = ...
/** * Modal: With ModalFooter component */ /* eslint-disable */ import React from 'react'; import ModalFooter from '../ModalFooter'; import Button from '../../Button'; import Modal from '../../Modal'; export default () => { const footer = ( <ModalFooter primaryButton={{ label: 'Save', on...
Fix paths for ModalFooter story CSS
Fix paths for ModalFooter story CSS
JavaScript
apache-2.0
folio-org/stripes-components,folio-org/stripes-components
b29eb395840f11f8a981040b2e75a9116f9def34
time/client.js
time/client.js
(function () { function adjust_all_times() { $('time').each(function () { var t = $(this); var d = t.attr('datetime').replace(/-/g, '/' ).replace('T', ' ').replace('Z', ' GMT'); t.html(readable_time(new Date(d).getTime())); }); } adjust_all_times(); })();
(function () { function adjust_all_times() { $('time').each(function () { var date = date_from_time_el(this); this.innerHTML = readable_time(date.getTime()); }); } function date_from_time_el(el) { var d = el.getAttribute('datetime').replace(/-/g, '/' ).replace('T', ' ').replace('Z', ' GMT'); return new Date...
Optimize adjust_all_times() and extract helper
Optimize adjust_all_times() and extract helper
JavaScript
mit
vampiricwulf/ex-tanoshiine,reiclone/doushio,lalcmellkmal/doushio,reiclone/doushio,theGaggle/sleepingpizza,vampiricwulf/ex-tanoshiine,lalcmellkmal/doushio,alokal/meguca,alokal/meguca,lalcmellkmal/doushio,vampiricwulf/tanoshiine,theGaggle/sleepingpizza,vampiricwulf/tanoshiine,lalcmellkmal/doushio,alokal/meguca,reiclone/d...
b9270fe41a91bf51f775f8fea818b4bdce222cb7
logology-v12/src/www/js/app/views/lemmaList.js
logology-v12/src/www/js/app/views/lemmaList.js
"use strict"; import h from "yasmf-h"; import el from "$LIB/templates/el"; import L from "$APP/localization/localization"; import glyph from "$WIDGETS/glyph"; import list from "$WIDGETS/list"; import listItem from "$WIDGETS/listItem"; import listItemContents from "$WIDGETS/listItemContents"; import listItemActions fr...
"use strict"; import h from "yasmf-h"; import el from "$LIB/templates/el"; import L from "$APP/localization/localization"; import glyph from "$WIDGETS/glyph"; import list from "$WIDGETS/list"; import listItem from "$WIDGETS/listItem"; import listItemContents from "$WIDGETS/listItemContents"; import listItemActions fr...
Remove indicator; refactor actions to separate view
Remove indicator; refactor actions to separate view
JavaScript
mit
kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package
3ad8c63ebeb63d0739287888a717a14833b04b92
modules/core/ui/test/shape-item-promise-handler.js
modules/core/ui/test/shape-item-promise-handler.js
// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details. 'use strict'; var expect = require('chai').expect; describe('Shape Item Promise Handler', function() { it('changes the promise shape into a content shape and runs a new rendering life cycle for the item', function(done) { va...
// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details. 'use strict'; var expect = require('chai').expect; describe('Shape Item Promise Handler', function() { it('changes the promise shape into a content shape and runs a new rendering life cycle for the item', function(done) { va...
Fix shape item promise handler test suite
Fix shape item promise handler test suite
JavaScript
mit
DecentCMS/DecentCMS
90d450bf4183942e81865a20f91780d27f208994
src/main/web/florence/js/functions/_viewLogIn.js
src/main/web/florence/js/functions/_viewLogIn.js
function viewLogIn() { var login_form = templates.login; $('.section').html(login_form); $('.form-login').submit(function (e) { e.preventDefault(); var email = $('.fl-user-and-access__email').val(); var password = $('.fl-user-and-access__password').val(); postLogin(email, password); }); }
function viewLogIn() { var login_form = templates.login; $('.section').html(login_form); $('.form-login').submit(function (e) { e.preventDefault(); loadingBtn($('#login')); var email = $('.fl-user-and-access__email').val(); var password = $('.fl-user-and-access__password')....
Add loading icon to login screen
Add loading icon to login screen
JavaScript
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
f9569ceee9c7db8c35240c66f511ef8472d936f0
ui/features/lti_collaborations/index.js
ui/features/lti_collaborations/index.js
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
Fix lti collaborations page unresponsive on load in chrome
Fix lti collaborations page unresponsive on load in chrome fixes VICE-2440 flag=none Test Plan: - follow repro steps in linked ticket Change-Id: I9b682719ea1e258f98caf90a197167a031995f7b Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/284881 Reviewed-by: Jeffrey Johnson <7a0f98bfe168bc29d5611ba0275e88567...
JavaScript
agpl-3.0
sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms
16e2716fddd2d217b53ab0141f74fadf628d589c
config/database.js
config/database.js
var mongodb = require('mongodb'); var host = "alex.mongohq.com"; var port = 10016; var options = {}; var server = new mongodb.Server(host, port, options, {native_parser: true}); var Database = new mongodb.Db("TexasEstimateEm", server, {safe: false}); var inspect = require('eyes').inspector({ stream: null }); expor...
var mongodb = require('mongodb'); var host = "alex.mongohq.com"; var port = 10016; var options = {}; var server = new mongodb.Server(host, port, options, {native_parser: true}); var Database = new mongodb.Db("TexasEstimateEm", server, {safe: false}); var inspect = require('eyes').inspector({ stream: null }); expor...
Add games and tasks collections
Add games and tasks collections
JavaScript
mit
tangosource/pokerestimate,tangosource/pokerestimate
a01fac7c6dc5979b98d1206b91d8798cdfbcf33e
src/Oro/Bundle/EmailBundle/Resources/public/js/app/modules/views-module.js
src/Oro/Bundle/EmailBundle/Resources/public/js/app/modules/views-module.js
require([ 'oroui/js/app/controllers/base/controller' ], function(BaseController) { 'use strict'; BaseController.loadBeforeAction([ 'jquery', 'oroemail/js/app/components/email-notification-component', 'oroemail/js/app/components/new-email-message-component', 'oroemail/js/app/...
require([ 'oroui/js/app/controllers/base/controller' ], function(BaseController) { 'use strict'; BaseController.loadBeforeAction([ 'jquery', 'oroemail/js/app/components/email-notification-component', 'oroemail/js/app/models/email-notification/email-notification-count-model' ], f...
Fix "You have a new email" message
CRM-4194: Fix "You have a new email" message fixed compositions concept
JavaScript
mit
orocrm/platform,orocrm/platform,geoffroycochard/platform,ramunasd/platform,trustify/oroplatform,geoffroycochard/platform,geoffroycochard/platform,ramunasd/platform,Djamy/platform,orocrm/platform,trustify/oroplatform,ramunasd/platform,Djamy/platform,trustify/oroplatform,Djamy/platform
4ed024451e1bcfd5657c0814f16cd1ce56ed620e
scripts/publishForDesktop.js
scripts/publishForDesktop.js
const fs = require('fs'); const glob = require('glob'); const path = require('path'); const rimraf = require('rimraf'); const workspaceRoot = path.join(__dirname, '..'); const desktopUpdatesPath = path.join(workspaceRoot, '..', 'toolkit-for-ynab-gh-pages', 'desktop-updates'); // Clear out the directory and create it ...
const fs = require('fs'); const glob = require('glob'); const path = require('path'); const rimraf = require('rimraf'); const workspaceRoot = path.join(__dirname, '..'); const desktopUpdatesPath = path.join(workspaceRoot, '..', 'toolkit-for-ynab-gh-pages', 'desktop-updates'); // Clear out the directory and create it ...
Update publish for desktop script
Update publish for desktop script
JavaScript
mit
toolkit-for-ynab/toolkit-for-ynab,dbaldon/toolkit-for-ynab,dbaldon/toolkit-for-ynab,dbaldon/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,dbaldon/toolkit-for-ynab,blargity/toolkit-for-ynab,blargity/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,ahatzz11/toolkit-for-ynab,falkencreative/toolkit-for-ynab,ahatzz11...
4e335d931c15995c29989cc2e5e6b2ac77fbd4eb
assets/js/wikipedia.js
assets/js/wikipedia.js
/** * Retrieves the first wikipedia article for a provided * name and passes it to the provided callback. If it fails, * "null" will be provided to the callback, or if provided, * the failCallback will be called. */ function getWikipediaExcerpt(name, callback, failCallback) { $.getJSON("https://en.wikipedia.or...
/** * Retrieves the first wikipedia article for a provided * name and passes it to the provided callback. If it fails, * "null" will be provided to the callback, or if provided, * the failCallback will be called. */ function getWikipediaExcerpt(name, callback, failCallback) { $.getJSON("https://en.wikipedia.or...
Fix calling fail every time
Fix calling fail every time
JavaScript
mit
thenaterhood/todayinmy.city,thenaterhood/todayinmy.city,thenaterhood/todayinmy.city
de4f102e9e02ecdf6778ee3a2e5cd60a65cea2c4
assets/github.js
assets/github.js
require([ 'gitbook' ], function (gitbook) { gitbook.events.bind('start', function (e, config) { var githubURL = config.github.url; if (githubURL) { jQuery('.book-header > h1').before( '<a href="' + githubURL + '" _target="blank" class="btn pull-right github-sharing-link sharing-link" aria-label...
require([ 'gitbook' ], function (gitbook) { var githubURL; function insertGitHubLink() { if (githubURL && jQuery('.github-sharing-link').length === 0) { jQuery('.book-header > h1').before( '<a href="' + githubURL + '" _target="blank" class="btn pull-right github-sharing-link sharing-link" aria-la...
Update link on page.change event
Update link on page.change event
JavaScript
apache-2.0
GitbookIO/plugin-github
7d68d53d3ad32b8c1e6a301a8c5a038e0d0f89f6
coeus-webapp/src/main/webapp/scripts/common/global.js
coeus-webapp/src/main/webapp/scripts/common/global.js
var Kc = Kc || {}; Kc.Global = Kc.Global || {}; (function (namespace, $) { // set all modals to static behavior (clicking out does not close) $.fn.modal.Constructor.DEFAULTS.backdrop = "static"; })(Kc.Global, jQuery);
var Kc = Kc || {}; Kc.Global = Kc.Global || {}; (function (namespace, $) { // set all modals to static behavior (clicking out does not close) $.fn.modal.Constructor.DEFAULTS.backdrop = "static"; $(document).on("ready", function(){ // date conversion for date fields to full leading 0 - for days and ...
Convert non-full date to full date on loss of focus in js
[KRACOEUS-8479] Convert non-full date to full date on loss of focus in js
JavaScript
agpl-3.0
iu-uits-es/kc,jwillia/kc-old1,mukadder/kc,kuali/kc,ColostateResearchServices/kc,iu-uits-es/kc,kuali/kc,UniversityOfHawaiiORS/kc,jwillia/kc-old1,iu-uits-es/kc,ColostateResearchServices/kc,jwillia/kc-old1,UniversityOfHawaiiORS/kc,jwillia/kc-old1,mukadder/kc,UniversityOfHawaiiORS/kc,mukadder/kc,ColostateResearchServices/k...
e53e51c0adf5a027148067ccbf06535e49bea469
numeric-string/numeric-string.js
numeric-string/numeric-string.js
var numericString = function (number) { var string = ('' + number).split('.'), length = string[0].length, places = 0; while (--length) { places += 1; // At every third position we want to insert a comma if (places % 3 === 0) { string[0] = string[0].substr(0, length) + ',' + string[0]....
var numericString = function (number) { var parts = ('' + number).split('.'), length = parts[0].length, places = 0; while (--length) { places += 1; // At every third position we want to insert a comma if (places % 3 === 0) { parts[0] = parts[0].substr(0, length) + ',' + parts[0].subs...
Implement regex numeric string solution.
Implement regex numeric string solution.
JavaScript
mit
saurabhjn76/code-problems,angelkar/code-problems,sethdame/code-problems,jefimenko/code-problems,lgulliver/code-problems,caoglish/code-problems,lgulliver/code-problems,SterlingVix/code-problems,aloisdg/code-problems,diversedition/code-problems,patrickford/code-problems,caoglish/code-problems,caoglish/code-problems,patri...
1b95d90af76ebeea88e3c12b34c3360b09486ea8
src/reducers/reducerTone.js
src/reducers/reducerTone.js
import { GET_TONE } from '../actions/index'; export default function (state = [], action) { switch (action.type) { case GET_TONE: return action.payload.data; default: return state; } }
import { GET_TONE } from '../actions/index'; export default function (state = [], action) { switch (action.type) { case GET_TONE: if (action.payload.status === 200) { return action.payload.data; } return state; default: return state; } }
Add conditional to tone reducer
Add conditional to tone reducer
JavaScript
mit
badT/Chatson,badT/twitchBot,dramich/twitchBot,dramich/Chatson,dramich/Chatson,TerryCapan/twitchBot,TerryCapan/twitchBot,dramich/twitchBot,badT/Chatson,badT/twitchBot
a44798bff6aae4b6436ed15c62af5d4f700b6552
website/mcapp.projects/src/app/project/experiments/experiment/components/processes/mc-workflow-process-templates.component.js
website/mcapp.projects/src/app/project/experiments/experiment/components/processes/mc-workflow-process-templates.component.js
class MCWorkflowProcessTemplatesComponentController { /*@ngInit*/ constructor(templates) { this.templates = templates.get(); this.templateTypes = [ { title: 'CREATE SAMPLES', cssClass: 'mc-create-samples-color', icon: 'fa-cubes', ...
class MCWorkflowProcessTemplatesComponentController { /*@ngInit*/ constructor(templates) { this.templates = templates.get(); this.templateTypes = [ { title: 'CREATE SAMPLES', cssClass: 'mc-create-samples-color', icon: 'fa-cubes', ...
Modify filter to show new computational sample templates.
Modify filter to show new computational sample templates.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
b8a79dd951253822bcfe1f48f6eb7f351d457f02
IPython/html/static/notebook/js/widgets/button.js
IPython/html/static/notebook/js/widgets/button.js
//---------------------------------------------------------------------------- // Copyright (C) 2013 The IPython Development Team // // Distributed under the terms of the BSD License. The full license is in // the file COPYING, distributed as part of this software. //------------------------------------------------...
//---------------------------------------------------------------------------- // Copyright (C) 2013 The IPython Development Team // // Distributed under the terms of the BSD License. The full license is in // the file COPYING, distributed as part of this software. //------------------------------------------------...
Use setElement to set the view's element properly.
Use setElement to set the view's element properly.
JavaScript
bsd-3-clause
ipython/ipython,ipython/ipython
9fc6057d0c29a21ea40284a13ad4af79251cde10
app/assets/javascripts/koi/controllers/application.js
app/assets/javascripts/koi/controllers/application.js
import { Application } from "@hotwired/stimulus" // Stimulus controllers. This should ultimately be moved to koi/admin.js import "@hotwired/turbo-rails" import "trix"; import "@rails/actiontext"; const application = Application.start() window.Stimulus = application export { application }
import { Application } from "@hotwired/stimulus" // Stimulus controllers. This should ultimately be moved to koi/admin.js import "@hotwired/turbo-rails" import "@rails/actiontext"; const application = Application.start() window.Stimulus = application export { application }
Move trix dependency to content gem
FRIN23-19: Move trix dependency to content gem
JavaScript
mit
katalyst/koi,katalyst/koi,katalyst/koi
ca78cd4901e2322a5f63fcd4c0f555b5c553dde9
assets/js/functions.js
assets/js/functions.js
$(document).ready(function () { attachResizeVideo(); switchAd(); }); function attachResizeVideo() { $(window).resize(function () { resizeVideo(); }); resizeVideo(); } function resizeVideo() { console.log("fired"); var $ytplayer = $('#ytplayer'); var $parent = $ytplayer.par...
$(document).ready(function () { attachResizeVideo(); switchAd(); }); function attachResizeVideo() { $(window).resize(function () { resizeVideo(); }); resizeVideo(); } function resizeVideo() { console.log("fired"); var $ytplayer = $('#ytplayer'); var $parent = $ytplayer.par...
Add width checking to video javascript.
Add width checking to video javascript.
JavaScript
unlicense
LiteracyFanatic/TruckAdvertisements,LiteracyFanatic/TruckAdvertisements
b5750d7cb92e99e8eb2fb6e419336d2e5a96c521
server/api/controllers/utils/utilsCtrl.spec.js
server/api/controllers/utils/utilsCtrl.spec.js
'use strict'; var should = require('should'); var utils = require('./utilsCtrl.js'); describe('utilsCtrl tests', function() { it('should find list with some id', function(done) { var lists = { listContainer1: [ {id: 'idlist1'}, {id: 'idlist2'}, {id: 'idlist3'} ], listContainer2: [ {id: 'idlist4'},...
'use strict'; var should = require('should'); var utils = require('./utilsCtrl.js'); describe('utils module tests', function() { it('should find list with some id', function(done) { var lists = { listContainer1: [ {id: 'idlist1'}, {id: 'idlist2'}, {id: 'idlist3'} ], listContainer2: [ {id: 'idlist4...
Add automatic test for utils
Add automatic test for utils
JavaScript
mit
safv12/trello-metrics,safv12/trello-metrics
9b53d4814b4170dd3e502e459e2a145ff3eec779
app/operation/operation.js
app/operation/operation.js
'use strict'; angular.module('myApp.operation', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/operation', { templateUrl: 'operation/operation.html', controller: 'OperationController' }); }]) .controller('OperationController', ['$scope', '$rootScope', function($s...
'use strict'; angular.module('myApp.operation', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/operation', { templateUrl: 'operation/operation.html', controller: 'OperationController' }); }]) .controller('OperationController', ['$scope', '$rootScope', function($s...
Set typeOperation for default to select option
Set typeOperation for default to select option
JavaScript
mit
AitorRodriguez990/angular-testing-examples,AitorRodriguez990/angular-testing-examples
10d041569a0b19dee2024001f7aae310ddd89dca
tests/unit/components/compiler-test.js
tests/unit/components/compiler-test.js
import hbs from 'htmlbars-inline-precompile'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('my-component', { integration: true }); test('precompile enabled flags', function(assert) { this.render(hbs` {{#if-flag-ENABLE_FOO}}Foo{{/if-flag-ENABLE_FOO}} `); assert.equal(this.$()...
import hbs from 'htmlbars-inline-precompile'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('my-component', { integration: true }); test('precompile enabled flags', function(assert) { this.render(hbs` {{#if-flag-ENABLE_FOO}}Foo{{/if-flag-ENABLE_FOO}} `); assert.equal(this.$()...
Add test for {{else}} block
Add test for {{else}} block
JavaScript
mit
minichate/ember-cli-conditional-compile,minichate/ember-cli-conditional-compile
01d5c7a264f47306646e04cabab5d5e08ec76d20
template/share/spice/example/example.js
template/share/spice/example/example.js
(function (env) { "use strict"; env.ddg_spice_<: $lia_name :> = function(api_result){ // Validate the response (customize for your Spice) if (api_result.error) { return Spice.failed('<: $lia_name :>'); } // Render the response Spice.add({ ...
(function (env) { "use strict"; env.ddg_spice_<: $lia_name :> = function(api_result){ // Validate the response (customize for your Spice) if (api_result.error) { return Spice.failed('<: $lia_name :>'); } // Render the response Spice.add({ ...
Add new placeholders to Example.js
Add new placeholders to Example.js
JavaScript
apache-2.0
shyamalschandra/zeroclickinfo-spice,P71/zeroclickinfo-spice,soleo/zeroclickinfo-spice,Retrobottega/zeroclickinfo-spice,toenu23/zeroclickinfo-spice,kevintab95/zeroclickinfo-spice,whalenrp/zeroclickinfo-spice,GrandpaCardigan/zeroclickinfo-spice,imwally/zeroclickinfo-spice,lw7360/zeroclickinfo-spice,TomBebbington/zeroclic...
3febb3230f340f61103a3a93b8ca0623b57613d9
.eslintrc.js
.eslintrc.js
const package = require('./package.json') module.exports = { parser: 'babel-eslint', env: { browser: true, commonjs: true, es6: true, jest: true, node: true }, extends: [ 'eslint:recommended', 'plugin:import/errors', 'plugin:react/recommended', 'plugin:flowtype/recommended',...
const package = require('./package.json') module.exports = { parser: 'babel-eslint', env: { browser: true, commonjs: true, es6: true, jest: true, node: true }, extends: [ 'eslint:recommended', 'plugin:import/errors', 'plugin:react/recommended', 'plugin:flowtype/recommended',...
Remove unnecessary plugin using declaration
:shower: Remove unnecessary plugin using declaration
JavaScript
mit
keik/gh,keik/gh,keik/gh
e5773320c3bd1b47c00388f9fda6d3ece8f0fb1c
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "node": true }, "globals": { "app": true, "angular": true, "_": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 2 ], "linebreak-style": ...
module.exports = { "env": { "browser": true, "node": true }, "globals": { "app": true, "angular": true, "_": true }, "extends": "eslint:recommended", "rules": { "no-console": [ "error", { allow: ["log", "warn", "error"] } ], ...
Allow console log warn error
Allow console log warn error
JavaScript
mit
FreaKzero/gzdoom-launcher,FreaKzero/gzdoom-launcher
7551cdf761228536485caaa838b106092050d300
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "doubl...
module.exports = { "env": { "browser": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], "quotes"...
Allow eslint to use node and es6
Allow eslint to use node and es6
JavaScript
mit
albertyw/gentle-alerts,albertyw/gentle-alerts
6a0a7cf7e91b7d9e216d58230c3ef87b5a5af305
static/js/logs-screen.js
static/js/logs-screen.js
/** * Logs Screen * * Shows all logs * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict'; const Log = require('./logs/log'); const LogsScreen = {...
/** * Logs Screen * * Shows all logs * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict'; const Log = require('./logs/log'); const LogsScreen = {...
Add graph of boolean property
Add graph of boolean property
JavaScript
mpl-2.0
moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway
a588182dfe07bee8c74ccf9c3ae9e3e6e572652a
lib/logFactory.js
lib/logFactory.js
var LogStream = require('./LogStream'); var lodash = require('lodash'); /** * The LogFactory constructor. * @constructor */ var LogFactory = function () { var self = this; self._streams = {}; self._filters = []; }; /** * Create a new LogStream. * @param name The name of the component originating the logs. * ...
var LogStream = require('./LogStream'); var lodash = require('lodash'); /** * The LogFactory constructor. * @constructor */ var LogFactory = function () { var self = this; self._inputs = {}; self._outputs = []; }; /** * Create a new LogStream. * @param name The name of the component originating the logs. * @...
Fix a race condition when adding output streams before all input streams are added.
Fix a race condition when adding output streams before all input streams are added.
JavaScript
mit
ericrini/node-streamlogger
1dd9f0bc886a501ce015dfcf3bcbc947566641b4
src/mui/button/SaveButton.js
src/mui/button/SaveButton.js
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import ContentSave from 'material-ui/svg-icons/content/save'; const SaveButton = () => <RaisedButton type="submit" label="Save" icon={<ContentSave />} primary style={{ margin: '10px 24px', position: 'rel...
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import ContentSave from 'material-ui/svg-icons/content/save'; import CircularProgress from 'material-ui/CircularProgress'; class SaveButton extends Component { constructor(props) { super(props); this.stat...
Add double submission protection in Save button
Add double submission protection in Save button
JavaScript
mit
marmelab/admin-on-rest,matteolc/admin-on-rest,matteolc/admin-on-rest,marmelab/admin-on-rest
39d265f663f47793ad4ac91216b848ec4da9a73a
app/scripts/main.js
app/scripts/main.js
'use strict'; var localforage = require('localforage'); var $body = $('body'); ['theme', 'mode'].forEach(function (property) { localforage.getItem(property, function (value) { if (!value) { value = 'default'; localforage.setItem(property, value); } else { // For non-first time users, we wa...
'use strict'; var localforage = require('localforage'); var $body = $('body'); ['theme', 'mode'].forEach(function (property) { localforage.getItem(property, function (value) { if (!value) { value = 'default'; localforage.setItem(property, value); } else { // For non-first time users, we wa...
Set mode and theme custom dimensions instead of sending event
Set mode and theme custom dimensions instead of sending event
JavaScript
mit
zhouyichen/nusmods,Yunheng/nusmods,nusmodifications/nusmods,nusmodifications/nusmods,nathanajah/nusmods,chunqi/nusmods,chunqi/nusmods,chunqi/nusmods,nathanajah/nusmods,mauris/nusmods,chunqi/nusmods,nathanajah/nusmods,nathanajah/nusmods,nusmodifications/nusmods,zhouyichen/nusmods,Yunheng/nusmods,Yunheng/nusmods,nusmodif...
22ab2c05c83dc0855a878a34e45b08ebfe3c9f77
blueprints/ember-cli-typescript/index.js
blueprints/ember-cli-typescript/index.js
/* eslint-env node */ const path = require('path'); module.exports = { description: 'Initialize files needed for typescript compilation', files() { return [ path.join(this.path, 'files', 'tsconfig.json'), path.join(this.path, 'files', 'app', 'config', 'environment.d.ts'), ]; }, mapFile()...
/* eslint-env node */ const path = require('path'); module.exports = { description: 'Initialize files needed for typescript compilation', files() { return [ path.join(this.path, 'files', 'tsconfig.json'), path.join(this.path, 'files', 'app', 'config', 'environment.d.ts'), ]; }, mapFile()...
Use 'latest' for typing versions.
Use 'latest' for typing versions.
JavaScript
mit
emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript
907620ba91313e95cabcc7104b0d52225cb77e28
src/logger/steps/writing.js
src/logger/steps/writing.js
/** * Step 5 * Where you write the generator specific files (routes, controllers, etc) */ const SOURCE_CONFIG = name => `${name}Config.js`; const DESTINATION_CONFIG = `config/log.js`; export default function () { let logger = this['logger-name']; this.template(SOURCE_CONFIG(logger), DESTINATION_CONFIG, {logg...
/** * Step 5 * Where you write the generator specific files (routes, controllers, etc) */ const SOURCE_CONFIG = name => `${name}Config.js`; const DESTINATION_CONFIG = `config/log.js`; export default function () { let logger = this['logger-name'].toLowerCase(); this.template(SOURCE_CONFIG(logger), DESTINATION...
Fix issue with lower-cased form of logger name
fix(logger): Fix issue with lower-cased form of logger name
JavaScript
mit
ghaiklor/generator-sails-rest-api,konstantinzolotarev/generator-trails,italoag/generator-sails-rest-api,jaumard/generator-trails,ghaiklor/generator-sails-rest-api,tnunes/generator-trails,italoag/generator-sails-rest-api
1c8c0e06f8b6f89c1a06958a58f5b5e55be63b2b
checkCoverage.js
checkCoverage.js
var data = ''; process.stdin.on('data', function(chunk) { data += chunk; }); process.stdin.on('end', function() { var regExp = /[0-9]+([.][0-9]+)?%/g; var match; do { match = regExp.exec(data); if (match) { var percent = parseFloat(match[0].substring(0, match[0].length - 1)); if (percent < 80)...
var MIN_METRIC_COVERAGE = 90.0; var data = ''; process.stdin.on('data', function(chunk) { data += chunk; }); process.stdin.on('end', function() { var regExp = /[0-9]+([.][0-9]+)?%/g; var match; do { match = regExp.exec(data); if (match) { var percent = parseFloat(match[0].substring(0, match[0].leng...
Raise the bar on test coverage from 80% to 90%
Raise the bar on test coverage from 80% to 90%
JavaScript
apache-2.0
foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2
50d3aeafe00053c798d4049a0eafa07edb7a42c2
server/src/main/webui/app/components/contextItem.js
server/src/main/webui/app/components/contextItem.js
import React from "react" import { Nav, NavItem, Collapse } from "react-bootstrap" var threadNavStyle = { backgroundColor: 'rgb(220, 220, 220)', color: 'black' }; export default React.createClass({ getInitialState: function() { return {} }, render: function() { var { title, ...oth...
import React from "react" import { Button, ButtonGroup, NavItem, Collapse } from "react-bootstrap" export default React.createClass({ getInitialState: function() { return {} }, render: function() { var { title, ...other } = this.props; return ( <NavItem {...other}> ...
Switch to using a button group for the context selector.
Switch to using a button group for the context selector.
JavaScript
mpl-2.0
mcnulty/udidb,mcnulty/udidb,mcnulty/udidb,mcnulty/udidb,mcnulty/udidb
ed29712fac2ec580c3e0030f96a5c77bf1e1ece2
spec/arethusa.core/directives/lang_specific_spec.js
spec/arethusa.core/directives/lang_specific_spec.js
"use strict"; describe('lang-specific directive', function() { var element; var documentStore; function createDocumentStore() { return { store: { treebank: { json: { treebank: {} } } } }; } beforeEach(module('arethusa.core')); var create...
"use strict"; describe('lang-specific directive', function() { var element; var documentStore; function createLanguageSettingsWith(settings) { return { getFor: function(doc) { return settings; } }; } beforeEach(module('arethusa.core')); var createElement = function() { inj...
Update lang-specific specs to stub languageSettings
Update lang-specific specs to stub languageSettings
JavaScript
mit
alpheios-project/arethusa,PonteIneptique/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa
7691964f1a2afd88154514548145d760778b71c4
packages/soya-next/config/default.js
packages/soya-next/config/default.js
const config = require("config"); let basePath; if (config.basePath) { if (typeof config.basePath === "string") { basePath = { test: config.basePath }; } basePath = config.basePath; } config.assetPrefix = config.assetPrefix || basePath || ""; config.configOrigin = config.configOrigin || "default"; c...
const config = require("config"); let basePath; if (config.basePath) { if (typeof config.basePath === "string") { basePath = config.basePath; } else { basePath = config.basePath && config.basePath.test; } } config.assetPrefix = config.assetPrefix || basePath || ""; config.configOrigin = config.configOrigi...
Fix wrong assetPrefix when using basePath as object
Fix wrong assetPrefix when using basePath as object
JavaScript
mit
traveloka/soya-next
41c4683e6b4c967aaeaa6a676dd252b6182dea52
app/assets/javascripts/controllers/NavController.js
app/assets/javascripts/controllers/NavController.js
function NavController($scope, Auth) { $scope.signedIn = Auth.isAuthenticated; $scope.logout = Auth.logout; Auth.currentUser().then(function (user) { $scope.user = user; }); $scope.$on('devise:new-registration', function (e, user) { $scope.user = user; }); $scope.$on('devise:login', function (e...
function NavController($scope, $state, Auth) { $scope.signedIn = Auth.isAuthenticated; $scope.logout = Auth.logout; Auth.currentUser().then(function (user) { $scope.user = user; }); $scope.$on('devise:new-registration', function (e, user) { $scope.user = user; }); $scope.$on('devise:login', fun...
Load home page on logout
Load home page on logout
JavaScript
mit
davdkm/whats-good,davdkm/whats-good,davdkm/whats-good
2ddea6322f9f3a1522899c19903e49476346bac9
js/components/developer/job-preview-screen/jobTypeCardPreview.js
js/components/developer/job-preview-screen/jobTypeCardPreview.js
import React, { Component } from 'react'; import { Card } from 'native-base'; import CardImageHeader from '../../common/card-image-header/cardImageHeader'; import SimpleCardBody from '../../common/simple-card-body/simpleCardBody'; export default class JobTypeCardPreview extends Component { static propTypes = { ...
import React, { Component } from 'react'; import { Card } from 'native-base'; import CardImageHeader from '../../common/card-image-header/cardImageHeader'; import SimpleCardBody from '../../common/simple-card-body/simpleCardBody'; import { imageProp } from '../../common/propTypes'; export default class JobTypeCardPre...
Make JobTypeCardPreview use imageProp from propTypes
Make JobTypeCardPreview use imageProp from propTypes
JavaScript
mit
justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client
f283ed1c9df5b8daee0fe32d9670d23100733d33
test/style-examples.test.js
test/style-examples.test.js
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
Test that no mapid is set on example styles.
Test that no mapid is set on example styles.
JavaScript
bsd-3-clause
wakermahmud/mapbox-studio,tizzybec/mapbox-studio,wakermahmud/mapbox-studio,tizzybec/mapbox-studio,adozenlines/mapbox-studio,mapbox/mapbox-studio-classic,wakermahmud/mapbox-studio,crowdcover/mapbox-studio,danieljoppi/mapbox-studio,Zhao-Qi/mapbox-studio-classic,AbelSu131/mapbox-studio,Zhao-Qi/mapbox-studio-classic,ali/ma...
68b3c1b5a93b20ffcbeffb051b3c4fdf6c1eab23
client/desktop/app/components/Profile.js
client/desktop/app/components/Profile.js
import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' class Profile extends React.Component { constructor(props){ super(props); this.state = { teacherData: { name: 'Teachy McTeacherton', email: 'teachy@teach.er' } }; } render(){ retu...
import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' var auth = require('./../utils/auth'); class Profile extends React.Component { constructor(props){ super(props); this.state = { teacherData: { name: 'Teachy McTeacherton', email: 'teachy@teach.er' ...
Add functionality to logout button
Add functionality to logout button
JavaScript
mit
absurdSquid/thumbroll,Jakeyrob/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll,absurdSquid/thumbroll
459775e9dd3d8b0c0119315615d6a4583de43503
test/test_dummy/test_api.js
test/test_dummy/test_api.js
var assert = require("assert"); var Q = require("q"); var api = require("../../lib/dummy/api"); var DummyApi = api.DummyApi; var resources = require("../../lib/dummy/resources"); var DummyResource = resources.DummyResource; var ToyResource = DummyResource.extend(function(self) { DummyResource.call(self); s...
var assert = require("assert"); var vumigo = require("../../lib"); var test_utils = vumigo.test_utils; var DummyApi = vumigo.dummy.api.DummyApi; var DummyResource = vumigo.dummy.resources.DummyResource; var ToyResource = DummyResource.extend(function(self) { DummyResource.call(self); self.name = 'toy'; ...
Remove old parts of DummyApi tests
Remove old parts of DummyApi tests
JavaScript
bsd-3-clause
GeekFreaker/vumi-jssandbox-toolkit,GeekFreaker/vumi-jssandbox-toolkit
583efbc9c4751605f63b5ec181e3328900c93b85
app/javascript/src/componentLoader/index.js
app/javascript/src/componentLoader/index.js
import { createLoader } from 'react-hijack'; const componentLoader = createLoader((module) => import('' + module)); export default componentLoader;
import { createLoader } from 'react-hijack'; const componentLoader = createLoader((module) => import('./components/' + module)); export default componentLoader;
Add component path at module level
refactor(componentLoader): Add component path at module level Instead of forcing this knowledge on the add-on, we inserted it here. The benefit is that we are able to point the core to whatever directory we choose, without modifying each addon in turn.
JavaScript
mpl-2.0
mlorb/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web,mlorb/scinote-web,mlorb/scinote-web
d095feef61adc341ec526414997031849517928e
src/client/webpack.config.js
src/client/webpack.config.js
const path = require('path'); const webpackConfig = { entry: path.join(__dirname, 'index.js'), output: { path: path.join(__dirname, '../server/static'), filename: 'bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /\.jsx?$/, loader: 'babel', exclude: ...
const path = require('path'); const webpackConfig = { entry: path.join(__dirname, 'index.js'), output: { path: path.join(__dirname, '../server/static'), filename: 'bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /\.jsx?$/, loader: 'babel', exclude: ...
Bring back regular css loading
Bring back regular css loading
JavaScript
mit
hkal/timeworthy,hkal/timeworthy
44f0851bc77e3469da2bd00dbe8fcd5ac2341691
input/composites/line.js
input/composites/line.js
'use strict'; var sepItems = require('es5-ext/array/#/sep-items') , d = require('d/d') , DOMInput = require('./_observable') , resolveTriggers = require('dbjs/_setup/utils/resolve-static-triggers') , Input; module.exports = Input = function (document, ns/*, options*/) { DOMInput....
'use strict'; var sepItems = require('es5-ext/array/#/sep-items') , d = require('d/d') , memoize = require('memoizee/lib/primitive') , DOMInput = require('./_observable') , resolveProps = require('esniff/accessed-properties')('this') , re = new RegExp('^\\s*function\\s*(?:[\\0-\'\\)-...
Update up to changes in dbjs
Update up to changes in dbjs
JavaScript
mit
medikoo/dbjs-dom
53ad668e0393db9f9aff42c86756a4dc8c5d21f4
src/containers/search_bar.js
src/containers/search_bar.js
import React, { Component } from 'react'; export default class SearchBar extends Component { render() { return ( <form className='input-group'> <input /> <span className='input-group-btn'> <button type='submit' className='btn btn-secondary'>Submit</button> </span> </...
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = {term: ''} this.onInputChange = this.onInputChange.bind(this); } onInputChange(event) { this.setState({term: event.target.value}); } onFormSubmit(eve...
Add Form submit handler to search bar
Add Form submit handler to search bar
JavaScript
mit
StephanYu/modern_redux_weather_forecast,StephanYu/modern_redux_weather_forecast
650881eeb7df87e5405fc964c17eea59f0d052af
public/javascripts/endless_scroll.js
public/javascripts/endless_scroll.js
var scroll_lock = false; var last_page = false; var current_page = 1; function checkScroll() { if(!last_page && !scroll_lock && nearBottomOfPage()) { scroll_lock = true; current_page++; var qs = $H(location.search.toQueryParams()); qs.each(function(pair) { qs.set(pair.key, pair.value.re...
var scroll_lock = false; var last_page = false; var current_page = 1; function checkScroll() { if(!last_page && !scroll_lock && nearBottomOfPage()) { scroll_lock = true; current_page++; var qs = $H(location.search.toQueryParams()); qs.each(function(pair) { qs.set(pair.key, pair.value.re...
Make lightwindow work after ajax load
Make lightwindow work after ajax load
JavaScript
mit
bloopletech/mangar,bloopletech/pictures,bloopletech/mangar,bloopletech/pictures,bloopletech/mangar,bloopletech/mangar
bee8d8033cd299ab8dea04168739bc09ee1bc17e
assets/javascript/controllers/chartsController.js
assets/javascript/controllers/chartsController.js
'use strict'; var ChartsController = function($scope, $rootScope) { $scope.drawChart = function() { if ($scope.geoAggData && $scope.geoAggData.length > 0) { console.log('$scope.geoAggData', $scope.geoAggData, 'length', $scope.geoAggData); // instantiate d3plus d3plus.viz() .container('#...
'use strict'; var ChartsController = function($scope, $rootScope) { $scope.drawChart = function() { if ($scope.geoAggData && $scope.geoAggData.length > 0) { var length = $scope.geoAggData.length; var height = 320; var width = 370; var margin = '-40px 10px 0px 0px'; if (length == 1)...
Reduce size of chart with query
Reduce size of chart with query
JavaScript
apache-2.0
gogeolbs/police-uk,gogeolbs/police-uk
0739d7571aa85c9173486a4746579b660565c17e
assets/js/googlesitekit/widgets/util/constants.js
assets/js/googlesitekit/widgets/util/constants.js
/** * Widgets layout constants. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 ...
/** * Widgets layout constants. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 ...
Add RecoverableModules as special widget state.
Add RecoverableModules as special widget state.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
cc9217416427e9418c698ae61ff5366f148babc7
src/stats/getChunkModules.js
src/stats/getChunkModules.js
/* * @flow */ import type {RawStats, Module} from '../types/Stats'; import type {Child} from './getEntryHeirarchy'; import getModulesByChunk from './getModulesByChunk'; export default function getChunkModules( stats: RawStats, parentChunks: ?Array<Child>, ): ?Array<Module> { if (!parentChunks) { return ...
/* * @flow */ import type {RawStats, Module} from '../types/Stats'; import type {Child} from './getEntryHeirarchy'; import getModulesByChunk from './getModulesByChunk'; export default function getChunkModules( stats: RawStats, parentChunks: ?Array<Child>, ): ?Array<Module> { if (!parentChunks) { return ...
Check for undefined when fetching a chunkWithModules by chunk.id
Check for undefined when fetching a chunkWithModules by chunk.id
JavaScript
apache-2.0
pinterest/bonsai,pinterest/bonsai,pinterest/bonsai
71b03e948d5b28dd6f3b6fe5704682087e43d843
scripts/webpack/webpack.dev.babel.js
scripts/webpack/webpack.dev.babel.js
/** * In development we assume that the code generated is going to be consumed by * webpack dev server and we are bundling into a single js file. */ import webpack from 'webpack'; import webpackConfigBase from './webpack.base.babel'; import HtmlWebpackPlugin from 'html-webpack-plugin'; const plugins = [ new Html...
/** * In development we assume that the code generated is going to be consumed by * webpack dev server and we are bundling into a single js file. */ import webpack from 'webpack'; import webpackConfigBase from './webpack.base.babel'; import HtmlWebpackPlugin from 'html-webpack-plugin'; const plugins = [ new Html...
Allow any host connection to local dev
feat(tooling): Allow any host connection to local dev
JavaScript
mit
adamweeks/react-ciscospark-1,bzang/react-ciscospark,bzang/react-ciscospark,ciscospark/react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,ciscospark/react-ciscospark,ciscospark/react-ciscospark,bzang/react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,Altocloud/alto-r...
7438f9092bff0b6098a27c67f8af33dee8e61d30
public/js/views/sidebar_view.js
public/js/views/sidebar_view.js
chorus.views.Sidebar = chorus.views.Base.extend({ constructorName: "SidebarView", preRender:function () { this._super("preRender", arguments); // We don't want to deal with having multiple declarations of `events`, // so we unbind click in preRender and bind it in postRender. $(...
chorus.views.Sidebar = chorus.views.Base.extend({ constructorName: "SidebarView", preRender:function () { this._super("preRender", arguments); // We don't want to deal with having multiple declarations of `events`, // so we unbind click in preRender and bind it in postRender. $(...
Add data attr for sidebar template higher up in DOM
Add data attr for sidebar template higher up in DOM
JavaScript
apache-2.0
hewtest/chorus,hewtest/chorus,prakash-alpine/chorus,atul-alpine/chorus,jamesblunt/chorus,prakash-alpine/chorus,jamesblunt/chorus,atul-alpine/chorus,mpushpav/chorus,jamesblunt/chorus,atul-alpine/chorus,atul-alpine/chorus,mpushpav/chorus,atul-alpine/chorus,jamesblunt/chorus,mpushpav/chorus,hewtest/chorus,mpushpav/chorus,...
6810534719c1d413d132c1bef1ec90d94db9f48e
lib/config/type/starts.js
lib/config/type/starts.js
'use babel' export default { eslintrc: { config: { description: '.eslint', icons: [ 'ESLint' ], title: 'ESLint', }, match: [ '.eslint' ], }, git: { config: { description: '.git', icons: [ 'Git', 'GitHub', 'GitHubAlt' ], title: 'Git', }, match: [ '.git' ...
'use babel' export default { eslintrc: { config: { description: '.eslint', icons: [ 'ESLint' ], title: 'ESLint', }, match: [ '.eslint' ], }, git: { config: { description: '.git', icons: [ 'Git', 'GitHub', 'GitHubAlt' ], title: 'Git', }, match: [ '.git' ...
Add icon for .npm files
Add icon for .npm files Refs #1
JavaScript
mit
wyze/atom-flexicons
393c8b0632b71ed8f034f2f5bbc3e2d424eaf0e7
src/components/BoardgameListItem/BoardgameListItem.js
src/components/BoardgameListItem/BoardgameListItem.js
import React, { Component, PropTypes } from 'react'; export default class BoardgameListItem extends Component { static propTypes = { name: PropTypes.string.isRequired, year: PropTypes.string } render() { const { name, year } = this.props; return ( <div className="media"> <div class...
import React, { Component, PropTypes } from 'react'; export default class BoardgameListItem extends Component { static propTypes = { name: PropTypes.string.isRequired, year: PropTypes.number, thumbnail: PropTypes.string, score: PropTypes.number } render() { const { name, year, thumbnail, sco...
Update BoardgameListComponent to accept more input
Update BoardgameListComponent to accept more input
JavaScript
mit
fuczak/pipsy
302e046fc864e88380efb390521bc1ed0dbe98d7
lib/loaders/typescript.js
lib/loaders/typescript.js
'use strict'; module.exports = isAngularProject => ({ test: /\.tsx?$/, exclude: /(node_modules)/, loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'], query: { logInfoToStdOut: true } });
'use strict'; module.exports = isAngularProject => ({ test: /\.tsx?$/, exclude: /(node_modules)/, loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'] });
Revert Lod ts-loader info to stdout
Revert Lod ts-loader info to stdout
JavaScript
mit
kupriyanenko/wix-node-build,kupriyanenko/wix-node-build
670b7abfd5edeea6359f4ff3f66adc0b91648e06
rcmet/src/main/ui/config/karma.conf.js
rcmet/src/main/ui/config/karma.conf.js
basePath = '../'; files = [ JASMINE, JASMINE_ADAPTER, 'app/js/jquery-1.9.1.min.js', 'app/js/bootstrap.js', 'app/lib/angular/angular.js', 'app/lib/angular/angular-*.js', 'test/lib/angular/angular-mocks.js', 'app/js/leaflet.js', 'app/js/**/*.js', 'test/unit/**/*.js' ]; autoWatch = true; browsers = ...
basePath = '../'; files = [ JASMINE, JASMINE_ADAPTER, 'app/lib/jquery/jquery-1.10.1.js', 'app/lib/jquery/jquery-ui/jquery-ui-1.10.3.min.js', 'app/lib/bootstrap/bootstrap.js', 'app/lib/angular/angular.js', 'app/lib/angular/angular-*.js', 'test/lib/angular/angular-mocks.js', 'app/lib/jquery/jquery-ui/d...
Resolve CLIMATE-112 - Unit tests don't run after refactoring
Resolve CLIMATE-112 - Unit tests don't run after refactoring - The unit tests now run properly. That being said, they're still outdated and useless. This will be addressed in a future issue. git-svn-id: https://svn.apache.org/repos/asf/incubator/climate/trunk@1493995 13f79535-47bb-0310-9956-ffa450edef68 Former-com...
JavaScript
apache-2.0
MBoustani/climate,kwhitehall/climate,apache/climate,lewismc/climate,pwcberry/climate,agoodm/climate,riverma/climate,huikyole/climate,MBoustani/climate,jarifibrahim/climate,huikyole/climate,jarifibrahim/climate,pwcberry/climate,kwhitehall/climate,apache/climate,kwhitehall/climate,riverma/climate,pwcberry/climate,agoodm/...
4194e00f48567d7f4928e6d645ed2382791fad73
bin/extension.js
bin/extension.js
const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, '../dist/devpanel.tmpl.html'); const distPath = path.join(__dirname, '../dist/devpanel.html'); const startRemoteDev = require('remotedev-server'); const html = fs.readFileSync(filePath, 'utf-8'); module.exports = function(ar...
const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, '../dist/devpanel.tmpl.html'); const distPath = path.join(__dirname, '../dist/devpanel.html'); const startRemoteDev = require('remotedev-server'); const html = fs.readFileSync(filePath, 'utf-8'); module.exports = argv => { ...
Apply runserver option will return socketcluster server
Apply runserver option will return socketcluster server
JavaScript
mit
jhen0409/remotedev-extension,jhen0409/remotedev-extension