commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
b611d5182ddf5783751bb4db0cc3e687633098bd
Fix path with tests on windows
tasks/data-tests.js
tasks/data-tests.js
"use strict"; var path = require('path'), moment = require('moment'), tz = require('../').tz, helpers = require('../tests/helpers/helpers'); /** * Creates a test for a provided time change (zone.untils[i]) */ function changeTest (zone, i) { var until = moment.utc(zone.untils[i]), minutesOffset = zone....
JavaScript
0.000001
@@ -1510,16 +1510,36 @@ elpers') +.replace(/%5C%5C/g, '/') ;%0A%09retur
7547d49df37409119c91136e815f746a8d2ea02c
Add chat history with keyup and down
client/Chat.js
client/Chat.js
// @flow import ms from 'ms'; import socket from './socket'; import messageSchema from '../schemas/message'; import state from './state'; const Message = { props: ['message'], data() { return {title: ''}; }, template: ` <div v-on:mouseover="fromNow" v-bind:title="title"> <div v-if="message.raw">...
JavaScript
0
@@ -1186,17 +1186,41 @@ sage: '' +,%0A negativeIndex: 1 %0A - %7D;%0A @@ -1479,24 +1479,105 @@ ateMessage%22%0A + v-on:keyup.up=%22pastMessage(1)%22%0A v-on:keyup.down=%22pastMessage(-1)%22%0A /%3E%0A @@ -2201,16 +2201,16 @@ %7D));%0A - th @@ -2222,24 +2222,375 @@ ssage...
057b1f59b17be202f21052469b56de2f44dc4d92
use individual arrays to reset stream
lib/client/stream.js
lib/client/stream.js
var utils = require('./utils'); // Event stream factory module.exports = function factory (instance, inputStream) { // create stream object var stream = utils.clone(Stream); stream._ = instance; stream._d = []; stream._o = []; stream._b = []; if (inputStream) { stream._i = inp...
JavaScript
0
@@ -2341,23 +2341,57 @@ is._o = -this._b +%5B%5D;%0A this._b = %5B%5D;%0A this._d = %5B%5D;%0A
21d79b19dc008f52d1da32314113ebeabacaa8dc
use prototype based OOP
javascript/onp.js
javascript/onp.js
function editdistance(a, b) { var m, n, offset, delta, size, fp, p; m = a.length; n = b.length; if (m >= n) { var tmp; tmp = a; a = b; b = tmp; } offset = m + 1; delta = n - m; size = m + n + 3; fp = {}; for (var i=0;i<size;++i) { fp[i] = -1; } ...
JavaScript
0.000002
@@ -3,28 +3,20 @@ unction -editdistance +Diff (a, b) %7B @@ -24,50 +24,13 @@ -var m, n, offset, delta, size, fp, p;%0A +this. m = @@ -43,16 +43,21 @@ th;%0A +this. n = b.le @@ -74,41 +74,61 @@ if ( -m %3E= n) %7B%0A%09var tmp;%0A%09tmp = a;%0A%09a +this.m %3E= this.n) %7B%0A%09var tmp = this.a;%0...
3847ecb00ededdb93eb9b9555cbae0b74ca81bff
Disable callback-return lint rule
lib/node_modules/@stdlib/utils/find/lib/find.js
lib/node_modules/@stdlib/utils/find/lib/find.js
'use strict'; // MODULES // var isFunction = require( '@stdlib/utils/is-function' ); var isInteger = require( '@stdlib/utils/is-integer' ).isPrimitive; var isObject = require( '@stdlib/utils/is-plain-object' ); var isString = require( '@stdlib/utils/is-string' ).isPrimitive; var isArrayLike = require( '@stdlib/utils/...
JavaScript
0.000001
@@ -4053,24 +4053,63 @@ i, arr ) ) %7B + // eslint-disable-line callback-return %0A%09%09%09%09if ( mo @@ -4453,24 +4453,63 @@ i, arr ) ) %7B + // eslint-disable-line callback-return %0A%09%09%09if ( mod
0ee42ec3fb8f395769261b8947522c0504460191
complete renaming of getCommandsEvent to getCommands
lib/commando/pool.js
lib/commando/pool.js
import DefaultLauncher from 'commando/launcher/default'; import PromiseLauncher from 'commando/launcher/promise'; import { isArray } from 'commando/utils'; export default CommandPool; // Command pool constructor // ------------------------ // // Accepts these args: // * `eventHub`: Object to use to bind events to co...
JavaScript
0
@@ -2430,37 +2430,32 @@ this.getCommands -Event (event);%0A if @@ -3037,13 +3037,8 @@ ands -Event (eve
40658a72a25f391408068338436f8c073edbf3ec
remove `new` indicator in doc.
docs/router/routes.js
docs/router/routes.js
// DO NOT ADD ANYTHING ELSE EXCEPT ROUTE ITEM INTO THIS FILE // routes order = menu order const routes = [ { path: '/', meta: { type: 'home', label: 'Home' }, component: () => import('./../components/Home.vue') }, { path: '/getting-started', meta: { type: 'usage', l...
JavaScript
0
@@ -2321,33 +2321,16 @@ : 'Form' -,%0A new: true %0A %7D,%0A @@ -3930,25 +3930,8 @@ ion' -,%0A new: true %0A
1abf045b302d26ac36b5c230e09c88a2c8eaba38
Add the ability to have storage client set alternate serviceType
lib/pkgcloud/openstack/storage/storageClient.js
lib/pkgcloud/openstack/storage/storageClient.js
/* * storageClient.js: A base StorageClient for Openstack & * Rackspace storage clients * * (C) 2013 Rackspace * Ken Perkins * MIT LICENSE * */ var urlJoin = require('url-join'), _ = require('underscore'); const CONTAINER_META_PREFIX = 'x-container-meta-'; const CONTAINER_REMOVE_META_PREFIX = 'x-remo...
JavaScript
0
@@ -976,24 +976,192 @@ '/'));%0A %7D%0A%0A + var serviceUrl = options.serviceType ? this._identity.getServiceEndpointUrl(%7B%0A serviceType: options.serviceType,%0A region: this.region%0A %7D) : this._serviceUrl;%0A%0A if (fragme @@ -1204,22 +1204,16 @@ return -this._ serviceU @@ -1238,22 +1238,16 @@ ...
6640791aef091c3bcf74e57016fd709559321ba0
fix reported number of results for list command
lib/commands/list.js
lib/commands/list.js
/*! * CPM - Couch Package Manager * Copyright (c) 2010 Caolan McMahon * MIT Licensed */ /** * Module dependencies */ var logger = require('../logger'), instance = require('../instance'), repository = require('../repository'), settings = require('../settings'), packages = require('../packages'), ...
JavaScript
0.000001
@@ -1294,22 +1294,19 @@ -packag +nam es.lengt
02afbec042f76fab8e6fc23825a913d69aa2b23c
Fix missing headers in Windows 8 upload proxy
www/windows8/FileTransferProxy.js
www/windows8/FileTransferProxy.js
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
JavaScript
0.000004
@@ -1156,16 +1156,56 @@ ons%5B1%5D;%0A + var headers = options%5B8%5D %7C%7C %7B%7D;%0A %0A%0A @@ -2161,16 +2161,34 @@ formData +, headers: headers %7D).then
20df59b0fc11c79a95b271b0d796e3a7f1af0650
Fix resizing issue in split mode. Alsop, remove annotation that the spec is read only, although it is invisible.
src/components/input-panel/compiled-spec-header/index.js
src/components/input-panel/compiled-spec-header/index.js
import React from 'react'; import { connect } from 'react-redux'; import * as EditorActions from '../../../actions/editor'; const toggleStyle = { cursor:'pointer', position: 'absolute', bottom: 0, }; const svgStyle = { position:'absolute', right:'50%', height: 25, width: 35 } class CompiledSpecDisplayH...
JavaScript
0
@@ -623,17 +623,16 @@ %3Cdiv - classNam @@ -1212,54 +1212,8 @@ div -className=%7B'full-height-wrapper'%7D%0A onCl @@ -1530,129 +1530,8 @@ vg%3E%0A - %3Cspan style=%7B%7BmarginRight: 10, position: 'absolute', right: 0%7D%7D%3E%0A Read Only%0A %3C/span%3E%0A ...
2e40d8d28af218c73aa8bce71bf21062fc841766
return on error
lib/convert2video.js
lib/convert2video.js
'use strict'; var fs = require('fs'); var child = require('child_process'); var uuid = require('uuid'); var dataURIBuffer = require('data-uri-to-buffer'); var glob = require('glob'); var async = require('async'); var TMP_DIR = __dirname + '/../tmp/'; var IMAGE_FORMAT = 'jpg'; exports.transform = function (mediaArr,...
JavaScript
0.000033
@@ -1524,32 +1524,39 @@ rr) %7B%0A +return callback(err);%0A
48dcb0994166e5dfaca57096669de1680c63d2fa
version minificada
jquery.rut.min.js
jquery.rut.min.js
!function(a){function b(a){return a.replace(/[\.\-]/g,"")}function c(a){rutAndDv=i(a);var b=rutAndDv[0],c=rutAndDv[1];if(!b||!c)return b||a;for(var d="";b.length>3;)d="."+b.substr(b.length-3)+d,b=b.substring(0,b.length-3);return b+d+"-"+c}function d(a){return a.type&&a.type.match(/^key(up|down|press)/)&&(8==a.keyCode||...
JavaScript
0.000001
@@ -1721,17 +1721,17 @@ computeD -V +v =functio
855c0ca0e021936e3237e2a068f68e3f0b95c309
Update CrowdFundrr.js
js/CrowdFundrr.js
js/CrowdFundrr.js
/* var CrowdFunding = web3.eth.contractFromAbi([{"constant":true,"inputs":[],"name":"numCampaigns","outputs":[{"name":"numCampaigns","type":"uint256"}]},{"constant":false,"inputs":[],"name":"get_numCampaigns","outputs":[{"name":"r_numCampaigns","type":"uint256"}]},{"constant":false,"inputs":[{"name":"campaignID","type"...
JavaScript
0.000001
@@ -5068,16 +5068,17 @@ amp);%0A%7D%0A +%0A function @@ -5174,25 +5174,24 @@ ().getCampai -g n(c_id);%0A a
ccd4b6e373f619a85b183815aedb40baf8fc0376
check if image or a diff with bg image
js/agentorange.js
js/agentorange.js
var defaultName = "Agent Orange"; if(chrome.storage.sync.get({ paused: false },function(res){ if(!res.paused){ var finder, trumpRegex = /realdonaldtrump|donald j. trump|donald john trump|donaldjtrump|Donald J. Trump|Donald J Trump|donald\strump|donaldjtrump|donaldtrump|\btrump(?='s)|DonaldTrump|\b(tr...
JavaScript
0.000001
@@ -1310,50 +1310,8 @@ ));%0A - $(this).attr(%22src%22,imgRef);%0A @@ -1398,24 +1398,89 @@ Ref + ')');%0A + %7Delse%7B%0A $(this).attr(%22src%22,imgRef);%0A
e1f04e41eab7ca9a25215ee94fa8e376833efc4c
Rewrite Vpn to ES2015
lib/endpoints/vpn.js
lib/endpoints/vpn.js
'use strict'; var Vpn = function (request) { this.request = request; }; // https://github.com/GleSYS/API/wiki/functions_vpn#vpncreateuser Vpn.prototype.createUser = function (data) { return this.request.post('/vpn/createuser', data); }; // https://github.com/GleSYS/API/wiki/functions_vpn#vpndeleteuser Vpn.pr...
JavaScript
0.000263
@@ -12,26 +12,35 @@ ';%0A%0A -var Vpn = function +class Vpn %7B%0A constructor (re @@ -52,16 +52,20 @@ ) %7B%0A + + this.req @@ -80,20 +80,27 @@ equest;%0A -%7D;%0A%0A + %7D%0A%0A // https @@ -161,43 +161,22 @@ ser%0A -Vpn.prototype.createUser = function + createUser (da @@ -173,32 +173,3...
88f130c5c762a68e02b64178fa0e2cce2c02ae1f
Comment which key progresses algorithm
js/application.js
js/application.js
;(function(){ var G = dijkstra.hexGrid(2); var view = new dijkstra.GraphView(G, document.getElementById('graph'), { placement: function(position){ return { 'x': 100 * position.x, 'y': 100 * position.y }}, radius: 20, between: 0.3, vertex: { ...
JavaScript
0.000017
@@ -1026,16 +1026,31 @@ == 32) %7B + /* spacebar */ %0A
6aa29360328877bed73e57f58f26f33dd4524e54
Update auto-reload.js
js/auto-reload.js
js/auto-reload.js
/* * auto-reload.js * https://github.com/savetheinternet/Tinyboard/blob/master/js/auto-reload.js * * Brings AJAX to Tinyboard. * * Released under the MIT license * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; * $conf...
JavaScript
0
@@ -460,16 +460,77 @@ t index%0A +%09%09%0A%09if($(%22.post.op%22).size() != 1)%0A%09return; //not thread page%0A %09%0A%09var p
8cbce837aac485e92953e3bcfae567968098fd3d
Change marker icon without generating a new imgt p
src/geo/geometry-views/leaflet/leaflet-marker-adapter.js
src/geo/geometry-views/leaflet/leaflet-marker-adapter.js
var L = require('leaflet'); var MarkerAdapterBase = require('../base/marker-adapter-base'); var LeafletMarkerAdapter = function (nativeMarker) { this._nativeMarker = nativeMarker; }; LeafletMarkerAdapter.prototype = new MarkerAdapterBase(); LeafletMarkerAdapter.prototype.constructor = LeafletMarkerAdapter; Leaflet...
JavaScript
0.000001
@@ -1,32 +1,4 @@ -var L = require('leaflet');%0A var @@ -1229,51 +1229,300 @@ %7B%0A -var newIcon = L.icon(%7B%0A iconUrl: +// Leaflet provides the %60setIcon%60 method which generates a new img for the icon.%0A // We want to be able to update the markers icon while it's being dragged. That's%0A // why we're ...
a0720000661010be549abe6a196ee9d5644338b0
fix sprite.Group.some()
lib/gamejs/sprite.js
lib/gamejs/sprite.js
var gamejs = require('gamejs'); var sprite = require('gamejs/sprite'); var arrays = require('gamejs/utils/arrays'); /** * @fileoverview Provides `Sprite` the basic building block for any game and * `SpriteGroups`, which are an efficient * way for doing collision detection between groups as well as drawing layered *...
JavaScript
0.000001
@@ -4225,32 +4225,39 @@ function() %7B%0A +return Array.prototype.
d8cd1eb7df08c8b983057ea530be4407af0021be
Improve comments and code formatting
lib/gcli/commands.js
lib/gcli/commands.js
/* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ define(function(require, exports, module) { var Command = require('gcli/canon').Command; /** * hidden 'eval' command */ var evalCommandSpec = ...
JavaScript
0
@@ -572,17 +572,66 @@ ht arrow +. We use explicit entities to ensure XML validity %0A - var @@ -950,24 +950,52 @@ unction') %7B%0A + // &#160; is &nbsp;%0A retu @@ -1134,16 +1134,20 @@ t;%0A %7D +%0A catch ( @@ -1349,16 +1349,34 @@ help etc + in the normal way , howeve @@ -1379,16 +1...
2cdddec3f455da81de246045a65aaf860503ed92
add tile as a product dependancy
web/app/components/product/product.js
web/app/components/product/product.js
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import ngAnimate from 'angular-animate'; import ngAria from 'angular-aria'; import ngMaterial from 'angular-material'; import {productComponent} from './product-component'; export const product = angular.module('product', [ uiRouter, ngAnima...
JavaScript
0
@@ -186,16 +186,50 @@ rial';%0A%0A +import %7Btile%7D from './tile/tile';%0A import %7B @@ -373,16 +373,29 @@ Material +,%0A tile.name %0A%5D)%0A.dir
b4c96353a9c0a3528e7064160704e4ea43ba21e7
Update grid-register.js
lib/grid-register.js
lib/grid-register.js
import request from 'request-promise'; import { fs } from 'appium-support'; import logger from './logger'; async function registerNode (configFile, addr, port) { let data; try { data = await fs.readFile(configFile, 'utf-8'); } catch (err) { logger.error(`Unable to load node configuration file to registe...
JavaScript
0
@@ -4011,16 +4011,155 @@ .body);%0A + if (responseData.success !== true) %7B%0A logger.debug(%22%5BERROR%5D %22 + responseData.msg); // if register fail,print the debug msg%0A %7D%0A retu
fe009b71a9d178e6e0788e756aa0cc86dbefff68
fix tests and use utility to setup constants
custom/icds_reports/static/icds_reports/js/spec/indie-map.directive.spec.js
custom/icds_reports/static/icds_reports/js/spec/indie-map.directive.spec.js
/* global module, inject, chai, Datamap, STATES_TOPOJSON, DISTRICT_TOPOJSON, BLOCK_TOPOJSON */ "use strict"; var pageData = hqImport('hqwebapp/js/initial_page_data'); describe('Indie Map Directive', function () { var $scope, $location, controller, $httpBackend, $storageService; pageData.registerUrl('icds_lo...
JavaScript
0
@@ -103,16 +103,68 @@ rict%22;%0A%0A +var utils = hqImport('icds_reports/js/spec/utils');%0A var page @@ -1335,92 +1335,53 @@ -$ +utils. provide -.constant(%22userLocationId%22, null);%0A $provide.constant(%22isAlertActive%22 +DefaultConstants($provide, false , fa
e1ddbd300d5913831d30b8903373de5eaa254289
Allow selection of images in folders with extension (#1976)
lib/gui/os/dialog.js
lib/gui/os/dialog.js
/* * Copyright 2016 resin.io * * 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 law or agreed to in w...
JavaScript
0
@@ -1873,17 +1873,16 @@ nv.OWD,%0A -%0A pr @@ -1911,16 +1911,51 @@ penFile' +,%0A 'treatPackageAsDirectory' %0A %5D
fd980054e51d18d0d15aa38ee67eddff6ce1d766
Replace if with ternary
scripts/wee-routes.js
scripts/wee-routes.js
import pathToRegExp from 'path-to-regexp'; import { _castString, $isArray, $isFunction, $isString, $unserialize } from 'core/types'; import { _doc } from 'core/variables'; import { $exec } from 'core/core'; const REMOVE_SLASHES_REGEXP = /^\/|\/$/g; let _routes = []; let _filters = {}; /** * Add a route to routes arr...
JavaScript
1
@@ -3621,34 +3621,8 @@ i%5D;%0A -%09%09%09let path = route.path;%0A %09%09%09l @@ -3665,37 +3665,36 @@ l);%0A -%0A %09%09%09 -if ( +let path = params -) %7B + ? %0A%09%09%09%09 -path = +%09 path @@ -3710,16 +3710,22 @@ compile( +route. path)(pa @@ -3729,22 +3729,30 @@ (params) -;%0A%09%09%09%7D + : route.pa...
87175045520a8df31dadc2fbd81b683e4284d261
repair subscribe handling
js/controllers.js
js/controllers.js
'use strict'; var target = 'http://eneid-api.herokuapp.com/api/'; myApp.factory('Message', ['$resource', function ($resource) { return $resource(target + 'timeline'); }]); myApp.factory('User', ['$resource', function ($resource) { return $resource(target + 'users'); }]); myApp.controller('TimeLineController'...
JavaScript
0
@@ -2296,27 +2296,39 @@ r.$save( -);%0A +function () %7B%0A console. @@ -2311,32 +2311,35 @@ n () %7B%0A + console.log(user @@ -2334,20 +2334,25 @@ ole.log( -user +arguments );%0A @@ -2346,32 +2346,36 @@ ments);%0A + + $cookies.token = @@ -2407,32 +2407,36 @@ :%22 + pass...
2ada6c33fca5a88ae22411408b7f6e35fd309831
Stop functionality wont remove the application untill the refresh occurs
app/assets/javascripts/angular/controllers/winged_monkey_controllers.js
app/assets/javascripts/angular/controllers/winged_monkey_controllers.js
var wingedMonkeyControllers = angular.module('wingedMonkeyControllers',[]); wingedMonkeyControllers.controller("ProviderAppsCtrl", function($scope, $filter, ProviderApplication) { $scope.appsLoaded = false; $scope.refreshProviderApps = function() { ProviderApplication.query(function(data){ $scope.provid...
JavaScript
0
@@ -549,16 +549,19 @@ %0A + // app.$de @@ -604,29 +604,128 @@ - //success%0A +ProviderApplication.delete(%7Bid: app.id%7D, function() %7B%0A //success%0A app.state = %22DELETING%22;%0A // $sc
c033306709dda30edf08dd2ad6412ef382bd20ee
add .running goal flag
lib/interval-scan.js
lib/interval-scan.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0.000001
@@ -2078,24 +2078,50 @@ ns.timers;%0A%0A + self.running = false;%0A self.tim @@ -2416,19 +2416,20 @@ if ( -! self. -timer +running ) %7B%0A @@ -2902,32 +2902,57 @@ r self = this;%0A%0A + self.running = true;%0A self.setTime @@ -3022,32 +3022,58 @@ r self = this;%0A%0A + self.running = false;%0A...
b4dbc7fdda88de3c18a2b1d23fb29894ae407903
Add event handlers for links in ending soon alert
app/imports/ui/components/alerts/alert-ending-soon/alert-ending-soon.js
app/imports/ui/components/alerts/alert-ending-soon/alert-ending-soon.js
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { ReactiveVar } from 'meteor/reactive-var'; import moment from 'moment'; import './alert-ending-soon.html'; Template.AlertEndingSoon.onCreated(function onCreated() { const self = this; self.threshold = moment.duration(20...
JavaScript
0
@@ -1069,12 +1069,356 @@ );%0A %7D,%0A%7D);%0A +%0ATemplate.AlertEndingSoon.events(%7B%0A 'click .js-edit-end-time'() %7B%0A $('.modal-queue-edit').modal();%0A %7D,%0A%0A 'click .js-end-now'() %7B%0A const ok = confirm('Are you sure you want to end this queue?');%0A if (!ok) return;%0A%0A endQueue.call...
95693b5bbcd667cfbe5379b4c8a5fd74fa9f8c11
set webpack stats chunks
server/bin/compile.js
server/bin/compile.js
const helpers = require('../../config/helpers') const Rimraf = require('rimraf') const debug = require('debug')('app:build:compile') const Webpack = require('webpack') const webpackConfig = require(helpers('./webpack.config.js')) debug('Starting webpack compile.') const webpackCompiler = webpackConfig => ( new Promi...
JavaScript
0.000001
@@ -666,19 +666,20 @@ chunks: -tru +fals e,%0A @@ -695,19 +695,20 @@ odules: -tru +fals e,%0A
09ffb04e4032361a4f9fe64572349d145f36edef
fix up demos restore functionality which was broken by removal of Dataset.restore for #196.
demos/multiview/app.js
demos/multiview/app.js
jQuery(function($) { window.dataExplorer = null; window.explorerDiv = $('.data-explorer-here'); // This is some fancy stuff to allow configuring the multiview from // parameters in the query string // // For more on state see the view documentation. var state = recline.View.parseQueryString(decodeURIComp...
JavaScript
0
@@ -603,25 +603,153 @@ ) %7B%0A +var dataset - = +Info = _.extend(%7B%0A url: state.url,%0A backend: state.backend%0A %7D,%0A state.dataset%0A );%0A dataset = new recline @@ -766,22 +766,20 @@ aset -.restore(state +(datasetInfo );%0A
b11060c6734714a7e647bd035dcb8d63eb070457
fix bug
js/jquery.json.js
js/jquery.json.js
/*! * jQuery Json Plugin (with Transition Definitions) * Examples and documentation at: http://json.cn/ * Copyright (c) 2012-2013 China.Ren. * Version: 1.0.2 (19-OCT-2013) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.3.1 or later */ var JSONForma...
JavaScript
0.000001
@@ -3157,20 +3157,28 @@ ).join(' - +&nbsp;&nbsp; ');%0A
7bc900f7b9d18e55011aaeca2abce06e8c2554ce
Add some js bits to the swift Test model.
demos/swift/js/Test.js
demos/swift/js/Test.js
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ name: 'Test', requires: [ 'somepackage.RequiredClass', ], imports: [ 'testImport', 'testImport2 as testImportTwo', ], exports: [ 'firstName', ], messag...
JavaScript
0
@@ -226,16 +226,17 @@ stImport +? ',%0A ' @@ -246,16 +246,17 @@ tImport2 +? as test @@ -627,32 +627,92 @@ urn firstName',%0A + expression: function(firstName) %7B return firstName %7D,%0A %7D,%0A %7B%0A @@ -1685,24 +1685,51 @@ stAndLast',%0A + code: function() %7B%7D,%0A swiftC @@ ...
6104146375acc2d3240be79ed466e0db733fa9a7
Refactor stub connector and haystack connector code to fix test environment
server/config/base.js
server/config/base.js
module.exports = { // app port port: 8080, // use when https endpoint is needed // https: { // keyFile: '', // path for private key file // certFile: '' // path for ssh cert file // }, // whether to start in cluster mode or not cluster: false, // default timeout in ms ...
JavaScript
0
@@ -2704,103 +2704,8 @@ ure%0A - // - meghduta - gets data from Meghduta, this will also need %60meghdutaApiUrl%60%0A @@ -3324,25 +3324,24 @@ %7D%0A %7D -, %0A%0A // use
2b2bd73702f44cd4de92c58324d7c77ff16bde02
handle new travis states (for building)
js/models/Repo.js
js/models/Repo.js
define( [ 'jquery', 'backbone', 'underscore', 'moment' ], function ($, Backbone, _, moment) { "use strict"; return Backbone.Model.extend({ STATUS_PASSED: 'passed', STATUS_FAILED: 'failed', STATUS_BUILDING: 'building', ...
JavaScript
0
@@ -2702,32 +2702,212 @@ %7D%0A%0A + if ('created' === this.get('last_build_state') %7C%7C 'started' === this.get('last_build_state')) %7B%0A return this.STATUS_BUILDING;%0A %7D%0A%0A
45c6d14ecda8ff3c51abae18082baaea3f01e73b
update url
deploy-robot.config.js
deploy-robot.config.js
const authorizedAuthors = ['plantain-00'] const filter = (comment, author) => comment.indexOf('robot') >= 0 && comment.indexOf('deploy') >= 0 && comment.indexOf('please') >= 0 && authorizedAuthors.findIndex(a => a === author) >= 0 module.exports = function (defaultConfig) { defaultConfig.applications = [ ...
JavaScript
0.001357
@@ -921,19 +921,19 @@ yorkyao. -xyz +com /'%0A @@ -1620,11 +1620,11 @@ yao. -xyz +com /api
525d36c00242663e6c02e9022902d07728245f8d
Simplify check of callback function
js/models/list.js
js/models/list.js
"use strict"; var ko = require("knockout"); var Task = require("./task.js"); var generateId = require("uuid").v4; var List = function List(options) { options = options || {}; this.id = ko.observable(options.id || generateId()); this.tasks = ko.observableArray([]); this.storage = ko.observable(); ...
JavaScript
0.00003
@@ -1132,24 +1132,8 @@ if ( -doneCallback && type @@ -1195,16 +1195,26 @@ allback( +null, this );%0A
7e57b2d4b8ac66a988cf682261cd2882e694e4aa
refactor path for bigquery
server/initGraphQL.js
server/initGraphQL.js
const fs = require('fs') const path = require('path') const bodyParser = require('body-parser') const { apolloUploadExpress } = require('apollo-upload-server') const { bigquery_service_endpoint, is_optics_enabled, dev } = require('./config') const OpticsAgent = require('optics-agent') const rimraf = require('rimraf') c...
JavaScript
0.01039
@@ -2576,17 +2576,17 @@ ll('/big -Q +q uery/ins
5005c3d42f0cc9aeaa3b051f8bf8a3cad07f9fe8
Improve clickable behaviour for dropzone
client/acp/components/ImageDrop.react.js
client/acp/components/ImageDrop.react.js
var React = require('react'), ReactPropTypes = React.PropTypes, Actions = require('../actions/Actions'), Dropzone = require('dropzone'), dropzone = null; var ImageDrop = React.createClass({ propTypes: { action : ReactPropTypes.string.isRequired, d...
JavaScript
0.000001
@@ -652,48 +652,130 @@ -dropzone = new Dropzone(this.getDOMNode( +//this.getDOMNode() does not work with complex html%0A dropzone = new Dropzone(React.findDOMNode(this.refs.uploadIcon ), %7B @@ -1793,32 +1793,54 @@ return (%0A + %3Cdiv%3E%0A %3Ci c @@ -1890,12 +1890,48 ...
c6d428ae80e4ea576a6be556ccbcc4378cd3ce23
fix badge display order bug
client/app/profile/profile.controller.js
client/app/profile/profile.controller.js
'use strict'; angular.module('hrr10MjbeApp') .controller('ProfileCtrl', function($scope, $state, Student, Skills) { $scope.message = 'Hello'; $scope.accepted = 'false'; Skills.getSkills(function(skills) { $scope.skills = skills; $scope.skillsData = JSON.stringify(skills); console.log(s...
JavaScript
0
@@ -1420,17 +1420,33 @@ (badges%5B -0 +badges.length - 1 %5D) : 'nu
dcbd835b71bf6c88ecc1400505b68ed3d9b995c9
Streamline push notification
client/scripts/lib/push-notifications.js
client/scripts/lib/push-notifications.js
/* global $ */ import swPromise from './sw.js'; import {sendSubscriptionToServer} from './api.js'; import {notify, warn, error} from './notify'; export default function pushNotifications() { const pushBanner = $('#emoji__push'); if (pushBanner) { pushBanner.style.display = 'none'; pushBanner.on('click', subscri...
JavaScript
0
@@ -423,24 +423,28 @@ romise.then( +%0A%09%09%09 serviceWorke @@ -460,21 +460,16 @@ tion =%3E -%7B%0A%09%09%09 serviceW @@ -530,24 +530,27 @@ ly: true%7D)%0A%09 +%09)%0A %09%09.then(func @@ -569,25 +569,24 @@ ption) %7B%0A%09%09%09 -%09 pushBanner.s @@ -608,17 +608,16 @@ 'none';%0A -%09 %09%09%09retur @@ -66...
7431f968eb8f8a75423f4ebee29ad3dd7bbfb0d8
Update Landing.js
client/src/components/Landing/Landing.js
client/src/components/Landing/Landing.js
import React, {Component} from 'react' import Card from './Card' import './Landing.css' import {Row, Col, Container} from 'reactstrap' import verejneDataIcon from './icons/verejne_data.png' import prepojeniaIcon from './icons/prepojenia.png' import obstaravaniaIcon from './icons/obstaravania.png' import profilyIcon fro...
JavaScript
0
@@ -732,17 +732,17 @@ n%C5%A1tit%C3%BAci -i +%C3%AD %0A @@ -959,41 +959,41 @@ dia -so %C5%A1t%C3%A1tom alebo %C4%8Derpaj%C3%BA eurofondy +alebo obchodn%C3%AD partneri so %C5%A1t%C3%A1tom ?%22%0A @@ -1214,62 +1214,45 @@ xt=%22 -S%C3%BA v%C3%AD%C5%A5azi verejn%C3%BDch obstar%C3%A1van%C3%AD prepojen%C3%AD na...
822f82d118435d5085fbcafae38693a1a4565db2
add attr and related functions
d.js
d.js
import toArray from './util/toArray' import objectAssign from './util/objectAssign' class DOM { constructor (selector) { let elements = document.querySelectorAll(selector) this.length = elements.length objectAssign(this, elements) } map (fn) { toArray(this).map(el => fn.call(el, el)) return ...
JavaScript
0
@@ -1234,16 +1234,475 @@ this%0A %7D +%0A%0A attr (attributeName, value=null) %7B%0A if (value == null) %7B%0A return this%5B0%5D%5BattributeName%5D%0A %7D else %7B%0A return this.each(el =%3E el%5BattributeName%5D = value)%0A %7D%0A %7D%0A%0A val (value=null) %7B%0A if (value == null) %7B%0A...
068f9393987f58aa6373d34c82e818940186c346
Update league.js
templates/league.js
templates/league.js
/** * Created by anonymoussc on 08/03/15 11:05. */ 'use strict'; var moment = require('moment'), S = require('string'), dataSrc = require('./../../config/dataSrc/dataSrc.json'), cfg = require('./../../config/config.js'); // path to directory var name = 'league', srcPath = cfg.templa...
JavaScript
0.000001
@@ -152,27 +152,24 @@ quire('./../ -../ config/dataS @@ -215,19 +215,16 @@ e('./../ -../ config/c
7e82a9bc25f6eb64242ecff944a2078b7a75e843
Add test for latest version link.
tests/simple/http-api-versioning.js
tests/simple/http-api-versioning.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0
@@ -900,24 +900,74 @@ , '../'));%0A%0A +var sprintf = require('extern/sprintf').sprintf;%0A%0A var assert = @@ -2414,16 +2414,46 @@ r n = 0; +%0A var latest_version = '2.0'; %0A%0A asse @@ -3251,16 +3251,396 @@ %0A %7D);%0A%0A + assert.response(http._serverOnly('data/http_services/', %5B 'test-service' %5D,%0A...
5207326a5e7ddc1b68ab6df6be4ba479430d2642
Use localIdentName to identify className on development If mode is equal development we add a hash using path + local + base64:5 eg. src-overview-results-components-__main--dzcJi
build/loaders.js
build/loaders.js
// NOTE: Loader `include` paths are relative to this module import path from 'path' import CssExtractPlugin from 'mini-css-extract-plugin' import { externalTsModules } from './external' export const threadLoader = { loader: 'thread-loader', options: { poolTimeout: Infinity, // Threads won't timeout/nee...
JavaScript
0.000059
@@ -1020,32 +1020,123 @@ s: 1,%0A %7D,%0A%7D%0A%0A +export const localIdentName = %7B%0A localIdentName: '%5Bpath%5D__%5Blocal%5D--%5Bhash:base64:5%5D',%0A%7D%0A%0A export const css @@ -3137,16 +3137,142 @@ in.use%5D%0A + cssModulesLoader.options = Object.assign(%0A cssModulesLoader.options,%...
ac24ccd8464ca5606336733b9a96bf8c4fe52a81
Add comment to postcss script
build/postcss.js
build/postcss.js
const postcss = require('postcss'); const glob = require('glob'); const fs = require('fs-extra'); const chalk = require('chalk'); const syntax = require('postcss-wee-syntax'); const paths = require('./paths'); // Config const config = fs.readJsonSync(paths.project + '/wee.json'); const breakpoints = config.style.break...
JavaScript
0
@@ -4069,16 +4069,57 @@ pcss%60;%0A%0A +%09// Create file if not already generated%0A %09fs.ensu
697249002c0ab1e4f5525ec586ac6cc56414dba2
Update release script to skip changelog generator
build/release.js
build/release.js
/*jshint node:true */ module.exports = function( Release ) { function today() { return new Date().toISOString().replace(/T.+/, ""); } // also add version property to this Release._jsonFiles.push( "validation.jquery.json" ); Release.define({ issueTracker: "github", changelogShell: function() { return Release.new...
JavaScript
0
@@ -1,8 +1,300 @@ +/* Release checklist%0A- Run %60git changelog%60 and edit to match previous output (this should make use of jquey-release instead)%0A- pull latest https://github.com/jquery/jquery-release%0A- run%0A%09node release.js --remote=jzaefferer/jquery-validation%0A- Wait a while, verify and confirm each step...
9ca85c48435b5be2229a0868e935c6ca590a6d6d
Make sure es6 modules (like koa-router) get transpiled; re-add uglify
buildTasks/js.js
buildTasks/js.js
// take js file // watch and rebuild it var gulp = require('gulp'); var gutil = require('gulp-util'); var uglify = require('gulp-uglify'); var streamify = require('gulp-streamify'); var rev = require('gulp-rev'); var rename = require('gulp-rename'); var buffer = require('gulp-buffer'); var clean = require('gulp-rimraf...
JavaScript
0
@@ -1611,16 +1611,19 @@ +/// only: /. @@ -2443,18 +2443,16 @@ -// .pipe(st
c6600d94e75989ec7251b3390a0a8449588a172a
Update kulikPisecny.child.js
components/animals/kulikPisecny.child.js
components/animals/kulikPisecny.child.js
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/kulikPisecny/01.jp...
JavaScript
0
@@ -1257,18 +1257,17 @@ prou%C5%BEk%C5%AF - a +, b%C5%99%C3%AD%C5%A1ka @@ -1282,16 +1282,56 @@ iv%C4%9B b%C3%ADl%C3%A1 + a na hlav%C4%9B %C4%8Dernob%C3%ADlou kontrastn%C3%AD kresbu . Nav%C3%ADc @@ -2260,14 +2260,15 @@ ;nej -%C4%8Derven +oran%C5%BEov %C4%9Bj%C5%A1%C3%AD
d8d9ed641db5e924f1973b2a7ddb7864be730513
add onFocus prop and call it when focussing the input field
components/datepicker/DatePickerInput.js
components/datepicker/DatePickerInput.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box, { omitBoxProps, pickBoxProps } from '../box'; import DayPickerInput from 'react-day-picker/DayPickerInput'; import Icon from '../icon'; import NavigationBar from './NavigationBar'; import WeekDay from './WeekDay'; import { con...
JavaScript
0
@@ -1125,16 +1125,66 @@ : true %7D +, () =%3E this.props.onFocus && this.props.onFocus() );%0A %7D;%0A @@ -4604,16 +4604,43 @@ s.func,%0A + onFocus: PropTypes.func,%0A readOn
bd536226bae14ee01ce4d347f4352e4513929170
add DCO check logic
bot.js
bot.js
// var http = require('http'); var createHandler = require('github-webhook-handler'); var handler = createHandler({ path: '/webhook', secret: 'sekrit' }); var host = (process.env.VCAP_APP_HOST || 'localhost'); var port = (process.env.VCAP_APP_PORT || 7777); // Start server http.createServer(function (req, res) { han...
JavaScript
0
@@ -8,24 +8,80 @@ http - = require('http +s = require('https');%0Avar http = require('http');%0Avar url = require('url ');%0A @@ -196,14 +196,20 @@ t: ' -sekrit +t34B6EKaUgyw ' %7D) @@ -313,16 +313,1194 @@ 7777);%0A +var dco_not_found = 'Please add a comment with a DCO1.1 Signed-off-by statement in order to allow...
af9307508b43a458bfb4d5e2aa8778d5bb353f93
change !song emote
commands/radio/song.js
commands/radio/song.js
const roles = require('../../config/roles'), axios = require('axios'); exports.run = (bot, message, args) => { function getMetaData(callback) { axios.get('https://www.bronyradiogermany.com/request-v2/json/v1/nowplaying/stream') .then((res) => { return callback(res.data.resul...
JavaScript
0.000001
@@ -1706,110 +1706,12 @@ ucy' -) %7B%0A preString = bot.getEmoji('brgLucy') + ' **DJ-Pony Lucy**';%0A %7D else if ( + %7C%7C resu @@ -1776,16 +1776,19 @@ tring = +%60$%7B bot.getE @@ -1797,39 +1797,46 @@ ji(' -brgMary') + ' **DJ-Pony Mary**' +dropit')%7D **$%7Bresult.current_event%7D**%...
89afcd2e568aeced887c1d54189494d5c02f4575
update data
js/streamgraph.js
js/streamgraph.js
var margin = {top: 20, right: 20, bottom: 30, left: 50}, width = 960 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; var x = d3.scale.ordinal() .range([0, width]); var y = d3.scale.linear() .range([height, 0]); var color = d3.scale.category20(); var xAxis = d3.svg.axis() ...
JavaScript
0.000001
@@ -1925,24 +1925,46 @@ %7D%0A %7D%0A + console.log(x);%0A %7D%0A %0A
c0878b26fb97e1cf6307f56633452f8b5f19e438
Add fade out of status msg
js/taskActions.js
js/taskActions.js
$(document).on("click", "#addTaskSubmit", function (event) { // Add a task to the list // prevent default action of form submit event.preventDefault(); var taskName = $('#name').val(); var taskExpirationDate = $('#date-input').val(); // validate user input var isValid = true; var dateRegexEn = /^\d...
JavaScript
0.000001
@@ -937,16 +937,41 @@ +'%3C/p%3E') +.delay(3000).fadeOut(400) ;%0A%0A%09%09%09// @@ -1187,24 +1187,49 @@ Text+'%3C/p%3E') +.delay(3000).fadeOut(400) ;%0A%09%09%7D);%0A%09%7D%0A%7D @@ -1598,16 +1598,41 @@ +'%3C/p%3E') +.delay(3000).fadeOut(400) ;%0A%09%09upda @@ -1751,16 +1751,41 @@ +'%3C/p%3E') +.delay(3000).fad...
f56a3e98f16dad1c94f5f33363e013eaa810eba6
fix docs bad use of private methods to change title of our tooltips
site/static/docs/4.3/assets/js/src/application.js
site/static/docs/4.3/assets/js/src/application.js
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S ALL JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * JavaScript for Bootstrap's docs (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under the Creative Commons Att...
JavaScript
0
@@ -4896,32 +4896,46 @@ r.setAttribute(' +data-original- title', 'Copied! @@ -4941,35 +4941,8 @@ !')%0A - tooltipBtn._fixTitle()%0A @@ -4980,32 +4980,46 @@ r.setAttribute(' +data-original- title', 'Copy to @@ -5035,35 +5035,8 @@ d')%0A - tooltipBtn._fixTitle()%0A
4d6adcfa326f923b7c707b14f3aaf1fcf9c8188c
Fix repl.js platformVersion must be a string for appium (#5514)
packages/wdio-cli/src/commands/repl.js
packages/wdio-cli/src/commands/repl.js
import pickBy from 'lodash.pickby' import { remote } from 'webdriverio' import { hasWdioSyncSupport } from '@wdio/utils' import { getCapabilities } from '../utils' import { CLI_EPILOGUE } from '../constants' const IGNORED_ARGS = [ 'bail', 'framework', 'reporters', 'suite', 'spec', 'exclude', 'mochaOpts', 'jas...
JavaScript
0
@@ -597,14 +597,14 @@ e: ' -number +string ',%0A
2827ec0d4e1111b5ed2cd2ca9098deb8f06475a1
Add ArrayArray typedef
tools/docs/jsdoc/typedefs/arrays.js
tools/docs/jsdoc/typedefs/arrays.js
/** * A typed array. * * @typedef {(Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array)} TypedArray * * @see [TypedArray]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray} * @see [Int8Array]{@link https://develo...
JavaScript
0.000182
@@ -3555,32 +3555,120 @@ ObjectArray%0A*/%0A%0A +/**%0A* An array containing only other arrays.%0A*%0A* @typedef %7BArray%3CArray%3E%7D ArrayArray%0A*/%0A%0A /**%0A* An empty a
099058b8b61fa805149b80e878d25f1207f1509d
use prefix query insted of matches
src/ui/components/containers/ChatSuggestionsContainer.js
src/ui/components/containers/ChatSuggestionsContainer.js
/* @flow */ import React, { Component, PropTypes } from 'react'; import shallowEqual from 'shallowequal'; import Connect from '../../../modules/store/Connect'; import ChatSuggestions from '../views/ChatSuggestions'; type Props = { user: string; prefix: string; } type State = { prefix: string; } export default cl...
JavaScript
0.000001
@@ -1017,25 +1017,20 @@ %09id_ -mts: %60$%7B +pref: prefix -%7D%25%60 ,%0A%09%09
b87595f7dbfeb7840fa0770e3c9f18808eb390f2
Update Example
example/src/routes.js
example/src/routes.js
import path from 'path'; import express from 'express'; import React from 'react'; import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router'; import { ExpressRoute } from 'express-react-router'; /*-----------------------------------------------------------------------------------------------------...
JavaScript
0
@@ -159,61 +159,8 @@ er'; -%0Aimport %7B ExpressRoute %7D from 'express-react-router'; %0A%0A/* @@ -3237,32 +3237,24 @@ - component=%7BP @@ -3276,30 +3276,24 @@ %3CRoute - path=%22pageTw @@ -3294,18 +3294,16 @@ pageTwo%22 - comp @@ -3329,38 +3329,32 @@ %3CRoute ...
65326a10745b64c6518868a83c5ce0aa7ff8097b
Add touch input to puzzle rendering function
prelim/renderPuzzle.js
prelim/renderPuzzle.js
function renderPuzzle( levelNumber, canvas, width, height ) { document.body.appendChild(canvas); canvas.width = width; canvas.height = height; canvas.style.backgroundColor = '#333333'; canvas.id = 'gameView'; var levels = new Levels( new XSPRNG(1), 70, new MonochromaticPaletteBuilder())...
JavaScript
0
@@ -553,24 +553,112 @@ r);%0A -keyboard +var touchInput = new TouchInput(inputController, canvas);%0A%0A keyboardInput.listen();%0A touch Input.li
9ff10250a934a151f1eb95ca72312f9b69791be4
fix - playlist grid would not fill the width of the whole sidebar in android
mobile/app/shared_components/songs_grid/rows.js
mobile/app/shared_components/songs_grid/rows.js
import loggerCreator from "../../utils/logger"; //noinspection JSUnresolvedVariable var moduleLogger = loggerCreator("SongsGrid"); import React, { Component } from "react"; import { Image, StyleSheet, Text, View, Platform } from "react-native"; import { observer } from "mobx-react"; import moment from "moment"; import...
JavaScript
0
@@ -601,17 +601,17 @@ IDTH = 1 -1 +0 0;%0A%0Acons @@ -753,26 +753,8 @@ 9,%0A - flexBasis: 0,%0A %7D, @@ -838,16 +838,17 @@ -minWidth +flexBasis : MI
dd17349cedba80f8826b01cf218ffdc5b0ab69b6
Order Status Histories Validator
src/sales/order-status-validator.js
src/sales/order-status-validator.js
require("should"); module.exports = function (data) { data.should.not.equal(null); data.should.instanceOf(Object); data.should.have.property('salesContractNo'); data.code.should.instanceOf(String); data.should.have.property('deliveryDateCorrection'); data.deliveryDateCorrection.should.instanc...
JavaScript
0.000001
@@ -181,12 +181,23 @@ ata. -code +salesContractNo .sho
610edae1109edce6c7657732736c3f012fda39da
fix the compare problem on facet
store/search/store.js
store/search/store.js
//Dependencies. var CoreStore = require('../CoreStore'); var assign = require('object-assign'); var AppDispatcher = require('../../dispatcher'); var keys = require('lodash/object/keys'); var intersection = require('lodash/array/intersection'); var Immutable = require('immutable'); var isArray = require('lodash/lang/isA...
JavaScript
0.001031
@@ -233,24 +233,70 @@ rsection');%0A +var isEqual = require('lodash/lang/isEqual');%0A var Immutabl @@ -2026,40 +2026,35 @@ %7D%0A -%0A -return +var isSame -Search +Facet Context && p @@ -2049,19 +2049,32 @@ Context -&& += false;%0A if( previous @@ -2087,25 +2087,139 @@ acet - === newData.face +...
0e43e42153332b2d512df8a93f1d6a38f3e61bda
Use addClassName/removeClassName instead of setting the class name directly, in order to avoid overwriting previously set class names
fan/views/Editable.js
fan/views/Editable.js
jsio('from shared.javascript import Class, bind') jsio('import fan.views.Value') jsio('import fan.ui.textViewEdit') exports = Class(fan.views.Value, function(supr) { this._className += ' Editable' this._padding = 4 this._border = 2 this._createContent = function() { supr(this, '_createContent') this._on...
JavaScript
0.000001
@@ -1548,44 +1548,71 @@ his. -_element.className = this._c +addClassName('defaultValue')%0A%09%09%7D else %7B%0A%09%09%09this.removeC lassName + ' @@ -1611,13 +1611,10 @@ Name - + ' +(' defa @@ -1622,16 +1622,17 @@ ltValue' +) %0A%09%09%7D%0A%09%09%0A
abe3dd7e1f68f9e59656155f87bf78c0a4e0571f
fix binarycookie
frida/binarycookie.js
frida/binarycookie.js
const NSHTTPCookieStorage = ObjC.classes.NSHTTPCookieStorage; const store = NSHTTPCookieStorage.sharedHTTPCookieStorage(); const jar = store.cookies(); function str(obj, def) { return obj ? obj.toString() : (def || 'N/A'); } module.exports = function() { let cookies = [] for (let i = 0; i < jar.count(); i++)...
JavaScript
0.000028
@@ -1,13 +1,15 @@ const + %7B NSHTTPC @@ -20,16 +20,18 @@ eStorage + %7D = ObjC. @@ -41,29 +41,8 @@ sses -.NSHTTPCookieStorage; %0A%0Aco @@ -98,17 +98,16 @@ torage() -; %0Aconst j @@ -126,18 +126,16 @@ ookies() -;%0A %0A%0Afuncti @@ -199,17 +199,16 @@ %7C 'N/A') -; %0A%7D%0A%0Amodu @@ -333,17 +333,16 @@ ...
3be732bb22f02f18842e8c197dac4d9a8db0448f
Change sides for menu
public/js/components/MenuBurger.js
public/js/components/MenuBurger.js
var React = require('react'); var rB = require('react-bootstrap'); var cE = React.createElement; var rbm = require('react-burger-menu'); var AppActions = require('../actions/AppActions'); var REMOVE_KEY = 1; var ADD_KEY = 2; var DROPDOWN_KEY = 3; var REGISTER_KEY = 4; var styles = { bmBurgerButton: { posi...
JavaScript
0.000001
@@ -383,20 +383,19 @@ -righ +lef t: '36px @@ -412,17 +412,17 @@ top: '3 -6 +0 px'%0A @@ -3065,19 +3065,20 @@ right: -tru +fals e,%0A
bd4c1fea0bc529862bf074a8dad1686f260a73b5
change html file dest
gulp/configs/index.js
gulp/configs/index.js
var taskName = 'index'; var fileName = taskName + '.jsx'; var dest = './www'; var src = './src'; var webpack = require('webpack'); module.exports = { taskName : taskName, js: { src: src + '/js/**/*', dest: dest + '/assets/js', uglify: false }, sass: { src: src + '/sass/**!(_)*.sass', d...
JavaScript
0.000001
@@ -484,16 +484,26 @@ st: dest + + '/html' ,%0A op
b73c061be7146ab67750301495d2a3f16f9d586b
Update aliases.js
gulp/tasks/aliases.js
gulp/tasks/aliases.js
var gulp = require('gulp'); gulp.task('default', ['less', 'js', 'watch']);
JavaScript
0.000001
@@ -1,8 +1,23 @@ +'use strict';%0A%0A var gulp @@ -83,8 +83,9 @@ atch'%5D); +%0A
de54880d4ef939358cba6687a109b792475e03d0
Add tweet and like interval
conf/server.js
conf/server.js
// This module is the server of my site. // Require external dependecies. var http = require('http'); var filed = require('filed'); var path = require('path'); var readFile = require('fs').readFile; var publish = require('./publish'); // Start the site. module.exports = function (config) { var isInvalid = !conf...
JavaScript
0.000013
@@ -228,16 +228,50 @@ blish'); +%0Avar bake = require('blake').bake; %0A%0A// Sta @@ -1022,13 +1022,369 @@ fig.ip); - +%0A%0A // Retrieve latest tweet and instapaper likes.%0A var tweet = path.resolve(config.input, 'data', 'tweet.json');%0A var likes = path.resolve(config.input, 'data', 'likes.json');%0A%0A setInte...
bc2f83fcd74e6a7a576e1c2af1102dcf9fcb2a09
change hostname
conf/server.js
conf/server.js
'use strict'; /** * Define server configuration * @type {{host: string, port: string, protocol: string, url: module.exports.url}} */ module.exports = { host : 'localhost', port : '3000', protocol : 'http', url : function(){ return this.protocol + ':/...
JavaScript
0.000228
@@ -177,17 +177,17 @@ : ' -localhost +127.0.0.1 ',%0A
efe4a55bfc1ab3650d56cc213b594b84a90ce82d
fix some naming
game-of-life-react/src/components/GameOfLife.js
game-of-life-react/src/components/GameOfLife.js
import React, {Component} from 'react'; import Grid from '../game-logic/Grid'; export default class GameOfLife extends Component { constructor(props) { super(props); this.state = { alreadyGoing: false, startStopText: 'Start', gridSize: 10, s...
JavaScript
0.000088
@@ -1339,43 +1339,8 @@ %7B%0D%0A - console.log(%22GOOP%22)%0D%0A%0D%0A @@ -1655,14 +1655,8 @@ %7D, ( -500 * this @@ -1667,16 +1667,26 @@ te.speed +Options%5B1%5D ));%0D%0A @@ -4028,40 +4028,8 @@ ue;%0D -%0A console.log(newSpeed);%0D %0A%0D%0A
7675e140987da389882b865023ede18a537a6e57
Disable the mouse move error on the congratulations screen.
voiceover-voyageur/activity.js
voiceover-voyageur/activity.js
var questions = [ { question: 'Use VoiceOver and press the hidden button below.', inputGroup: 'question-1', inputs: {} }, { question: 'Find the button labeled "The Go Button" and press it.', inputGroup: 'question-2', inputs: {} }, { question: 'Enter your name into the input field.'...
JavaScript
0
@@ -2491,16 +2491,117 @@ );%0A%7D);%0A%0A +runner.listen('end', function () %7B%0A document.removeEventListener('mousemove', fatalMouseMove);%0A%7D);%0A%0A activity
dcbf9fc97884bb0b56a74571b1086c58fbd61fda
Use `win32` instead of `windows` for skipping the shebang tests
test/abs-shebang.js
test/abs-shebang.js
var path = require('path') var fs = require('fs') var spawn = require('child_process').spawn var t = require('tap') var node = process.execPath var wrap = require.resolve('./fixtures/wrap.js') var rimraf = require('rimraf') var mkdirp = require('mkdirp') var fs = require('fs') if (process.platform === 'windows') { t...
JavaScript
0.000001
@@ -301,20 +301,18 @@ === 'win -dows +32 ') %7B%0A t
002c4280197be4655dcc55409c26db97ff68d82f
remove h2b
test/base58check.js
test/base58check.js
var assert = require('assert') var base58check = require('../src/base58check') var fixtures = require('./fixtures/base58check.json') function h2b(h) { return new Buffer(h, 'hex') } describe('base58check', function() { describe('decode', function() { fixtures.valid.forEach(function(f) { it('can decode ' +...
JavaScript
0.999441
@@ -132,57 +132,8 @@ ')%0A%0A -function h2b(h) %7B return new Buffer(h, 'hex') %7D%0A%0A desc @@ -341,45 +341,23 @@ ing) -%0A var expected = h2b(f.payload +.toString('hex' )%0A%0A @@ -374,13 +374,9 @@ ert. -deepE +e qual @@ -376,39 +376,40 @@ t.equal(actual, -expecte +f.payloa d)%0A %7D)%0A @@...
07db72fa5b5c63b923bfa72e72d95f47f7f1ed37
Rename the variable at first test of case 7
test/case7/case7.js
test/case7/case7.js
;((rc) => { 'use strict'; var tagContent = 'router2-content'; var div = document.createElement('div'); div.innerHTML = ` <${tagContent} id="case7-1" hash="case(\\d+)"> Case 7 via RegExp <${tagContent} id="case7-11" hash="case(\\d+)"> Nested param <${tagContent} id="case7-111" hash="case(\...
JavaScript
0.000361
@@ -897,24 +897,22 @@ var -expected +param1 = '123' @@ -1114,32 +1114,30 @@ ail.param1, -expected +param1 );%0A ass @@ -1423,24 +1423,22 @@ param1, -expected +param1 );%0A @@ -1760,16 +1760,14 @@ %22 + -expected +param1 ;%0A
91985283b30b153adf3a107b0785942cb028b60f
change to query
test/int/indexer.js
test/int/indexer.js
// Tests for configured indexer (ElasticQuery) /*jslint node: true */ /* global describe,it */ 'use strict'; var expect = require("expect.js"); var annotations = require('../../lib/annotations.js'), testApp = require('../lib/test-app.js'), utils = require('../../lib/utils.js'); describe('Indexer', function(done) { ...
JavaScript
0.000251
@@ -2145,22 +2145,21 @@ ld form -search +query ', funct @@ -2382,30 +2382,29 @@ should form -search +query by member', @@ -2720,30 +2720,29 @@ ts for form -search +query by non-memb @@ -3057,30 +3057,29 @@ should form -search +query by terms',
a2a2f73ba281b85ba83fa14c1601958e11f9605b
Improve integration tests, especially on Windows
test/integration.js
test/integration.js
'use strict'; var expect = require('expect'); var fs = require('fs'); var path = require('path'); var vinyl = require('vinyl-fs'); var jshint = require('gulp-jshint'); var spawn = require('child_process').spawn; var once = require('once'); var aOnce = require('async-once'); var del = require('del'); var through = req...
JavaScript
0
@@ -37,24 +37,48 @@ 'expect');%0A%0A +var os = require('os');%0A var fs = req @@ -390,16 +390,197 @@ ../');%0A%0A +var isWindows = (os.platform() === 'win32');%0A%0Afunction cleanup() %7B%0A return del(%5B%0A path.join(__dirname, './fixtures/out/'),%0A path.join(__dirname, './fixtures/tmp/'),%0A %5D);%0A%7D%...
4018d39199a59bb6da06084c82a52abc7e9a1f3d
Add a 'connect' server integration test
test/integration.js
test/integration.js
const expect = require('chai').expect; process.env.TESTING='testing'; describe("These integration tests", function() { var server, request; beforeEach(function (done) { var codeObjects = { aPlayground: { object1: '// code1', object2: '// code2' } } server = require('../app'...
JavaScript
0.000017
@@ -604,16 +604,555 @@ %0A %7D);%0A%0A + it(%22sends all codeObjects when a renderer connects%22, function(done) %7B%0A const serverUrl = 'http://127.0.0.1:' + server.address().port;%0A var renderer = require('socket.io-client')(serverUrl, %7B%0A forceNew: true,%0A query: %7B playgroundId: '...
88fc03b52e89ba519cacb9a93a0ced0b66ca8614
Clarify newListener triggering * test.
test/newlistener.js
test/newlistener.js
/*jslint node: true */ "use strict"; var H = require('../index').EventEmitter; var _ = require('lodash'); var assert = require('assert'); describe('HevEmitter newlistener', function () { describe('on events', function () { it('should be triggered when a listener is added to a "name" event', function (do...
JavaScript
0
@@ -605,16 +605,21 @@ h.on(%5B +'*', '*'%5D, fu @@ -810,45 +810,8 @@ %7D);%0A - h.emit(%5B'newListener'%5D);%0A
03d00ec53114f74f6e82a6ea7ac1fdb61f2b863b
add an even simpler test that actually works
test/player_test.js
test/player_test.js
var assert = require("assert") var player = require('../player') var game_state_sample = require("./data/game-state-example.json") describe("player", function() { describe("#bet_request", function() { it("should return a number", function() { assert.equal( typeof(player.bet_requ...
JavaScript
0.000008
@@ -153,24 +153,193 @@ unction() %7B%0A + describe(%22#version%22, function() %7B%0A it(%22should return something%22, function() %7B%0A assert.equal( typeof(player.VERSION), %22string%22 )%0A %7D)%0A %7D)%0A%0A describe
9d2100058687a53f45ba06ce3c045a65639ca0bf
Update unit tests
test/satang.test.js
test/satang.test.js
import { values } from 'lodash'; import Satang, { Currencies, CurrencyData } from '../src'; test('it throws an error when initialized with unsupported currency', () => { const baseCurrency = 'thb'; expect(() => new Satang('thb', 1000)) .toThrowError(`Unrecognized currency: ${baseCurrency}. Only ${values(Currenci...
JavaScript
0
@@ -1,37 +1,4 @@ -import %7B values %7D from 'lodash';%0A impo @@ -22,28 +22,29 @@ encies, -CurrencyData +ThaiBaht, USD %7D from @@ -136,38 +136,8 @@ %3E %7B%0A - const baseCurrency = 'thb';%0A ex @@ -202,16 +202,21 @@ ognized +base currency @@ -217,18 +217,16 @@ rrency: -$%7B baseCurr @@ -233,61 +233...
af49c7d9e7ae11ff13914ab3f23b247554a4e0cb
add global.pi to spec helper
test/spec_helper.js
test/spec_helper.js
var psc = require('primus-sinon-chai'); global.expect = psc.chai.expect; global.sinon = psc.sinon;
JavaScript
0
@@ -92,8 +92,42 @@ .sinon;%0A +global.pi = !!process.env.NOS_PI;%0A
45531e2e61abee4b4983fa0d5c0ac9613c84e734
Add sequential synchronous functions counter example.
test/synchronous.js
test/synchronous.js
/*jslint node: true */ "use strict"; var H = require('../index').EventEmitter; var _ = require('underscore'); var assert = require('assert'); describe('HevEmitter on synchronous listener ', function () { it('should trigger synchronous ** events synchronously', function () { var h = new H(); var c...
JavaScript
0
@@ -3017,13 +3017,373 @@ %7D);%0A%0A + it('should trigger sequential synchronous %22name%22 events synchronously', function () %7B%0A var h = new H();%0A var called = 0;%0A h.on(%5B'laforge'%5D, function () %7B%0A called++; %0A %7D);%0A h.on(%5B'laforge'%5D, function...
aec1d3e260e3a9793456e53516463cbe897f4e17
add tests
test/test-fluxex.js
test/test-fluxex.js
'use strict'; var assert = require('chai').assert, fluxex = require('..'); describe('fluxex', function () { it('can be constructed by undefined', function (done) { var F = new fluxex(); done(); }); it('can be constructed by null', function (done) { var F = new fluxex(null); ...
JavaScript
0
@@ -636,13 +636,279 @@ %0A %7D); +%0A%0A describe('.toString()', function () %7B%0A it('will not include prototype methods', function (done) %7B%0A var F = new fluxex(%7Ba: 1, b: 2%7D);%0A%0A assert.equal(undefined, F.toString().match(/toString/));%0A done();%0A %7D...
77ee555a7cb7fdbed11fc19b30f1ae59cb9d175d
Add test where localStorage quota triggers a trim
test/tests/quota.js
test/tests/quota.js
describe('after filling localStorage quota', () => { const key = 'playbyplay_trash_K79kxaC%I8HrRGDoousr'; let tooLong; beforeEach(done => { tooLong = 'startups would kill to grow this fast'; while (true) { // eslint-disable-line no-constant-condition tooLong += tooLong; ...
JavaScript
0
@@ -13,45 +13,115 @@ ter -filling localStorage quota', () =%3E %7B%0A +clearing', () =%3E %7B%0A let tooLong;%0A let halfTooLong1;%0A let halfTooLong2;%0A%0A function init() %7B%0A @@ -176,52 +176,8 @@ sr'; -%0A%0A let tooLong;%0A%0A beforeEach(done =%3E %7B %0A @@ -479,15 +479,308 @@...
961a93020b91e56a24100562dd65c46977b60a4c
Comment fixes
test/unit/finish.js
test/unit/finish.js
 console.log(); console.log('-------------------------------'); console.log(' TESTING COMPLETED'); console.log('-------------------------------'); console.log('Total Tests: ' + assert.count); -- ANY ERRORS? if (assert.fail.count) { console.API.color('red', 'Total Failed: ' + assert.fail.count); console.log(); -...
JavaScript
0
@@ -188,18 +188,18 @@ ount);%0A%0A --- +// ANY ERR @@ -312,18 +312,18 @@ log();%0A%09 --- +// RETURN @@ -357,18 +357,18 @@ lse %7B %0A%09 --- +// ALL GOO
a1c4f147b1858601570d4ef294e2a441cf6ac3ed
add test case for object
test/unit/object.js
test/unit/object.js
module('fobject'); var FObject = FIRE.FObject; test('basic test', function () { var obj = new FObject(); strictEqual(obj.__classname__, 'FIRE.FObject', 'class name'); strictEqual(obj.isValid, true, 'valid'); }); test('destroyImmediate', function () { expect(2); var obj = new FObject(); obj...
JavaScript
0.000027
@@ -2640,16 +2640,818 @@ of frame');%0A%7D);%0A +%0Atest('destroy other at destroy callback', function () %7B%0A expect(3);%0A%0A var obj1 = new FObject();%0A var obj2 = new FObject();%0A%0A obj1.destroy();%0A%0A obj2._onPreDestroy = function () %7B%0A ok(false, 'other should not destroyed this f...
dc6273d9840f9d3a63783c78739af137364dc986
Add tests for disabling slides.
tests/pat/slides.js
tests/pat/slides.js
define(["pat/slides"], function(pattern) { describe("Slides pattern", function() { beforeEach(function() { $("<div/>", {id: "lab"}).appendTo(document.body); }); afterEach(function() { $("#lab").remove(); }); describe("init", function() { ...
JavaScript
0
@@ -1872,24 +1872,1481 @@ %0A %7D); +%0A%0A describe(%22_disable_slides%22, function() %7B%0A it(%22Remove slides from DOM%22, function() %7B%0A var $show = $(%22%3Cdiv/%3E%22, %7B%22class%22: %22pat-slides%22%7D);%0A for (var i=1; i%3C=4; i++)%0A ...
8f89c947b4d12ddc7222843c0fc60300df96e72f
FIX Fix test to match production code
tests/util-tests.js
tests/util-tests.js
var util = require('../js/util'); var assert = require('assert'); describe('Hello World function', function() { it('should always fail', function() { assert.equal(false, false); }); it('should just say hello', function() { var answer = util.helloWorld(); assert.equal('Hello World...
JavaScript
0
@@ -313,16 +313,35 @@ lo World +, wie geht es euch? %5Cn', ans
e0bcc0e07324fc686c98d0b0851c6ef61181feaf
Rename files from js to jsx
cli/wildcat-codemod.js
cli/wildcat-codemod.js
#! /usr/bin/env babel-node import {echo, exit} from "shelljs"; import nomnom from "nomnom"; import fs from "fs"; import path from "path"; import {exec} from "child_process"; const transformBasePath = path.join(__dirname, "..", "transforms"); const runFirst = [ "resolve-relative-imports.js" ]; const runLast = [ ...
JavaScript
0.000007
@@ -39,16 +39,26 @@ ho, exit +, find, mv %7D from %22 @@ -63,24 +63,24 @@ %22shelljs%22;%0A - import nomno @@ -903,16 +903,262 @@ %22%60;%0A%7D;%0A%0A +const renameFiles = (cb) =%3E %7B%0A echo(%22Renaming files from .jsx to .js%22);%0A%0A find(src)%0A .filter(file =%3E %7B%0A return file....
1e669c1c4ec970388606918c2277767a043861cf
add global _ template helper
client/helpers/i18n.js
client/helpers/i18n.js
import { Template } from 'meteor/templating' import i18next from 'i18next' import SystemLanguages from '../../imports/framework/Constants/SystemLanguages' Template.registerHelper('langTag', () => i18next.language) Template.registerHelper('getLanguages', () => SystemLanguages.allowedValues)
JavaScript
0.000001
@@ -286,8 +286,81 @@ Values)%0A +%0ATemplate.registerHelper('_', (key, options) =%3E i18next.t(key, options))%0A
88a77a297890a1372fc1e32c0d5a933c6fc65fb1
Work index page accounts for no homework
client/js/workindex.js
client/js/workindex.js
function workindex() { if(!$("#upcoming").length) return; var date = moment().format("YYYY-MM-DD"); // DUE TODAY $.get("/work/"+date+"/all", function(data){ if(data){ console.log(data); if(data.error){ console.log(data.error); $("#due-today").hide(); return; } ...
JavaScript
0
@@ -281,19 +281,21 @@ today%22). -hid +remov e();%0A @@ -332,32 +332,71 @@ (data.success)%7B%0A + if(data.hwItems.length %3E 0)%7B%0A $(%22#due- @@ -445,32 +445,34 @@ tems%22);%0A + var courses = %5B%5D @@ -465,32 +465,34 @@ r courses = %5B%5D;%0A + var tota @@ -508,32 +5...
43552829f0f2a5bd7a8bee1602a181aa19bd5419
Fix bootstrap tour
IPython/html/static/notebook/js/tour.js
IPython/html/static/notebook/js/tour.js
//---------------------------------------------------------------------------- // Copyright (C) 2011 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. //-----------------------------------------------...
JavaScript
0.000002
@@ -2840,32 +2840,112 @@ mand_mode(); %7D,%0A + onHide: function(tour) %7B $('#help_menu').parent().children('a').click(); %7D,%0A content: %22Pr @@ -3143,36 +3143,36 @@ 'bottom',%0A on -Show +Hide : function(tour) @@ -3203,101 +3203,28 @@ t(). -addClass('open'); %7D,%0A onHide: function(tour) %7B $('...
57f1146ed50c5a72ff810c86ee7abb388f299e2f
fix case where the keyevent is 0
client/keyshortcuts.js
client/keyshortcuts.js
/* This file is part of rhizi, a collaborative knowledge graph editor. Copyright (C) 2014-2015 Rhizi This program 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, either version 3 of th...
JavaScript
0.998987
@@ -829,16 +829,17 @@ tion'%5D,%0A +%0A function @@ -865,16 +865,31 @@ ion) %7B%0A%0A +%22use strict%22;%0A%0A function @@ -1275,16 +1275,20 @@ var key +Base = ((e.k @@ -1442,16 +1442,51 @@ which))) +,%0A key = (keyBase %7C%7C %22%22) .toLower
dd8d9ffad7f8f1d3e1358ec2ccd28c0d0a103cd3
test 15
complete/6-10/index.js
complete/6-10/index.js
(function($) { $.extend($.expr[":"], { hasValue: function(a) { return $(a).val() !== ""; } }); })(jQuery); $(function() { $("input").keyup(function() { var count = $("input:hasValue").length; $("#show").html("目前有" + count + "個欄位有值").show(); count >= 3 ? $...
JavaScript
0
@@ -21,44 +21,27 @@ $.ex -tend($.expr%5B%22:%22%5D, %7B%0A +pr.filters. hasValue : fu @@ -36,17 +36,18 @@ hasValue -: + = functio @@ -61,20 +61,16 @@ - - return $ @@ -95,21 +95,9 @@ - %7D%0A %7D); +%7D %0A%7D)(
bdb16301cd2ca49527ccb4dcd736cd2a724394b4
fix path
client/src/Gulpfile.js
client/src/Gulpfile.js
'use strict'; //should correspond to what's in package.json var gulp = require('gulp'), gutil = require('gulp-util'), jslint = require('gulp-jslint'), sass = require('gulp-sass'), jade = require('gulp-jade'), notify = require('gulp-notify'), autoprefixer = require('gulp-autoprefixer...
JavaScript
0.000017
@@ -2441,22 +2441,17 @@ atch('./ -script +j s/lib/*.
05a07c5823da70e151efe51cfa976fbccdfaa020
Remove versionComparator util
client/src/js/utils.js
client/src/js/utils.js
import Numeral from "numeral"; import { sampleSize, get, startCase, capitalize } from "lodash"; export const taskDisplayNames = { nuvs: "NuVs", pathoscope_bowtie: "PathoscopeBowtie", pathoscope_snap: "PathoscopeSNAP" }; export const getTaskDisplayName = (taskPrefix) => get(taskDisplayNames, taskPrefix, st...
JavaScript
0
@@ -2152,497 +2152,4 @@ %0A%7D;%0A -%0Aexport const versionComparator = (a, b) =%3E %7B%0A let splitA = a.replace(%22v%22, %22%22).split(%22-%22)%5B0%5D;%0A let splitB = b.replace(%22v%22, %22%22).split(%22-%22)%5B0%5D;%0A%0A if (splitA === splitB) %7B%0A return 0;%0A %7D%0A%0A splitA = splitA.sp...
f344cb2aea5c3d435519c3cd2a8b541ef733a60a
Move propTypes inside component
components/ChatList.js
components/ChatList.js
import React, { Component } from 'react'; import { graphql, gql } from 'react-apollo' import moment from 'moment' import { N_CHATROOMS_FIRSTLOAD, N_CHATROOMS_LOADMORE } from '../constants' import Page from '../layouts/main' import ChatListItem from './ChatListItem' import Colors from '../utils/Colors'; // Change num...
JavaScript
0
@@ -399,16 +399,99 @@ nent %7B%0A%0A + static propTypes = %7B%0A onClickChatroom: React.PropTypes.func.isRequired,%0A %7D;%0A%0A render @@ -2797,88 +2797,8 @@ %7D%0A%60%0A -%0AChatList.propTypes = %7B%0A onClickChatroom: React.PropTypes.func.isRequired,%0A%7D;%0A%0A expo