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
91621b39a9db89950802a40e95ce4d898f9acb33
Enable non XML file upload tests
test/api/fileUploadSpec.js
test/api/fileUploadSpec.js
const frisby = require('frisby') const fs = require('fs') const path = require('path') const FormData = require('form-data') const URL = 'http://localhost:3000' xdescribe('/file-upload', () => { let file let form it('POST file valid PDF for client and API', done => { file = path.resolve(__dirname, '../file...
JavaScript
0
@@ -156,17 +156,16 @@ :3000'%0A%0A -x describe @@ -189,16 +189,16 @@ () =%3E %7B%0A + let fi @@ -1287,32 +1287,33 @@ e(done)%0A %7D)%0A%0A +x it('POST file ty @@ -1632,32 +1632,33 @@ e(done)%0A %7D)%0A%0A +x it('POST large X @@ -1975,32 +1975,33 @@ e(done)%0A %7D)%0A%0A +x it('POST file ty @@ -2323...
48116784b977eed394c2d5f5e1f0badbb1725965
fix typo in import
ui/test/dashboards/reducers/cellEditorOverlay.test.js
ui/test/dashboards/reducers/cellEditorOverlay.test.js
import reducer, {initialState} from 'src/dashboards/reducers/cellEditorOverlay' import { showCellEditorOverlay, hideCellEditorOverlay, changeCellType, renameCell, updateSingleStatColors, updateSingleStatType, updateGaugeColors, updateAxes, } from 'src/dashboards/actions/cellEditorOverlay' import {DEFAU...
JavaScript
0.998343
@@ -358,17 +358,17 @@ nstants/ -T +t ableGrap
549647fa12e8f8280068ac314408b1db089b3b63
fix lint
test/datetime/diff.test.js
test/datetime/diff.test.js
/* global test expect */ import { Info, DateTime } from '../../src/luxon'; //------ // diff //------- const diffFromObjs = (o1, o2, units) => DateTime.fromObject(o1).diff(DateTime.fromObject(o2), units); const diffObjs = (o1, o2, units) => diffFromObjs(o1, o2, units).toObject(); test('DateTime#diff defaults to mil...
JavaScript
0.000013
@@ -31,14 +31,8 @@ rt %7B - Info, Dat
266f973f4e6e1285a2d84149316e12891bba4ed5
fix $routeChange silencing directive
webapp/src/main/webapp/app/cockpit/services/search.js
webapp/src/main/webapp/app/cockpit/services/search.js
ngDefine('cockpit.services', function(module) { var SearchFactory = [ '$location', '$rootScope', function($location, $rootScope) { var silent = false; $rootScope.$on('$routeUpdate', function(e, lastRoute) { if (silent) { console.log('silenced $routeUpdate'); silent = false; } ...
JavaScript
0
@@ -239,54 +239,8 @@ ) %7B%0A - console.log('silenced $routeUpdate');%0A @@ -639,24 +639,65 @@ n(params) %7B%0A + var oldPath = $location.absUrl();%0A%0A angula @@ -782,24 +782,105 @@ %0A %7D);%0A%0A + var newPath = $location.absUrl();%0A %0A if (newPath != oldPath) %7B%0...
5c9cd8c3483bc8c92609c9adb37faffe1b6bcc71
Fix for changed component generation directory
packages/xliv/utils/ComponentFlarePlugin.js
packages/xliv/utils/ComponentFlarePlugin.js
exports = module.exports = class FlareComponentResolverPlugin { apply(compiler) { let componentRegex = /.(module|component)(.tsx?)?$/; let relativeImportRegex = /\.\.?\//; let resolve = (result, fs, cb) => { try { // Not a request for a component/module ...
JavaScript
0
@@ -1592,17 +1592,17 @@ odIndex+ -2 +1 , pathPa
f1bbed440533cb72c59819642b4f86e03c11b34e
input names
app/javascript/containers/AdminCarusel.js
app/javascript/containers/AdminCarusel.js
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; class AdminCarusel extends React.Component { constructor(props) { super(props); this.state = { main_images: [ ...gon.global.main_images.filter(i => i.image_file_name && i.image_file_name.le...
JavaScript
0.999999
@@ -1775,32 +1775,51 @@ ition%5D%60%7D value=%7B +attributesOffset + i%7D /%3E%0A @@ -3043,36 +3043,32 @@ - /%3E%0A @@ -3210,36 +3210,40 @@ tesOffset + i%7D%5D%5B -name +position %5D%60%7D value=%22main_ @@ -3240,151 +3240,28 @@ lue= -%22main_image%22 /%3E%0A ...
b8aefedcc3dcaf62d1b45f1e4ffb1dc4fdc55f63
Fix a bug with the inheritance model
client/components/cards/cardDetails.js
client/components/cards/cardDetails.js
BlazeComponent.extendComponent({ mixins() { return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar]; }, calculateNextPeak() { const cardElement = this.find('.js-card-details'); if (cardElement) { const altitude = cardElement.scrollHeight; this.callFirstWith(this, 'setNextPeak', altitud...
JavaScript
0.000212
@@ -3550,16 +3550,22 @@ super +.close ();%0A %7D%0A
e8df06e00ad2608c1a6815560a613b1bed7e5ee4
修改发件邮箱 -company
play/tkwb-server/routes/index.js
play/tkwb-server/routes/index.js
const router = require('koa-router')() const superagent = require('superagent') const cheerio = require('cheerio') const fs = require('fs') const nodemailer = require('nodemailer') const dateformat = require('dateformat') const isEqual = require('lodash.isequal') let json = null let date = new Date() const transporter...
JavaScript
0
@@ -351,20 +351,33 @@ %7B%0A -service: 'qq +host: 'smtp.exmail.qq.com ',%0A @@ -423,38 +423,34 @@ user: 'zh -aob in@ -jtuntech +imuntil .com',%0A p @@ -459,16 +459,24 @@ s: ' -1xx1UOH3 +eVcybJ4QzvjxjzGv '%0A @@ -517,22 +517,18 @@ 'zh -aob in@ -jtuntech +imuntil .com
1d558530cccdcb39f355cf058626b63daf938581
Update build to change.
dist/sails.model.js
dist/sails.model.js
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
JavaScript
0
@@ -1755,107 +1755,413 @@ eof -Array) %7B%0A obj%5Bkey%5D = prop.map(function (ob) %7B return SailsModel_1.serialize(ob); +SailsModel_1) %7B%0A obj%5Bkey%5D = SailsModel_1.serialize(prop);%0A %7D%0A if (prop && prop instanceof Array) %7B%0A ...
1a84f39dcd653edaa2aa791f88aa5299a731e3c9
Fix temporaire sur animation des modales avec angular 1.4
client/app/app.js
client/app/app.js
'use strict'; angular.module('impactApp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'ui.router', 'ui.bootstrap', 'ngStorage', 'ngAnimate', 'ngFileUpload', 'ngMessages', 'chart.js' ]) .config(function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider, $urlMatcherFactoryProvide...
JavaScript
0
@@ -314,16 +314,32 @@ Provider +, $modalProvider ) %7B%0A @@ -543,16 +543,62 @@ false);%0A + $modalProvider.options.animation = false;%0A %7D)%0A%0A
ad56f44a77a00ea711cc56d0eb403bf304480f71
fix module event serialization
lib/event_types/module_event.js
lib/event_types/module_event.js
'use strict'; var util = require('util'); var BaseEvent = require('./base_event'); function ModuleEvent(brokeredMessageOrProperties) { BaseEvent.call(this, brokeredMessageOrProperties); } util.inherits(ModuleEvent, BaseEvent); ModuleEvent.QueueName = 'module.run'; ModuleEvent.prototype.convertToBrokeredMessage = ...
JavaScript
0.000001
@@ -598,16 +598,17 @@ ulename: + this.mod @@ -620,16 +620,40 @@ me%0A %7D;%0A + if (this.payload) %7B%0A broker @@ -699,16 +699,20 @@ yload);%0A + %7D%0A return @@ -1367,16 +1367,333 @@ me;%0A %7D%0A + for (var i in brokeredMessage.customProperties) %7B%0A if (brokeredMessage.customProperties%5Bi%...
0981b635c2391d75dc0919c6c8e2c7ef6d8c3549
Make sure line numbers are computed properly
lib/meteor/applyCodeFixtures.js
lib/meteor/applyCodeFixtures.js
var SourceMapGenerator = require('source-map').SourceMapGenerator; var SourceMapConsumer = require('source-map').SourceMapConsumer; var crypto = require('crypto'); var rimraf = require('rimraf'); var mkdirp = require('mkdirp'); var path = require('path'); var fs = require('fs'); module.exports = function (cod...
JavaScript
0.000012
@@ -3562,29 +3562,8 @@ );%0A%0A - code += '%5Cn%5Cn';%0A%0A @@ -3860,16 +3860,20 @@ ine: i + + 1 + totalNu @@ -3957,16 +3957,23 @@ ppend += + '%5Cn' + code;%0A @@ -3993,23 +3993,16 @@ eCode += - '%5Cn' + codeToA @@ -4010,17 +4010,8 @@ pend - + '%5Cn%5Cn' ;%0A%0A
303b28c78226eec2dbf0c9669fd7685b6f358465
add tooltip for monster name links as well
translate_links.js
translate_links.js
var replace_list = []; for (var i = 0; i < stree_list.length; i++) { var stree = stree_list[i]; var name = stree["name"]; var name_jp = stree["name_jp"]; var name_both = name + " (" + name_jp + ")"; replace_list.push([name_jp, name_both]); } // sort longest first replace_list.sort(function compareEl...
JavaScript
0
@@ -1162,28 +1162,159 @@ +// if doesn't cont +a in -ue;%0A %7D%0A + no kanji, could be full monster name, add tooltip%0A // for that as well%0A tag_title = tag_text;%0A %7D else %7B%0A + tag_ @@ -1349,16 +1349,22 @@ o_idx);%0A + %7D%0A for @@ -1415,59 +1415,8 @@ ) %7B%...
c7dca0674259f204b560f5b92ce1f79c451f2685
Clear title input if file is untitled
app/scripts/directives/markdown-editor.js
app/scripts/directives/markdown-editor.js
'use strict'; angular.module('markdownApp') .directive('markdownEditor', function($document, files) { return { restrict: "E", transclude: true, template: "<div class='editor'><input class='title' type='text' ng-model='title' placeholder='Title' maxlength='255'><textarea class='codemirror'></textarea><di...
JavaScript
0.000315
@@ -185,16 +185,40 @@ ditor'%3E%3C +form class='pure-form'%3E%3C input cl @@ -295,16 +295,23 @@ ='255'%3E%3C +/form%3E%3C textarea @@ -862,24 +862,56 @@ cope.title = + file.title == 'Untitled' ? '' : file.title;
5968c7b080b4fc1a9d5a45e701fdaf7f723207e8
edit function
app/services/database/removeDuplicates.js
app/services/database/removeDuplicates.js
"use strict" const mongoose = require('mongoose'), Concept = require('../../models/Concept'); module.exports = () => { let data = {} Concept.find() .sort('label') .select('label _id') .exec((err, collection)=>{ if (err) throw err let dupes = {} collection.forEach((entr...
JavaScript
0.000006
@@ -533,18 +533,17 @@ y._id )%0A - +%0A @@ -574,30 +574,114 @@ ._id -)%0A .remove( +, (err, concept) =%3E %7B%0A if (err) console.log(err)%0A concept.remove()%0A %7D )%0A
66e23da3a672895a8da85b8a4ae82559c0795994
disable react/static-property-placement
@pob/eslint-config-react/lib/rules/react.js
@pob/eslint-config-react/lib/rules/react.js
'use strict'; module.exports = { rules: { /* added rules */ // Enforce event handler naming conventions in JSX // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md // 'react/jsx-handler-names': [ // 'error', // { // eventHandlerPrefix: '...
JavaScript
0.000001
@@ -2982,16 +2982,63 @@ : 'off', +%0A%0A 'react/static-property-placement': 'off', %0A %7D,%0A%7D;
4574647639409bf9f51bc47577b42632118eff2a
Change how templateSelection is build
app/src/js/modules/fields/relationship.js
app/src/js/modules/fields/relationship.js
/** * Handling of relationship input fields. * * @mixin * @namespace Bolt.fields.relationship * * @param {Object} bolt - The Bolt module. * @param {Object} $ - jQuery. */ (function (bolt, $) { /** * Bolt.fields.relationship mixin container. * * @private * @type {Object} */ var ...
JavaScript
0.00001
@@ -771,14 +771,19 @@ -return +var label = $(i @@ -821,15 +821,61 @@ el') +;%0A%0A return (label ? label + ': ' + : '') + i
859301d6e71d15f565e8b4d2c629fd67439ca311
Updated the timeout time to 30 seconds
lib/services/bombast-request.js
lib/services/bombast-request.js
'use strict'; var request = require('request'); var async = require('async'); var _baseUrl = null; var _environment = process.env.NODE_ENV || 'development'; if (process.env.BOMBAST_BASE_URL) { _baseUrl = process.env.BOMBAST_BASE_URL; } else { if (_environment === 'development') { _baseUrl = 'http://l...
JavaScript
0.999999
@@ -817,17 +817,17 @@ imeout: -2 +3 0000%0A
7bc66c7bf25544c1ea30459025ec2717f56b12c0
Update rarohVelky.adult.js
components/animals/rarohVelky.adult.js
components/animals/rarohVelky.adult.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/rarohVelky/01.jpg'...
JavaScript
0.000001
@@ -636,18 +636,27 @@ oh velk%C3%BD +, latinsky -( %3CText st @@ -695,17 +695,17 @@ g%3C/Text%3E -) +, z&nbsp; @@ -968,16 +968,22 @@ by byla +je%C5%A1t%C4%9B v%C4%9Bt%C5%A1%C3%AD ne @@ -1070,44 +1070,8 @@ %C3%A1kem -, kter%C3%BD se vyj%C3%ADm%C3%A1 zoubky po stran%C3%A1ch . Oz @@ -2837,16 +2837,17 @@ i l...
eef5d788c74974ec98b5d3d45f527ee16bdec520
Update env-size-display.js
jujugui/static/gui/src/app/components/env-size-display/env-size-display.js
jujugui/static/gui/src/app/components/env-size-display/env-size-display.js
/* Copyright (C) 2017 Canonical Ltd. */ 'use strict'; const classNames = require('classnames'); const PropTypes = require('prop-types'); const React = require('react'); class EnvSizeDisplay extends React.Component { /** Click handler for the service | machine links which calls the changeState event emitter ...
JavaScript
0
@@ -552,28 +552,26 @@ machines' ? -true +'' : null,%0A @@ -603,20 +603,18 @@ atus' ? -true +'' : null%0A @@ -985,38 +985,8 @@ gui; -%0A let isDefaultTab = false; %0A%0A @@ -991,24 +991,25 @@ if ( +! guiState ) %7B%0A @@ -1004,235 +1004,8 @@ tate -) %7B%0A if (guiState.hasOwnProperty(s...
ef0167d651bd12f86e31d547487d3b7312fd2f91
fix subscribe to embedded content
app/assets/javascripts/scripts/plugins/rules/widget.subscribe.js
app/assets/javascripts/scripts/plugins/rules/widget.subscribe.js
/** * Created by teamco on 4/1/14. */ define([], function defineWidgetSubscribe() { /** * Define widget subscribe events * @class WidgetSubscribe * @constructor */ var WidgetSubscribe = function WidgetSubscribe() { }; return WidgetSubscribe.extend({ /** * On d...
JavaScript
0
@@ -5884,44 +5884,180 @@ rer. -controller.setActiveContent(scope +observer.publish(%0A scope.referrer.eventmanager.eventList.setActiveContent,%0A scope.controller.getContainment().model.getUUID()%0A );%0A +%0A
ec3322330dc6d7329b3a3896376afc07353e1db0
fix import
packages/gl-react-expo/src/Image.js
packages/gl-react-expo/src/Image.js
import { loadAsset } from "webgltexture-loader-expo/lib/ExponentTextureLoader"; export default function GLImage() { console.warn("Usage of gl-react-expo Image is deprecated"); if (!(this instanceof GLImage)) throw new Error( "Failed to construct 'Image': Please use the 'new' operator." ); this.onlo...
JavaScript
0.000001
@@ -57,12 +57,8 @@ Expo -nent Text
cfc7dde10a05776b534570a71937634326cd9a49
Tweak test conditions.
test/fixtures/vegetable.js
test/fixtures/vegetable.js
// __Dependencies__ var _ = require('highland'); var mongoose = require('mongoose'); var express = require('express'); var async = require('async'); var baucis = require('../..'); var config = require('./config'); // __Private Module Members__ var app; var server; var controller; var subcontroller; // __Fixture Schem...
JavaScript
0
@@ -2822,29 +2822,28 @@ doc. -field +name = 'boom';%0A @@ -2837,24 +2837,44 @@ e = 'boom';%0A + return doc;%0A %7D));%0A @@ -3133,25 +3133,42 @@ d -oc.field = 'beam' +elete doc.name;%0A return doc ;%0A
9faf65462b6f6b58de3fd8d65406f3af150c50d8
Fix a bug that caused improper initialization with overrides
jquery.placeholder.js
jquery.placeholder.js
(function( $ ){ $.fn.placeholder = function(restoreOverride, removeOverride){ return $(this).each(function(){ var $this = $(this) original_color = $this.css('color') function remove(){ $this.css('color', original_color) ...
JavaScript
0.000002
@@ -1038,32 +1038,70 @@ %7D)%0A%0A + restoreOverride ? restoreOverride() : restore()%0A
3e47865c129c0dded3e0a126e6a2f243c9ca0693
Refactor FavoriteHandler + add standard data
js/FavoriteHandler.js
js/FavoriteHandler.js
var Storage = require('FuseJS/Storage'); var data = 'favorites'; /* ... -----------------------------------------------------------------------------*/ var addFavorite , deleteFavorite , getFavorites; /* Functions -----------------------------------------------------------------------------*/ addFavorite = functi...
JavaScript
0
@@ -33,16 +33,64 @@ orage'); +%0Avar Bussholdeplass = require('Bussholdeplass'); %0A%0Avar da @@ -229,16 +229,34 @@ avorite%0A +, getFavoriteList%0A , getFav @@ -386,19 +386,14 @@ ion( -id, favName +favObj ) %7B%0A @@ -433,32 +433,39 @@ %0A if (favorite%5B +favObj. id%5D) %7B%0A retur @@ -487,31 +487,27 @@ ...
7fbc5728ef0c66655244d5fde47fd47e2f4c2d2d
Set attributes on want model.
js/app/models/want.js
js/app/models/want.js
define(['jquery', 'underscore', 'backbone'], function($, _, Backbone) { var Models = {}; Models.Want = Backbone.Model.extend({ defaults: { id: '', name: '', price: '', location: '', buyers: [], owner: '', imageUrl: '', dateStart: '', dateExpire: '' }, initialize: function() { } })...
JavaScript
0
@@ -306,16 +306,332 @@ on() %7B%0A%0A +%09%09%7D,%0A%09%09parse: function(response) %7B%0A%09%09%09var listing = response.ProductListing;%0A%09%09%09var attributes = %7B%0A%09%09%09%09id: listing.id,%0A%09%09%09%09owner: listing.creator_id,%0A%09%09%09%09dateStart: listing.date_start,%0A%09%09%09%09dateExpire: listing...
b14f551c9c1498247dc69251f8eebfde3b1002f6
fix some more modal things
js/bootstrap-modal.js
js/bootstrap-modal.js
/* ========================================================= * bootstrap-modal.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#modal * ========================================================= * Copyright 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you...
JavaScript
0.000007
@@ -5037,80 +5037,169 @@ -e.preventDefault()%0A $($this.attr('data-target')).modal($this.data() + , target = $this.attr('data-target')%0A , option = $(target).data('modal') ? 'toggle' : $this.data()%0A e.preventDefault()%0A $(target).modal(option )%0A
ebff0bf74217577499726518e555573215c0edba
Fix bad variable name
web/js/propilex/router.js
web/js/propilex/router.js
define( [ 'ventilator', 'models/Document', 'collections/Document', 'views/Document/Item', 'views/Document/Form', 'views/Document/List' ], function (ventilator, DocumentModel, DocumentCollection, DocumentItemView, DocumentFormView, DocumentListView) { r...
JavaScript
0.999568
@@ -1364,17 +1364,16 @@ -$ document
274737f246e885bfc67375091c49e5f3a3babd85
Modify code for registration of ready event listener of body component
js/components/body.js
js/components/body.js
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var Component = app.Component || require('./component.js'); var Main = app.Main || require('./main.js'); var ModuleEntryCollection = app.ModuleEntryCollection || require('../collections/module-entry-collection.js'); var Sidebar = app...
JavaScript
0
@@ -1291,32 +1291,87 @@ this),%0A %7D);%0A%0A + this.onready = Body.prototype.onready.bind(this);%0A%0A this.registe @@ -1388,16 +1388,16 @@ ener();%0A - %7D);%0A%0A @@ -1859,343 +1859,20 @@ ady( -function() %7B%0A this.loadStarter();%0A this.moduleEntryCollection.load().then(function() %7B%...
4b8ecc2dd75aca2976c68ff5a766ef8d849b723f
Fix focus when undoing with autofocused preset search (fixes #1570)
js/id/modes/browse.js
js/id/modes/browse.js
iD.modes.Browse = function(context) { var mode = { button: 'browse', id: 'browse', title: t('modes.browse.title'), description: t('modes.browse.description'), key: '1' }; var behaviors = [ iD.behavior.Hover(context) .on('hover', context.ui().sideb...
JavaScript
0
@@ -573,16 +573,89 @@ %7D);%0A%0A + // Get focus on the body.%0A document.activeElement.blur();%0A
24b507b05a41e9810ee386725ea03de30649b0a7
Correct import in tests
test/lib/elements/Token.js
test/lib/elements/Token.js
import {parseAndGetProgram} from '../../utils'; import Token from '/Users/arkel/Workspace/cst/src/elements/Token.js'; import {expect} from 'chai'; describe('Token', () => { it('should get newlineCount property', () => { let program = parseAndGetProgram('\n\n\n '); let token = program.firstToken; ...
JavaScript
0.000001
@@ -64,34 +64,16 @@ om ' -/Users/arkel/Workspace/cst +../../.. /src
7fd1814395ae8b519f3a0e66be4a216b54f0b979
Fix runtime error while processing dropdown close via clicking root element (#29)
js/petal-functions.js
js/petal-functions.js
/* petal-functions.js for Petal */ ;(function (window) { "use strict"; // helper for querying elements array with css selector function query(selector) { return Array.prototype.slice.call(document.querySelectorAll(selector)); } // clear dropdown states function clearMenus(self) { query('[data-drop...
JavaScript
0
@@ -525,16 +525,126 @@ opdown') +;%0A%0A if (!dropdown_el) %7B%0A throw new Error('Failed to find target with %22dropdown%22 class.');%0A %7D%0A %0A d @@ -1000,16 +1000,48 @@ %0A if( +(target.parentNode.classList && target.p @@ -1079,19 +1079,26 @@ ubmenu') +) %7C%7C +%0A target....
68045d0430acbf78a103e95e4dfc613b226fd98e
Add notification container to the page
js/publicshareauth.js
js/publicshareauth.js
/** * * @copyright Copyright (c) 2018, Daniel Calviño Sánchez (danxuliu@gmail.com) * * @license GNU AGPL version 3 or any later version * * 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 Found...
JavaScript
0
@@ -1916,24 +1916,118 @@ unction() %7B%0A +%09%09%09$('body').append('%3Cdiv id=%22notification-container%22%3E%3Cdiv id=%22notification%22%3E%3C/div%3E%3C/div%3E');%0A%0A %09%09%09$('body')
08943251a1e39a24c096e63201cf73dabac412b1
Fix export
src/pivotGrid/containers/PivotGrid.js
src/pivotGrid/containers/PivotGrid.js
import { connect } from 'react-redux'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import PivotGrid from '../components/Grid/Grid'; import { getLayout, getCellSizes, getRowAxis, getColumnUiAxis, getRowUiAxis, getColumnAxis, getActivatedDataFields } fro...
JavaScript
0.000004
@@ -2594,24 +2594,31 @@ nProps%0A%7D);%0A%0A +export const PivotG
15ced28f03ca3e8cbd54bcfa1c83c4713dc86903
Change default URL value in link/image markdown button (#11)
js/src/forum/index.js
js/src/forum/index.js
/*! * Includes modified code from GitHub Markdown Toolbar Element * https://github.com/github/markdown-toolbar-element/ * * Original Copyright GitHub, Inc. * Released under the MIT license * https://github.com/github/markdown-toolbar-element/blob/master/LICENSE */ import { extend } from 'flarum/extend'; import ...
JavaScript
0
@@ -2145,19 +2145,24 @@ fix: '%5D( -url +https:// )', repl @@ -2175,11 +2175,16 @@ t: ' -url +https:// ', s @@ -2312,19 +2312,24 @@ fix: '%5D( -src +https:// )', repl @@ -2342,11 +2342,16 @@ t: ' -src +https:// ', s
f2d6f609bab41fcdb0f1487c52b94a3e56a8274f
change Go to refresh since that's what they do
embark-ui/src/components/Preview.js
embark-ui/src/components/Preview.js
import React from 'react'; import {Button, InputGroup, Input, InputGroupAddon} from 'reactstrap'; class Preview extends React.Component { constructor(props) { super(props); this.state = { previewUrl: `${window.location.protocol}//${window.location.host}/` }; } handlePreviewUrlChange(ev) { ...
JavaScript
0.000002
@@ -90,16 +90,61 @@ tstrap'; +%0Aimport FontAwesome from 'react-fontawesome'; %0A%0Aclass @@ -894,17 +894,16 @@ ange(e)%7D - /%3E%0A @@ -1041,18 +1041,73 @@ wGo(e)%7D%3E -Go +%0A %3CFontAwesome name=%22refresh%22/%3E%0A %3C/Button
3b163c22d8963ee0125319f4d2bab2a6b273fd14
Support multiple images in one tweet
src/renderer/components/tweet-body.js
src/renderer/components/tweet-body.js
import React from 'react' import Time from './time' import twitterText from 'twitter-text' class Anchor extends React.Component { onClicked(event) { event.preventDefault(); this.props.onAnchorClicked(this.props.url); } render() { return <a className="tweet-anchor" href={this.props.url} title={this.p...
JavaScript
0.999987
@@ -4932,32 +4932,79 @@ his.props.tweet. +extended_entities && this.props.tweet.extended_ entities.media) @@ -5027,32 +5027,41 @@ his.props.tweet. +extended_ entities.media.f @@ -5356,32 +5356,79 @@ his.props.tweet. +extended_entities && this.props.tweet.extended_ entities.media) @@ -5451,32 +5451,41 @@ his.pr...
1b847839ec1a0e305b662e1cd9fcc02e1a7e9826
Remove console.logs
envkey-react/src/sagas/env_sagas.js
envkey-react/src/sagas/env_sagas.js
import R from 'ramda' import { take, put, call, select, takeEvery, takeLatest } from 'redux-saga/effects' import { delay } from 'redux-saga' import { push } from 'react-router-redux' import pluralize from 'pluralize' import { decamelize } from 'xcase' import { apiSaga, dispatchEnvUpdateRequestIfNeeded, dispatchEn...
JavaScript
0.000002
@@ -3104,79 +3104,8 @@ %60)%0A%0A - console.log(%22%5Cn%5Cnpath: %22, path)%0A console.log(%22newPath: %22, newPath)%0A%0A yi
be1f3ddb870ccb1b673c2a2a477d2fbc722fc975
remove style loader
webpack/webpack.common.js
webpack/webpack.common.js
/* eslint-disable import/no-extraneous-dependencies */ const Webpack = require("webpack"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const CleanWebpackPlugin = require("clean-webpack-plugin"); const Dotenv = require("dotenv-webpack"); co...
JavaScript
0.000001
@@ -1657,34 +1657,8 @@ er,%0A - %22style-loader%22,%0A
103e59f4a3ec942ea3e180c6074aeb37eae1d12d
simplify script path
test/test-api/test-node.js
test/test-api/test-node.js
require('./specs.js')({ environment: 'Node', main: require('../../inline-source-map-comment-node.js') });
JavaScript
0.998659
@@ -67,41 +67,8 @@ /../ -inline-source-map-comment-node.js ')%0A%7D
af977abcd93c7373a2bdf69656ca3647ae6b6605
Update main.js if statement
assets/js/main.js
assets/js/main.js
/** * Created by iraquitan on 9/2/16. */ var scrollTimer; var scrollLinks = document.querySelectorAll("#navbar-scrollspy a, .navbar-brand"); for (var i = 0; i < scrollLinks.length; i++) { var obj = scrollLinks[i]; obj.addEventListener("click", function (event) { var hashElem = document.querySelectorAl...
JavaScript
0.000148
@@ -354,16 +354,20 @@ m.length + %3E 0 ) %7B%0A
4d558c8c6150338de7a284463760b7548bbb33b1
build wait fix
packages/runner/src/builder/build.js
packages/runner/src/builder/build.js
import { p } from '../lib/fns' import gulp from '../gulp' import bundler from '../bundler' import keys from '../keys' import copy from './copy' import opts from '../opts' import makeTemplate from './makeTemplate' import { log, handleError } from '../lib/fns' export default async function build() { try { if (!opt...
JavaScript
0.000001
@@ -350,16 +350,23 @@ )%0A +return setTimeo
39b15443e6c1b0274ffb1893ed63056e12c3e060
Fix error with inverse tangent calculation and add function to grab mouse coordinates
assets/js/main.js
assets/js/main.js
$(function () { 'use strict'; // Start of use strict var main_container = $('#main-container'); var cannon = $('.cannon'); var click_count = 1; function fire_cannon(fire_event) { main_container.append('<div class="cannon-ball"></div>'); var cannon_ball = $('.cannon-ball'); ...
JavaScript
0
@@ -605,24 +605,315 @@ l');%0A %7D%0A%0A + function get_mouse_coordinates(event) %7B%0A var canvas = document.getElementById(%22main-container%22);%0A var rectangle = canvas.getBoundingClientRect();%0A return %7B%0A x: event.clientX - rectangle.left,%0A y: event.clientY...
026216c38962c46d8cf6e4cd3ef433e58cf8ed98
Fix scanner_tests
packages/templating/scanner_tests.js
packages/templating/scanner_tests.js
Tinytest.add("templating - html scanner", function (test) { var testInString = function(actualStr, wantedContents) { if (actualStr.indexOf(wantedContents) >= 0) test.ok(); else test.fail("Expected "+JSON.stringify(wantedContents)+ " in "+JSON.stringify(actualStr)); }; var chec...
JavaScript
0.000011
@@ -915,34 +915,114 @@ %22%5Cn -UI.body.contentParts.push( +Template.__body__.__contentParts.push(Blaze.View('body_content_'+Template.__body__.__contentParts.length, (fun @@ -1042,12 +1042,12 @@ var -self +view = t @@ -1082,16 +1082,17 @@ %22;%5Cn%7D)) +) ;%5CnMeteo @@ -1105,120 +1105,39 @@ tup( -function (...
0bc4ada2c01722a3ee9ec319f23152a57c1bf34c
stop using deprecated theme-data roles
packages/text-link/src/stylesheet.js
packages/text-link/src/stylesheet.js
export default function stylesheet(props, themeData) { const { hasHover, hasFocus } = props; return { // from base typography-medium fontWeight: themeData["typography.body.fontWeight"], fontSize: themeData["typography.body.fontSize"], lineHeight: themeData["typography.body.lineHeight"], // fro...
JavaScript
0.000002
@@ -512,19 +512,35 @@ extLink. -tex +primary.default.fon tColor%22%5D @@ -631,17 +631,25 @@ ink. +primary. hover. -tex +fon tCol @@ -719,24 +719,36 @@ rationColor: +%0A themeData%5B%22 @@ -756,16 +756,24 @@ extLink. +primary. hover.un @@ -779,18 +779,17 @@ nderline -.c +C olor%22%5D%0A @@ -879,1...
63aaaab7c37e20cdca5e1021d1a4d7001290e12d
clean lint
src/server/api/auth/authController.js
src/server/api/auth/authController.js
var passport = require('passport'); var OAuth2Strategy = require('passport-oauth').OAuth2Strategy; var config = require('../../config/env'); module.exports = { login: login, logout: logout, authentication: authentication, authenticationCallback: authenticationCallback }; function login(req, res, next) { con...
JavaScript
0.000016
@@ -378,17 +378,16 @@ hub');%0A%7D -; %0A%0Afuncti @@ -862,17 +862,16 @@ .%0A %7D;%0A%7D -; %0A%0Afuncti @@ -1070,10 +1070,9 @@ ;%0A %7D;%0A%7D -; %0A
a9b4f8eeb093a9a498aa390834aa9dd9604723f5
Add invariant message to webrtcsync
packages/webrtcsync/src/lib/index.js
packages/webrtcsync/src/lib/index.js
import invariant from 'invariant' const mechanism = 'webrtcsync' /** * Creates a web RTC synchronizer to synchronize events between tabs. * @param {string} key The key to synchronize on. * @param {function} action The action to run when trigger is executed. Should return...
JavaScript
0.000003
@@ -1063,16 +1063,35 @@ iant(key +, 'key is required' )%0A inva @@ -1106,29 +1106,74 @@ tion -)%0A invariant(handler +, 'action is required')%0A invariant(handler, 'handler is required' )%0A
c5bb277f6e914cabedaadb9b5a3ded848b06243d
Make async functions work in workflow package
packages/workflow/ember-cli-build.js
packages/workflow/ember-cli-build.js
/* eslint-env node */ 'use strict'; const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); module.exports = function(defaults) { let app = new EmberAddon(defaults, { // Add options here }); /* This build file specifies the options for the dummy test app of this addon, located in `/tests/...
JavaScript
0.000004
@@ -182,27 +182,62 @@ -// Add options here +'ember-cli-babel': %7B%0A includePolyfill: true%0A %7D %0A %7D
b1329f1db595c38c2da84826e666a14205df5c82
Implement unit test for getItems({ empty: true }).
test/tests/Item_Getting.js
test/tests/Item_Getting.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ module(...
JavaScript
0.004356
@@ -4240,28 +4240,365 @@ gth == 2;%0A %7D, true);%0A%7D);%0A +%0Atest('Project#getItems() empty: true', function() %7B%0A var layer = new Layer();%0A var empty1 = new Path();%0A var empty2 = new Path();%0A%0A equals(function() %7B%0A return layer.children.length;%0A %7D, 2);%0A%0A equals(fu...
35c3de828369fe6886d421553679d593a1dffb23
update test
specs/augment-spec.js
specs/augment-spec.js
describe("Markdown", function () { beforeEach(function () { }); afterEach(function () { }); it("should parse test", function () { expect(true).toBe(true); }); });
JavaScript
0.000001
@@ -28,16 +28,42 @@ on () %7B%0A +%09var extend,%0A%09%09_augment;%0A%0A %09beforeE @@ -84,111 +84,229 @@ ) %7B%0A -%0A%09%7D);%0A%09afterEach(function () %7B%0A%0A%09%7D);%0A%0A%09it(%22should parse test%22, function () %7B%0A%09%09expect(true).toBe(true); +%09%09extend = ArtisanStack.augment.extend;%0A%09%09_augme...
3ce54b803aa009e58968db0ca62588ddaf6a1eb3
Remove commented out test. We already test static inheritance and overriding.
test/unit/api/component.js
test/unit/api/component.js
import { Component, define } from '../../../src'; import { classStaticsInheritance } from '../../lib/support'; import afterMutations from '../../lib/after-mutations'; import fixture from '../../lib/fixture'; import createSymbol from '../../../src/util/create-symbol'; describe('api/Component', () => { if (!classStati...
JavaScript
0
@@ -2704,587 +2704,8 @@ %7D); -%0A%0A describe('renderer()', (done) =%3E %7B%0A // it('overriding', () =%3E %7B%0A // const Elem = define('x-test', %7B%0A // renderer(%7B elem, render, shadowRoot %7D) %7B%0A // expect(elem.tagName).to.startWith('x-test');%0A // expect(render).to.be.a...
8dfc8ea4a80ec88fbfeccfa0912ce3df39b663ef
test all assertions
test/unit/core/renderer.js
test/unit/core/renderer.js
suite('Renderer', function() { var myp5; setup(function(done) { new p5(function(p) { p.setup = function() { myp5 = p; done(); }; }); }); teardown(function() { myp5.remove(); }); suite('p5.prototype.createCanvas', function() { test('should have correct initial c...
JavaScript
0.99883
@@ -2797,441 +2797,901 @@ %0A%0A -suite('webgl assertions', function() %7B%0A test('box() should throw an Error', function() %7B%0A expect(function() %7B%0A myp5.box(100);%0A %7D).to.throw(Error);%0A %7D);%0A test('sphere() should throw an Error', function() %7B%0A expect(function() %7...
cf2ae70c4c7f993218e48592bcb829494aa4b1a6
update payload specs with the latest fixes
test/unit/payloads_spec.js
test/unit/payloads_spec.js
/* eslint max-nested-callbacks: [0] */ import { collatePayloads, collateAttr } from '../../src/payloads.js'; import { readJsonAsset } from '../helpers/file_helpers.js'; describe('Payloads', function() { const rtcpFbs = [ { feedback: { type: 'ccm', params: ['fir'], }, }, { fe...
JavaScript
0
@@ -1857,36 +1857,40 @@ yload = payloads -%5Bid%5D +.get(id) ;%0A expect(p @@ -2672,36 +2672,40 @@ yload = payloads -%5Bid%5D +.get(id) ;%0A expect(p @@ -3102,12 +3102,16 @@ oads -%5Bid%5D +.get(id) ;%0A
9e63da9216f3f8cceb0e470e89986a2ea5096eaf
fix error on homepage
client/helpers.js
client/helpers.js
Template.registerHelper("browseSuggestionsMode", function() { return browseSuggestionsMode(); }); Template.registerHelper("curateMode", function() { return Session.get("curateMode"); }); Template.registerHelper("currentContext", function(){ return getCurrentContext() }); Template.registerHelper("dateInPast", f...
JavaScript
0.000001
@@ -1911,32 +1911,55 @@ n%22, function()%7B%0A + if(Meteor.user())%7B%0A return Session @@ -2012,16 +2012,49 @@ .admin;%0A + %7D else %7B%0A return false;%0A %7D%0A %7D);%0A%0ATem
074962279ce0da06bc079c6766c15968ef282a8a
Fix caching issue with logs. (#1843)
static/service-worker.js
static/service-worker.js
// based on // https://serviceworke.rs/strategy-cache-and-update_service-worker_doc.html // eslint-disable-next-line no-undef const CACHE = `mozilla-iot-cache-${VERSION}`; self.addEventListener('activate', (event) => { event.waitUntil( caches.keys().then((keys) => { return Promise.all( keys.filter...
JavaScript
0
@@ -913,19 +913,21 @@ h('/ -logs/files/ +internal-logs '))
902091055a5fbbaf08d0e9dd005d4c13f3288b86
fix specs
spec/lib/mocks/postgrest-requests.mock.js
spec/lib/mocks/postgrest-requests.mock.js
// import Postgrest from 'mithril-postgrest'; const testToken = "test_token"; const nContributions = 20; const apiMeta = document.createElement('meta'); const apiPrefix = 'https://api.catarse.me' apiMeta.content = apiPrefix; apiMeta.name = 'api-host'; document.getElementsByTagName('head')[0].appendChild(apiMeta); cons...
JavaScript
0.000001
@@ -465,17 +465,16 @@ -host';%0A -%0A document @@ -518,39 +518,34 @@ ndChild( -commonPaymentApi +ApiMoments Meta);%0A +%0A const co
26928b3399686a9f614fa601c2edfa455053fd43
bump soya-next
packages/soya-next-cli/src/index.js
packages/soya-next-cli/src/index.js
/* eslint-disable no-console, no-sync */ import fs from "fs-extra"; import path from "path"; import spawn from "cross-spawn"; import yargs from "yargs"; process.on("unhandledRejection", err => { throw err; }); const argv = yargs .version() .usage("Usage: $0 <project-directory>") .option("verbose", { type:...
JavaScript
0
@@ -883,17 +883,17 @@ ext@0.7. -0 +4 %22,%0A %22so @@ -911,17 +911,17 @@ ver@0.7. -0 +4 %22%0A%5D;%0A%0Aco @@ -966,17 +966,17 @@ pts@0.7. -3 +4 %22%5D;%0A%0Acon
eb56f92e2c35318e69472a81b95e09b34a7ba884
remove codemirror-webpack-loader from next config
packages/vx-demo/src/next.config.js
packages/vx-demo/src/next.config.js
/* eslint-disable no-undef */ const path = require('path'); module.exports = { typescript: { ignoreDevErrors: true, ignoreBuildErrors: true, }, webpack: config => { config.module.rules.push( { test: /\.scss$/, loader: ['style-loader', 'css-loader'], }, { test...
JavaScript
0
@@ -27,39 +27,8 @@ */%0A -const path = require('path');%0A%0A modu @@ -171,27 +171,18 @@ es.push( +%7B %0A - %7B%0A te @@ -196,18 +196,16 @@ scss$/,%0A - lo @@ -250,129 +250,9 @@ - %7D,%0A %7B%0A test: /code/,%0A loader: path.resolve(__dirname, 'codemirror-webpack-...
aba9a5df5afb3546a24af8c066be9171d877ecab
fix toString and valueOf calls on Proxy classes
src/Component/Autoloader/src/Namespace.js
src/Component/Autoloader/src/Namespace.js
const ClassLoader = require('./ClassLoader'); let ClassNotFoundException = undefined; const FunctionPrototype = new Function(); /** * @memberOf Jymfony.Component.Autoloader */ class Namespace { /** * Constructor. * * @param {Jymfony.Component.Autoloader.Autoloader} autoloader * @param {strin...
JavaScript
0
@@ -6001,32 +6001,297 @@ init();%0A +%0A if ('toString' === key) %7B%0A return FunctionPrototype.toString.bind(realTarget);%0A %7D%0A%0A if ('valueOf' === key) %7B%0A return FunctionPrototype.valueOf.bind(realTarget);%0A ...
9fefedabc3cd64ec409d29d4f4da5b5df4e18ef9
Add UPDATE_GOLDENS_FILTER env var to filter which goldens are regenerated.
packages/gen-typescript-declarations/scripts/update-goldens.js
packages/gen-typescript-declarations/scripts/update-goldens.js
#!/usr/bin/env node /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of ...
JavaScript
0
@@ -1186,16 +1186,90 @@ ens');%0A%0A +const filter = process.env.UPDATE_GOLDENS_FILTER %7C%7C '';%0A%0Aif (!filter) %7B%0A fsExtra. @@ -1293,16 +1293,18 @@ ensDir); +%0A%7D %0A%0Afor (c @@ -1356,51 +1356,170 @@ %7B%0A -console.log('making goldens for ' + fixture +if (filter && !fixture.includes(filter)) %7B%0A...
78f8835f77bac86683e244fccf9ce7c5d053fc57
fix structure
packages/gluestick/src/generator/predefined/clientEntryInit.js
packages/gluestick/src/generator/predefined/clientEntryInit.js
const { convertToCamelCase } = require('../utils'); const createTemplate = module.parent.createTemplate; const template = createTemplate` import getRoutes from "${args => args.routes}"; import EntryWrapper from "../EntryWrapper"; import { createStore } from "gluestick-shared"; import middleware from "config/redux-mid...
JavaScript
0.000001
@@ -1386,10 +1386,31 @@ rs, -%7B%7D +rootWrappersOptions: %5B%5D , pr
e458c2519868ebfb0cac96271bf49636b8647d73
use isDismissed call flag
packages/node_modules/@ciscospark/widget-space/src/selector.js
packages/node_modules/@ciscospark/widget-space/src/selector.js
import {createSelector} from 'reselect'; const getWidget = (state) => state.widgetSpace; const getSpark = (state) => state.spark; const getMedia = (state) => state.media; const getConversation = (state) => state.conversation; const getUsers = (state) => state.user; const getFeatures = (state) => state.features; expor...
JavaScript
0.000017
@@ -2446,16 +2446,35 @@ edia) =%3E + %7B%0A const call = media.g @@ -2518,16 +2518,99 @@ sUrl')%5D) +;%0A if (call && call.isDismissed) %7B%0A return null;%0A %7D%0A return call;%0A %7D %0A);%0A%0A%0Aex
b53147391644243cb43a93374831e98e8e588a77
Adding random_int and random_float.
language/dart_math.js
language/dart_math.js
/** * Visual Blocks Language * * Copyright 2012 Google Inc. * http://code.google.com/p/google-blockly/ * * 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/li...
JavaScript
0.999975
@@ -1777,28 +1777,841 @@ art.scrub_(this, code);%0A%7D;%0A%0A +%0ABlockly.Dart.random_float = function() %7B%0A var code = 'Math.random()';%0A return Blockly.Dart.scrub_(this, code);%0A%7D;%0A%0ABlockly.Dart.random_int = function() %7B%0A var argument0 = Blockly.Dart.valueToCode_(this, 0) %7C%7C '0';%0A var argume...
ea22b266fa85d79e4a791994ba499fecfde2137b
improve `initMap` speed (20s -> 2s)
assets/js/app/controller/mapController.js
assets/js/app/controller/mapController.js
app.controller('MapController', function ($scope, $http, schools) { $scope.infoboxHidden = true; $scope.school = {}; $scope.filter = {}; $scope.selected = {}; $scope.active_filters = []; var filter_keys = ['school_type', 'legal_status']; var layer = undefined; var base_url = "https://l...
JavaScript
0
@@ -1778,84 +1778,101 @@ -for (var i = 0; i %3C schools.length; i++) %7B%0A var curr = +var theMarkers = schools.filter(function(school)%7B%0A return school.lat && school -s%5Bi%5D +.lon ;%0A @@ -1881,44 +1881,33 @@ - if (curr.lon && curr.lat) %7B%0A +%7D).map(function(scho...
993d37af1d04d586b8b977daf0da3588d63714d9
Rename open flag to isOpen to avoid name conflict with open method.
tests/visual/menu/popup.js
tests/visual/menu/popup.js
/* * jQuery UI popup utility */ (function($) { var idIncrement = 0; $.widget( "ui.popup", { options: { position: { my: "left top", at: "left bottom" } }, _create: function() { if ( !this.options.trigger ) { this.options.trigger = this.element.prev(); } if ( !this.element.attr( "id" ) ) { ...
JavaScript
0
@@ -1058,17 +1058,19 @@ f (this. -o +isO pen) %7B%0A%09 @@ -1785,25 +1785,27 @@ %09%09%09if (this. -o +isO pen && !$(ev @@ -2651,25 +2651,27 @@ 1);%0A%0A%09%09this. -o +isO pen = true;%0A @@ -2884,17 +2884,19 @@ %0A%09%09this. -o +isO pen = fa
f2d773897a25ce02ff1d1fedae1696cb3c878275
Allow replacing open dialogs with new ones
pkg/storaged/dialog.js
pkg/storaged/dialog.js
/* * This file is part of Cockpit. * * Copyright (C) 2015 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
JavaScript
0
@@ -1041,24 +1041,45 @@ pl);%0A %7D%0A%0A + var cur_dialog;%0A%0A function @@ -1094,25 +1094,24 @@ open(def) %7B%0A -%0A // C @@ -2027,32 +2027,95 @@ t');%0A %7D%0A%0A + if (cur_dialog)%0A cur_dialog.modal('hide');%0A%0A var $dia @@ -2197,24 +2197,150 @@ d($dial...
d8f1c4f7ddb83e68f651daeb3ed7c5ef8a3070b3
Delete initial messge
commands/lenny.js
commands/lenny.js
const Discord = require('discord.js') const Confax = require('../bot.js') Confax.registerCommand('lenny', 'default', (message, bot) => {  message.channel.send('( ͡° ͜ʖ ͡°)') }, ['lenny'], 'its lenny ffs', '["!lenny"]')
JavaScript
0.000004
@@ -1,42 +1,4 @@ -const Discord = require('discord.js')%0A cons @@ -96,48 +96,229 @@ =%3E %7B -%C2%A0 %0A message.channel.send('( %CD%A1%C2%B0 %CD%9C%CA%96 %CD%A1%C2%B0)') +%0A let managePerms = message.guild.member(bot.user).hasPermission('MANAGE_MESSAGES')%0A if (managePerms) %7B%0A message.delete()%0A mes...
190b86c17ce4d97fdb761493d16ec73c47192343
Fix pre-then kneel for Consolidation of Power (#2430)
server/game/cards/01-Core/ConsolidationOfPower.js
server/game/cards/01-Core/ConsolidationOfPower.js
const _ = require('underscore'); const DrawCard = require('../../drawcard.js'); class ConsolidationOfPower extends DrawCard { setupCardAbilities() { this.action({ title: 'Kneel 4 STR worth of characters', phase: 'marshal', target: { activePromptTitle: 'S...
JavaScript
0
@@ -1,38 +1,4 @@ -const _ = require('underscore');%0A%0A cons @@ -37,11 +37,8 @@ card -.js ');%0A @@ -656,15 +656,124 @@ his. +game.addMessage('%7B0%7D plays %7B1%7D to kneel %7B2%7D', context.player, this, context.target);%0A for(let card -s = + of con @@ -783,17 +783,224 @@ t.target -; +) %7B%...
98da3664195adf61afbf15408345966ba785fff8
Rename variable
server/statistics/step-processing-times/filter.js
server/statistics/step-processing-times/filter.js
'use strict'; var includes = require('es5-ext/array/#/contains') , assign = require('es5-ext/object/assign') , ensureObject = require('es5-ext/object/valid-object') , ensureCallable = require('es5-ext/object/valid-callable') ...
JavaScript
0.000003
@@ -29,32 +29,16 @@ - = requir @@ -88,32 +88,16 @@ - - = requir @@ -144,32 +144,16 @@ ect - = requir @@ -206,32 +206,16 @@ lable - = requir @@ -270,32 +270,16 @@ - = requir @@ -313,32 +313,16 @@ ...
b9bd7264922feb51cfb0815f92a96ca2e21fe43d
Remove randomly placed trees.
freeciv-web/src/main/webapp/javascript/webgl/prerender_meshes.js
freeciv-web/src/main/webapp/javascript/webgl/prerender_meshes.js
/********************************************************************** Freeciv-web - the web version of Freeciv. http://play.freeciv.org/ Copyright (C) 2009-2016 The Freeciv-web project This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General P...
JavaScript
0
@@ -1781,240 +1781,8 @@ %7D - else if (terrain_name == %22Grassland%22 %7C%7C%0A terrain_name == %22Plains%22 %7C%7C%0A terrain_name == %22Hills%22) %7B%0A /* Sparse trees -%3E Monte-Carlo algorithm */%0A add_tree = (Math.random() %3C 0.01);%0A %7D %0A%0A @@ -20...
9c8beae1ed9b412b3c8129c660f2c603dedddf30
Add functions for formatting numbers with commas and file sizes.
website/app/index/util.js
website/app/index/util.js
var recognized_images = ["jpg", "png", "jpeg", "gif", "tif", "tiff"]; function isImage(name) { var i; var s = name.toLowerCase(); for (i = 0; i < recognized_images.length; i++) { if (endsWith(s, recognized_images[i])) { return true; } } return false; } function bytesTo...
JavaScript
0
@@ -293,24 +293,207 @@ n false;%0A%7D%0A%0A +function numberWithCommas(n) %7B%0A n = n.toString();%0A var pattern = /(-?%5Cd+)(%5Cd%7B3%7D)/;%0A while (pattern.test(n)) %7B%0A n = n.replace(pattern, %22$1,$2%22);%0A %7D%0A return n;%0A%7D%0A%0A function byt
4298030547b54c07468d8b1c9b6a004035518ec6
add missing constant
src/share/constants/revision_types.js
src/share/constants/revision_types.js
export const START = "start" export const MOVE = "move" export const DROP = "drop" export const RESERVE = "reserve" export const FORFEIT = "forfeit"
JavaScript
0.999996
@@ -76,16 +76,47 @@ %22drop%22%0A +export const RESIGN = %22resign%22%0A export c
d67ba3197b7c72267fe78c1a0f522c37230e604d
fix crashing issue
Resources/ui/handheld/android/baseui/android_menu_3.js
Resources/ui/handheld/android/baseui/android_menu_3.js
function android_menu3(_args) { //var activity = Ti.Android.currentActivity; var win = Ti.UI.currentWindow; win.backgroundColor = 'white'; win.title = _args.title; var b1 = Ti.UI.createButton({ title : 'Open Window', height : 'auto', width : 'auto' }); // Here is an example of creating the menu handl...
JavaScript
0.000001
@@ -30,92 +30,63 @@ %7B%0A%09 -//var activity = Ti.Android.currentActivity;%0A%09var win = Ti.UI.currentWindow;%0A%09%0A%09win. +var win = Ti.UI.createWindow(%7B%0A%09%09title: _args.title,%0A%09%09 back @@ -100,18 +100,17 @@ olor - = +: 'white' ;%0A%09w @@ -109,34 +109,12 @@ ite' -; %0A%09 -win.title = _args....
5e853dab0924b0ffb38c408d928ad2fd0f64754e
Add missing semi-colon.
website/app/index/util.js
website/app/index/util.js
function isImage(mime) { switch (mime) { case "image/gif": case "image/jpeg": case "image/png": case "image/tiff": case "image/x-ms-bmp": case "image/bmp": return true; default: return false; } } function numberWithCommas(n) { n = n.toString(); var pattern = ...
JavaScript
0.004802
@@ -1515,16 +1515,17 @@ ;%0A %7D) +; %0A%7D%0A%0Afunc
761943784197f95c367af19c5a4f7e3d4a6e5c65
Reconfigure progress report record type calculation
sencha-workspace/SlateAdmin/app/model/person/ProgressReport.js
sencha-workspace/SlateAdmin/app/model/person/ProgressReport.js
/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/ Ext.define('SlateAdmin.model.person.ProgressReport', { extend: 'Ext.data.Model', fields: [ 'AuthorUsername', 'Subject', { name: 'ID', type: 'integer', useNull: tru...
JavaScript
0
@@ -414,24 +414,31 @@ Value: ' +Slate%5C%5C Progress Note'%0A @@ -425,24 +425,26 @@ te%5C%5CProgress +%5C%5C Note'%0A @@ -492,15 +492,79 @@ -convert +depends: %5B%0A 'Class'%0A %5D,%0A calculate : fu @@ -575,12 +575,12 @@ on ( -v, r +data ) %7B%0A @@ -607,39 +6...
bad916351463a438cc12a83c94076bf0a2b3629f
Fix config formatting bug
config/default.js
config/default.js
'use strict'; const rollupNode = require('rollup-plugin-node-resolve'); const rollupCommon = require('rollup-plugin-commonjs'); module.exports = { // Individual Functions rollup: { entry: 'js/main.js', sourceMap: true, preferConst: true, plugins: [ rollupNode(), rollupCommon(), ], ...
JavaScript
0.000001
@@ -661,16 +661,17 @@ %5D,%0A %7D +, %0A // Co
ba65f8ff6434d21aa7b9828ff5dbb111599b0538
modify styling
components/FoodpairResults.ios.js
components/FoodpairResults.ios.js
import React, { Component } from 'react'; import { Text, View, Image, TextInput, ListView, TouchableHighlight } from 'react-native'; import helpers from '../helpers/helpers.js'; import styles from '../styles.ios.js'; import Recipes from './Recipes.ios.js'; export default class FoodpairResults extends Component { co...
JavaScript
0.000001
@@ -1112,27 +1112,23 @@ les. -navigationR +r esults +Title %7D%3E + %0A @@ -1410,56 +1410,8 @@ ht%3E%0A - %3CView style=%7Bstyles.resultsTitle%7D%3E %0A @@ -1459,75 +1459,48 @@ t%7D%3E -Things that go well with %7Bthis.props.food%7D %3C/Text%3E%0A %3C/View +%7Bthis.props.food%7D pai...
461d3775029fe1b875b16c8bb47285e420d1e740
Add example
examples/src/examples/Restricted.js
examples/src/examples/Restricted.js
import React from 'react'; import DayPicker from '../../../src'; import '../../../src/style.css'; const start = new Date(2015, 3, 1, 0, 0); const end = new Date(2015, 10, 30, 23, 59); export default function Restricted() { return ( <DayPicker enableOutsideDays numberOfMonths={2} initialMonth=...
JavaScript
0.000003
@@ -178,16 +178,59 @@ 23, 59); +%0Aconst sundays = day =%3E day.getDay() === 0; %0A%0Aexport @@ -462,16 +462,25 @@ r: end %7D +, sundays %5D%7D%0A
1c73d8ac689f37ab01f885d089fc9423ebf4d4a6
Add highlightedItems props to GridView
packages/veritone-react-common/src/components/FolderViewContainer/index.js
packages/veritone-react-common/src/components/FolderViewContainer/index.js
import React from 'react'; import { oneOf, arrayOf, func, bool } from 'prop-types'; import { CircularProgress } from '@material-ui/core'; import InfiniteWrapper from '../InfiniteWrapper'; import itemShape from './itemShape'; import FolderListView from './FolderListView'; import FolderViewFooter from './FolderViewFoo...
JavaScript
0
@@ -6228,32 +6228,86 @@ =%7BonSelectItem%7D%0A + highlightedItems=%7BhighlightedItems%7D%0A
235250c95aae7762770f7e369a8f4cbeeccdbdfc
add onchainFinality defaults
config/default.js
config/default.js
import getPackageDetails from '../utils/getPackageDetails' import isStableVersion from '../utils/isStableVersion' // The current stable base version. // If the current version is in the same range asd this, the default database domain will be used. const STABLE_VERSION = '0.5.x' const IS_STABLE_VERSION = isStableVersi...
JavaScript
0.000001
@@ -3647,24 +3647,195 @@ ow: 60,%0A %7D, +%0A // number of confirmations for the onchain receiving transaction in the context of%0A // transaction finality%0A onchainFinality: %7B%0A pending: 0,%0A confirmed: 1,%0A %7D, %0A%0A lnurl: %7B
298f6abcb07413163f86d95aa60cd6904ed7ed7c
fix NaN value checking
src/app/core/utils/sensorUtils.service.js
src/app/core/utils/sensorUtils.service.js
(function() { 'use strict'; angular.module('app.components') .factory('sensorUtils', sensorUtils); sensorUtils.$inject = ['timeUtils']; function sensorUtils(timeUtils) { var service = { getRollup: getRollup, getSensorName: getSensorName, getSensorUnit: getSensorUnit, ...
JavaScript
0.000001
@@ -2763,16 +2763,22 @@ if( +isNaN( parseInt @@ -2788,16 +2788,9 @@ lue) - === NaN +) ) %7B%0A
f669840e3f93d0103a2c5d30008635ba7f436570
Use __dirname for solving relative paths in server
backend/server.js
backend/server.js
// # Imports var express = require('express'); var app = express(); var Promise = require('bluebird'); var facebook = require('./facebook'); var instagame = require('./instagame'); // # Constants var FB_EVENT_ID = '1756954314531757'; // # Configuration var environment = proce...
JavaScript
0.000001
@@ -123,16 +123,55 @@ ebird'); +%0Avar path = require('path'); %0A%0Avar fa @@ -1255,24 +1255,45 @@ ress.static( +path.join(__dirname, '../build/') @@ -1293,16 +1293,17 @@ uild/')) +) ;%0Aapp.us @@ -1340,16 +1340,37 @@ .static( +path.join(__dirname, '../bowe @@ -1385,16 +1385,17 @@ ents/')) +) ;%...
a5e67ba5813f99f7c6f1717424d82857901136ce
normalize user payload sent to keen
website/static/js/keen.js
website/static/js/keen.js
'use strict'; var keen = require('keen-js'); var oop = require('js/oop'); var $ = require('jquery'); var uuid = require('uuid'); var Raven = require('raven-js'); var KeenTracker = oop.defclass({ constructor: function(keenProjectId, keenWriteKey, params) { this.keenClient = new keen({ projectId...
JavaScript
0
@@ -3545,32 +3545,230 @@ .user = -this.currentUser +%7B%0A id: this.currentUser.id,%0A locale: this.currentUser.locale,%0A timezone: this.currentUser.timezone,%0A entryPoint: this.currentUser.entryPoint%0A %7D ;%0A
aec98bb9dedbe31a293cc113f0a3129a6035524e
Use random rotation sets for quotes
backend/server.js
backend/server.js
const express = require('express'); const app = express(); const shuffle = require('shuffle-array'); const host = '127.0.0.1'; const port = 3000; const mongodb = require('mongodb'); const MongoClient = mongodb.MongoClient; const url = 'mongodb://localhost:27017/dailyquote'; MongoClient.connect(url, (err, database) =...
JavaScript
0
@@ -1271,16 +1271,33 @@ %7D +, result%5B0%5D.quote );%0A @@ -1344,16 +1344,30 @@ callback +, currentQuote ) %7B%0A db @@ -1387,25 +1387,73 @@ quotes') +%0A .find(%7B -%7D) +useCount: %7B$eq: currentQuote.useCount%7D%7D)%0A .toArray @@ -1811,113 +1811,310 @@ -callback(newQuote);%0A ...
1442e708069419a69d15c62c14713f7ef6324e27
check nonexistence
cypress/integration/local/scenarios.js
cypress/integration/local/scenarios.js
context('Scenarios', () => { before(() => { cy.setupProject('scratch') }) beforeEach(() => { // identify and open the scenarios panel, if closed cy.findByText(/Scenarios/) .parent() .as('scenarioPanel') cy.get('@scenarioPanel').then((panel) => { if (!panel.text().includes('Creat...
JavaScript
0.000536
@@ -1430,20 +1430,121 @@ not.exist')%0A + cy.get('@scenarioPanel')%0A .findByText(scenarioName + ' altered')%0A .should('not.exist')%0A %7D)%0A%7D)%0A
8df68f2d783415347e2f7c81fd2a383c77276052
Store the values entered into belong-to forms in local storage so on a form validation error they can be retrieved and the input can be re-populated. closes #38
public/js/views/relationships/belongs-to.js
public/js/views/relationships/belongs-to.js
// -------------------------------------------------- // Used in generic autocompletes and designed to be // extended by other views that need extended feature // -------------------------------------------------- define(function (require) { // Dependencies var $ = require('jquery'), _ = require('underscore'), ...
JavaScript
0.000002
@@ -393,24 +393,88 @@ tocomplete') +,%0A%09%09storage = require('decoy/plugins/kizzy')('decoy.belongs-to') ;%0A%09%09%09%0A%09// Pu @@ -1043,231 +1043,1054 @@ ;%0A%09%09 -%7D,%0A%09%09%0A%09%09// Overide the match function to toggle the state of the match%0A%09%09// icons and to set the hidden input field%0A%09%09ma...
ff356faf24cdf1183088dfd32eb97cfd670481b2
Remove redeclared variables - fixes #1268
src/ast/nodes/ExportDefaultDeclaration.js
src/ast/nodes/ExportDefaultDeclaration.js
import Node from '../Node.js'; const functionOrClassDeclaration = /^(?:Function|Class)Declaration/; export default class ExportDefaultDeclaration extends Node { initialise ( scope ) { this.isExportDeclaration = true; this.isDefault = true; this.name = ( this.declaration.id && this.declaration.id.name ) || thi...
JavaScript
0
@@ -3918,32 +3918,134 @@ is.end );%0A%09%09%09%09%7D%0A +%09%09%09%7D else if (name === this.declaration.name) %7B%0A%09%09%09%09code.remove( this.start, this.next %7C%7C this.end );%0A %09%09%09%7D else %7B%0A%09%09%09%09
932a941c4c2a2667b8b2fc9694ac540cf451ed63
enable downloadSpritz on refresh by default.
source/data/PrefsCookie.js
source/data/PrefsCookie.js
/*jslint sloppy: true */ /*global enyo*/ enyo.singleton({ name: "moboreader.Prefs", published: { //pocket optins maxDownloadedArticles: 10, sortOrder: "newest", //other options: oldest, title, site === url. //display options: fontSize: 16, goBackOnArchive: false, //spritz options use...
JavaScript
0
@@ -1963,16 +1963,17 @@ nUpdate( +( enyo.get @@ -2015,16 +2015,75 @@ = %22true%22 + %7C%7C enyo.getCookie(%22downloadSpritzOnUpdate%22) === undefined) && this
f8bb9c0cf266b0e9e91dcf9168a2e8866d9cdc86
Make attributes assignment faster
src/attributesDecorator.js
src/attributesDecorator.js
const normalizeSchema = require('./normalizeSchema'); const define = Object.defineProperty; const createAttrs = () => Object.create(null); const assignEachFromSchema = (schema, src, dest) => { Object.keys(schema).forEach((attr) => { dest[attr] = schema[attr].coerce(src[attr]); }); }; const SCHEMA = Symbol('s...
JavaScript
0.000003
@@ -138,162 +138,8 @@ );%0A%0A -const assignEachFromSchema = (schema, src, dest) =%3E %7B%0A Object.keys(schema).forEach((attr) =%3E %7B%0A dest%5Battr%5D = schema%5Battr%5D.coerce(src%5Battr%5D);%0A %7D);%0A%7D;%0A %0Acon @@ -558,42 +558,161 @@ A%5D;%0A -%0A -assignEachFromSchema(schema, +const attrName...
6977f40d16341debef64e028e8464f811562598c
Make AnalysisView robust on view construction failure
src/tracing/analysis/analysis_view.js
src/tracing/analysis/analysis_view.js
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * @fileoverview Displays an analysis of the selection. */ base.requireStylesheet('tracing.analysis.analysis_view'); base.require...
JavaScript
0
@@ -1359,16 +1359,30 @@ t = '';%0A + try %7B%0A th @@ -1418,24 +1418,90 @@ structor();%0A + %7D catch(e) %7B%0A this.currentView_ = undefined;%0A %7D%0A this.a
f80e4d092317c84ed098be8b07df0acb9f549d3a
Change to ES6 style.
src/board/layer.service.js
src/board/layer.service.js
/** * BoardLayer :: This class represents a layer on the board and is the base class for all board * layers. Each layer can contain it's own objects on a grid with coordinates and is responsible * for drawing itself as well as its objects onto the canvas. */ /** * Module definition and dependencies */ angular.m...
JavaScript
0
@@ -2661,19 +2661,21 @@ %7B%0A -var +const pixelRa @@ -2716,19 +2716,21 @@ ;%0A -var +const width = @@ -2786,11 +2786,13 @@ -var +const hei
dd2c0158ba7d1918bec6d63fa2c3cecf81eced28
Drop support for Babel 6 in the `import/no-unassigned-import` rule
config/plugins.js
config/plugins.js
'use strict'; module.exports = { // Repeated here from eslint-config-xo in case some plugins set something different parserOptions: { ecmaVersion: 2019, sourceType: 'module', ecmaFeatures: { jsx: true } }, // -- End repeat plugins: [ 'no-use-extend-native', 'ava', 'unicorn', 'promise', 'impor...
JavaScript
0
@@ -2219,69 +2219,23 @@ %09%09%09' -babel-polyfill',%0A%09%09%09%09%09'@babel/polyfill',%0A%09%09%09%09%09'babel-register +@babel/polyfill ',%0A%09
b67de42554d70852ba053a3bcb4563deed5b3f6e
Disable redis by default.
config/session.js
config/session.js
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
JavaScript
0
@@ -2173,16 +2173,19 @@ ****/%0A%0A + // adapter
e14ae67db6d4ed4bd7214f18246636d525420831
Comment cleanup.
src/chuki-methods/style.js
src/chuki-methods/style.js
import uuid from './uuid' import flatten from './flatten' import addUnit from './style-methods/addUnit' import combineSelectors from './style-methods/combineSelectors' import createStyleSheet from './style-methods/createStyleSheet' import insertRules from './style-methods/insertRules' import rulesFromStyles from './sty...
JavaScript
0
@@ -529,23 +529,17 @@ ) %7B%0A%0A / -**%0A * +/ Reuse t @@ -577,22 +577,16 @@ tances.%0A - */%0A let sh @@ -997,25 +997,17 @@ ix%0A / -**%0A * +/ Set def @@ -1063,24 +1063,16 @@ tifier.%0A - */%0A opti @@ -1193,17 +1193,9 @@ / -**%0A * +/ Ins @@ -1245,16 +1245,8 @@ et.%0A - ...
16abf94a7392ae001861888ae732aeee5befaee2
Support SSL upgrades
transformers/uws/server.js
transformers/uws/server.js
'use strict'; var parse = require('url').parse , http = require('http'); /** * Server of µWebSockets transformer. * * @runat server * @api private */ module.exports = function server() { var uws = require('uws').uws , Spark = this.Spark; var service = this.service = new uws.Server(); service.onMess...
JavaScript
0
@@ -1414,16 +1414,52 @@ et-key'%5D +, soc.ssl ? soc.ssl._external : null );%0A s
a8048393a421d75b89e1b2f996919131dda4d4db
Fix port
configs/config.js
configs/config.js
// Application config module.exports = { host : 'localhost', port : 8889, user : 'USERNAME', password : 'PASSWORD', database : 'keanux' };
JavaScript
0.000002
@@ -81,12 +81,12 @@ : -8889 +3306 ,%0A
4bf7538d02d415fd570ba30ffddb3c077de85cc8
Enable send button when user enters text.
src/components/ChatForm.js
src/components/ChatForm.js
import React from 'react/addons'; export class ChatForm extends React.Component { static propTypes = { onSend: React.PropTypes.func.isRequired } constructor(props) { super(props); this.state = {text: ''}; } handleSubmit = (e) => { this.props.onSend(this.state.text)...
JavaScript
0
@@ -1087,16 +1087,56 @@ primary%22 + disabled=%7Bthis.state.text.length === 0%7D %3ESend!%3C/
3aa89937394a6644ac38b41006c67b9b6d61c102
Use useIsomorphicLayoutEffect in Provider for consistency (#1683)
src/components/Provider.js
src/components/Provider.js
import React, { useMemo, useEffect } from 'react' import PropTypes from 'prop-types' import { ReactReduxContext } from './Context' import Subscription from '../utils/Subscription' function Provider({ store, context, children }) { const contextValue = useMemo(() => { const subscription = new Subscription(store) ...
JavaScript
0
@@ -20,19 +20,8 @@ Memo -, useEffect %7D f @@ -161,16 +161,95 @@ ription' +%0Aimport %7B useIsomorphicLayoutEffect %7D from '../utils/useIsomorphicLayoutEffect' %0A%0Afuncti @@ -581,16 +581,32 @@ )%0A%0A use +IsomorphicLayout Effect((
30cd3838d126a781c4eb88852754333211a1eee9
remove .only
source/scripts/pure-functions/words/words.spec.js
source/scripts/pure-functions/words/words.spec.js
/* jshint esversion: 6 */ /* eslint prefer-const: "error" */ /* eslint-env es6 */ const _ = require('lodash'); const expect = require('chai').expect; describe.only('words', function () { var input; var actual; var expected; it('should be a function', function () { expect(_.words).to.be.a('fu...
JavaScript
0.000505
@@ -158,13 +158,8 @@ ribe -.only ('wo
91485d05cb2c3ab76b461bf3a6859ada0344ba60
Update configureStore tests
src/configureStore.test.js
src/configureStore.test.js
import { configureStore, getDefaultMiddleware } from './configureStore' import * as redux from 'redux' import * as devtools from 'redux-devtools-extension' import thunk from 'redux-thunk' describe('getDefaultMiddleware', () => { it('returns an array with redux-thunk', () => { expect(getDefaultMiddleware()).toEq...
JavaScript
0
@@ -181,16 +181,86 @@ x-thunk' +%0Aimport immutableStateInvariant from 'redux-immutable-state-invariant' %0A%0Adescri @@ -322,16 +322,21 @@ ay with +only redux-th @@ -338,16 +338,30 @@ ux-thunk + in production ', () =%3E @@ -395,16 +395,20 @@ dleware( +true )).toEqu @@ -419,24 +419,268 @@ thunk%5D)%0A %7D) ...