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
3036afd4af438b546f942f96ee349cc723bb69a0
Update dashboard.js
am-dashboard/app/dashboard.js
am-dashboard/app/dashboard.js
function Dashboard() { var self = this; this.Tools = new Tools(this); this.Tickets = new Tickets(this); this.HTML = {}; this.HTML.dashboard = this.Tools.createElement(document.body, 'div', { className: 'navbar navbar-inverse navbar-fixed-bottom', id: 'dashboard', }); this.HTML.style = this...
JavaScript
0.000001
@@ -2515,16 +2515,19 @@ rHTML: ' +%3Ca%3E Next Tic @@ -2529,16 +2529,20 @@ t Ticket +%3C/a%3E ',%0A o
2c746db84716656ea6ec66828878b614c23ae765
Move update pagers to seperate function
src/notebook/epics/execute.js
src/notebook/epics/execute.js
import { createMessage, } from '../kernel/messaging'; import { createCellAfter, updateCellExecutionCount, updateCellSource, updateCellOutputs, updateCellPagers, updateCellStatus, } from '../actions'; import { REMOVE_CELL, ABORT_EXECUTION, ERROR_EXECUTING, } from '../constants'; const Rx = require...
JavaScript
0.000001
@@ -1773,24 +1773,276 @@ utput));%0A%7D%0A%0A +export function createPagerActions(id, payloadStream) %7B%0A return payloadStream.filter(p =%3E p.source === 'page')%0A .scan((acc, pd) =%3E acc.push(Immutable.fromJS(pd)), new Immutable.List())%0A .map((pagerDatas) =%3E updateCellPagers(id, pagerDatas));%0A%7D%0A%...
25373d1894ef870633713ee8b4e914eb0feed23e
add dashboard to test
utils/run-tests.js
utils/run-tests.js
var Path = require('path'); var Fs = require('fs'); var Chalk = require('chalk'); var SpawnSync = require('child_process').spawnSync; var exePath = ''; var cwd = process.cwd(); if ( process.platform === 'darwin' ) { exePath = Path.join(cwd, 'bin/electron/Electron.app/Contents/MacOS/Electron'); } else { exePat...
JavaScript
0
@@ -527,16 +527,59 @@ st/' ),%0A + Path.join( cwd, './dashboard/test/' ),%0A %5D;%0Avar s
7956813945b0ced47fada839dbef1903c72252ec
Update for 2.3.0-rc.5
version.js
version.js
if (enyo && enyo.version) { enyo.version.onyx = "2.3.0-rc.4"; }
JavaScript
0
@@ -56,9 +56,9 @@ -rc. -4 +5 %22;%0A%7D
0495a88f4626822c850929132084294b2e660f0b
Fix path date filename.
plugins/path.js
plugins/path.js
var FilePath = require('filepath').FilePath, INI = require('ini'); exports.initialize = function (API, args) { API.path = FilePath.create; API.path.root = FilePath.root; API.path.home = FilePath.home; API.path.datename = dateFileName; API.path.expand = function (filepath) { return FilePath.create(...
JavaScript
0.999841
@@ -474,14 +474,24 @@ Name +() + +( ext + %7C%7C '') ;%0A @@ -771,49 +771,18 @@ ame( -conf ) %7B%0A - return function () %7B%0A var%0A - no @@ -799,18 +799,16 @@ te(),%0A - - pad = fu @@ -817,26 +817,24 @@ tion(num) %7B%0A - var norm @@ -863,26 +863,24 @@ (num));%0A - return (...
064e828d8e623c023f8ac67c00fab4c64d45cdb2
Add header and disabled props to DropDown
src/widgets/DropDown.js
src/widgets/DropDown.js
/* eslint-disable react/forbid-prop-types */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import { Picker } from 'react-native'; import { COMPONENT_HEIGHT, SUSSOL_ORANGE } from '../globalStyles'; /** * A single selection dropdown me...
JavaScript
0
@@ -216,16 +216,29 @@ import %7B + DARKER_GREY, COMPONE @@ -581,16 +581,18 @@ m %7BFunc%7D + onValue @@ -693,16 +693,176 @@ tyling.%0A + * @param %7Bstring%7D headerValue Optional value for a header within the popup.%0A * @param %7Bbool%7D isDisabled Optional inidicator that this dropdown is disabled.%0A ...
34d62b8b46494786cf16003f9cf2a7d2911d376c
Update asylum data date
src/js/model/refugee-constants.js
src/js/model/refugee-constants.js
var moment = require('moment'); // note that month indices are zero-based module.exports.DATA_START_YEAR = 2012; module.exports.DATA_START_MONTH = 0; module.exports.DATA_END_YEAR = 2015; module.exports.DATA_END_MONTH = 8; module.exports.DATA_END_MOMENT = moment([ module.exports.DATA_END_YEAR, module.exports.DATA...
JavaScript
0.000012
@@ -409,9 +409,9 @@ 10, -4 +5 %5D);%0A
2370ef67dfc6912a9b804a6097ede395b73b2252
Add support for adjusting pageinfo fontSize/color
src/widgets/PageInfo.js
src/widgets/PageInfo.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import { Dimensions, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { APP_FONT_FAMILY, DARK_GREY, SUSSOL_O...
JavaScript
0
@@ -1369,16 +1369,37 @@ canEdit +, infoColor, infoSize %7D = row @@ -1725,16 +1725,165 @@ ak;%0A %7D%0A +%0A if (infoColor) editTextStyle = %7B ...editTextStyle, color: infoColor %7D;%0A if (infoSize) editTextStyle = %7B ...editTextStyle, fontSize: infoSize %7D;%0A%0A // If @@ -2604,16 +2604,28 @@ %3CIc...
a3b84bff7bb26540ee2519c5ca943e6d49895ca8
Remove commented out code
src/js/settings/AutoWootToggle.js
src/js/settings/AutoWootToggle.js
/** * Stores the state of the Auto-Woot setting * @module settings/AutoWootToggle */ /** * AutoWoot setting constructor * @constructor * @param {object} toggler - The Toggle API used to keep track of state. */ function AutoWoot( toggler, userId ){ this.toggler = toggler || {}; this.userId = userId; this.loca...
JavaScript
0
@@ -447,275 +447,8 @@ %09%7D%0A%0A -%09/*%0A%09this.onChange = function(isOn)%7B%0A%09%09if(isOn)%7B%0A%09%09%09startWooting();%0A%09%09%09API.on(API.DJ_ADVANCE, startWooting);%0A%09%09%7Delse%7B%0A%09%09%09API.off(API.DJ_ADVANCE, startWooting);%0A%09%09%7D%0A%09%7D;%0A%0A%09// Initialize if setting is already turned ...
b1ff4a1dd88570f92caece960c03de7961eff766
remove unnecessary indirection
lib/compiler.js
lib/compiler.js
'use strict'; const path = require('path'); const SingleEntryPlugin = require('webpack/lib/SingleEntryPlugin'); const util = require('./util.js'); module.exports.compileTemplate = function compileTemplate (options, context, compilation) { // The entry file is just an empty helper as the dynamic template // requir...
JavaScript
0.99921
@@ -995,693 +995,8 @@ );%0A%0A - util.tap(childCompiler, 'compilation', 'Favicons', (compilation) =%3E %7B%0A util.tapAsync(compilation, 'optimize-chunk-assets', 'Favicons', (chunks, callback) =%3E %7B%0A if (!chunks%5B0%5D) %7B%0A return callback(compilation.errors%5B0%5D %7C%7C 'Favicons generation f...
e71b0b3e81ff7ec00305e3df716719730b485e48
update config example
api/_global-config-example.js
api/_global-config-example.js
// Setup config // NOTE - Change filename to _global-config.js for use var config; var env = process.env.ENV_NAME || 'dev'; if (env === 'staging' || env === 'production') { config = { port: process.env.PORT || 3000, version: '/v1', cookieSecret: 'SUPERcookieSECRET', tokenSecret: 'SERIOUStokenSECRET', mail...
JavaScript
0.000001
@@ -103,17 +103,20 @@ .env -.ENV_NAME +%5B'NODE_ENV'%5D %7C%7C @@ -195,37 +195,40 @@ ort: process.env -. +%5B' PORT +'%5D %7C%7C 3000,%0A%09%09vers @@ -404,34 +404,46 @@ st1',%0A%09%09 -sendgrid +mailgun: %7B%0A%09%09%09auth : %7B%0A%09%09%09 +%09 api +_ key: 'so @@ -440,32 +440,64 @@ i_key: 'somekey' +,%0...
446615f23d461d0f4f880c6fc1efe48779c718a4
Make the bubble chart sexy
api/controllers/statistics.js
api/controllers/statistics.js
'use strict' let Rat = require('../models/rat') let Rescue = require('../models/rescue') exports.get = function (request, response, next) { let operations = [] operations.push(getOverallRescueCount()) operations.push(getPopularSystemsCount()) operations.push(getLeaderboardRats()) Promise.all(operations).t...
JavaScript
0.00007
@@ -1977,32 +1977,115 @@ %7D%0A %7D,%0A %7B%0A + $match: %7B%0A count: %7B%0A $gte: 10%0A %7D%0A %7D%0A %7D,%0A %7B%0A $project: @@ -2078,32 +2078,32 @@ $project: %7B%0A - _id: 0,%0A @@ -2153,40 +2153,8 @@ %7D%0A - %7D,%0A %7B%0A $limit ...
4c0d60fd3675aa4e886dde3b56967b07807027b4
change night to evening
plugins/time.js
plugins/time.js
var moment = require("moment"); var COEFF = 1000 * 60 * 5; var getSeason = function() { var now = moment(); now.dayOfYear() var doy = now.dayOfYear(); if (doy > 80 && doy < 172) { return "spring"; } else if (doy > 172 && doy < 266) { return "summer" } else if (doy > 266 && doy < 357) { return "fall" } e...
JavaScript
0.006486
@@ -1254,13 +1254,15 @@ = %22 -night +evening %22%0A%09%7D
2c9a82216cd4a97bd4bb2b9c40f95dbb0a6d2222
Make isColliding return false if edges overlapping
space-invaders/space-invaders.js
space-invaders/space-invaders.js
;(function() { var Game = function() { var screen = document.getElementById("screen").getContext('2d'); this.size = { x: screen.canvas.width, y: screen.canvas.height }; this.bodies = createInvaders(this).concat(new Player(this)); this.shootSound = document.getElementById('shoot-sound'); var self...
JavaScript
0.999613
@@ -4924,24 +4924,25 @@ size.x / 2 %3C += b2.center.x @@ -4998,16 +4998,17 @@ .y / 2 %3C += b2.cent @@ -5064,24 +5064,25 @@ size.x / 2 %3E += b2.center.x @@ -5138,16 +5138,17 @@ .y / 2 %3E += b2.cent
9f0a34aa99577c8c012da7c2270a5082a006f1ab
Tweak instance var name
modules/History.js
modules/History.js
import warning from 'warning' import React, { PropTypes } from 'react' import createBrowserHistory from 'history/lib/createBrowserHistory' import useQueries from 'history/lib/useQueries' import { history as historyType, location as locationType } from './PropTypes' const isBrowserEnvironment = typeof window === 'o...
JavaScript
0.000001
@@ -1608,17 +1608,16 @@ = null%0A -%0A unlist @@ -1631,16 +1631,42 @@ e = null +%0A isTransitioning = false %0A%0A // n @@ -2239,33 +2239,35 @@ n) %7B%0A this. -t +isT ransitioning = t @@ -2899,25 +2899,27 @@ if (!this. -t +isT ransitioning @@ -3023,17 +3023,19 @@ this. -t +isT ransitio
58c0127b6e18f448d95650a4e0d89b6fc43ca56b
refactor umb editor toolbar directive to follow angular style guide
src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditortoolbar.directive.js
src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditortoolbar.directive.js
angular.module("umbraco.directives") .directive('umbEditorToolbar', function () { return { restrict: 'E', replace: true, templateUrl: 'views/components/editor/umb-editor-toolbar.html', scope: { tools: "=" } }; });
JavaScript
0
@@ -1,60 +1,48 @@ -angular.module(%22umbraco.directives%22)%0A .directive('umb +(function() %7B%0A 'use strict';%0A%0A function Edit @@ -54,45 +54,47 @@ lbar -', function +Directive () %7B%0A +%0A - return %7B%0A +var directive = %7B%0A @@ -122,19 +122,16 @@ - - replace: @@ -...
db8c9e4daf185faba078b85a084e8ffa30e31c0f
Use ui-router's state changes for default route, this ensures we don't get the infinite redirect loop
controller/static/app/config.routes.js
controller/static/app/config.routes.js
(function() { 'use strict'; angular .module('shipyard') .config(getRoutes); getRoutes.$inject = ['$stateProvider', '$urlRouterProvider']; function getRoutes($stateProvider, $urlRouterProvider) { $stateProvider .state('error', { url: '/error', ...
JavaScript
0
@@ -455,21 +455,137 @@ ise( -'/containers' +function ($injector) %7B%0A var $state = $injector.get('$state');%0A $state.go('dashboard.containers');%0A %7D );%0A
04018aa6a4a3c9967f7317821959df2144040822
make rollup cache folder name
packages/vue-inbrowser-compiler/rollup.config.js
packages/vue-inbrowser-compiler/rollup.config.js
import * as path from 'path' import nodeResolve from 'rollup-plugin-node-resolve' import typescript from 'rollup-plugin-typescript2' import commonjs from 'rollup-plugin-commonjs' import pkg from './package.json' const resolve = _path => path.resolve(__dirname, _path) export default { input: resolve('./src/index.ts'),...
JavaScript
0.000004
@@ -714,19 +714,34 @@ dules/.r -pt2 +ollup_vue-compiler _cache'%0A
94a330ea3ff339ae5dbc3782fbe09e7202a03ef1
Isolate "reducers may not dispatch actions" bug for now
packages/vulcan-lib/lib/server/render_context.js
packages/vulcan-lib/lib/server/render_context.js
import { createMemoryHistory } from 'react-router'; import { compose } from 'redux'; import cookieParser from 'cookie-parser'; import { Meteor } from 'meteor/meteor'; import { DDP } from 'meteor/ddp'; import { Accounts } from 'meteor/accounts-base'; import { RoutePolicy } from 'meteor/routepolicy'; import { WebApp } f...
JavaScript
0
@@ -3814,16 +3814,22 @@ spatch;%0A + %0A retu @@ -3849,24 +3849,38 @@ ction) =%3E %7B%0A + try %7B%0A if (!c @@ -3883,24 +3883,26 @@ (!chain) %7B%0A + chai @@ -3978,16 +3978,26 @@ tore));%0A + %7D%0A @@ -4036,22 +4036,16 @@ next)%0A - %7D%0A re @@ -40...
781989b159536410b84b68991ccc3b1355021475
update example
packages/web/examples/MultiListAntd/src/index.js
packages/web/examples/MultiListAntd/src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import { List, Checkbox, Card, Row, Col } from 'antd'; import { ReactiveBase, MultiList, ReactiveList, SelectedFilters } from '@appbaseio/reactivesearch'; import 'antd/dist/antd.css'; import './index.css'; const { Meta } = Card; const Main = () => ( <React...
JavaScript
0.000308
@@ -498,33 +498,37 @@ e=%22row%22%3E%0A%09%09%09%3Cdiv - +%0A%09%09%09%09 className=%22col%22%3E @@ -522,24 +522,68 @@ ssName=%22col%22 +%0A%09%09%09%09style=%7B%7B%0A%09%09%09%09%09minWidth: 300,%0A%09%09%09%09%7D%7D%0A%09%09%09 %3E%0A%09%09%09%09%3CMulti
0e551bf72ba050bdd3df0724407a93b5272ba37e
Reduce duplication
modules/__tests__/describeHistory.js
modules/__tests__/describeHistory.js
import assert from 'assert'; import expect from 'expect'; import { PUSH, REPLACE, POP } from '../Actions'; function describeHistory(createHistory) { describe('when the user confirms a transition', function () { var confirmationMessage, location, history, unlisten; beforeEach(function () { location = nu...
JavaScript
0.999999
@@ -101,16 +101,182 @@ ions';%0A%0A +function execSteps(steps, done) %7B%0A return function () %7B%0A try %7B%0A steps.shift().apply(this, arguments);%0A %7D catch (error) %7B%0A done(error);%0A %7D%0A %7D;%0A%7D%0A%0A function @@ -4768,170 +4768,8 @@ %5D;%0A%0A - function execNextStep() %7...
44b9ce2bdf46e20c412f56e6c1c8ed06354debc8
modify JS example to avoid coredumps when run for awhile
examples/javascript/mma7660.js
examples/javascript/mma7660.js
/*jslint node:true, vars:true, bitwise:true, unparam:true */ /*jshint unused:true */ /* * Author: Zion Orent <zorent@ics.com> * Copyright (c) 2015 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software")...
JavaScript
0
@@ -1380,25 +1380,24 @@ A7660(%0A%09%09%09%09%09 -%09 digitalAccel @@ -1423,17 +1423,16 @@ C_BUS, %0A -%09 %09%09%09%09%09dig @@ -1477,15 +1477,8 @@ ADDR -%0A%09%09%09%09%09%09 );%0A%0A @@ -1773,61 +1773,146 @@ var -myInterval = setInterval(function()%0A%7B%0A%09 +x, y, z;%0Ax = digitalAccelerometer.new_intp();...
6b1635fc615e4303848f3811c01dd0876f9bd54a
use computed sort since the sortablemixin was deprecated
app/application/controller.js
app/application/controller.js
import Ember from 'ember'; export default Ember.Controller.extend(Ember.SortableMixin, { sortAscending: true, sortProperties: ['name'] });
JavaScript
0
@@ -64,81 +64,104 @@ end( -Ember.SortableMixin, %7B%0A sortAscending: true,%0A sortProperties: %5B'name'%5D +%7B%0A centresSorted: %5B'name'%5D,%0A arrangedContent: Ember.computed.sort('model', 'centresSorted'), %0A%7D);%0A +%0A
0370ea7a2d37068aa59da9d639341aca6a304cdb
Add seeTheFLightMap js function in app.js - seeTheFlightMap adds the map to the one page site and scrolls all the way to it - Test page is working. Styling on the test page is looking good. Design responsive.
app/assets/javascripts/app.js
app/assets/javascripts/app.js
$(document).ready(function() { enterTheSite(); submitCurateFlight(); }); var enterTheSite = function() { $('#homepage-box').on('click', 'button', function(e){ e.preventDefault(); $.ajax({ url: 'flights/search', success: successCallback }); function successCallback(response) { ...
JavaScript
0
@@ -66,16 +66,37 @@ ight();%0A + seeTheFlightMap();%0A %7D);%0A%0Avar @@ -1043,24 +1043,600 @@ debugger;%0A %7D%0A %7D);%0A%7D%0A +%0Avar seeTheFlightMap = function() %7B%0A $('main').on('click', '#search-results-box a', function(e)%7B%0A e.preventDefault();%0A var flightUrl;%0A%0A flightUrl = $(this)...
81e7b4444ffd65cb5ace4ea21cfa8ce76aeb5939
use slidetoggle
app/assets/javascripts/nav.js
app/assets/javascripts/nav.js
$(document).ready(function(){ $('.menu-toggle').on('mouseenter',function() { $('.nav-list').css('display', 'inline') }); $('.menu-toggle').bind('mouseleave', function(){ $('.nav-list').css('display', 'inline') $('.nav-list').hide(); }); });
JavaScript
0.000001
@@ -47,12 +47,8 @@ e'). -on(' mous @@ -53,18 +53,17 @@ useenter -', +( function @@ -68,17 +68,16 @@ on() - %7B%0A $( '.na @@ -64,33 +64,33 @@ nction()%7B%0A $( -' +%22 .nav-list').css( @@ -86,43 +86,38 @@ list -').css('display', 'inline') +%22).slideToggle(%22fast%22); %0A %7D);%0A -%0A $( @@ -136...
fc10ebea9686e8eab01434710d4bc490b1d98b01
Fix empty image when navigating to new editor from an editor with image
app/components/gh-uploader.js
app/components/gh-uploader.js
import Ember from 'ember'; import uploader from 'ghost/assets/lib/uploader'; export default Ember.Component.extend({ classNames: ['image-uploader', 'js-post-image-upload'], config: Ember.inject.service(), imageSource: Ember.computed('image', function () { return this.get('image') || ''; }), ...
JavaScript
0.000006
@@ -1389,24 +1389,1214 @@ ();%0A %7D,%0A%0A + // NOTE: because the uploader is sometimes in the same place in the DOM%0A // between transitions Glimmer will re-use the existing elements including%0A // those that arealready decorated by jQuery. The following works around%0A // situations where the image...
f519614963a86a08c7ba079b63afe1b9a3b1b5e5
remove extra line
app/controllers/es/landsat.js
app/controllers/es/landsat.js
'use strict'; var ejs = require('elastic.js'); var client = require('../../services/elasticsearch.js'); var queries = require('./queries.js'); var Boom = require('boom'); module.exports = function (params, request, cb) { var err; // Build Elastic Search Query var q = ejs.Request(); // Do legacy search if ...
JavaScript
0.018303
@@ -1152,17 +1152,16 @@ else %7B%0A -%0A co
0e27a0f6c559fd8bff86e79d4b6e55f59ae6d367
set min date to 0
app/controllers/task_table.js
app/controllers/task_table.js
/** * Created by Q on 6/6/2015. */ 'use strict'; angular.module('taskowl.task_table',['ngRoute','ui.bootstrap']); angular.module('taskowl.task_table').config(['$routeProvider', function($routeProvider){ $routeProvider.when('/tasks',{ templateUrl: 'views/task_table.html', controller: '...
JavaScript
0.999996
@@ -5782,16 +5782,54 @@ = false; +%0A $scope.minDate = new Date(0); %0A%0A
9cce4a63966515ae814129152bec3b95a883609b
Define some functions to implement based on php-sdk
lib/facebook.js
lib/facebook.js
var https = require('https'); var url = require('url'); var crypto = require('crypto'); var DOMAIN_MAP = { api : 'https://api.facebook.com/', apiVideo : 'https://api-video.facebook.com/', apiRead : 'https://api-read.facebook.com/', graph : 'https://graph.facebook.com/', graphVideo : 'https://graph-video.facebook....
JavaScript
0.000011
@@ -386,16 +386,17 @@ Secret;%0A +%0A var user @@ -416,16 +416,36 @@ equest;%0A +/* session bound */%0A var stat @@ -464,9 +464,212 @@ sToken;%0A -%0A +var code;%0A%0A/**%0A * auth(config):function(req, res, next)%0A * %0A * setPersistentData(key, value):void%0A * getPersistentData(key, default):*%0A * clearPersis...
b7bae3980e96d4e4228f943b5ce2f94f7ddbcf6a
Use protocol-relative url for api call - wasn't working from https: #210
static/js/event-form.js
static/js/event-form.js
var animationTime = 200; // ms $(function() { // Register event to show event group forms $('#id_event-group-enabled').on('change', function(ev) { if (ev.target.checked) { $('#id_event-group').prop('disabled', false) $('.event-group').slideDown(animationTime); } else { ...
JavaScript
0.000001
@@ -4071,13 +4071,8 @@ l: ' -http: //ap
fd59c4e0e6cbed832346cc9560d6bed77df0df2b
Update muster parser
app/helpers/musters_parser.js
app/helpers/musters_parser.js
'use strict'; const Utils = require('./utils'); const D3 = require('d3'); exports.block = function(rows) { var cardsResponse = D3.values(rows[0]); var stateResponse = D3.values(rows[1]); var stateCode = stateResponse[0].state_code; // Nest the cards response var cards = D3.nest() .ke...
JavaScript
0.000001
@@ -621,29 +621,8 @@ n': -Utils.getDesignation( v%5B0%5D @@ -638,20 +638,8 @@ ign, - stateCode), %0A
f2998ef288f09152fc2d2ff5581afc1229d9caa8
add conditional for systems to hide dropdown
static/scripts/login.js
static/scripts/login.js
import './pwd.js'; /* global introJs */ $(document).ready(function() { // reset localStorage when new version is Published const newVersion = 1; const currentVersion = parseInt(localStorage.getItem('homepageVersion') || '0', 10); if(currentVersion < newVersion){ localStorage.clear(); localStorage.setItem('ho...
JavaScript
0
@@ -2795,24 +2795,140 @@ (systems) %7B%0A + if (systems.length %3C 2)%7B%0A $systems.parent().hide()%0A return;%0A %7D%0A
08aed6cc61b49921ce4d6438c77744af47ee6f82
Add better watchword, picture, instead of selfie
modules/recognizer/recognizer.js
modules/recognizer/recognizer.js
Module.register("recognizer",{ start() { console.log("Recognizer started"); this.sendSocketNotification("RECOGNIZER_STARTUP"); return; }, socketNotificationReceived: function(notification) { console.log("Recognizer recieved a notification: " + notification) if (notification === "RECOGNIZER_C...
JavaScript
0.999809
@@ -441,13 +441,14 @@ == %22 -selfi +pictur e%22)
031dd0cb0a45959db07783a3bb55ac37d10e4a48
Fix parse error
js/foam/u2/md/OverlayDropdown.js
js/foam/u2/md/OverlayDropdown.js
/** * @license * Copyright 2016 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.000001
@@ -2946,17 +2946,16 @@ le(last) -) %5B'margin
69346609bcc3e47323a347e697c958415897e589
Add bug 1081850.
js/jsfunfuzz/avoid-known-bugs.js
js/jsfunfuzz/avoid-known-bugs.js
function whatToTestSpidermonkeyTrunk(code) { /* jshint laxcomma: true */ // regexps can't match across lines, so replace whitespace with spaces. var codeL = code.replace(/\s/g, " "); return { allowParse: true, allowExec: unlikelyToHang(code) && (jsshell || code.indexOf("nogeckoex") == -1) ,...
JavaScript
0
@@ -2023,32 +2023,99 @@ // bug 1073928%0A + && code.indexOf(%22prototype%22) == -1 // bug 1081850%0A && !( cod
164ced5c70d40f2688ebb0759a9446d349eac953
Add quotes around undefined when checking for type
js/maze_generators/random-dfs.js
js/maze_generators/random-dfs.js
'use strict' var _ = require('underscore') /** * Given a maze, position to start at, and a visited set, apply a randomized * depth-first-search algorithm to the maze. * * @param {type} maze Maze to apply the random dfs algorithm to * @param {type} position Current position to consider * @param {type} visited Obj...
JavaScript
0
@@ -435,16 +435,17 @@ ted !== +' undefine @@ -445,16 +445,17 @@ ndefined +' ? visit
d2982902669ecfa0ec4603886d09b2f05c0338c0
Add new line after a .gitignore template
lib/generate.js
lib/generate.js
import fs from 'fs' import { join } from 'path' const templatesDir = join(__dirname, '..', 'templates') const readFile = async (file) => { return new Promise((resolve, reject) => { fs.readFile(file, 'utf8', (err, text) => { if (err) { reject(err) } else { resolve(text) } })...
JavaScript
0
@@ -1296,20 +1296,27 @@ nore += +%60$%7B text +%7D%5Cn%60 %0A %7D%0A%0A
4f36f3676d13b10d645aedf2658491b00423fd18
Fix evaluation of post content by m.trust() (#24)
js/src/forum/addStickyExcerpt.js
js/src/forum/addStickyExcerpt.js
import { extend } from 'flarum/extend'; import DiscussionListState from 'flarum/states/DiscussionListState'; import DiscussionListItem from 'flarum/components/DiscussionListItem'; import DiscussionPage from 'flarum/components/DiscussionPage'; import IndexPage from 'flarum/components/IndexPage'; import { truncate } from...
JavaScript
0.000005
@@ -937,24 +937,96 @@ n(), 175);%0A%0A + // Wrapping in %3Cdiv%3E because ItemList entries need to be vnodes%0A item @@ -1046,24 +1046,28 @@ t', -m.trust(excerpt) +%3Cdiv%3E%7Bexcerpt%7D%3C/div%3E , -1
7bd26a1ae47b252e7483a39da3c2a2df4760c935
fix accidentally deleted line
js/utils/validateMediumEditor.js
js/utils/validateMediumEditor.js
function checkVal($field) { var fVal = $($field.val()).text().trim(); $field.val(''); } if (!$field[0].checkValidity()) { $field.parent().addClass('invalid'); } else { $field.parent().removeClass('invalid'); } } module.exports = { checkVal: checkVal };
JavaScript
0
@@ -65,16 +65,85 @@ trim();%0A + if (!fVal.length %7C%7C fVal == %22%3Cp%3E&nbsp;%3C/p%3E%22 %7C%7C fVal == %22&nbsp;%22) %7B%0A $fie
579a91ebe43e88ebd9d63b6cb11dd776972e7e29
fix path error
lib/handlers.js
lib/handlers.js
var math = require('mathjs'); var childProcess = require('child_process'); var Attachment = require('./attachment'); var formatter = require('./formatter'); var freshStart = true; var mathjsScope = math.parser().scope; var mathjsChildOptions = { stdio: 'ipc', //timeout: 5 * 1000 }; module.exports = { ev...
JavaScript
0.000003
@@ -1691,16 +1691,20 @@ fork('./ +lib/ children
83021cf0acadd9ca0349310cf3a9b517d2e195d7
Fix #195: Support port in connect command
src/plugins/inputs/connect.js
src/plugins/inputs/connect.js
exports.commands = ["connect", "server"]; exports.input = function(network, chan, cmd, args) { if (args.length !== 0) { var client = this; client.connect({ host: args[0] }); } return true; };
JavaScript
0
@@ -110,9 +110,9 @@ gth -! += == 0 @@ -121,35 +121,125 @@ %7B%0A%09%09 -var client = this;%0A%09%09client +return;%0A%09%7D%0A%0A%09var port = args%5B1%5D %7C%7C %22%22;%0A%09var tls = port%5B0%5D === %22+%22;%0A%0A%09if (tls) %7B%0A%09%09port = port.substring(1);%0A%09%7D%0A%0A%09this .con @@ -247,17 +247,16 @@ ...
5272a03f798daa50687805b52e6bd8acdd8638dd
refactor of the week
app/javascripts/navigation.js
app/javascripts/navigation.js
// UI for the Navigation Bar in the sidebar NavigationBar = { detectSelectedSection: function() { // Direct match var link = $$('.nav_links a').select(function(e) { return e.getAttribute('href') == window.location.pathname }).last() if (link) link.up('.el').addClassName('selected') // Close enough i...
JavaScript
0.000207
@@ -3884,21 +3884,8 @@ f%22)%0A - e.stop()%0A %7D @@ -3932,19 +3932,22 @@ l, true) - && +%0A %7D%0A e.stop( @@ -3948,20 +3948,16 @@ .stop()%0A - %7D%0A %7D)%0A%0Adocu
475780e211589b4ca39eb8f3dc1f0635b01af8db
remove useless casts (for ++ coverage)
apis/job.js
apis/job.js
import validate from 'validate.js'; import { endpoints } from './config'; export default { createJob(job) { if (typeof job !== 'object') { throw new Error('Missing job!'); } if (typeof job.recordingId === 'number') { job.recordingId = job.recordingId + ''; } const validation = { tasks: { prese...
JavaScript
0
@@ -179,100 +179,8 @@ %0A%09%09%7D -%0A%09%09if (typeof job.recordingId === 'number') %7B%0A%09%09%09job.recordingId = job.recordingId + '';%0A%09%09%7D %0A%0A%09%09 @@ -779,111 +779,8 @@ %09%09%7D%0A -%09%09if (typeof options.recordingId === 'number') %7B%0A%09%09%09options.recordingId = options.recordingId + '';%0...
ab46bbf47f1b41a45c186a362ed43ce66d8b17a2
Fix `purs bundle` output
src/Database/PostgreSQL/Value.js
src/Database/PostgreSQL/Value.js
'use strict'; // pg does strange thing converting DATE // value to js Date, so we have // to prevent this craziness var pg = require('pg'); var DATE_OID = 1082; pg.types.setTypeParser(DATE_OID, function(dateString) { return dateString; }); exports['null'] = null; exports.instantToString = function(i) { return ne...
JavaScript
0
@@ -138,28 +138,8 @@ ');%0A -var DATE_OID = 1082; %0Apg. @@ -162,16 +162,24 @@ ser( +1082 /* DATE_OID , fu @@ -174,16 +174,19 @@ DATE_OID + */ , functi
8f1b14dacb1a3cbfda31ada80dc9a7222bf05d84
throw error if result from lockfile server has a message
lib/lockfile.js
lib/lockfile.js
const request = require('request-promise') const promiseRetry = require('promise-retry') const Log = require('gk-log') const dbs = require('../lib/dbs') const errorCodes = require('../lib/network-error-codes') const env = require('./env') module.exports = { getNewLockfile } // # getNewLockfile // find next server /...
JavaScript
0.000001
@@ -1760,16 +1760,17 @@ if +( (result @@ -1791,38 +1791,129 @@ or) -%7B%0A // it is an error! +%7C%7C result.message) %7B%0A // result is either %60error%60, %60%7Bok: false%7D%60, %60%7Bok: false, error%7D%60 or %60%7Bok: true, contents%7D%60 %0A
3976e1d6f334ca246bf2bf224a13a6baa4ae0b34
optimise log file usage
app/hero.js
app/hero.js
var fs = require('fs'); var Practitioner = require(__dirname + '/practitioner'); var Location = require(__dirname + '/location'); var Organisation = require(__dirname + '/organisation'); var runDir = __dirname + '/../run'; var cacheFile = runDir + '/contacts.json'; var Config = require(__dirname + '/config'); var co...
JavaScript
0.000001
@@ -759,16 +759,32 @@ sh.log', +%0A '====== @@ -792,18 +792,16 @@ =====%5Cn' -); %0A @@ -805,47 +805,17 @@ -fs.appendFileSync(runDir + '/push.log', + + '-- @@ -831,18 +831,16 @@ data%5Cn' -); %0A @@ -844,47 +844,17 @@ -fs.appendFileSync(runDir + '/push.log', + ...
f3c5efaf06478dee60c44807d5d91ed31c4969a5
Invert the color of the circles
app/main.js
app/main.js
var counter; function setup() { var canvas = createCanvas(400, 400); canvas.parent('play'); counter = new Counter(); counter.new(); } function draw() { background(233, 0, 0); counter.draw(); } function keyTyped() { if (key === ' ') { counter.new(); } if (keyCode == ENTER) ...
JavaScript
0.999999
@@ -183,16 +183,20 @@ nd(2 -33, 0, 0 +55, 255, 255 );%0A @@ -1761,16 +1761,43 @@ cts%5Bi%5D;%0A + fill(255,0,0);%0A
ac99d53daf057cd68775426fc616125e5b133852
Add date to response body
app/main.js
app/main.js
var os = require( "os" ); var throng = require( "throng" ); var connections = require( "./shared/connections" ); var utils = require( "./shared/utils" ); var logger = connections.logger( [ "Pi-System-RPC-Service" ] ); var run = function () { logger.log( "Starting Pi-System-RPC-Service" ); var broker = conn...
JavaScript
0.000305
@@ -625,16 +625,50 @@ gify( %7B%0A + date: new Date(),%0A
3d0a458b8e7c9bf6cb91f33cd55077fde9b9e6e4
Remove debug logging
app/main.js
app/main.js
var app = require('app'); var BrowserWindow = require('browser-window'); var Menu = require('menu'); var MenuItem = require('menu-item'); var Shell = require('shell'); var ConfigStore = require('configstore'); console.log(app.getLocale()); var mainWindow = null; const config = new ConfigStore('IRCCloud', { ...
JavaScript
0.000002
@@ -208,39 +208,8 @@ );%0A%0A -console.log(app.getLocale());%0A%0A var
d806075e5c218d76365318cab552a6577eea7ba9
Use apply to forward call to registry.
app/main.js
app/main.js
exports = module.exports = function(registry) { var api = {}; api.resolve = function(type, domain, rrtype, cb) { registry.resolve(type, domain, rrtype, function(err, records) { cb(err, records); }); }; api.resolveSrv = function(type, domain, cb) { registry.resolveSrv(type, domain, functi...
JavaScript
0
@@ -137,85 +137,34 @@ olve -(type, domain, rrtype, function(err, records) %7B%0A cb(err, records);%0A %7D +.apply(registry, arguments );%0A @@ -245,77 +245,34 @@ eSrv -(type, domain, function(err, records) %7B%0A cb(err, records);%0A %7D +.apply(registry, arguments );%0A
43ebec9f73ef25f96c25df9a368a4dbc5d3b45b6
Add another function
lib/nojQuery.js
lib/nojQuery.js
// jQUERY: $(window).width() / parseFloat($("body").css("font-size")); function elementWidthAsEm(doc, id) { let bb = null; if(typeof id=='string') { bb= doc.getElementById(id); } else { bb=doc.getElementsByTagName('body')[0]; } let stl = window.getComputedStyle(bb,null); return parseInt(stl.width) / parseInt(st...
JavaScript
0.000476
@@ -331,10 +331,455 @@ e'%5D)%0A%7D%0A%0A +// $(document).ready(function() %7B...%7D);%0A// ripped from https://stackoverflow.com/questions/799981/document-ready-equivalent-without-jquery%0Afunction ready(callback) %7B%0A if (document.readyState!='loading') callback();%0A else if (document.addEventListener) docu...
a38248539b8c9a8f225c38b57e813f5a05e0bbd5
Remove test that checks for an application directory.
packages/truffle/test/init.js
packages/truffle/test/init.js
var assert = require("chai").assert; var Init = require("../lib/init"); var fs = require("fs"); var path = require('path'); describe('init', function() { var config; before("Create a sandbox", function(done) { this.timeout(5000); Init.sandbox(function(err, result) { if (err) return done(err); ...
JavaScript
0
@@ -417,128 +417,8 @@ ) %7B%0A - assert.isTrue(fs.existsSync(path.join(config.working_directory, %22app%22)), %22app directory not created successfully%22);%0A
d6a0ef30d45615b2c2aceccf1bf70cca57a7ec02
comment added
WebContent/AngularFaces-4/mandelbrotController.js
WebContent/AngularFaces-4/mandelbrotController.js
needsServer=false; function mandelbrotController($scope) { $scope.showGlobeDemo=true; $scope.$watch('resolution', function() { needsServer=true; if ($scope.resolution >= 512) { if ($scope.quality > 2) { $scope.quality = 2; PrimeFaces.widgets.qualityWidget.selectValue(2); PrimeFaces.widgets.qual...
JavaScript
0
@@ -1,24 +1,101 @@ +// This variable keeps track of changes requiring server side recalculations%0A needsServer=false;%0A%0Afunc @@ -90,16 +90,17 @@ false;%0A%0A +%0A function
a63aea1ce3d7d112ab7df9e6918047f51ce40dfd
Make glob glob dotfiles
nin/backend/init.js
nin/backend/init.js
const chalk = require('chalk'); const child_process = require('child_process'); const fs = require('fs'); const generate = require('./generate/generate'); const glob = require('glob'); const path = require('path'); const projectSettings = require('./projectSettings'); function init(dirname) { const projectPath = pa...
JavaScript
0.999976
@@ -593,16 +593,29 @@ ect/*'), + %7Bdot: true%7D, functio @@ -636,170 +636,8 @@ ) %7B%0A - // As globs don't expand to include dotfiles,%0A // we need to add the .gitignore manually%0A files.push(path.join(__dirname, 'blank-project/.gitignore'));%0A @@ -1090,22 +1090,36 @@ en(' -to get started +insi...
6e95ad0da56c60caa561d9f19002e0ccbd4121d0
fix limit restrictions of data export
app/search/query.prototype.js
app/search/query.prototype.js
'use strict'; angular.module('arachne.services') /** * represents a search query * handles conversion between string representation for frontend URLs * and flat object representation for backend requests * * @author: Sebastian Cuy */ .factory('Query', ['arachneSettings', function(arachneSettings) { functio...
JavaScript
0
@@ -4391,29 +4391,8 @@ if -(!(key == 'limit') && (th @@ -4423,17 +4423,16 @@ tIndex') -) %7B%0A
5421e3143c9e97f2994a74bd6dc6e9bd8ae79fcd
Implement Media model
redux/src/main/domain/models/Media.js
redux/src/main/domain/models/Media.js
export default class Media { static get IMAGE_FILE_EXTENSIONS() { return ['jpg', 'png', 'gif']; } }
JavaScript
0.000003
@@ -1,8 +1,30 @@ +import fs from 'fs';%0A%0A export d @@ -45,18 +45,16 @@ edia %7B%0A%0A - static @@ -84,20 +84,16 @@ ONS() %7B%0A - retu @@ -102,16 +102,24 @@ %5B'jpg', + 'jpeg', 'png', @@ -128,15 +128,396 @@ if'%5D;%0A +%7D%0A%0A static build(filePath) %7B%0A const buffer = fs.readFileSyn...
532ad5dfc0641ce599df3f6989cb201229149780
Fix local participant was not shown on large video after merge
features/largeVideo/reducer.js
features/largeVideo/reducer.js
import { ReducerRegistry } from '../base/redux'; import { LARGE_VIDEO_PARTICIPANT_CHANGED } from './actionTypes'; const INITIAL_STATE = { participantId: undefined }; ReducerRegistry.register('features/largeVideo', (state = INITIAL_STATE, action) => { switch (action.type) { case LARGE_VIDEO_PA...
JavaScript
0
@@ -1,16 +1,166 @@ +import %7B%0A CONFERENCE_JOINED,%0A CONFERENCE_LEFT%0A%7D from '../base/conference';%0Aimport %7B LOCAL_PARTICIPANT_DEFAULT_ID %7D from '../base/participants';%0A import %7B Reducer @@ -436,16 +436,974 @@ type) %7B%0A + /**%0A * When conference is joined, we update ID of local...
e51f60da3cab6c2c929f91db0d6cb6238c8d8bbf
Check the manifest has the valid format
lib/platform.js
lib/platform.js
'use strict'; var path = require('path'), util = require('util'); var manifoldjsLib = require('manifoldjs-lib'); var PlatformBase = manifoldjsLib.PlatformBase, manifestTools = manifoldjsLib.manifestTools, fileTools = manifoldjsLib.fileTools; var constants = require('./constants'), ma...
JavaScript
0.001222
@@ -65,16 +65,39 @@ ('util') +,%0D%0A Q = require('q') ;%0D%0A %0D @@ -151,16 +151,62 @@ %0D%0A%0D%0Avar +CustomError = manifoldjsLib.CustomError,%0D%0A Platform @@ -750,24 +750,246 @@ callback) %7B%0D +%0A if (w3cManifestInfo.format !== manifoldjsLib.constants.BASE_MANIFEST_FORMAT) %7B%0D%0A re...
26030829d35242abb1084108fa8147b4912ec363
Add support for Bluebird 3
lib/provider.js
lib/provider.js
'use strict' var request = require('request') , extend = require('extend') var Promise = null try { Promise = require('bluebird') } catch (e) {} var debug = null try { debug = require('request-debug') } catch (e) {} var config = require('./config') , utils = require('./utils') var Query = require('./query')...
JavaScript
0.000001
@@ -1535,24 +1535,42 @@ ider.request +, %7BmultiArgs:true%7D )%0A %7D%0A %7D%0A
38b95a5571d02a56d3dcdcb577303f484f547d94
fix typo
lib/reporter.js
lib/reporter.js
'use strict'; const print = require('./fn').formatTime; const fmt = require('./fmt'); const evts = { add: 'added', change: 'changed', unlink: 'removed' }; module.exports = function () { const $ = this.$; return this .on('fly_run', file => { $.log(`Flying with ${fmt.path(file)}`); }) .on('flyfile_not_...
JavaScript
0.999991
@@ -1016,16 +1016,11 @@ tle( -obj.name +str )%7D%60)
9e3fec61bcf64fb9bea49c3560a7d850dfc46ce7
apply chalk defs to 'task_complete' message
lib/reporter.js
lib/reporter.js
var fmt = require('./fmt') var log = require('./utils').log var trace = require('./utils').trace var evts = { add: 'added', change: 'changed', unlink: 'removed' } module.exports = function () { return this .on('fly_run', function (obj) { log('Flying with ' + fmt.path + '...', obj.path) }) .on('flyfile_n...
JavaScript
0.017612
@@ -1146,36 +1146,27 @@ e', -function (obj) %7B%0A%09%09%09var time +obj =%3E %7B%0A%09%09%09const t = f @@ -1188,24 +1188,25 @@ uration) +; %0A%09%09%09log( %0A%09%09%09%09'Fi @@ -1201,14 +1201,9 @@ log( -%0A%09%09%09%09' +%60 Fini @@ -1207,20 +1207,18 @@ inished -' + +$%7B fmt.comp @@ -1225,74 +1225,40 @...
d5d5940b301fab1fc6a3d4f28b31a6d126ff228e
add built files
lib/rxToMost.js
lib/rxToMost.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.rxToMost = rxToMost; var _mostSubject = require('most-subject'); var _mostSubject2 = _interopRequireDefault(_mostSubject); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function ...
JavaScript
0.000001
@@ -112,23 +112,16 @@ ar _most -Subject = requi @@ -132,426 +132,171 @@ most --subject');%0A%0Avar _mostSubject2 = _interopRequireDefault(_mostSubject);%0A%0Afunction _interopRequireDefault(obj) %7B return obj && obj.__esModule ? obj : %7B default: obj %7D; %7D%0A%0Afunction rxToMost(rxSubject) %7B%0A var _subject...
79e164084ba60bf5b7cd1fdda7a875893c1c8ad5
fix proxy has return value
src/runtime/instance/proxy.js
src/runtime/instance/proxy.js
import { warn, makeMap } from '../util/index' let hasProxy, proxyHandlers, initProxy if (process.env.NODE_ENV !== 'production') { const allowedGlobals = makeMap( 'Infinity,undefined,NaN,isFinite,isNaN,' + 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' + 'Math,Number,Dat...
JavaScript
0.000002
@@ -538,24 +538,74 @@ y in target%0A + const isAllowedGlobal = allowedGlobals(key)%0A if (!h @@ -611,17 +611,19 @@ has && ! -a +isA llowedGl @@ -626,22 +626,16 @@ edGlobal -s(key) ) %7B%0A @@ -770,19 +770,32 @@ return -has +!isAllowedGlobal %0A %7D%0A
45f8abcc7bf3ba85c864720a13b35ce5a90ec60d
fix steps not defined issue
lib/steps/if.js
lib/steps/if.js
module.exports = { spec : function() { return { name : 'if', desc : '', fields : [ {type:'string',name:'var',description:'',required:true}, {type:'string',name:'if',description:'',required:true}, {type:'string',name:'pattern',description:'',required:true}, {type:'string',name:'yes_subflow',descr...
JavaScript
0.000004
@@ -1042,33 +1042,32 @@ p.yes_subflow != -= null) %7B%0A%09%09%09%09var @@ -1840,17 +1840,16 @@ bflow != -= null) %7B
88845e3134ce20aa266889e48dac37d3831ce8aa
add to pull diff screen
src/screens/PullDiffScreen.js
src/screens/PullDiffScreen.js
import React, {Component, PropTypes} from 'react'; import { Text } from 'react-native'; import Parse from 'parse-diff'; import ViewContainer from '../components/ViewContainer'; class PullDiff extends Component { componentDidMount() { const files = Parse(this.props.navigation.state.params.diff); console.log...
JavaScript
0
@@ -81,16 +81,71 @@ ative';%0A +import %7BCard, ListItem%7D from 'react-native-elements';%0A%0A import P @@ -227,16 +227,79 @@ iner';%0A%0A +const files = Parse(this.props.navigation.state.params.diff);%0A%0A class Pu @@ -1018,16 +1018,677 @@ %7D%3C/Text%3E +%0A%0A %7Bfiles.map((file, i) =%3E (%0A ...
83a447c2989ed2a598f7256d7a0a89e2df5c46cf
Allow any content tags besides 'img'
lib/tdf-live.js
lib/tdf-live.js
var colors = require('colors') , cheerio = require('cheerio') , striptags = require('striptags') , moment = require('moment') , Entities = require('html-entities').Html5Entities; var entities = new Entities(); // metadata container exports.meta = {}; // function to build a text update string out of the HTML ...
JavaScript
0.000001
@@ -1124,17 +1124,18 @@ str + ' -. +%5Cn ';%0A %7D @@ -2885,14 +2885,16 @@ ame -= +! == ' -p +img ' &&
0029435a3830959f6300dbc6b8b74048074c6e55
Add missing flow definitions for mocha
flow-typed/npm/mocha_v3.1.x.js
flow-typed/npm/mocha_v3.1.x.js
// flow-typed signature: 6b82cf8c1da27b4f0fa7a58e5ed5babf // flow-typed version: edf70dde46/mocha_v3.1.x/flow_>=v0.22.x type TestFunction = ((done: () => void) => void | Promise<mixed>); declare var describe : { (name:string, spec:() => void): void; only(description:string, spec:() => void): void; skip(de...
JavaScript
0
@@ -835,28 +835,647 @@ ethod : TestFunction):void;%0A +%0A/****************************************************************************/%0A/* TODO: Contribute missing definitions upstream */%0A/****************************************************************************/%0A%0Adeclare functio...
c5acab6b03a63171b8c59e9bd07b46ed067a702c
Make requests only when a job has finished
src/semprebeta-client-side.js
src/semprebeta-client-side.js
require('angular') /*global angular*/ require('comp-pool') angular.module('SemprebetaApp', ['CompPoolClient']) .factory('compPoolRoot', ['$log', function ($log) { var rootDefault = 'http://localhost:7070/' $log.debug('Getting value for comp-pool root %s (fall back to %s)', process.env.COMP_POOL_ROOT, rootDef...
JavaScript
0
@@ -1575,28 +1575,19 @@ true%7D)%0A +%0A - %7D)%0A%0A @@ -1644,51 +1644,244 @@ -$timeout(jobLoop, 100, true, job)%0A %7D + $log.debug('Calling a new job')%0A $timeout(jobLoop, 100, true, job)%0A %7D%0A %7D).catch(function (err) %7B%0A $log.error('So...
dbf1145d2514682ca80fb721ebf9f50d701c3455
Update schemas
src/server/dbconfig/schema.js
src/server/dbconfig/schema.js
var mongoose = require('mongoose'); var userSchema = new mongoose.Schema({ username: String, password: String, restaurants: [{ name: String, visits: Number }], preferences: [String], locations: [String], addresses: [{ type: Number, ref: 'Address' }] }); var restaurantSchema = new mongo...
JavaScript
0.000001
@@ -236,38 +236,62 @@ s: %5B%7B%0A type: -Number +mongoose.Schema.Types.ObjectId ,%0A ref: 'Addr @@ -576,22 +576,46 @@ type: -Number +mongoose.Schema.Types.ObjectId ,%0A re @@ -652,63 +652,25 @@ ,%0A -lineOne: String,%0A lineTwo +address : +%5B String -,%0A lineThree: String +%5D %0A%7D);
cead0afbbe3e57f13b3b776efdb051e5c7b85491
fix rm arg parsing
node/lib/cmd/rm.js
node/lib/cmd/rm.js
/* * Copyright (c) 2018, Two Sigma Open Source * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of...
JavaScript
0.000004
@@ -3811,43 +3811,8 @@ args -.recursive, args.cached, args.force );%0A%7D
e6d74d537139c3896aa5a61921bdf4ce80e20c8c
Make it work by default
tasks/parallel-behat.js
tasks/parallel-behat.js
'use strict'; var glob = require('glob'), _ = require('underscore'), ParallelExec = require('./lib/ParallelExec'), BehatTask = require('./lib/BehatTask'), defaults = { src: './**/*.feature', bin: './bin/behat', cwd: './', config: './behat.yml', flags: '', ...
JavaScript
0.000039
@@ -610,16 +610,22 @@ 'behat') + %7C%7C %7B%7D , defaul @@ -1173,8 +1173,9 @@ untTask; +%0A
145962fd8a3f3da97e2e572494440f2eb1b2425f
Use `exec` instead of wp-cli, since WP doesn’t know about our custom command.
tasks/wp_theme_check.js
tasks/wp_theme_check.js
/* * grunt-wp-theme-check * https://github.com/ryelle/grunt-wp-theme-check * * Copyright (c) 2014 ryelle * Licensed under the MIT license. */ 'use strict'; var WP = require('wp-cli'), Table = require('cli-table'), _ = require('underscore'); module.exports = function(grunt) { function run_check( opti...
JavaScript
0
@@ -248,16 +248,58 @@ rscore') +,%0A exec = require('child_process').exec ;%0A%0Amodul @@ -376,190 +376,553 @@ -grunt.log.debug( 'Checking theme: ' + options.theme );%0A%0A grunt.event.once('wpThemeCheck', function( result, err )%7B%0A grunt.log.debug( 'Results: ' + JSON.stringify( result ) ); +var c...
a3c081f2cb4bde6ecaf04e966e747b1233968796
fix to treat all ids in a changeset create block as a placeholder
lib/xml_diff.js
lib/xml_diff.js
var parsexml = require('xml-parser') var xtend = require('xtend') var randombytes = require('randombytes') var has = require('has') var hex2dec = require('./hex2dec.js') module.exports = function (str) { var xml = parsexml(str) var ops = { create: [], modify: [], delete: [] } var ids = { way: {}, node: {}, relat...
JavaScript
0
@@ -570,26 +570,27 @@ && -Number(doc.id) %3C 0 +c.name === 'create' ) %7B%0A
567b751d5522e831cfe0853c8a7a90f3e51a3c58
Fix Artifact Page after ObservableData#start
src/app/UI/lib/managers/artifacts/client/components/Page.js
src/app/UI/lib/managers/artifacts/client/components/Page.js
import React from "react"; import { AppMenu } from "ui-components/app_menu"; import LightComponent from "ui-lib/light_component"; import { LoadIndicator as TALoadIndicator } from "ui-components/type_admin"; import ArtifactRepositories from "../observables/artifact_repositories"; import { States as ObservableDataSt...
JavaScript
0
@@ -670,24 +670,81 @@ idMount() %7B%0A + this.addDisposable(this.repositoryList.start());%0A this
c01379dd3129b237b5fba80df1638c1c78a23d34
Remove reference to cache manager from RelayEnvironment code comment
src/store/RelayEnvironment.js
src/store/RelayEnvironment.js
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0.000014
@@ -2520,80 +2520,8 @@ ed.%0A - * - A configurable cache manager for persisting data between sessions.%0A *%0A
75c32a2f025408681a43f226f281154f99d8d5ac
Fix a bug where the icons need to be clicked twice after reload
src/stores/RightPanelStore.js
src/stores/RightPanelStore.js
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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
@@ -3933,32 +3933,74 @@ e: targetPhase,%0A + showGroupPanel: true,%0A @@ -4305,32 +4305,73 @@ e: targetPhase,%0A + showRoomPanel: true,%0A
f86e9147cf6101cfd07858440ab7b31667ccf8d0
update stream: Fix stream name is not updated on editing.
src/streams/streamsActions.js
src/streams/streamsActions.js
/* @flow */ import type { GetState, Dispatch, Stream, InitStreamsAction } from '../types'; import { createStream, updateStream, getStreams, toggleMuteStream, togglePinStream } from '../api'; import { INIT_STREAMS } from '../actionConstants'; import { getAuth } from '../selectors'; export const initStreams = (streams: ...
JavaScript
0
@@ -997,24 +997,104 @@ ues.name) %7B%0A + // Stream names might contain unsafe characters so we must encode it first.%0A await up @@ -1134,15 +1134,34 @@ d, ' +new_ name', +JSON.stringify( newV @@ -1171,16 +1171,17 @@ es.name) +) ;%0A %7D%0A
9471b9aa7be9dc04b6e2c4d9684b2078dcf39312
Update class name for jsdoc
src/ScheduleAPI/ScheduleTypes.js
src/ScheduleAPI/ScheduleTypes.js
/** * Created by kgrube on 3/13/2017. */ /** * @private */ var Q = require('q'), inherits = require('util').inherits, ConnectWise = require('../ConnectWise.js'); /** * @typedef {object} ScheduleType * @property {number} id * @property {string} name - required * @property {string} identifier - required * @...
JavaScript
0
@@ -538,16 +538,17 @@ duleType +s (options @@ -640,16 +640,17 @@ duleType +s , Connec @@ -734,32 +734,33 @@ */%0AScheduleType +s .prototype.getSc @@ -940,32 +940,33 @@ */%0AScheduleType +s .prototype.creat @@ -1151,32 +1151,33 @@ */%0AScheduleType +s .prototype.getSc @@ -1354,32 +1354,33 @@ */%0ASchedule...
1fd94e643cd8760611aebc436378ba5d49b84a1c
Add ParticleSystem.perturb utility
src/systems/ParticleSystem.js
src/systems/ParticleSystem.js
lib.ParticleSystem = ParticleSystem; function ParticleSystem(particles, iterations) { var isCount = typeof particles === 'number'; var length = isCount ? particles * 3 : particles.length; var count = length / 3; var positions = isCount ? length : particles; this.positions = new Float32Array(positions); thi...
JavaScript
0
@@ -1635,16 +1635,314 @@ %7D%0A%7D;%0A%0A +ParticleSystem.prototype.perturb = function (scale) %7B%0A var positions = this.positions;%0A var positionsPrev = this.positionsPrev;%0A var dist;%0A%0A for (var i = 0, il = positions.length; i %3C il; i ++) %7B%0A dist = Math.random() * scale;%0A positions%5Bi%5D...
38852cc9482c2e5225c253a860caa17c1ea819c8
Support touch devices
player/slitherlink2/applet.js
player/slitherlink2/applet.js
function Applet(canvas, controller, board) { this.canvas = canvas; this.ctx = canvas.getContext("2d"); this.controller = controller; this.board = board; var self = this; if (canvas.addEventListener) { canvas.addEventListener("mousedown", function (event) { var x = event.clientX, y = event.clientY, ...
JavaScript
0
@@ -492,363 +492,1267 @@ er(%22 -mousemove%22, function (event) %7B%0D%0A%09%09%09var x = event.clientX, y = event.clientY, button = (event.button == 2);%0D%0A%09%09%09var rect = event.target.getBoundingClientRect();%0D%0A%09%09%09self.mouseMove(x - rect.left, y - rect.top, button);%0D%0A%09%09%7D);%0D%0A%09%09canvas....
0ea85ca5255be4021d6fca470219d8a7567c40e1
Fix rowData overrite bug
plugins/ng-grid-csv-export.js
plugins/ng-grid-csv-export.js
// Todo: // 1) Make the button prettier // 2) add a config option for IE users which takes a URL. That URL should accept a POST request with a // JSON encoded object in the payload and return a CSV. This is necessary because IE doesn't let you // download from a data-uri link // // Notes: This has not been ade...
JavaScript
0
@@ -3293,32 +3293,33 @@ csvData ++ = swapLastCommaF
dd9f16a3c6d219cb642b9e7e419b8eb45fb752b4
Update index.js
src/traces/indicator/index.js
src/traces/indicator/index.js
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = { moduleType: 'trace', name: 'indicator', basePlotModule: require('./base_plot'), ...
JavaScript
0.000002
@@ -635,17 +635,17 @@ ize +a single -a %60val
e02ab03f2c022d4915fcacbd70c40128f0074f31
fix full storage changes
src/ui/FullStoragesChanges.js
src/ui/FullStoragesChanges.js
'use strict' var DropdownPanel = require('./DropdownPanel') var yo = require('yo-yo') function FullStoragesChanges (_parent, _traceManager) { this.parent = _parent this.traceManager = _traceManager this.addresses = [] this.view this.traceLength this.basicPanel = new DropdownPanel('Full Storages Changes') ...
JavaScript
0.000001
@@ -1308,12 +1308,22 @@ ex, -null +this.parent.tx , fu
9509b14005683280a02a7bd7a394a5710d55bff0
Add support to words with uppercase letters
src/utils/ExtractWordsUtil.js
src/utils/ExtractWordsUtil.js
var addWord = function (words, word) { if (word.length > 0) { words.push(word); } }; var ExtractWordsUtil = { getAllWordsInContent: function (content) { var used = { // Always include html and body. html: true, body: true }; var word = ''; for (var i = 0; i < content.length...
JavaScript
0.000053
@@ -348,16 +348,30 @@ ntent%5Bi%5D +.toLowerCase() ;%0A%0A @@ -1059,16 +1059,30 @@ ector%5Bi%5D +.toLowerCase() ;%0A%0A
7302ad10418ba5a20442dbd6555e496dd77ba487
apply rotation and parent transform
src/tilemaps/staticlayer/StaticTilemapLayerWebGLRenderer.js
src/tilemaps/staticlayer/StaticTilemapLayerWebGLRenderer.js
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Renders this Game Object with the WebGL Renderer to the given Camera. * * The object will not render if any of its renderFlags are set...
JavaScript
0
@@ -1027,16 +1027,151 @@ Object.%0A + * @param %7BPhaser.GameObjects.Components.TransformMatrix%7D parentMatrix - This transform matrix is defined if the game object is nested%0A */%0Avar @@ -1260,16 +1260,30 @@ , camera +, parentMatrix )%0A%7B%0A @@ -1444,71 +1444,731 @@ -pipeline.modelIdentity( +var c...
1bdde269d73f3fe97499d0f3bf80e5e678e7b393
fix speech
public/js/index.controller.js
public/js/index.controller.js
//Speech recognition for search input field if (!('webkitSpeechRecognition' in window)) { // handling if the browser doesn´t support speech recognition function startSpeechRecognition (event) { speechImage.src = '/static/img/mic-slash.gif'; alert("Speech recognition is not enabled in your Browser! Please use ...
JavaScript
0.000262
@@ -720,20 +720,21 @@ rchText. -text +value = %22resu
5f5b3149674b48674b6c0a6b7ac5844df281734a
Test non-null uri passed to onOpenStart from cache
test/BranchSubscriber.test.js
test/BranchSubscriber.test.js
import { NativeModules } from 'react-native' const { RNBranch } = NativeModules import { BranchSubscriber } from 'react-native-branch' test('default initializes with no options', () => { const subscriber = new BranchSubscriber(null) expect(subscriber.options).toEqual({}) }) test('stores options passed to the cons...
JavaScript
0
@@ -2141,17 +2141,16 @@ %7D%0A%0A // -* Mock pr @@ -2184,16 +2184,16 @@ nResult%0A + RNBran @@ -2271,16 +2271,8 @@ lt)) -%0A // */ %0A%0A @@ -3342,16 +3342,16 @@ cleared%0A - expe @@ -3517,12 +3517,1289 @@ scribe()%0A%7D)%0A +%0Atest('passes a non-null uri to onOpenStart when available', () =%3E %7...
aa9368d04f5b64be57bada039014fc5aed55deed
Refactor removeSpecialCharacters tests
amaranth-chrome-ext/test/AmaranthUtil.test.js
amaranth-chrome-ext/test/AmaranthUtil.test.js
const AmaranthUtil = require('../src/AmaranthUtil'); test('removeSpecialCharacters: removes space from "hello there!"', () => { expect(AmaranthUtil.removeSpecialCharacters('hello there!', ' ')) .toBe('hellothere!'); }); test('removeSpecialCharacters: removes spaces from " hello there ! "', () => { ...
JavaScript
0
@@ -92,195 +92,31 @@ s sp -ace from %22hello there!%22', () =%3E %7B%0A expect(AmaranthUtil.removeSpecialCharacters('hello there!', ' '))%0A .toBe('hellothere!');%0A%7D);%0A%0Atest('removeSpecialCharacters: removes space +ecial character s from %22 he @@ -111,36 +111,29 @@ s from %22 - hello - +$#@ ...
ee5d8bc2469580a78430a3340fa6f19e05d81e35
Remove unused code from line graph view
app/common/views/visualisations/line-graph.js
app/common/views/visualisations/line-graph.js
define([ 'extensions/views/graph/graph', 'extensions/views/graph/linelabel' ], function (Graph, LineLabel) { var LineGraph = Graph.extend({ components: function () { var labelComponent, labelOptions, yAxisOptions; if (this.isOneHundredPercent()) { labelComponent = LineLabel; label...
JavaScript
0
@@ -38,46 +38,8 @@ aph' -,%0A 'extensions/views/graph/linelabel' %0A%5D,%0A @@ -57,19 +57,8 @@ raph -, LineLabel ) %7B%0A @@ -130,32 +130,16 @@ var - labelComponent, labelOp @@ -159,16 +159,17 @@ ptions;%0A +%0A if @@ -204,44 +204,8 @@ ) %7B%0A - labelComponent = LineLabel;%0A @@ -577...
9e73f55c5a231f8e59f943b13c859a5c73ae8d07
add test examples for component methods
app/components/navigation/tests/right.test.js
app/components/navigation/tests/right.test.js
import React from 'react'; import { mount } from 'enzyme'; import { Nav, NavItem } from 'react-bootstrap'; import NavigationRight from 'components/navigation/right'; import session from 'services/session'; describe('NavigationLeft', () => { describe('when user is signed in', () => { beforeEach(() => { spyO...
JavaScript
0
@@ -198,16 +198,190 @@ ession'; +%0Aimport TodoActions from 'actions/todo';%0Aimport SessionActions from 'actions/session';%0Aimport SigninActions from 'actions/signin';%0Aimport SignupActions from 'actions/signup'; %0A%0Adescri @@ -997,502 +997,1612 @@ %7D);%0A - %7D);%0A%0A describe('when user is not signed in',...
9af8b8472cbab4a7a389fe9e546ee48816fdff14
add support for .env files
app/react/src/server/config/webpack.config.js
app/react/src/server/config/webpack.config.js
import path from 'path'; import webpack from 'webpack'; import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'; import WatchMissingNodeModulesPlugin from './WatchMissingNodeModulesPlugin'; import { includePaths, excludePaths, nodeModulesPaths, loadEnv, nodePaths } from './utils'; import babelLoaderC...
JavaScript
0
@@ -49,16 +49,53 @@ bpack';%0A +import Dotenv from 'dotenv-webpack';%0A import C @@ -1113,24 +1113,44 @@ ssPlugin(),%0A + new Dotenv(),%0A %5D,%0A m
5801c3eba1c3599ca3817aa7454a795abcfa7efe
fix for dino layer
app/scripts/lizard/layers/custom/DinoLayer.js
app/scripts/lizard/layers/custom/DinoLayer.js
// Class for layers for Dinoloket (www.dinoloket.nl) // // Lizard.geo.Layers.Custom = {}; Lizard.geo.Layers.Custom.DinoLayer = Lizard.geo.Layers.WMSLayer.extend({ defaults: { display_name: '', visibility: false, opacity: 100, order: 0, //extra info and links description: null, metadata: n...
JavaScript
0
@@ -2951,12 +2951,13 @@ = $. -eval +parse JSON
24462680c528a8b0b5a0e488cd069532eb187c16
Allow usernames with colon during login
app/scripts/modules/session/models/session.js
app/scripts/modules/session/models/session.js
"use strict"; var _ = require('lodash'); var $ = require('jquery'); var CryptoJS = require('crypto-js'); var Backbone = require('backbone'); var ValidationMixins = require('../../../shared/mixins/models/validation_mixin'); var adminDispatcher = require('../../../dispatchers/admin-dispatcher'); var sessionConfigActio...
JavaScript
0
@@ -1660,16 +1660,23 @@ ringify( +%0A CryptoJS @@ -1691,20 +1691,40 @@ 8.parse( +encodeURIComponent( name +) + ':' +
af2f2639cfee462d6195939e93b3bb0f8211d000
fix wallaby runner
.wallaby.js
.wallaby.js
'use strict'; module.exports = function wallabyConfig() { return { files: [ 'lib/**/*.js' ], tests: [ { pattern: 'test/**/*.spec.js', instrument: true }, { pattern: 'test/**/suites/*.js', instrument: false } ], env: { type: 'node...
JavaScript
0.000002
@@ -307,16 +307,38 @@ type: + 'node',%0A runner: 'node'%0A
b7790d1c1c657cdc620c7b5132027c61d599351b
use boxa() method instead of box() for arrays
src/main/javascript/drone/fort.js
src/main/javascript/drone/fort.js
load(__folder + "drone.js"); // // constructs a medieval fort // Drone.extend('fort', function(side, height) { if (typeof side == "undefined") side = 18; if (typeof height == "undefined") height = 6; // make sure side is even if (side%2) side++; if (height < 4 || side < 10) ...
JavaScript
0.000006
@@ -899,24 +899,41 @@ dir+2)%254%5D);%0A + try%7B%0A this @@ -936,16 +936,17 @@ this.box +a (turret, @@ -977,16 +977,101 @@ turn();%0A + %7Dcatch(e)%7B%0A self.sendMessage(%22ERROR: %22 + e.toString());%0A %7D%0A %7D%0A @@ -1594,24 +1594,33 @@ .left().up() +%0A ...
5c92b75cf5d017af2b0d266cd7a342a9701f43af
include validations in order model test
db/models/order.test.js
db/models/order.test.js
'use strict' const db = require('APP/db'), { Order } = db, { expect } = require('chai'), Promise = require('bluebird') describe('The `Order` model', () => { /** * First we clear the database and recreate the tables before beginning a run */ before('Await database sync', () => db.didSync) /** * N...
JavaScript
0.000146
@@ -550,26 +550,21 @@ terEach( -function() +() =%3E %7B%0A r @@ -871,16 +871,55 @@ %0A %7D)%0A + %7D)%0A%0A describe('Validations', () =%3E %7B %0A it( @@ -939,26 +939,21 @@ atus%60', -function() +() =%3E %7B%0A @@ -1175,18 +1175,442 @@ )%0A %7D) +%0A%0A it('errors when status is not Pen...
511c61d2cbfef2a1df28d60739f10724c307b204
fix img
app/akademonai/ad.directives/ad.blasphemer.drv.js
app/akademonai/ad.directives/ad.blasphemer.drv.js
angular.module('SatanApp.directives').directive('blasphemer', function() { return { scope: {}, templateUrl: '/akademonai/ad.directives/ad.blasphemer.drv.html', controller: ['$scope', 'blasphemerSrv', function($scope, blasphemerSrv) { $scope.posts = []; $scope.form = {}; ...
JavaScript
0.000075
@@ -3706,50 +3706,8 @@ g%22,%0A - %22title699567984.png%22,%0A
d620dfd730bab581556751faaded27f2d015c9c6
add support for $ in addition to $j for jquery
app/assets/javascripts/rails_admin/application.js
app/assets/javascripts/rails_admin/application.js
if (typeof($j) === "undefined" && typeof(jQuery) !== "undefined") { var $j = jQuery.noConflict(); } $j.ajaxSetup({ timeout: 600000 //set request timeout to 10 minnutes }); $j(document).ready(function($){ $(".ra-button").not(".ui-button").button({}); if ($("#submit-buttons").length > 0 && $("#submit-buttons"...
JavaScript
0
@@ -93,16 +93,30 @@ lict();%0A + var $ = $j;%0A %7D%0A%0A$j.aj
7a4f3b4eb5e0faa2c1d164b55359c3f88c2f1114
fix item type category
app/components/offlinePageView/offlinePageView.js
app/components/offlinePageView/offlinePageView.js
'use strict'; var isInit = true, helpers = require('../../utils/widgets/helper'), navigationProperty = require('../../utils/widgets/navigation-property'), // additional requires viewModel = require('./offlinePageView-view-model'), modOfflinePage = require('../../lib/modOfflinePage/modOfflinePage.js'), ...
JavaScript
0.001266
@@ -1982,16 +1982,54 @@ m.item;%0A +%09//console.log(JSON.stringify(item));%0A %09if(item @@ -2041,16 +2041,21 @@ == 'cat +egory ') %7B%0A%09%09v
0b3546ac2d2975205a6b10381a3d8baa385a5635
Handle 1 registered user in RegisteredSummary
app/routes/events/components/RegisteredSummary.js
app/routes/events/components/RegisteredSummary.js
// @flow import styles from './Registrations.css'; import React from 'react'; import { Link } from 'react-router'; import Tooltip from 'app/components/Tooltip'; import { Flex } from 'app/components/Layout'; import type { EventRegistration } from 'app/models'; type RegistrationProps = { registration: EventRegistrati...
JavaScript
0
@@ -1604,18 +1604,22 @@ =%3E %7B%0A -if +switch (regist @@ -1636,18 +1636,26 @@ ngth - === 0 ) %7B%0A + case 0:%0A @@ -1676,116 +1676,99 @@ ;%0A -%7D%0A%0A // For more than 2 registrations we add a clickable %60more%60 link:%0A if (registrations.length %3E 2) %7B + case 1:%0A return %3CReg...