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
2f231fe951422207df1146540166f6881fc6071f
fix ajax erroring
static/javascript/tba_js/gameday_mytba.js
static/javascript/tba_js/gameday_mytba.js
$(function() { // Setup redirect after login $('#mytba-login').click(function() { window.location.href = '/account?redirect=' + escape(document.URL); }); updateFavoritesList(); // Setup // Setup typeahead $('#add-favorite-team-input').attr('autocomplete', 'off'); $('#add-favorite-te...
JavaScript
0.000007
@@ -1177,36 +1177,8 @@ T',%0A - dataType: 'json',%0A @@ -1258,35 +1258,53 @@ ccess: function( -msg +data, textStatus, xhr ) %7B%0A @@ -2033,32 +2033,49 @@ nction(favorites +, textStatus, xhr ) %7B%0A for (v @@ -4334,32 +4334,8 @@ T',%0A - dataType: 'json',%0A @@ -4418,11...
ba1e53dccb734cd677665350ca545f817b024f3d
fix new user time and mods bug
client/app/services/Student/Student.service.js
client/app/services/Student/Student.service.js
'use strict'; angular.module('hrr10MjbeApp') .service('Student', function($http, Auth, Skills, Badges, Util) { var user; var defaultUser; //TODO indexOf _id helper method var getUser = function(cb) { if (user) return cb(user); Auth.isLoggedIn(function(is) { if (is) { A...
JavaScript
0
@@ -6345,32 +6345,120 @@ e = Date.now();%0A + if (!user.studentData.times) %7B%0A user.studentData.times = %7B%7D;%0A %7D%0A cb(user.
8d7da696333a5b47ddd38d02f4df3974705a9af8
Fix lint;
client/components/ui/fuzzy-or-native-select.js
client/components/ui/fuzzy-or-native-select.js
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Select, { Creatable } from 'react-select'; import { get } from '../../store'; import { maybeHas } from '../../helpers'; const FuzzyOrNativeSelect = connect(state => { return { useNativeSelect: get....
JavaScript
0.000001
@@ -490,16 +490,16 @@ nt, -%22 +' target -%22 +' ) && @@ -522,23 +522,23 @@ target, -%22 +' value -%22 +' )) %7B%0A @@ -630,15 +630,15 @@ nt, -%22 +' value -%22 +' )) %7B
4b5da85c2214210cfadb0d8991bfe53815c7f3e9
Refactor featured code in /discover.
client/js/directives/photo-stream-directive.js
client/js/directives/photo-stream-directive.js
"use strict"; angular.module("hikeio"). directive("photoStream", ["$rootScope", "$timeout", "config", function($rootScope, $timeout, config) { var template = "<div class='preview-list'>" + "<a href='/hikes/{{hike.string_id}}' data-ng-repeat='hike in hikes'>" + "<div class='preview'>" + "<div data-ng-cla...
JavaScript
0
@@ -336,22 +336,40 @@ -box%5C%22: -$first +isFeatured(hike, $index) %7D' %3E%22 +%0A @@ -437,29 +437,29 @@ eSrc(hike, $ -first +index )%7D%7D' data-as @@ -510,13 +510,13 @@ e, $ -first +index )%7D%7D' @@ -1128,16 +1128,198 @@ = 400;%0A +%09%09%09%09scope.isFeatured = function(hike, index) %7B%0A%09%09%09%09%09...
5e3dd22606b0fe4d518ba01f3472e81f68a4f41f
Change name of prefs object - Fixes #173
models/UserPreferences.js
models/UserPreferences.js
import MetadataItem from './MetadataItem'; import { Set } from '../shims/SetOps.js'; let girder = window.girder; let UserPreferences = MetadataItem.extend({ /* resetToDefaults doesn't work unless defaults is a function. If defaults are a simple object, changes to the model mutate the defaults object. *...
JavaScript
0
@@ -362,18 +362,17 @@ name: 'r -ra +l _prefere
f0ad9d2dc9b7a63fda08cb67f7659f7e69ce1808
Remove incorrectly-resolved conflict
UserForm.js
UserForm.js
// We have to remove node_modules/react to avoid having multiple copies loaded. // eslint-disable-next-line import/no-unresolved import React, { PropTypes } from 'react'; import Paneset from '@folio/stripes-components/lib/Paneset'; import Pane from '@folio/stripes-components/lib/Pane'; import PaneMenu from '@folio/stri...
JavaScript
0.001303
@@ -1009,69 +1009,8 @@ %7D;%0A%0A - if (formProps.personal && !formProps.personal.last_name) %7B%0A if
a2b157a3ac4f27c7be5c6d707009480cb658fe48
remove parseInt for provisionRequirement.id
client/scripts/components/ProvisionActivity.js
client/scripts/components/ProvisionActivity.js
import React, {Component} from 'react'; import {Alert, Button, Modal, FormControls, Input, Label} from 'react-bootstrap'; import ManagerApi from 'utils/ManagerApi'; export default class ProvisionActivity extends Component { constructor(props) { super(props); this.state = { stationId: parseInt(this.pro...
JavaScript
0.000004
@@ -1731,21 +1731,11 @@ Id: -parseInt( key -) ,%0A
e7b8e0d9325ba78851e074e283dc7a59242fb428
fix infinite async chains on addon reload
resource/modules/FavIcons.jsm
resource/modules/FavIcons.jsm
// VERSION 1.0.1 this.FavIcons = { get defaultFavicon() { return this._favIconService.defaultFavicon.spec; }, init: function() { XPCOMUtils.defineLazyServiceGetter(this, "_favIconService", "@mozilla.org/browser/favicon-service;1", "nsIFaviconService"); }, // Gets the "favicon link URI" for the given xul:tab...
JavaScript
0
@@ -569,32 +569,70 @@ callback);%0A%09%09%09%7D%0A +%09%09%7D).catch(() =%3E %7B%0A%09%09 callback(null)%0A %09%09%7D);%0A%09%7D,%0A%0A%09// R @@ -1872,34 +1872,24 @@ function(tab -, callback ) %7B%0A%09%09return @@ -2445,34 +2445,149 @@ %09%09%09%09 -repeat = aSync(ask, 1000); +if(!repeat) %7B // only repeat onc...
ad7be9b6979565045addb38e2222f1cff2bb05a8
Update items.js
mods/testsubject/items.js
mods/testsubject/items.js
"gengarite": { id: "gengarite", name: "Gengarite", spritenum: 588, megaStone: "Gengar-Mega", megaEvolves: "Gengar", onTakeItem: function(item, source) { if (item.megaEvolves === source.baseTemplate.baseSpecies) return false; return true; }, num: 656, gen: 3, desc: "Mega-evolves Gengar." } };...
JavaScript
0.000001
@@ -1,8 +1,32 @@ +exports.BattleItems = %7B%0A %09%22gengar
cc489d1f373eed5435a877b026cc4215b0ff8c1a
Update seo-flag.js
plugins/seo-flag.js
plugins/seo-flag.js
"use strict"; /** * * @author xgqfrms * @license MIT * @copyright xgqfrms * @created 2020-08-0 * @modified * * @description * @difficulty Easy Medium Hard * @complexity O(n) * @augments * @example * @link * @solutions * */ // const log = console.log; // window.SEO_FALG_FINISHED = window.SEO_FALG_FINI...
JavaScript
0
@@ -234,16 +234,672 @@ *%0A */%0A%0A +%0A// new version, 2021.07.13%0AsetTimeout(() =%3E %7B%0A (() =%3E %7B%0A const flagBox = document.querySelector(%60%5Bdata-uid=%22seo-flag%22%5D%60);%0A const domStr = %60%0A %3Ca href=%22https://s11.flagcounter.com/count2/QIXi%22 data-flagcounter=%22...
87ec774bad1ecfe4df23eb5c67627316ef84c59a
send current position when pausing, just set playbackStart to null
plugins/socketio.js
plugins/socketio.js
var _ = require('underscore'); var socketio = {}; var config, player; // called when nodeplayer is started to initialize the plugin // do any necessary initialization here socketio.init = function(_player, callback, errCallback) { player = _player; config = _player.config; if(!player.expressServer) { ...
JavaScript
0
@@ -1717,20 +1717,306 @@ yback', -null +%7B%0A songID: player.queue%5B0%5D.songID,%0A format: player.queue%5B0%5D.format,%0A backendName: player.queue%5B0%5D.backendName,%0A duration: player.queue%5B0%5D.duration,%0A position: player.playbackPosition + (new Date() - player.playbackS...
77fe1c03bad2407ad5a4772591d681cf614aad3f
Add owner to generic primitive command
Source/Scene/Primitive.js
Source/Scene/Primitive.js
/*global define*/ define([ '../Core/destroyObject', '../Core/Matrix4', '../Core/MeshFilters', '../Core/PrimitiveType', '../Renderer/BufferUsage', '../Renderer/VertexLayout', '../Renderer/CommandLists', '../Renderer/DrawCommand', './SceneMode' ]...
JavaScript
0
@@ -2150,16 +2150,86 @@ mand();%0A +// TODO: best owner? Include mesh?%0A command.owner = this;%0A // TODO:
a952aa667429bdc093dd3b8ac7eea144d7d73f41
remove old method
public/app/WizardClass.js
public/app/WizardClass.js
define(["js/core/Application", "app/model/FirewallConfiguration", "js/core/History"], function (Application, FirewallConfiguration, History) { return Application.inherit({ defaults: { configuration: null, I18n: null, currentStep: 0, api: null, segmentedView: null }, _in...
JavaScript
0.000006
@@ -1932,215 +1932,8 @@ %7D, -%0A clearErrors: function (step) %7B%0A var fields = this.stepName(step);%0A%0A if (fields) %7B%0A this.$.configuration.$%5Bfields%5D.clearErrors();%0A %7D%0A this.$.configuration.clearErrors();%0A %7D, %0A%0A
e99a96b84b5e3d0d0bd034181ec6ab9e025ab283
remove zoom.zoom100 command
public/app/events/zoom.js
public/app/events/zoom.js
/* Commands */ /*-- Interface Command { public void constructor(JSXGraph board, Object Arguments) public void remove() public object execute() } --*/ var zoomIn = function(board, args) { this.remove = function() { board.zoomOut(); }; this.execute = function() { board.zoomIn(); return { ...
JavaScript
0.000055
@@ -595,254 +595,8 @@ %7D;%0A%0A -var zoom100 = function(board, args) %7B%0A this.X = board.zoomX;%0A this.Y = board.zoomY;%0A this.remove = function() %7B%0A %7D;%0A this.execute = function() %7B%0A board.zoom100();%0A return %7B%0A 'X': board.zoomX,%0A 'Y': board.zoomY%0A %7D;%0A %7D;%0A%7D;...
9798d16e0cde4a4b888363be089f02ec9b41b50d
Fix for sprite cycles not triggering
Source/settings/events.js
Source/settings/events.js
FullScreenPokemon.FullScreenPokemon.settings.events = { "keyOnSpriteCycleStart": "onThingAdd", "keyDoSpriteCycleStart": "placed", "keyCycleCheckValidity": "alive", "timingDefault": 9 };
JavaScript
0
@@ -59,22 +59,21 @@ %22keyOn -Sprite +Class CycleSta @@ -105,14 +105,13 @@ eyDo -Sprite +Class Cycl
eea57ec62c953a41557e3f5055fa40e5c641d66d
Clean up in dropdown.js
src/static/js/dropdown.js
src/static/js/dropdown.js
"use strict"; (function () { var closeMenus = function () { var openLaunchers = document.querySelectorAll('.fn1-dropdown-launcher[aria-expanded="true"]'), len = openLaunchers.length, i = 0; for (i=0; i<len; i++) { openLaunchers[i].setAttribute("aria-expanded", "...
JavaScript
0.000003
@@ -1,18 +1,4 @@ -%22use strict%22;%0A (fun @@ -3,24 +3,42 @@ unction () %7B +%0A %22use strict%22; %0A var clo @@ -1048,16 +1048,17 @@ %7D, 50) +; %0A
09eaf5af1e9fec78aadab80bb3922031d2987795
fix end of string
mirrorgate-dashboard/src/js/core/Service.js
mirrorgate-dashboard/src/js/core/Service.js
/* * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A. * * 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 a...
JavaScript
0.001027
@@ -3118,16 +3118,17 @@ rement', + 'Feature @@ -3131,16 +3131,17 @@ tureType +' ),%0A
afc1b1c1d88a3b59e103c58f1bd49d9f348e3614
Fix tests
mobile/src/FileViewer/index.android.test.js
mobile/src/FileViewer/index.android.test.js
import React from 'react'; import { shallow } from 'enzyme'; import { Image } from 'react-native'; import Pdf from 'react-native-pdf'; import FileViewer from './index.android'; describe(__filename, () => { it('renders correctly', () => { const path = '/path/to/file/to/view'; const wrapper = shallow(<FileVie...
JavaScript
0.000003
@@ -65,17 +65,11 @@ ort -%7B Image %7D +Pdf fro @@ -83,16 +83,20 @@ t-native +-pdf ';%0Aimpor @@ -90,34 +90,40 @@ e-pdf';%0Aimport P -df +hotoView from 'react-nat @@ -127,18 +127,25 @@ native-p -df +hoto-view ';%0A%0Aimpo @@ -487,37 +487,41 @@ it('renders an -Image +PhotoView when fileType i @@ -702,37 ...
fca1a4e61dcf0300dcbe17f805ee0ef0b537a584
Update TOC_generator.js
TOC_generator.js
TOC_generator.js
document.addEventListener('DOMContentLoaded', function() { TableOfContents(); } ); function TableOfContents(container, output) { var output = output || '#toc'; // Get all elements with class: section or subsection idfromclass = document.querySelectorAll('.section, .subsection'); // Cre...
JavaScript
0
@@ -874,18 +874,16 @@ on class -es %0A @@ -888,175 +888,48 @@ i -f(idfromclass%5Bi%5D.className == %22section%22) %7B item.className = %22section%22; %7D %0A if(idfromclass%5Bi%5D.className == %22subsection%22) %7B item.className = %22subsection%22; %7D +tem.className = idfromclass%5Bi%5D.clas...
b19976cb87983b637e4818d9156998cc08585e99
use unrounded level on missing product
src/thresholds.service.js
src/thresholds.service.js
// TODO: replace with Array#find ponyfill const find = (list, match) => { for (let i = 0; i < list.length; i++) { if (match(list[i])) { return list[i] } } return undefined } const isVersion = (version, item) => item.version === version const isId = (id, item) => item._id === id // Zones config co...
JavaScript
0.00012
@@ -2038,17 +2038,16 @@ if ( -! product %7C%7C ! @@ -2042,20 +2042,19 @@ product -%7C%7C ! +&& product. @@ -2075,51 +2075,8 @@ %7B%0A - return productThresholds%0A %7D%0A @@ -2138,32 +2138,34 @@ strings%0A + const presentati @@ -2204,25 +2204,25 @@ on, 10)%0A -%0A + ...
0b903a4a8f0f20a6d7cd6d5c09cfb127d36e4544
Update mentor.js
WebRTC/mentor.js
WebRTC/mentor.js
var opts = {localCamBox:null, remoteCamBox:null, screenBox:null}; opts.localCamBox = document.getElementById("localCamBox"); opts.remoteCamBox; opts.screenBox = document.getElementById("screenBox"); var helpQueue = document.getElementById("helpQueue"); var nameField = document.getElementById("nameField"); var firstP...
JavaScript
0
@@ -2344,36 +2344,8 @@ ();%0A -%09$(opts.screenBox).empty();%0A %09web @@ -3378,9 +3378,8 @@ er')%7D);%0A -%0A
516c7725ccb84b7930ebcc6fbe2c116eb912c0af
add documentation to textfield.js
src/ui/views/textfield.js
src/ui/views/textfield.js
M.TextfieldView = M.View.extend({ _type: 'M.TextfieldView', label: null, type: 'search', placeholder: null, _template: _.tmpl(M.TemplateManager.get('M.TextfieldView')), _assignTemplateValues: function() { M.View.prototype._assignTemplateValues.apply(this); this._addLabelToT...
JavaScript
0
@@ -1,132 +1,1224 @@ -M.TextfieldView = M.View.extend(%7B%0A%0A _type: 'M.TextfieldView',%0A%0A label: null,%0A%0A type: 'search',%0A%0A placeholder: null,%0A +/**%0A *%0A * @type %7BM%7C*%7D%0A *%0A * A input field.%0A *%0A */%0AM.TextfieldView = M.View.extend(%7B%0A%0A /**%0A * The type of the inpu...
2767523c95d191ce4847d99be4df3961196979c9
Change color to yellow (#51)
stylish.js
stylish.js
import path from 'path'; import pathIsAbsolute from 'path-is-absolute'; import chalk from 'chalk'; import logSymbols from 'log-symbols'; import table from 'text-table'; import isNumber from 'lodash.isnumber'; let currFile; let currTable = []; let filenames = []; let options; let optionsRead = false; function resetSta...
JavaScript
0.000218
@@ -2583,12 +2583,14 @@ alk. -blue +yellow (msg
2ce580c4337f6c5d49f5bc754a75050d728cd959
reset scrollbar upon ajaxify load
public/scripts/ajaxify.js
public/scripts/ajaxify.js
define(['jquery', 'inheritance', 'throbber', 'bind', 'domReady!'], function($, inheritance, throbber) { var Throb = Class.extend({ init: function (throbber, brand) { var that = this; this.throbber = $(throbber); this.brand = $(brand); this.throb = new Throb...
JavaScript
0
@@ -3610,16 +3610,68 @@ = this;%0A + var contents = that.contents.join(',');%0A @@ -3691,37 +3691,32 @@ bleElements( -that. contents .join(',')); @@ -3699,34 +3699,24 @@ nts(contents -.join(',') );%0A @@ -3830,32 +3830,83 @@ ageInDom(data);%0A + that.enableElement...
9a70d425ef8e6a95e83d50d7681ae0725d265d27
Update http status code when creating a new message
src/api/message/index.js
src/api/message/index.js
import presenter from '../../presenter/message'; import messageRepository from '../../repository/message'; import * as message from '../../services/message'; export async function list (req, res) { res.send( 200, presenter( await message.list( getRepositories() ) ) ); } export asy...
JavaScript
0
@@ -355,33 +355,33 @@ res.send(%0A 20 -0 +1 ,%0A presenter(
6c3958a0bf8ca71a08d07d0df4fb73c703406a4c
remove unused import
src/app/models/player.js
src/app/models/player.js
import { logger } from "./../index" import Game from "./game" import Revision from "./revision" import Universe from "./universe" export default class Player { constructor(client) { this.client = client } async play() { const result = await Universe.match(this.client) if (result === false) { ...
JavaScript
0.000001
@@ -1,41 +1,4 @@ -import %7B logger %7D from %22./../index%22%0A%0A impo
c28e59ed8baddc16cefa1784629569eeeda68046
add to input-object ability for self-nesting
src/type/custom/to-input-object.js
src/type/custom/to-input-object.js
/** * Detailed explanation https://github.com/graphql/graphql-js/issues/312#issuecomment-196169994 */ import { nodeInterface } from '../../schema/schema'; import { GraphQLScalarType, GraphQLInputObjectType, GraphQLEnumType, GraphQLID, } from 'graphql'; function createInputObject(type) { return new GraphQL...
JavaScript
0.000005
@@ -237,18 +237,17 @@ raphQLID -, %0A + %7D from ' @@ -257,16 +257,41 @@ phql';%0A%0A +const cachedTypes = %7B%7D;%0A%0A function @@ -319,22 +319,129 @@ pe) %7B%0A -return +const typeName = %60$%7Btype.name%7DInput%60;%0A%0A if (!cachedTypes.hasOwnProperty(typeName)) %7B%0A cachedTypes%5BtypeName%5D = new...
d5e73bd553c04d5cc3e53e425dfb96e51de674da
clean up
test/cf.js
test/cf.js
var should = require('should') , maxminded = require('../maxminded.js') , fs = require('fs') , geofile = '/tmp/GeoLiteCity.dat' ; if (fs.existsSync(geofile)) { fs.unlinkSync(geofile); } describe('CloudFlare', function() { describe('successful USA lookup', function() { maxminded.init...
JavaScript
0.000001
@@ -479,16 +479,17 @@ eader);%0A +%0A @@ -527,20 +527,63 @@ -geo.latitude +should.exist(geo.latitude);%0A geo%5B'latitude'%5D .sho
363eb46cec29cbc74b6ff7538b785316335361a9
Fix an issue where .focus() is scrolling the page, same as in UrlUI
src/views/ProviderView/AuthView.js
src/views/ProviderView/AuthView.js
const LoaderView = require('./Loader') const { h, Component } = require('preact') class AuthBlock extends Component { componentDidMount () { this.connectButton.focus() } render () { return <div class="uppy-Provider-auth"> <div class="uppy-Provider-authIcon">{this.props.pluginIcon()}</div> <h...
JavaScript
0.000144
@@ -145,33 +145,93 @@ -this.connectButton.focus( +setTimeout(() =%3E %7B%0A this.connectButton.focus(%7B preventScroll: true %7D)%0A %7D, 150 )%0A
b6ee9e5bede3b96a88a86c3d4f016b57897f1d71
Add a View with flex around the data table header and rows, so that it fits better within the Paper component
src/widgets/DataTable/DataTable.js
src/widgets/DataTable/DataTable.js
/* eslint-disable react/forbid-prop-types */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import PropTypes from 'prop-types'; import React, { useMemo, useRef, useCallback } from 'react'; import { StyleSheet, VirtualizedList, VirtualizedListPropTypes, Keyboard } from 'react-native'; import RefConte...
JavaScript
0
@@ -210,16 +210,26 @@ import %7B +%0A View,%0A StyleSh @@ -232,16 +232,18 @@ leSheet, +%0A Virtual @@ -251,16 +251,18 @@ zedList, +%0A Virtual @@ -279,16 +279,18 @@ opTypes, +%0A Keyboar @@ -290,17 +290,18 @@ Keyboard - +,%0A %7D from ' @@ -4066,16 +4066,53 @@ Value%7D%3E%0A + %3CView style=...
771e1adf70fdaf85ca0323c38eb7bc0f612124a4
enable socket listening on townsperson view via role mixin
static/js/app/views/townsperson.js
static/js/app/views/townsperson.js
define([ "react", "underscore" ], function ( React, _ ) { return React.createClass({ render: function() { var tempStyle = { width: "100px", height: "100px" }; return ( <div className="townsperson-containe...
JavaScript
0
@@ -24,18 +24,24 @@ %22 -underscore +views/role_mixin %22%0A%5D, @@ -67,17 +67,25 @@ ct,%0A -_ +RoleMixin %0A ) %7B @@ -128,214 +128,106 @@ -render: function() %7B%0A var tempStyle = %7B%0A width: %22100px%22,%0A height: %22100px%22%0A %7D;%0A ...
b4812ff683182f1056a3c485ee53b0191a318707
Return the callback
index.android.js
index.android.js
'use strict' var React = require('react-native'); var { NativeModules, requireNativeComponent } = React; var MapMixins = { setDirectionAnimated(mapRef, heading) { NativeModules.MapboxGLManager.setDirectionAnimated(React.findNodeHandle(this.refs[mapRef]), heading); }, setZoomLevelAnimated(mapRef, zoomLevel) ...
JavaScript
0.999999
@@ -2444,52 +2444,16 @@ %5D), -function(err)%7B%0A console.log(err);%0A %7D +callback );%0A
4bf55d6fc4b79e461e63a89b4cfb3679c2e4d860
use $.popover() instead of $.tooltip()
public/javascripts/service/yobi.user.SignUp.js
public/javascripts/service/yobi.user.SignUp.js
/** * @(#)yobi.user.SignUp.js 2013.04.02 * * Copyright NHN Corporation. * Released under the MIT license * * http://yobi.dev.naver.com/license */ (function(ns){ var oNS = $yobi.createNamespace(ns); oNS.container[oNS.name] = function(){ var htVar = {}; var htElement = {}; /** ...
JavaScript
0.000002
@@ -5953,23 +5953,23 @@ elInput. -tooltip +popover (%7B%22trigg @@ -6049,23 +6049,23 @@ t.data(' -tooltip +popover ');%0A @@ -6164,59 +6164,8 @@ l';%0A - oToolTip.options.title = sMessage;%0A @@ -6233,23 +6233,23 @@ elInput. -tooltip +popover ('show') @@ -6327,23 +6327,23 @@ elInput. -t...
ecda9d5767fd6ca5fc6e8911c17aa5691bd1a3e9
rename to indicate what it is
tourney.js
tourney.js
var $ = require('interlude'); var Tournament = require('tournament'); function Id(t, id) { $.extend(this, id); // Tournament style { s, r, m } this.t = t; // add stage number - override if exists (from sub Tourney) } Id.prototype.toString = function () { return "T" + this.t + " S" + this.s + " R" + this.r + " M...
JavaScript
0.000005
@@ -955,22 +955,23 @@ %0A%0A var -method +virtual s = %7B%0A @@ -1081,22 +1081,23 @@ ct.keys( -method +virtual s).forEa @@ -1257,22 +1257,23 @@ onstant( -method +virtual s%5Bfn%5D);%0A
eb9f2a5858b40dfcd0b5479f19bf598aac91cd1b
Fix map drag will still cause map redraw
src/chart/map/MapView.js
src/chart/map/MapView.js
define(function (require) { // var zrUtil = require('zrender/core/util'); var graphic = require('../../util/graphic'); var MapDraw = require('../../component/helper/MapDraw'); require('../../echarts').extendChartView({ type: 'map', render: function (mapModel, ecModel, api, payload) ...
JavaScript
0
@@ -768,16 +768,20 @@ omponent +Type === 'se @@ -813,20 +813,24 @@ payload. -name +seriesId === map @@ -835,20 +835,18 @@ apModel. -name +id )) %7B%0A%0A
7de97ef002db391d2dad4e360c6c3bcd272f907e
Use single-quoted strings
src/classes/WebSocket.js
src/classes/WebSocket.js
import logger from '../loggly/logger' import { APIError, InternalServerError, NotFoundAPIError } from './APIError' import ws from 'ws' import { URL } from 'url' import uid from 'uid-safe' import Authentication from './Authentication' import Permission from './Permission' import Meta from './Meta' const PRETTY_P...
JavaScript
0.999323
@@ -2812,14 +2812,14 @@ gn(%7B -%22 +' meta -%22 +' : re
2953cc98b9c989d5e55154fd7b9fd9829cd280d2
Fix player move event name not updated in client
src/client/GameClient.js
src/client/GameClient.js
const io = require('socket.io-client') const kbd = require('@dasilvacontin/keyboard') const deepEqual = require('deep-equal') const capitalize = require('capitalize') const { PLAYER_EDGE, COIN_RADIUS } = require('../common/constants.js') const { calculatePlayerAcceleration } = require('../common/utils.js') const serve...
JavaScript
0
@@ -2159,17 +2159,23 @@ t.emit(' -m +playerM ove', my
82cd2d41d1237cc412e10b8351e587aba8fb350b
Fix collapse animation
src/collapse/collapse.js
src/collapse/collapse.js
angular.module('ui.bootstrap.collapse', []) .directive('uibCollapse', ['$animate', '$injector', function($animate, $injector) { var $animateCss = $injector.has('$animateCss') ? $injector.get('$animateCss') : null; return { link: function(scope, element, attrs) { function expand() { el...
JavaScript
0
@@ -3361,38 +3361,8 @@ , %7B%0A - addClass: 'in',%0A @@ -3379,32 +3379,32 @@ easing: 'ease',%0A + to @@ -3522,39 +3522,38 @@ $animate.a -ddClass +nimate (element, 'in', @@ -3538,36 +3538,34 @@ nimate(element, -'in' +%7B%7D , %7B%0A @@ -3557,38 +3557,32 @@ %7...
6b7080d7f3f4cb6295e02c1f501613e45de7e10e
Remove debugging statements
src/common/cjs/regexp.js
src/common/cjs/regexp.js
const { against, when, otherwise, isString } = require('match-iz') const { pipe, flow, aside, memo } = require('./fp') const makeRegExpFromWildcardString = memo(str => { if (!isString(str) || !str.length) { throw new TypeError('Please pass a non-empty string') } return pipe( str .replace(rxConsecut...
JavaScript
0.000032
@@ -83,15 +83,8 @@ low, - aside, mem @@ -105,16 +105,16 @@ './fp')%0A + %0Aconst m @@ -411,58 +411,8 @@ ),%0A%0A - aside(x =%3E console.log(%601 aside = %22$%7Bx%7D%22%60)),%0A%0A @@ -655,16 +655,16 @@ ds)%0A + ),%0A%0A @@ -663,58 +663,8 @@ ),%0A%0A - aside(x =%3E console.log(%602 aside =...
d8e7ca4634c752bc8773027f56b484ceb28d1358
Fix import
_js/main.js
_js/main.js
import '../_sass/_main.scss'; import pace from 'pace-progress'; import 'bootstrap'; import 'bootstrap-toggle'; import AOS from 'aos'; import editor from './editor'; import favourites from './favourites.js'; import styleNavbar from './style-navbar'; import styleJumbotrons from './style-jumbotrons'; import displayScrol...
JavaScript
0.000002
@@ -1004,22 +1004,25 @@ %0Aimport -viewer +Interface from '. @@ -1043,22 +1043,25 @@ /viewer/ -viewer +interface ';%0A%0A// I
7b2733bb217f18907ebc26abeabe7bc7e48c25e1
Document `destroy` and `destroySync`
src/component-helpers.js
src/component-helpers.js
import createElement from 'virtual-dom/create-element' import diff from 'virtual-dom/diff' import patch from 'virtual-dom/patch' import refsStack from './refs-stack' import {getScheduler} from './scheduler-assignment' const componentsWithPendingUpdates = new WeakSet let syncUpdatesInProgressCounter = 0 let syncDestru...
JavaScript
0
@@ -4222,24 +4222,547 @@ ounter--%0A%7D%0A%0A +// Removes the component's associated element and calls %60destroy%60 on any child%0A// components. Normally, this function is asynchronous and will perform the%0A// destruction on the next animation frame. If called as the result of another%0A// update or destruction, it...
4bc765098e75c772ae95a0274922639cf6edca38
use flex in error msg component
src/components/ErrMsg.js
src/components/ErrMsg.js
import React from 'react'; import Radium from 'radium'; const style = { wrapper: { padding: '5px', borderRadius: '3px', backgroundColor: '#FFF6F6', position: 'absolute', width: '35%', height: '8%', margin: 'auto', top: '20%', right: '35%', textAlign: 'center', '@media (max...
JavaScript
0
@@ -87,306 +87,201 @@ -padding +minHeight : '5 -px +0vh ',%0A -borderRadius: '3px',%0A backgroundColor: '#FFF6F6',%0A position: 'absolute',%0A width: '35%25',%0A height: '8%25',%0A margin: 'auto',%0A top: '20%25',%0A right: '35%25',%0A textAlign: 'center',%0A '@media (max-width: 4...
9123a7e95777a35e95eb7b6808fa93d458eab224
Revert overflow scroll
src/components/Layout.js
src/components/Layout.js
import React from 'react' import { ThemeProvider } from 'emotion-theming' import Helmet from 'react-helmet' import '../styles/reset' import theme, * as palette from '../styles/themeDark' import config from '../utils/siteConfig' import Wrapper from '../components/Wrapper' import Menu from '../components/Menu' import { i...
JavaScript
0.000001
@@ -1827,36 +1827,8 @@ ner%22 - style=%7B%7B height: '100vh' %7D%7D %3E%0A @@ -1862,30 +1862,16 @@ %3Cdiv -%0A classNa @@ -1886,30 +1886,16 @@ Content%22 -%0A id=%22pag @@ -1905,82 +1905,8 @@ rap%22 -%0A style=%7B%7B height: '100%25', overflow: 'scroll' %7D%7D%0A ...
d81d69c1c2a7ff6145395de78e634ca05b56aa8d
make deletion menu item read
src/components/header.js
src/components/header.js
'use strict' import React from 'react' import lang from 'i18n/lang' import Exporter from 'components/file/export' import Importer from 'components/file/import' import FileOpener from 'components/file/open' import FileSaveAs from 'components/file/saveAs' import './header.less' let Header = React.createClass({ createW...
JavaScript
0.000002
@@ -2724,16 +2724,39 @@ .delete%7D + style=%7B%7Bcolor: 'red'%7D%7D %3E%7Blang.d
9fcf2ea965b71ddc76c47f9616a2dd68a68202a1
update window spinner to horizon spec
src/components/styles.js
src/components/styles.js
export var styles = { errorBox: { fontFamily: "sans-serif", border: 1, borderColor: "#FF3131", borderStyle: "dashed", padding: 3, borderRadius: 3, background: "#FFF2F2", position: "relative", top: 8, left: 6, }, logos: { container: { display: "flex", height:...
JavaScript
0
@@ -544,35 +544,10 @@ op: -110,%0A paddingBottom: 8 +20 0,%0A
84ff1ef396bc781798c90c9d070bfce53674fe53
Fix prettyPrintXML.
dom/prettyPrintXML.js
dom/prettyPrintXML.js
import DOM from './DefaultDOMElement' import _isTextNodeEmpty from './_isTextNodeEmpty' import isString from '../util/isString' export default function prettyPrintXML (xml) { let dom if (isString(xml)) { dom = DOM.parseXML(xml) } else { dom = xml } const result = [] // Note: the browser treats XML ...
JavaScript
0.000001
@@ -705,16 +705,48 @@ result.%0A + if (dom.isDocumentNode()) %7B%0A const @@ -782,38 +782,8 @@ s()%0A - if (dom.isDocumentNode()) %7B%0A @@ -882,18 +882,16 @@ %7D%0A -%7D%0A childN @@ -907,24 +907,26 @@ ach(el =%3E %7B%0A + _prettyP @@ -947,18 +947,68 @@ l, 0)%0A + %7D)%0A %7D els...
198101fe3278dc44c4a75408cdcae16667428ea7
update header of douban4xuandy.user.js
douban4xuandy.user.js
douban4xuandy.user.js
// ==UserScript== // @name douban4xuandy // @grant GM_xmlhttpRequest // @description douban score for www.xuandy.com movie // @include http://www.xuandy.com/movie/* // author kelvingu616@gmail.com // github goorockey/douban4xuandy // ==/UserScript== var douban_search_url...
JavaScript
0
@@ -27,19 +27,16 @@ - douban4x @@ -57,19 +57,16 @@ t - GM_xmlht @@ -91,19 +91,16 @@ ription - douban s @@ -145,19 +145,62 @@ ude +http://www.xuandy.com/movie/*%0A// @include + http://w @@ -209,29 +209,80 @@ .xuandy.com/ -movie +television/*%0A// @include http://www.xua...
cfda082cba7960ea2c718bc589d065fe188fb8fb
make sure to only show popover on ipad
test/apps/ui/popover/controllers/index.js
test/apps/ui/popover/controllers/index.js
function openPopover() { var popover = Alloy.createController('popover').getView(); popover.show({view:$.button}); } $.index.open();
JavaScript
0
@@ -18,16 +18,55 @@ ver() %7B%0A +%09if (Ti.Platform.osname === 'ipad') %7B%0A%09 %09var pop @@ -117,16 +117,17 @@ View();%0A +%09 %09popover @@ -151,16 +151,72 @@ ton%7D);%09%0A +%09%7D else %7B%0A%09%09alert('Popover only supported on iPad');%0A%09%7D%0A %7D%0A%0A$.ind
f36a343c32e85277e7fb886bd2f1e5aad3edd497
Remove uneccessary default permissions from test setup
test/bigtest/helpers/setup-application.js
test/bigtest/helpers/setup-application.js
import { beforeEach } from '@bigtest/mocha'; import { setupAppForTesting, visit, location } from '@bigtest/react'; import localforage from 'localforage'; import sinon from 'sinon'; // load these styles for our tests import 'typeface-source-sans-pro'; import '@folio/stripes-components/lib/global.css'; import startMira...
JavaScript
0
@@ -1163,52 +1163,8 @@ ms: -%7B%0A 'perms.all': true,%0A ... perm @@ -1175,18 +1175,8 @@ ons%0A - %7D%0A
fcd833129c849fd4434bed2e4f21c1d9a6fb4c8f
Add focus event show close button when focus field if value length is >= 1
addclear.js
addclear.js
// Author: Stephen Korecky // Website: http://stephenkorecky.com // Plugin Website: http://github.com/skorecky/Add-Clear (function($){ $.fn.extend({ addClear: function(options) { var selector = this.selector; var options = $.extend({ closeSymbol: "&#10006;", color: "#CCC", t...
JavaScript
0
@@ -994,16 +994,165 @@ %7D%0A%0A + $(this).focus(function() %7B%0A if($(this).val().length %3E= 1) %7B%0A $(this).siblings(%22a%5Bhref='#clear'%5D%22).show();%0A %7D%0A %7D);%0A%0A $(
c905b9120af64682a01b672482153108eb04718a
refactor site kit plugin activation
tests/e2e/specs/plugin-activation.test.js
tests/e2e/specs/plugin-activation.test.js
/** * WordPress dependencies */ import { deactivatePlugin, activatePlugin } from '@wordpress/e2e-test-utils'; describe( 'Plugin Activation Notice', () => { beforeEach( async () => { await deactivatePlugin( 'site-kit-by-google' ); await activatePlugin( 'e2e-tests-gcp-credentials-plugin' ); } ); afterEach( asy...
JavaScript
0.000001
@@ -106,16 +106,872 @@ tils';%0A%0A +/**%0A * Activation helpers are only necessary pre-1.0 release.%0A * WordPress populates the %60data-slug%60 attribute from the%0A * %60slug%60 returned by the wp.org plugin API. For plugins%0A * that are not available on the .org repo, the slug will be%0A * generated from the plug...
8d388e8bf1644e6567e9b9d64be48af380fea79c
fix issue 24
advanceSearch.js
advanceSearch.js
var advBatchStart = 0; var advBatchSize = 5; var advResult; var advanceSearch=function(){ console.log("advanceSearch"); $('#advSearchmodal').modal({ show: 'true' }); } var filterDiv=function(division){ var out=[]; var sDivision=biography.divisions[division]; for (var j=0;j<sDivision.s...
JavaScript
0
@@ -3845,16 +3845,17 @@ oSid('%22+ +( advResul @@ -3866,16 +3866,49 @@ .sutraid +).replace(%22(%22,%22%22).replace(%22)%22,%22%22) +%22')%5C%22 h
d98cf7e3ed3744bd0c2c04d9d2a24fe188102581
increase width of experimental-submit
src/clincoded/static/components/experimental_submit.js
src/clincoded/static/components/experimental_submit.js
"use strict"; var React = require('react'); var _ = require('underscore'); var globals = require('./globals'); var curator = require('./curator'); var RestMixin = require('./rest').RestMixin; var form = require('../libs/bootstrap/form'); var panel = require('../libs/bootstrap/panel'); var RecordHeader = curator.Record...
JavaScript
0
@@ -5152,9 +5152,10 @@ -md- -8 +10 col @@ -5169,9 +5169,9 @@ set- -2 +1 col
3218730a167e0e0cce0d9943baf1bbd65c741a4e
set query on change in opportunity_from value
erpnext/crm/doctype/opportunity/opportunity.js
erpnext/crm/doctype/opportunity/opportunity.js
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt {% include 'erpnext/selling/sales_common.js' %} frappe.provide("erpnext.crm"); cur_frm.email_field = "contact_email"; frappe.ui.form.on("Opportunity", { setup: function(frm) { frm.custom...
JavaScript
0.000001
@@ -1583,32 +1583,64 @@ function(frm) %7B%0A +%09%09frm.trigger('setup_queries');%0A %09%09frm.toggle_req
99728085254b080aa071983316de81195cf29375
Allow aggregation names as field names (if quoted). Resolves #4049
frontend/src/metabase/lib/expressions/index.js
frontend/src/metabase/lib/expressions/index.js
import _ from "underscore"; import { mbqlEq } from "../query/util"; import { VALID_OPERATORS, VALID_AGGREGATIONS } from "./tokens"; export { VALID_OPERATORS, VALID_AGGREGATIONS } from "./tokens"; export function formatAggregationName(aggregationOption) { return VALID_AGGREGATIONS.get(aggregationOption.short); }...
JavaScript
0
@@ -189,24 +189,86 @@ ./tokens%22;%0A%0A +const RESERVED_WORDS = new Set(VALID_AGGREGATIONS.values());%0A%0A export funct @@ -440,16 +440,45 @@ st(name) + && !RESERVED_WORDS.has(name) ?%0A
0a682c5e50345a93f242463f16416feb9a6950ed
add missing bower bump
build/tasks/prepare-release.js
build/tasks/prepare-release.js
var gulp = require('gulp'); var runSequence = require('run-sequence'); var paths = require('../paths'); var changelog = require('conventional-changelog'); var fs = require('fs'); var bump = require('gulp-bump'); gulp.task('bump-version', function(){ return gulp.src(['./package.json']) .pipe(bump({type:'patch'}))...
JavaScript
0.000001
@@ -279,16 +279,32 @@ ge.json' +, './bower.json' %5D)%0A .
52c6c77035d6c5f37e64ab6eb94c6defd0fba110
Fix timeslider in case there are zero hit
quamerdes/static/js/views/search/timeslider.js
quamerdes/static/js/views/search/timeslider.js
define([ 'jquery', 'underscore', 'backbone', 'd3', 'app', 'text!../../../templates/search/timeslider.html' ], function($, _, Backbone, d3, app, timeSliderTemplate){ var TimeSliderView = Backbone.View.extend({ initialize: function(options){ // Control visibility on init. E...
JavaScript
0.000013
@@ -734,32 +734,85 @@ _AGGREGATION%5D;%0A%0A + if (date_stats.count === 0) return;%0A%0A @@ -5178,32 +5178,144 @@ _AGGREGATION%5D;%0A%0A + // Fixme: hide timeslider when there are zero hits%0A if (date_stats.count === 0) return;%0A%0A this @@ -7015,9...
abd7b4163a95448c8d8c35ff17e2498ad10fbf4b
Add support for JS importers/generators (api)
api/data.js
api/data.js
const fse = require('fs-extra'); const got = require('got'); const unzipper = require('unzipper'); const chalk = require('chalk'); const debug = require('./utils/debug.js'); const db = require('./db.js'); // Download data into temporary folder. function download() { return new Promise(async (resolve) => { debug...
JavaScript
0
@@ -1339,19 +1339,20 @@ le.s +p li -ce(0, -4) +t('.')%5B0%5D ;%0A%09%09 @@ -1435,16 +1435,78 @@ %7D%60);%0A%09%09%09 +%0A%09%09%09switch (file.split('.')%5B1%5D) %7B%0A%09%09%09%09%0A%09%09%09%09case 'sql': %7B%0A%09%09%09%09%09 await db @@ -1565,16 +1565,133 @@ ing());%0A +%09%09%09%09%09break;%0A%09%09%09%09%7D...
03da35f5a70360d93036c72c09fde19de0804b46
fix variable name conflict
src/index.js
src/index.js
// cheap way of doing AA c.width = 32e2, c.height = 18e2, // 16:9 aspect ratio //c.width = 192, c.height = 108; // battery saving s = new AudioContext; c = s.createScriptProcessor(512, t = 1, K = 1); c.connect(s.destination); // bass & arpeggio sequencers // (compresses better when inlined) // s=(notes,octave,rate,l...
JavaScript
0.002534
@@ -146,17 +146,17 @@ ontext;%0A -c +a = s.cre @@ -194,17 +194,17 @@ K = 1);%0A -c +a .connect @@ -398,17 +398,17 @@ sic%0AX = -c +a .onaudio @@ -421,16 +421,16 @@ s = -c +a =%3E%0A -c +a .out @@ -472,17 +472,17 @@ =%3E%0A -c +a .outputB
5975b619f07489746759030f9ec8e6c5d599e14c
remove debug logging
src/index.js
src/index.js
import ReactDOM from 'react-dom' import React from 'react' import { List } from 'immutable' import App from './app.js' // pull in and parse entries from the API here... // using testdata for now const testEntries = List([ { name: 'testuser1', numBytes: 1e9, lastUpdated: new Date(), groups: ['group1']}, { name: 'test...
JavaScript
0.000002
@@ -967,54 +967,8 @@ %3E %7B%0A -%09console.log(groupFilters)%0A%09console.log(sort)%0A %09Rea
052da6bfd65b15005a303dd003c6bf2182a46193
Fix key form
src/index.js
src/index.js
import rp from 'request-promise'; import isFunction from 'lodash.isfunction'; import Stream from './stream'; class Instagram { /** * Create a new instance of instagram class * @param {Object} options * @param {String} options.clientId * @param {String} options.accessToken */ constructor(options = {}...
JavaScript
0.00013
@@ -1038,12 +1038,12 @@ = ' -body +form ';%0A
503e28e5c58438a6b04d66b240a09cc06afa2778
update core to be the main export, plugins add onto that
src/index.js
src/index.js
module.exports = { core: require('./core'), extras: require('./extras'), filters: require('./filters'), interaction: require('./interaction'), loaders: require('./loaders'), spine: require('./spine'), text: require('./text') };
JavaScript
0
@@ -1,8 +1,19 @@ +var core = module.e @@ -25,68 +25,59 @@ s = -%7B%0A core: require('./core'),%0A +require('./core');%0A%0A// plugins:%0Acore. extras -: req @@ -64,32 +64,34 @@ e.extras + = require('./extr @@ -98,29 +98,31 @@ as') -,%0A +;%0Acore. filters -: + ...
13c3b7718e3f89c2b0822a493070faa6cfb6cc46
move isInitialized to aurelia-pal (#14)
src/index.js
src/index.js
import {initializePAL} from 'aurelia-pal'; import {_PLATFORM} from './platform'; import {_FEATURE} from './feature'; import {_DOM} from './dom'; import {_ensureCustomEvent} from './custom-event'; import {_ensureFunctionName} from './function-name'; import {_ensureHTMLTemplateElement} from './html-template-element'; imp...
JavaScript
0
@@ -14,16 +14,31 @@ alizePAL +, isInitialized %7D from ' @@ -484,36 +484,8 @@ ';%0A%0A -let isInitialized = false;%0A%0A /**%0A @@ -632,33 +632,8 @@ %7D%0A%0A - isInitialized = true;%0A%0A _e
3d7d31b6e5b4f2fadd0cd271ce4651620544fe97
change login route to signup
src/index.js
src/index.js
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' import CreatePost from './components/CreatePost' import CreateUser from './components/CreateUser' import { Router, Route, browserHistory } from 'react-router' import ApolloClient, { createNetworkInterface } from 'apollo-client...
JavaScript
0
@@ -1176,13 +1176,14 @@ th=' -login +signup ' co
3cf13fd8fa5e742a87e7e37759b009932ea73369
add catch nextable
src/index.js
src/index.js
import _ from 'lodash'; const Next = async ({ for: _for, each, shouldNext, next, catch: _catch, } = {}) => { try { if (_for && each) { const results = _.castArray(await _for()); for (const [index, result] of results.entries()) { try { const eachNext = await each(result, in...
JavaScript
0.000011
@@ -409,32 +409,43 @@ await +Next(await _catch(err);%0A @@ -435,24 +435,25 @@ _catch(err) +) ;%0A @@ -752,24 +752,35 @@ await +Next(await _catch(err); @@ -778,16 +778,17 @@ tch(err) +) ;%0A %7D
5d0a00389fbab2ef9bee5777fbd8fbc586a65d95
Add table component to components index
src/index.js
src/index.js
'use strict'; export default { Container : require('./container'), Row : require('./row'), Col : require('./col'), IconButton : require('./icon-button'), AppHeader : require('./layout/side-nav'), TopNav : require('./layout/top-nav'), SideNav : require('./layout/side-nav'), Modal : require('./modal'...
JavaScript
0.000001
@@ -317,16 +317,47 @@ dal'),%0A%0A + Table : require('./table'),%0A%0A Collap
07f318a4e323755982af8207430f77a2c975e8fb
update surface defaults tests
test/jasmine/tests/surface_test.js
test/jasmine/tests/surface_test.js
var Surface = require('@src/traces/surface'); describe('Test surface', function() { 'use strict'; describe('supplyDefaults', function() { var supplyDefaults = Surface.supplyDefaults; var defaultColor = '#444', layout = {}; var traceIn, traceOut; beforeEach(funct...
JavaScript
0
@@ -40,16 +40,48 @@ ace');%0A%0A +var Lib = require('@src/lib');%0A%0A %0Adescrib @@ -1178,39 +1178,364 @@ x: %7B - show: true %7D%0A %7D +%7D,%0A y: %7B show: true %7D,%0A z: %7B show: false, highlight: false %7D%0A %7D%0A %7D;%0A%0A ...
6052c3305a6d47b52ccf29e02fbb0e8a77c9289c
Fix all tests for iOS private browsing mode
test/tests/superstore-sync.test.js
test/tests/superstore-sync.test.js
var prefix = ''; var tests = {}; try { localStorage.test = 'test'; localStorage.removeItem('test'); } catch (err) { if (err.code == 22) prefix = '// '; } function getLocalStorage(key) { return localStorage[key]; }; function setLocalStorage(key, val) { return localStorage[key] = val; }; tests["setUp"] = fu...
JavaScript
0.000002
@@ -10,16 +10,47 @@ x = '';%0A +var buggyLocalStorage = false;%0A var test @@ -183,16 +183,44 @@ '// ';%0A + buggyLocalStorage = true;%0A %7D%0A%0Afunct @@ -312,24 +312,47 @@ ey, val) %7B%0A + if (buggyLocalStorage) return loca @@ -430,24 +430,325 @@ lear();%0A%7D;%0A%0A +tests%5B%22Removing a key before it'...
7d0e70947ecc322024000e0b48e2a061115cf438
Use fixed method names
test/unit/js/translations-tests.js
test/unit/js/translations-tests.js
const { expect } = require('chai') const translations = require('../../../app/js/translations') describe('translations', function() { beforeEach(function() { this.translations = translations.setup({ subdomainLang: { www: { lngCode: 'en', url: 'www.sharelatex.com' }, fr: { lngCode: 'fr', ur...
JavaScript
0.000005
@@ -609,19 +609,19 @@ nMiddlew -e ar +e ', funct @@ -832,35 +832,35 @@ s.expressMiddlew -e ar +e (this.req, this. @@ -917,35 +917,35 @@ dOnDomainMiddlew -e ar +e (%0A this @@ -1357,35 +1357,35 @@ s.expressMiddlew -e ar +e (this.req, this. @@ -1442,35 +1442,35 @@ dOnDomainMiddlew -e ar +e (%0A ...
bce8491c781aab450ed46833c7e05d58c62cf5d6
fix undefined description
src/writer_extensions/archivist/select_entity_mixin.js
src/writer_extensions/archivist/select_entity_mixin.js
var $$ = React.createElement; var TYPE_LABELS = { "prison": "Prison", "toponym": "Toponym", "person": "Person", "definition": "Definition" }; // Example of a sub view // ---------------- var EntityView = React.createClass({ displayName: "Entity", handleClick: function(e) { e.preventDefault(); th...
JavaScript
0.999999
@@ -988,24 +988,30 @@ .description + %7C%7C '' ;%0A // T
546e8d70a45fe1eb43c9f726a3725fff9fea2aa5
Make linter happy
src/manet.js
src/manet.js
"use strict"; const _ = require('lodash'), express = require('express'), bodyParser = require('body-parser'), logger = require('winston'), fs = require('fs-extra'), nocache = require('nocache'), passport = require('passport'), config = require('./config'), routes = requi...
JavaScript
0.000005
@@ -1275,24 +1275,26 @@ %7D);%0A %7D +;%0A %0A process
8592852a27986c6886999940e3f92f3ca762b5f1
Consolidate logic.
src/queue.js
src/queue.js
import {slice} from "./array"; var noabort = {}; function Queue(size) { if (!((size = +size) >= 1)) throw new Error("invalid size"); this._size = size; this._call = this._error = null; this._tasks = []; this._data = []; this._waiting = this._active = this._ended = this._start = 0; // inside a sync...
JavaScript
0.000005
@@ -71,71 +71,8 @@ ) %7B%0A - if (!((size = +size) %3E= 1)) throw new Error(%22invalid size%22);%0A th @@ -2952,66 +2952,175 @@ %7B%0A -return new Queue(arguments.length ? +concurrency : Infinit +if (concurrency == null) concurrency = Infinity;%0A else if (!((concurrency = +concurrency) %3E= 1)) throw new Erro...
71d0560133c3bf3eccc8350e8761860c12be147e
Remove text field from payload
src/slack.js
src/slack.js
'use strict'; // load .env variables if set require('dotenv').config(); const config = require('config'); const rp = require('request-promise-native'); module.exports.notify = function(restaurants) { let content = createContentFrom(restaurants), completeWebhook = process.env.SLACK.concat(process.env.WEBHOOK...
JavaScript
0
@@ -722,107 +722,8 @@ n %7B%0A - 'text' : %7B toString: () =%3E '' %7D, // only way to have no text without attachment fallback%0A
4016d059759680b0539c4c531b2f559722051ac3
fix #361
src/utils.js
src/utils.js
/** * Gets the data attribute. the name must be kebab-case. */ export const getDataAttribute = (el, name) => el.getAttribute(`data-vv-${name}`); /** * Determines the input field scope. */ export const getScope = (el) => { let scope = getDataAttribute(el, 'scope'); if (! scope && el.form) { scope = getDataA...
JavaScript
0
@@ -479,52 +479,9 @@ ut;%0A - if (wait == 0) %7B%0A return callback;%0A %7D %0A + re @@ -1020,19 +1020,10 @@ ) =%3E +%0A -%7B%0A return obj @@ -1102,19 +1102,16 @@ object); -%0A%7D; %0A%0A/**%0A * @@ -1635,20 +1635,17 @@ urn;%0A %7D - %0A +%0A %0A if (! @@ -3284,17 +3284,16 @@ aset.%0A * - %...
aa12080c5a1d97a8521377c212276bf0f5c0e815
Remove console.log
src/utils.js
src/utils.js
import fs from 'fs'; import path from 'path'; import https from 'https'; import child_process from 'child_process'; import { rimrafSync, copydirSync } from 'sander'; const tmpDirName = 'tmp'; const degitConfigName = 'degit.json'; export {degitConfigName}; export class DegitError extends Error { constructor(message,...
JavaScript
0.000004
@@ -1571,39 +1571,8 @@ e);%0A -%09console.log('tmpDir', tmpDir)%0A %09rim
1d8373148413b63181ad7d98e64aac1d451292e9
Use AxiosError constructor to create axios errors if available
src/utils.js
src/utils.js
"use strict"; var isEqual = require("fast-deep-equal"); var isBuffer = require("is-buffer"); var isBlob = require("./is_blob"); var toString = Object.prototype.toString; function find(array, predicate) { var length = array.length; for (var i = 0; i < length; i++) { var value = array[i]; if (predicate(valu...
JavaScript
0
@@ -8,16 +8,46 @@ rict%22;%0A%0A +var axios = require(%22axios%22);%0A var isEq @@ -3505,24 +3505,245 @@ se, code) %7B%0A + // axios v0.27.0+ defines AxiosError as constructor%0A if (typeof axios.AxiosError === 'function') %7B%0A return new axios.AxiosError(message, code, config, null, response);%0A %7D%0A%0A ...
c86fe8f3f822ffc2f47bef491ac7f25006bbbb51
call iterator on values
src/vnode.js
src/vnode.js
import { VNodeIterator } from './access'; export function VNode(cx,inode,type,name,value,parent,depth,indexInParent,cache){ this.cx = cx; this.inode = inode; this.type = type; this.name = name; this.value = value; this.parent = parent; this.depth = depth | 0; this.indexInParent = indexInParent; this.cache = c...
JavaScript
0.000001
@@ -2750,16 +2750,35 @@ values() +%5BSymbol.iterator%5D() ,this, t
914fe7ccc3a257df4a1626e2434e6abad25f02c3
Correct version in comment
migration/fixtures/v10.js
migration/fixtures/v10.js
/* eslint-disable no-magic-numbers */ // NOTE This file is an important documentation of the data structure of v9. var c = require('./common'); var db = require('tresdb-db'); module.exports = { collections: { config: [{ key: 'schemaVersion', value: 10, // NOTE }], entries: [{ _id: db...
JavaScript
0.000001
@@ -105,13 +105,14 @@ ure -of v9 +at v10 .%0A%0Av
7c411abc574f1a925aa0890166d4bd4294c969b4
simplify save extension lookups
app/atom.js
app/atom.js
// Stopgap atom.js file for handling normal browser things that atom // does not yet have stable from the browser-side API. // - Opening external links in default web browser // - Saving files/downloads to disk $(document).ready(function() { if (typeof process === 'undefined') return; if (typeof process.version...
JavaScript
0.000001
@@ -860,16 +860,22 @@ + tm2z: 'Packag @@ -872,27 +872,25 @@ z: 'Package' -: %5B +, %0A @@ -894,82 +894,25 @@ - 'tm2z'%0A %5D,%0A 'T +mbt iles -' : -%5B%0A 'mbt +'T iles' +, %0A @@ -924,30 +924,20 @@ -%5D,%0A +png: 'Image' ...
e7a63b8e12ea2af68f9b8cb64cdd74d87ab894a8
add import firebase
app/auth.js
app/auth.js
import angular from 'angular'; import {appName, firebaseUrl} from './constants'; const authFactory = ($firebaseAuth) => { const ref = new Firebase(firebaseUrl); return $firebaseAuth(ref); }; authFactory.$inject = ['$firebaseAuth']; angular.module(appName).factory('Auth', authFactory);
JavaScript
0.000002
@@ -24,16 +24,49 @@ gular';%0A +import Firebase from 'firebase';%0A import %7B
a83c3a6180265312dbedd10eb6a3db6c4f234902
Fix typo
app/main.js
app/main.js
var counter; var header = 160; var effectiveWindowWidth, effectiveWindowHeight; var objectSize = 80; function setup() { effectiveWindowWidth = windowWidth - 16; effectiveWindowHeight = windowHeight - header; var canvas = createCanvas(effectiveWindowWidth, effectiveWindowHeight); if (displayWidth < 700...
JavaScript
0.999999
@@ -575,33 +575,32 @@ if (counter.lo -o sing)%0A @@ -811,33 +811,32 @@ if (counter.lo -o sing)%0A @@ -5373,17 +5373,16 @@ this.lo -o se();%0A @@ -5552,17 +5552,16 @@ this.lo -o se = fun @@ -5632,25 +5632,24 @@ this.lo -o sing = true;
d0e6a07669536dab73bde02a5f6e356bc675bef6
Remove placeholder from initial state
app/javascript/app/components/my-climate-watch/viz-creator/viz-creator-initial-state.js
app/javascript/app/components/my-climate-watch/viz-creator/viz-creator-initial-state.js
export default { creatorIsOpen: false, title: '', description: '', placeholder: '', creationStatus: { failed: false, fields: [] }, datasets: { name: 'datasets', selected: null, data: [], loading: false, loaded: false, child: { name: 'visualisations', selected: n...
JavaScript
0.000001
@@ -70,27 +70,8 @@ '',%0A - placeholder: '',%0A cr
3233aa6012331a07dce88af3d10242d1ec07d56e
Fix creation alarmdef fails when threshold equals 0
monitoring/static/monitoring/js/services.js
monitoring/static/monitoring/js/services.js
/* * Copyright 2016 FUJITSU LIMITED * * 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 ...
JavaScript
0.00002
@@ -1312,24 +1312,51 @@ + expr.threshold === 0 ? 0 : expr.thresh
a03c7964c5737b3315646aee52342a8dca18ad3c
Add missing semicolon
ie9-console-workaround.js
ie9-console-workaround.js
/* * IE9 console workaround * The console object is only exposed on Internet Explorer 9 * after opening the developer tools (F12) */ if (!window.console) { var console = { log: function() {}, warn: function() {}, error: function() {}, time: function() {}, timeEnd: function() {} } }
JavaScript
0.999999
@@ -302,11 +302,12 @@ ) %7B%7D%0A %7D +; %0A%7D%0A
e22389fdeb0ddab70c4b4e7e36e08b5a720b6bfc
add text saying whether description is truncated (turned off for now)
meetup-better-export.user.js
meetup-better-export.user.js
// ==UserScript== // @name Meetup Better Event Exporter // @namespace http://boris.joff3.com // @version 1.0 // @description Export full Meetup event description to Google Calendar // @author Boris Joffe // @match http://*.meetup.com/* // @match https://*.meetup.com/* // @grant ...
JavaScript
0.000038
@@ -3720,16 +3720,82 @@ desc);%0A +%09//calLink.innerHTML += isTruncated ? ' (truncated)' : ' (full)';%0A %09dbg('de
f2bc749082e8f00cda465e8d1a09579534f6080b
Use new init mechanism for transactions
caspy/static/js/transaction.js
caspy/static/js/transaction.js
(function(){ var mod = angular.module('caspy.transaction', ['caspy.api', 'caspy.ui', 'generic']); mod.factory('TransactionService', ['ResourceWrapper', 'caspyAPI', function(ResourceWrapper, caspyAPI) { function splitcmp(a, b) { if (0 < a.amount && 0 < b.amount) return 1/a.amount...
JavaScript
0
@@ -1659,16 +1659,76 @@ on_id';%0A + this.newitem = function() %7B return %7Bsplits: %5B%5D%7D; %7D;%0A %7D%5D%0A) @@ -3253,95 +3253,8 @@ ) %7B%0A - if (typeof this.splits() === 'undefined')%0A this.splits(%5B%5D);%0A
54e9789196ae23d47d2c585cca0d203b3bad24a5
Use `hostname` when nuking cookies
lib/assets/javascripts/unobtrusive_flash.js
lib/assets/javascripts/unobtrusive_flash.js
$(function() { // Delete the cookie regardless of the domain it was set from // Partial credit to http://stackoverflow.com/a/2959110/6678 function nukeCookie(cookieName) { var yesterday = new Date(); yesterday.setDate(yesterday.getDate() - 1); var hostParts = window.location.host.split('.').reve...
JavaScript
0.000001
@@ -297,16 +297,20 @@ ion.host +name .split('
706a776187cdad8e1b396f774f3ad7f405c19a8f
should be uppercase F
src/events/setHandler.js
src/events/setHandler.js
import eventHooks from './shared/eventHooks'; /** * Creates a wrapped handler that hooks into the Inferno * eventHooks system based on the type of event being * attached. * * @param {string} type * @param {function} handler * @return {function} wrapped handler */ export default function setHandler(type, handler...
JavaScript
1
@@ -206,17 +206,17 @@ @param %7B -f +F unction%7D @@ -236,17 +236,17 @@ return %7B -f +F unction%7D
f7c74c35ee5829a491930f85505f50400d9611ba
Fix code style
src/foam/u2/FloatView.js
src/foam/u2/FloatView.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * 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 requir...
JavaScript
0.000169
@@ -2034,20 +2034,20 @@ === '0' + ; i - -- ) %7B%7D%0A
638bb3cf7fb54e7bed3a78a79f896fd4348438fc
Fix with @pablo's comment
src/geo/ui/fullscreen.js
src/geo/ui/fullscreen.js
/** * FullScreen widget: * * var widget = new cdb.ui.common.FullScreen({ * doc: ".container", // optional; if not specified, we do the fullscreen of the whole window * template: this.getTemplate("table/views/fullscreen") * }); * */ cdb.ui.common.FullScreen = cdb.core.View.extend({ tagName: 'div', ...
JavaScript
0
@@ -2529,22 +2529,8 @@ reen - !== undefined ) %7B%0A
8e59a7f7dcbf1e9e11e10f6e3da033103a900bab
make loadArea return a promise from either exit point
src/helpers/load-area.js
src/helpers/load-area.js
import db from './db' import {enhance as enhanceHanson} from '../area-tools' import some from 'lodash/some' import maxBy from 'lodash/maxBy' import isArray from 'lodash/isArray' import yaml from 'js-yaml' function resolveArea(areas, query) { if (!('revision' in query)) { return maxBy(areas, 'revision') } else if ...
JavaScript
0.000001
@@ -639,32 +639,48 @@ rce) %7B%0A%09%09return +Promise.resolve( %7B...areaQuery, _ @@ -722,16 +722,17 @@ ource))%7D +) %0A%09%7D%0A%0A%09le
2eac86163be2bd5627dab3e33e8b4e0926895442
fix spelling in error message (#1427)
src/hooks/useSelector.js
src/hooks/useSelector.js
import { useReducer, useRef, useEffect, useMemo, useLayoutEffect, useContext } from 'react' import invariant from 'invariant' import { useReduxContext as useDefaultReduxContext } from './useReduxContext' import Subscription from '../utils/Subscription' import { ReactReduxContext } from '../components/Contex...
JavaScript
0.000017
@@ -1875,16 +1875,17 @@ or occur +r ed while
2d7c845cd36daaec7c42f8965b9347df335acafe
Update TreeAPI.js
TreeAPI.js
TreeAPI.js
/* * TreeAPI.js * * Provide a "Person" object where data is gathered from the WikiTree API. * We use the WikiTree API action "getPerson" to retrieve the profile data and then store it in object fields. * */ // Put our functions into a "WikiTreeAPI" namespace. window.WikiTreeAPI = window.WikiTreeAPI || {}; //...
JavaScript
0
@@ -2975,16 +2975,17 @@ the API +' s getPer
35398b4671e29be63635256f08c9be8634f8852e
remove unnecessary line
adapter.js
adapter.js
'use strict'; // Dependencies // --- var _ = require('lodash'); var Bluebird = require('bluebird'); var Backbone = require('backbone'); var request = require('request'); var debug = require('./debug'); var BootieError = require('./error'); module.exports = Backbone.Model.extend({ urlRoot: '', /** * If there's...
JavaScript
0.669882
@@ -3869,69 +3869,8 @@ r(); -%0A var requestOptions = this._buildRequestOptions(options); %0A%0A
dae269d0aa25d0174a48d2cc3e9b170a7d50bc43
add missing prop types
renderer/components/Autopay/AutopayCardView.js
renderer/components/Autopay/AutopayCardView.js
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { themeGet } from 'styled-system' import { Box, Flex } from 'rebass' import { Card, Heading } from 'components/UI' import AutopayAddButton from './AutopayAddButton' import AutopayLimitBadge from './AutopayLimitBad...
JavaScript
0.00048
@@ -2026,24 +2026,142 @@ isRequired,%0A + isActive: PropTypes.bool,%0A limit: PropTypes.string.isRequired,%0A limitCurrency: PropTypes.string.isRequired,%0A nickname
fe6ab2bdaa247c4b1a7bb5e22aca3a2c1eaa3b79
Use mouse wheel to zoom by default
client-data/tools/zoom/zoom.js
client-data/tools/zoom/zoom.js
/** * WHITEBOPHIR ********************************************************* * @licstart The following is the entire license notice for the * JavaScript code in this page. * * Copyright (C) 2013 Ophir LOJKINE * * * The JavaScript code in this page is free software: you can * redistri...
JavaScript
0.000315
@@ -2766,24 +2766,25 @@ if ( +! evt.ctrlKey @@ -2786,38 +2786,8 @@ lKey - %7C%7C Tools.curTool === zoomTool ) %7B%0A
53bad06f03993d27d4c686c8768c8f1d5890bcba
fix log => console.log
verbose.js
verbose.js
/** * */ function logAutoconnectProxy(acp){ console.log('adding logger'); acp.on('source.connect',function(source){ source.on('open',function(){ console.log('autoconnect created proxy: there are '+acp.connectionPoolCount()+' ready sockets'); }).on('message', function message(data, flags) { console.lo...
JavaScript
0.000003
@@ -1698,17 +1698,24 @@ gs) %7B%0A%09%09 -%09 +console. log('bri
a6163b8d8f8397a29b5e80b47b5ec96e1a68d789
add this to get/set attribute function
client/muon/m_41_modelviews.js
client/muon/m_41_modelviews.js
function __setGetElementValue__(view,getter){ function set(val){ if (!this.dataset["attrType"]){ if (this.tagName == "INPUT" || this.tagName == "SELECT" || this.tagName == "TEXTAREA") $(this).val(val); else this.innerText = val; } else if (this.dataset["attrType"] == ...
JavaScript
0.000001
@@ -570,18 +570,53 @@ getter%5D( -); +this);%0A // %D0%94%D0%BB%D1%8F %D0%B4%D0%B5%D1%84%D0%B5%D1%80%D0%B5%D0%B4 %D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2 %0A
0409a44f651085db0ba913eb516a184b3729a1e9
Update companies filter test
test/functional/cypress/specs/companies/filter-spec.js
test/functional/cypress/specs/companies/filter-spec.js
const selectors = require('../../../../selectors') describe('Company Collections Filter', () => { before(() => { cy.visit('/companies?sortby=collectionTest') cy.get(selectors.entityCollection.entities) .children() .should('have.length', 9) cy.get(selectors.entityCollection.collection).should(...
JavaScript
0
@@ -5556,17 +5556,17 @@ ngth', 6 -3 +4 )%0A%0A c
f844f1093d1c4398e3db5b718de0221a809c110c
Update version string to 2.5.2
version.js
version.js
if (enyo && enyo.version) { enyo.version["enyo-ilib"] = "2.5.2-rc.1"; }
JavaScript
0.000004
@@ -60,13 +60,8 @@ .5.2 --rc.1 %22;%0A%7D