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
3bd807053868431d891ae033e6de8eca8ef5cb36
add validation for duplicate keys
src/mist/io/static/js/app/controllers/machine_tags.js
src/mist/io/static/js/app/controllers/machine_tags.js
define('app/controllers/machine_tags', ['ember'], /** * Machine Tags Controller * * @returns Class */ function () { return Ember.Object.extend({ /** * Properties */ formReady: null, newTags: null, mach...
JavaScript
0
@@ -577,32 +577,82 @@ this._clear();%0A + console.log(machine.tags.length);%0A @@ -2534,32 +2534,84 @@ s(function () %7B%0A + that._updateTags(tags);%0A @@ -3631,33 +3631,38 @@ teTags: function -( + (tags ) %7B%0A @@ -3669,78...
0a771d9e91684b3d4b99fa6d1f182ee1f0b97701
Update Brushes.js
src/Brushes.js
src/Brushes.js
export function selectBrush(brushName) { this.settings.brush = this.availableBrushes[brushName]; }; export function setBrushSize(brushSize) { this.settings.lineWidth = brushSize; }; export function pen() { let x, y; let mousePosition = this.settings.mousePosition; let lineWidth = this.settings.l...
JavaScript
0.000001
@@ -423,24 +423,25 @@ Width / +( velocity ;%0A%0A i @@ -432,16 +432,22 @@ velocity + * .5) ;%0A%0A i
4871165f408b3ea8f3a237f7c9222a50037d1ced
Update message-list.directive.js
app/components/message-list/message-list.directive.js
app/components/message-list/message-list.directive.js
export default class MessageList { constructor() { this.templateUrl = 'components/message-list/message-list.directive.html'; this.restrict = 'E'; this.scope = { messages: '=messages', header: '=header' }; this.controller = DirectiveController; ...
JavaScript
0.000001
@@ -389,97 +389,12 @@ %7D%0A -%0A -// Directive compile function%0A compile() %7B%0A%0A %7D%0A%0A // Directive link function %0A @@ -548,8 +548,9 @@ scope'%5D; +%0A
45d332517f5e5bb07acf295bcfa32e3283094018
Fix RenderInputLength required value prop warning.
app/scripts/components/FormUtils/RenderInputLength.js
app/scripts/components/FormUtils/RenderInputLength.js
import React, { PropTypes } from 'react' import classnames from 'classnames' const RenderInputLength = ({ value, limit }) => { if (value && value.length > 0) { return ( <div className={classnames('right h3', (value.length > limit - 10 ? 'red' : null))}>{limit - value.length}</div> ) } return <nosc...
JavaScript
0
@@ -367,21 +367,21 @@ s = %7B%0A -value +limit : PropTy @@ -388,14 +388,14 @@ pes. -string +number .isR @@ -405,21 +405,21 @@ ired,%0A -limit +value : PropTy @@ -422,33 +422,22 @@ opTypes. -number.isRequired +string %0A%7D%0A%0Aexpo
950886aeeaa0a16bed46585146da2fa776a1fc74
remove jshint
app/scripts/directives/grid-contents/grid-contents.js
app/scripts/directives/grid-contents/grid-contents.js
(function () { 'use strict'; angular .module('moi.directives') .directive('gridContents', gridContents); function gridContents() { var directive = { restrict: 'EA', templateUrl: 'templates/directives/grid-contents.html', scope: { contents: '=' }, controller: gri...
JavaScript
0.9988
@@ -1816,44 +1816,8 @@ ()%7B%0A - /* jshint camelcase: false */%0A @@ -1880,19 +1880,16 @@ unction( -res )%7B%0A
c7392b2b4add568ea9128117bd22d3e8de7dd63a
Update geo.js
src/GPS/geo.js
src/GPS/geo.js
get_geo_position(); function on_success(position){ document.getElementById("latitude").innerHTML = position.coords.latitude; document.getElementById("longitude").innerHTML = " longitude= " + position.coords.longitude; document.getElementById("acc").innerHTML = "acc="+position.coords.accuracy; document.getElementByI...
JavaScript
0.000001
@@ -92,16 +92,32 @@ erHTML = + %22Latitude = %22 + positio @@ -186,18 +186,17 @@ HTML = %22 - l +L ongitude @@ -273,20 +273,27 @@ HTML = %22 -acc= +Accuracy = %22+positi @@ -362,17 +362,17 @@ HTML = %22 -a +A ltitude @@ -406,323 +406,8 @@ e;%0A%09 -document.getElementById(%22text%22).innerHTML = %22latitude...
18c95be3a34c7a0b7ca1490f2ae41673e312c993
Throw error if trying to get non existent length
static/script/widgets/carousel/strips/cullingstrip.js
static/script/widgets/carousel/strips/cullingstrip.js
require.def('antie/widgets/carousel/strips/cullingstrip', [ 'antie/widgets/carousel/strips/widgetstrip', 'antie/widgets/carousel/strips/utility/widgetcontext', 'antie/widgets/carousel/strips/utility/states' ], function (WidgetStrip, WidgetContext, STATES) { 'use strict'; ...
JavaScript
0.000002
@@ -3829,81 +3829,31 @@ th -row new Error(%22You must set widget lengths before aligning culling strip%22 +is._throwNoLengthError( );%0A @@ -3926,32 +3926,32 @@ %7D%0A - @@ -3978,32 +3978,300 @@ %7D,%0A%0A + lengthOfWidgetAtIndex: function (index) %7B%0A ...
f784271ed11c1ffbe058bf40a194969ee7bd9b8c
Use "colgroup" to set column widths
src/Service.js
src/Service.js
/* Copyright (c) 2016 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
JavaScript
0
@@ -1814,32 +1814,191 @@ ered'%3E%0A %3C +colgroup%3E%0A %3Ccol style=%7B%7Bwidth: '20%25'%7D%7D/%3E%0A %3Ccol style=%7B%7Bwidth: '20%25'%7D%7D/%3E%0A %3Ccol style=%7B%7Bwidth: '60%25'%7D%7D/%3E%0A %3C/colgroup%3E%0A %3C thead%3E%0A @@ -2018,28 +2018,16 @@ ...
3b76c37086bdeae6b771d635b85229322e823ec6
Allow environment configuration
src/Storage.js
src/Storage.js
/** * @module Storage * @description A Facade for File Storage * * @author Mike Carey <michael.r.carey@att.net> */ 'use strict' const _ = require('underscore') const debug = require('debug')('fileprovider:Storage') const FileProvider = require('./FileProvider') const InvalidProviderError = require('./errors/In...
JavaScript
0.000001
@@ -1061,16 +1061,127 @@ e = this +%0A%0A if (process.env.STORAGE_PROVDER) %7B%0A this.initialize(process.env.STORAGE_PROVDER)%0A %7D %0A %7D%0A%0A
840629c3e1b2444ec03ae68722ffc4f5dc48bf80
Update webpack bundling script
assets/gulp/tasks/bundler/webpack/build-bundle-app.js
assets/gulp/tasks/bundler/webpack/build-bundle-app.js
/** * Gulp tasks for wrapping Webpack modules. */ const display = require("./util/display"); const gulp = require("gulp"); const path = require("path"); const webpack = require("webpack"); const webpackStream = require("webpack-stream"); const uc = require("./util/unite-config"); const asyncUtil = require("./util/asy...
JavaScript
0.000001
@@ -1121,18 +1121,8 @@ %22, %60 -$%7Bkey%7D -%3E $%7Bve
db806b2c4887ec61d511d61b7056fc3459f81101
Remove ssl plugin if Kong > 0.9.x
assets/js/app/apis/add-api-plugin-modal-controller.js
assets/js/app/apis/add-api-plugin-modal-controller.js
/** * This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function() { 'use strict'; angular.module('frontend.apis') .controller('AddApiPluginModalController', [ ...
JavaScript
0
@@ -1125,16 +1125,452 @@ = groups +%0A%0A // Remove ssl plugin if Kong %3E 0.9.x%0A if($rootScope.Gateway.version.indexOf('0.9.') %3C 0)%7B%0A $scope.pluginGroups.forEach(function(group)%7B%0A Object.keys(group.plugins).forEach(fun...
f8f564bf7b379c1ec794df84197636c331e1f1de
fix constant for facebook appid
src/app/app.js
src/app/app.js
angular.module('alta-cancha-app', [ 'ionic', 'ngCordova', 'ngResource', 'ngStorage', //'ezfb', 'openfb', 'templates-app', 'templates-common', 'sidebarModule', 'clubsModule', 'userModule' ]) .run(function ($ionicPlatform,...
JavaScript
0.000081
@@ -649,16 +649,18 @@ +// OpenFB.i @@ -782,34 +782,32 @@ El celu%0A -// OpenFB.init('163 @@ -806,26 +806,17 @@ nit( -'1632413586984671' +FB_APP_ID );%0A%0A
d911c51667af44d7fc8832633a90e9e2fde45e54
Use crypto module to limit file name length with sha1
src/capture.js
src/capture.js
"use strict"; var _ = require('lodash'), fs = require('fs-extra'), logger = require('winston'), path = require('path'), squirrel = require('squirrel'), utils = require('./utils'), SCRIPT_FILE = 'scripts/screenshot.js', DEF_ENGINE = 'phantomjs', DEF_COMMAND = 'phantomjs', DEF_FORMA...
JavaScript
0
@@ -193,16 +193,88 @@ utils'), +%0A crypto = require('crypto'),%0A shasum = crypto.createHash('sha1'), %0A%0A SC @@ -469,19 +469,92 @@ conf -, base64) %7B +) %7B%0A shasum.update(JSON.stringify(options));%0A var sha1 = shasum.digest('hex'); %0A @@ -634,22 +634,20 @@ h.sep + -base64 +sha1 + '.'...
380bab175eaa8f0b0fccba22ceaa69d853763865
Fix test for matching kwarg or flag
src/collect.js
src/collect.js
'use strict'; (function () { /* my-program sub-command --flag --kwarg='foo' --kwarg2 "bar" 'baz' Automatically removes quotes & splits by spaces (exclusive) and commas (inclusive) command flag kwarg \w value kwarg value arg args: [ 'sub-command' '--flag', '--kwarg=foo', '--kwar...
JavaScript
0
@@ -2355,16 +2355,44 @@ lse if ( +matchingFlagOrKWArg.name in tree%5Bmat @@ -2424,34 +2424,8 @@ 's'%5D -%5BmatchingFlagOrKWArg.name%5D ) %7B%0A
72a000d5debe2a1cb0f2f2cc18d55bb7c15d66b8
Add fonts path to paths module
build/paths.js
build/paths.js
const fs = require('fs-extra'); const buildPath = __dirname; const projectPath = buildPath.split('/').slice(0, -1).join('/'); const packageJsonPath = projectPath + '/package.json'; const weeJsonPath = projectPath + '/wee.json'; const config = require(weeJsonPath); const sourcePath = `${projectPath}/${config.paths.sourc...
JavaScript
0.000001
@@ -745,16 +745,47 @@ mages%60,%0A +%09fonts: %60$%7BsourcePath%7D/fonts%60,%0A %09output:
168cc99e38fe5c44d12d0255491237f3f9321e5a
Remove debug print statement
src/command.js
src/command.js
/* global jasmineImporter */ const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; const Mainloop = imports.mainloop; const System = imports.system; const Options = jasmineImporter.options; const Timer = jasmineImporter.timer; // Make it legal to specify "some_option": "single_value" in the config file as // wel...
JavaScript
0.000006
@@ -2928,37 +2928,8 @@ th;%0A - printerr(junitPath);%0A
e5ab42dd466b5374162c9ac7a5ae1ba2893e2304
Add shouldResubscribe to withReactiveData
src/compose.js
src/compose.js
import { compose, composeWithTracker } from 'react-komposer' import { inject } from '@mindhive/di' const Empty = () => null export const withAsync = (asyncFunc, shouldResubscribe) => compose( inject((appContext, ownProps, onData) => { const pushProps = (props = {}) => onData(null, props) as...
JavaScript
0.000001
@@ -120,16 +120,190 @@ %3E null%0A%0A +/*%0A asyncFunc: (appContext, pushProps, ownProps)%0A%0A Call pushProps with the props to push to the child component.%0A You must call pushProps when asyncFunc is first called.%0A */%0A export c @@ -597,34 +597,28 @@ /*%0A -Inside meteorDataUsingFunc +As per withAsync but c...
f4fe5ee594436dc8abd4c36781f1bbd01fd8ece3
migrate phet.chipper.brand to us phet.phetio to check for phetioEnabled, https://github.com/phetsims/phet-io/issues/1106
js/SimLauncher.js
js/SimLauncher.js
// Copyright 2013-2015, University of Colorado Boulder /** * Launches a PhET Simulation, after preloading the specified images. * * @author Sam Reid (PhET Interactive Simulations) */ define( function( require ) { 'use strict'; // modules var checkNamespaces = require( 'JOIST/checkNamespaces' ); var joist =...
JavaScript
0
@@ -2117,24 +2117,25 @@ %7D%0A +%0A if ( phe @@ -2130,72 +2130,84 @@ -if ( phet.phetio && phet. +https://github.com/phetsims/ phet +- io -.queryParameters &&%0A +/issues/1106 if ( phet.phetio && ! phet @@ -2251,45 +2251,131 @@ one -%7C%7C phet.chipper.brand !== 'phet-io'...
19afbad7014cef7f80a29766b4c900d20ad5fef7
remove softlanding div
js/application.js
js/application.js
$(document).ready(function(){ hardLanding(); submitSearch() }); var hardLanding = function(){ $('a').on('click', function(event){ event.preventDefault(); $('a').remove(); $(".search-product-form").css("display", "block"); }); }; var submitSearch = function(){ $("#product-search").on('submit', f...
JavaScript
0.000001
@@ -233,16 +233,476 @@ block%22); +%0A%0A var request = $.ajax(%7B%0A url:%22http://localhost:3000/products/newest_products%22,%0A crossDomain: true,%0A type:%22GET%22%0A %7D);%0A%0A request.done(function(data)%7B%0A var products = data%5B%22products%22%5D%0A%0A for(i = 0; i %3C products.lengt...
e3ae8ff785fb71944158e66fdca7d706f4e98fdc
Add Vendorful
js/companyData.js
js/companyData.js
var companyData = [ { "name": "Oracle - Cloud Infrastructure", "url":"https://www.oracle.com/cloud/", "location": "local" }, { "name": "Seikowave", "url":"https://www.seikowave.com/", "location": "local" }, { "name": "DigitalOcean, Inc.", "url":"https://www.digitalocean.com/", ...
JavaScript
0
@@ -2896,10 +2896,105 @@ l%22%0A %7D,%0A + %7B%0A %22name%22: %22Vendorful%22,%0A %22url%22: %22https://vendorful.com/%22,%0A %22location%22: %22remote%22%0A %7D%0A %5D%0A
8a0cadd1a870c8b280f4bd310661f5f69b6af751
update copyright dates from daily grunt work
js/compareAPIs.js
js/compareAPIs.js
// Copyright 2015-2020, University of Colorado Boulder /** * Function to compare an api against a reference API. * TODO: documentation, https://github.com/phetsims/phet-io/issues/1648 * * @author Sam Reid (PhET Interactive Simulations) * @author Michael Kauzmann (PhET Interactive Simulations) * @author Chris Klu...
JavaScript
0
@@ -10,13 +10,8 @@ ght -2015- 2020
0987bbd0460a67b9fb3b68aea5a97fb61003993c
Format storage.js
js/etc/storage.js
js/etc/storage.js
'use strict'; localforage.config({name: 'Cryptodog'}); // Functions for interfacing with localforage Cryptodog.storage = { setItem: function(key, value){ localforage.setItem(key, value, function(err, value){ if (err){ console.error(err); } else { log(...
JavaScript
0.000001
@@ -27,16 +27,17 @@ config(%7B + name: 'C @@ -45,16 +45,17 @@ yptodog' + %7D);%0A%0A// @@ -144,32 +144,33 @@ tion(key, value) + %7B%0A localf @@ -207,32 +207,33 @@ tion(err, value) + %7B%0A if @@ -230,32 +230,33 @@ if (err) + %7B%0A @@ -395,24 +395,29 @@ %7D);%0...
48b35b4af9b38658fa72c5f3c7426308d2d1845d
Fix user search on livechat user management page
packages/rocketchat-livechat/client/views/app/livechatUsers.js
packages/rocketchat-livechat/client/views/app/livechatUsers.js
var ManagerUsers; Meteor.startup(function() { ManagerUsers = new Mongo.Collection('managerUsers'); }); Template.livechatUsers.helpers({ managers() { return ManagerUsers.find({}, { sort: { name: 1 } }); }, agents() { return AgentUsers.find({}, { sort: { name: 1 } }); }, emailAddress() { if (this.emails && ...
JavaScript
0.00002
@@ -895,32 +895,28 @@ %09%09%09return %7B -username +term : match %7D;%0A%09 @@ -1479,24 +1479,20 @@ eturn %7B -username +term : match
a3e09552e6ef210c689ab76e38e4e7b47f89e0bb
Swap to XMLHttpRequest
src/javascript/loadsvg.js
src/javascript/loadsvg.js
let mapholder = document.getElementById('map') fetch('something.github.io/NRPG-Map/dist/gfx/map.svg') .then( response => response.text() ) .then( text => { mapholder.innerHTML = text } ) .catch( err => { mapholder.innerHTML = "An error has been encountered, or you are experiencing connectivity issues." t...
JavaScript
0.999238
@@ -44,169 +44,152 @@ p')%0A -%0Afetch('something.github.io/NRPG-Map/dist/gfx/map.svg')%0A .then( response =%3E response.text() )%0A .then( text =%3E %7B mapholder.innerHTML = text %7D )%0A . +let oReq = new XMLHttpRequest()%0A%0AoReq.addEventListener('load', res =%3E %7B%0A try %7B%0A mapholder.innerHTML = res...
7367796a31c74522636091dd87545414c2e688a5
Use of intents to render the card
example/cards/survey/card.js
example/cards/survey/card.js
Conductor.require('/example/libs/jquery-1.9.1.js'); Conductor.require('/example/libs/handlebars-1.0.0-rc.3.js'); var defaultTemplate = '{{vote}}<div><form><input type="radio" name="survey" value="A">A</br><input type="radio" name="survey" value="B">B</br><input id="vote" type="button" value="Vote"></div>'; var voteRes...
JavaScript
0
@@ -130,24 +130,16 @@ late = ' -%7B%7Bvote%7D%7D %3Cdiv%3E%3Cfo @@ -145,58 +145,24 @@ orm%3E -%3Cinput type=%22radio%22 name=%22survey%22 value=%22A%22%3EA%3C/br%3E +%7B%7B#each grades%7D%7D %3Cinp @@ -202,17 +202,40 @@ ue=%22 -B%22%3EB%3C/br%3E +%7B%7Bthis%7D%7D%22%3E%7B%7Bthis%7D%7D%3C/br%3E%7B%7B/each%7D%7D %3...
95d6c5ab8a00f72a9a8b5e4259357f982299151c
add block styling for ng-form
src/javascripts/module.js
src/javascripts/module.js
angular.module('rs.popover', []).run(function () { 'use strict'; var styleContent, styleTag; styleContent = document.createTextNode('.rs-popover-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0 } \ .rs-popover-loading, .rs-popover-error { width: 200px; height: 140px } \ .rs-po...
JavaScript
0
@@ -222,24 +222,70 @@ city: 0 %7D %5C%0A + .rs-popover-content %7B display: block; %7D %5C%0A .rs-popo
9c0e060acc955c1f326f7b9fb3a931cee1795499
Fix Overlays example
example/examples/Overlays.js
example/examples/Overlays.js
var React = require('react-native'); var { StyleSheet, PropTypes, View, Text, Dimensions, TouchableOpacity, Image, } = React; var MapView = require('react-native-maps'); var { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE =...
JavaScript
0
@@ -1934,32 +1934,33 @@ a(200, 0, 0, 0.5 +) %22%0A st @@ -1976,32 +1976,33 @@ =%22rgba(0,0,0,0.5 +) %22%0A /%3E%0A @@ -2103,16 +2103,17 @@ , 0, 0.5 +) %22%0A @@ -2141,24 +2141,25 @@ ba(0,0,0,0.5 +) %22%0A @@ -2252,16 +2252,16 @@ lyline%7D%0A - @@ -2293,16 +2293,17...
3346efd7ae174dc77f6fe54d126cf82d30ea720b
add tapBackgroundToDismiss: true to LightBox
example/src/screens/Types.js
example/src/screens/Types.js
import React from 'react'; import {StyleSheet, View, Text, ScrollView, TouchableHighlight} from 'react-native'; import Row from '../components/Row'; class Types extends React.Component { toggleDrawer = () => { this.props.navigator.toggleDrawer({ side: 'left', animated: true }); }; pushScree...
JavaScript
0.000869
@@ -1248,16 +1248,53 @@ 0.7)',%0A + tapBackgroundToDismiss: true%0A %7D%0A
fa47c8120c975ab2276a9dfefae1beeb19dfa73c
use fully-fledged source-maps in dev
config/webpack.client.dev.js
config/webpack.client.dev.js
const webpack = require('webpack'); const defaults = require('./webpack.defaults'); const config = Object.assign({}, defaults, { devtool: 'cheap-module-source-map', module: Object.assign({}, defaults.module, { loaders: defaults.module.loaders.map(loader => { if (loader.name === 'css') { return Ob...
JavaScript
0
@@ -139,31 +139,14 @@ l: ' -cheap-module- source --map ',%0A
b5b736a172eafae5f0767fd9cec4eff0b74062cb
version should start with 1
examples/1/service-worker.js
examples/1/service-worker.js
/** * A service worker must be directly on the scope. * The service worker will only catch requests from clients under the service worker's scope. * The max scope for a service worker is the location of the worker. */ // Adjust this version and watch the effect it has on the workers when you refresh, then // close...
JavaScript
0.000001
@@ -351,9 +351,9 @@ = 'v -2 +1 -lif
0835effc3d3dd066dff5f69de7acbae7e32133ca
Add the defineKeymap method (set keys in batch)
src/js/KeyboardHandler.js
src/js/KeyboardHandler.js
/** * Keyboard Handler * @constructor * @param {string} svgIdentifier - the dom id of the keyboard layout. */ var KeyboardHandler = function() { } /** * Last event from the keyboard */ KeyboardHandler.prototype.ev = undefined; /** * Map of keys assigned to the keyboard */ KeyboardHandler.prototype.keyList = ...
JavaScript
0
@@ -48,45 +48,53 @@ am %7B -string%7D svgIdentifier - the dom id of +KeymapHandler%7D keymap - the mapping to use by the @@ -106,16 +106,8 @@ oard - layout. %0A */ @@ -138,20 +138,56 @@ unction( -)%0A%7B%0A +keymap)%0A%7B%0A this.defineKeymap(keymap); %0A%7D%0A%0A/**%0A @@ -511,24 +511,339 @@ undefined;%0A%0...
43b940f49ab862220e5513bac30b9c237544d84d
fix bad test
frameworks/foundation/tests/debug/control_test_pane/ui.js
frameworks/foundation/tests/debug/control_test_pane/ui.js
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors. // portions copyright @2009 Apple, Inc. // License: Licened under MIT license (see license.js) // =======...
JavaScript
0.003293
@@ -2531,33 +2531,32 @@ ) ;%0A %0A ok( -! pane.get('isVisi @@ -2577,35 +2577,37 @@ l test pane +still should -NOT be visible a
eb5e9499b528226ae9caf137619e70d90ed928d1
fix the 'Document Table' directive controller
public/app/directives/controllers/rgiDocumentTableCtrl.js
public/app/directives/controllers/rgiDocumentTableCtrl.js
'use strict'; angular.module('app') .controller('rgiDocumentTableCtrl', function ( _, $scope, $rootScope, rgiDialogFactory, rgiAssessmentSrvc, rgiDocumentSrvc, rgiHttpResponseProcessorSrvc, rgiIdentitySrvc, rgiNotifier ) { var limi...
JavaScript
0.000109
@@ -248,33 +248,8 @@ vc,%0A - rgiIdentitySrvc,%0A @@ -288,61 +288,20 @@ var -limit = 100,%0A currentPage = 0,%0A +currentPage, tot @@ -311,74 +311,24 @@ ages +, limit = +10 0;%0A%0A - $scope.current_user = rgiIdentitySrvc.currentUser;%0A @@ -352,17 +352,16 @@ ...
acc0dc9ba58c5085a157fb1a000362185e00fbba
update monaco editor options (#652)
services/editor/src/components/JPadFullEditor/JPadTextEditor/JPadTextEditor.js
services/editor/src/components/JPadFullEditor/JPadTextEditor/JPadTextEditor.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as R from 'ramda'; import MonacoEditor from 'react-monaco-editor'; import { AutoSizer } from 'react-virtualized'; import './JPadTextEditor.css'; const requireConfig = { url: 'https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.1...
JavaScript
0
@@ -407,16 +407,165 @@ %7D,%0A%7D;%0A%0A +const monacoOptions = %7B%0A autoIndent: true,%0A automaticLayout: true,%0A formatOnPaste: true,%0A formatOnType: true,%0A scrollBeyondLastLine: false,%0A%7D;%0A%0A class JP @@ -1773,43 +1773,8 @@ tor%0A - height=%7Bheight - 20%7D%0A @@ -1864,35 +186...
24f51e784d1f14115baa436a718806f0571b339e
Add license comment to riotcontrol.js
riotcontrol.js
riotcontrol.js
var RiotControl = { _stores: [], addStore: function(store) { this._stores.push(store); }, reset: function() { this._stores = []; } }; ['on','one','off','trigger'].forEach(function(api){ RiotControl[api] = function() { var args = [].slice.call(arguments); this._stores.forEach(function(el){ ...
JavaScript
0.001855
@@ -1,12 +1,51 @@ +/* RiotControl v0.0.3, @license MIT */%0A var RiotCont
5bfc5294daefe40131cb4603530ba1410610e973
Fix getTime test
src/botPage/bot/__tests__/block-tests/tools-test/Time.js
src/botPage/bot/__tests__/block-tests/tools-test/Time.js
import { expect } from 'chai' import { run } from '../../tools' jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000 * 2 describe('Time in tools', () => { let result beforeAll(done => { run(` (function() { var result = {}; result.time1 = Bot.getTime(); sleep(2) result.time2 = Bot.ge...
JavaScript
0.000004
@@ -526,15 +526,14 @@ e1). -equal(2 +most(3 )%0A
1201bba3ed7f74f611be19931240418311f4dec2
Add TODO re angular-socket-io to StartController
public/modules/core/tests/start.client.controller.test.js
public/modules/core/tests/start.client.controller.test.js
'use strict'; (function() { describe('StartController', function() { //Initialize global variables var mockScope, $controller, mockSocketService, $timeout, $httpBackend; // Load the main application module beforeEach(module(ApplicationConfiguration.applicationModuleName)); ...
JavaScript
0.000001
@@ -8,16 +8,131 @@ rict';%0A%0A +// TODO: Update tests that hit socket to use mock socket (see https://github.com/nullivex/angular-socket.io-mock)%0A%0A (functio
c3208280cdc7b1585379d20ec840e3e3f96624b3
We don't need to destructure this options object
components/tooltip/index.js
components/tooltip/index.js
import tooltipFactory from './Tooltip'; import TooltipLabel from './TooltipLabel'; const tooltipFactoryWithOptions = options => tooltipFactory({ ...options }); export default tooltipFactory(); export { tooltipFactory as Tooltip, TooltipLabel, tooltipFactoryWithOptions as tooltipFactory };
JavaScript
0.999997
@@ -141,22 +141,15 @@ ory( -%7B ... options - %7D );%0A%0A
0eb8cca3e8cc2ce1998afbc153c9a335b3214348
Update templates
internals/scripts/clean.js
internals/scripts/clean.js
/* eslint-disable */ require('shelljs/global'); /** * Adds mark check symbol */ function addCheckMark(callback) { process.stdout.write(' ✓'); callback(); } if (!which('git')) { echo('Sorry, this script requires git'); exit(1); } if (!test('-e', 'internals/templates')) { echo('The example is deleted alrea...
JavaScript
0
@@ -799,31 +799,31 @@ js', 'app/co -mponent +ntainer s/HomePage/i
a9ea9777a325bd9ae0bc8e625f23bd5c1c607c4d
fix copyright
quickapi/static/js/jquery/quickapi/2.0/jquery.quickapi.js
quickapi/static/js/jquery/quickapi/2.0/jquery.quickapi.js
/** * jQuery QuickAPI plugin 2.0 * * @author Grigory Kramaranko, 2014 * @license GNU General Public License 3 <http://www.gnu.org/licenses/> * */ (function ($) { /* Общая функция для работы с django-quickapi * * Использование: * /все параметры необязательны и приведены здесь по-умолчанию/ ...
JavaScript
0.000318
@@ -51,16 +51,17 @@ igor +i y Kramar anko @@ -56,17 +56,17 @@ y Kramar -a +e nko, 201
7a3a1eec68cfc9349cb590c213a96b30dedb4deb
Fix for canvas images in getBasicConstructor (toString)
js/nodes/Image.js
js/nodes/Image.js
// Copyright 2002-2012, University of Colorado /** * Images * * TODO: setImage / getImage and the whole toolchain that uses that * TODO: allow multiple DOM instances (create new HTMLImageElement elements) * TODO: SVG support * * @author Jonathan Olson <olsonsjc@gmail.com> */ define( function( require ) { "u...
JavaScript
0
@@ -7212,16 +7212,36 @@ e( %5C'' + + ( this._image.src ? this._i @@ -7272,16 +7272,28 @@ '%5C%5C%5C'' ) + : 'other' ) + '%5C',
fa154d45de8273af730eff691203758842147a52
add refactor comment
packages/create-portal-app/helpers/copy.js
packages/create-portal-app/helpers/copy.js
const path = require("path"); const fs = require('fs'); const spawn = require('cross-spawn'); module.exports = function copy(root,destination){ const dest_path = [process.cwd(), destination].join(path.sep) if(fs.existsSync(dest_path)){ if(fs.readdirSync(dest_path).length > 0) return Promise.reject(`directory ...
JavaScript
0.000007
@@ -203,16 +203,115 @@ th.sep)%0A + //TODO Move this method to validate in another function to throw a error and prompt another name%0A if(fs.
ed4ffc62bf079ea8de6161fb7912d51937c7ad55
set landscape orientation method
js/orientation.js
js/orientation.js
//Manage the orientation jviz.modules.karyoviewer.prototype.orientation = function(value) { //Check the orientation value if(typeof value !== 'string'){ return this._orientation.actual; } //convert to lower case value = value.toLowerCase(); //Save the orientation this._orientation.actual = (this._orientat...
JavaScript
0.000012
@@ -643,24 +643,189 @@ scape';%0A%7D;%0A%0A +//Set landscape orientation%0Ajviz.modules.karyoviewer.prototype.setLandscape = function()%0A%7B%0A //Set landscape orientation%0A return this.orientation('landscape');%0A%7D;%0A%0A //Check if o
85348acfd623b2cb2818417445c211a95bde2f41
Check for undefined value and return.
views/field/text_field.js
views/field/text_field.js
// ======================================================================== // SproutCore // copyright 2006-2008 Sprout Systems, Inc. // ======================================================================== require('views/field/field') ; require('mixins/editable') ; /** @class A text field is an input eleme...
JavaScript
0.997014
@@ -3784,16 +3784,38 @@ == value + %7C%7C value == undefined ) return
f6772dbfb618adb49adc885732820ea66a58561a
Fix kitchensink example.
examples/docs/kitchensink.js
examples/docs/kitchensink.js
export default ` <div data-title>Test with all nodes 😃 🇳🇿</div> <p>A test Stencila document with at least one (well, that&apos;s the plan) of each node type (in alphabetical order). See additional node specific test documents in sibling folders e.g. <a href="/file://tests/document/nodes/image/index.html">image</a>.<...
JavaScript
0
@@ -1058,16 +1058,35 @@ height)%22 + data-language=%22js%22 %3E%0A%3Cpre d
aa0f1defe00340bc045eeeea164881205d43c1bc
Update jQDateRangeSliderHandle.js
jQDateRangeSliderHandle.js
jQDateRangeSliderHandle.js
/** * jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2012 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function($, undefined){ "use strict"; $.widget("ui.dateRangeSliderHandle", $.ui.rangeSliderHandle, { _steps: false, _boundsValues...
JavaScript
0.000002
@@ -1371,16 +1371,26 @@ unds.min +.valueOf() ),%0A%09%09%09%09m @@ -1430,16 +1430,26 @@ unds.max +.valueOf() ),%0A%09%09%09%09s @@ -4784,8 +4784,9 @@ Query)); +%0A
24a59a680449c802df311e74ab652157a2677f78
fix ;
routes/data.js
routes/data.js
var express = require('express'); var router = express.Router(); var ad = require('../config/ad.json'); var ldapClient = require('../lib/ldap-client'); var request = require('request'); var fs = require('fs'); var moment = require('moment'); var debug = require('debug')('dataU'); var dataconfig = require('../config/dat...
JavaScript
0.000001
@@ -2458,16 +2458,17 @@ %7D) +; %0A %7D%0A
30ce724f0bd72758758a6fee6db6801d74bef1ae
convert message logic
packages/deepspace-facebook/api/scraper.js
packages/deepspace-facebook/api/scraper.js
Scraper.Facebook = function(){ var APIurl = 'https://connect.facebook.net/en_US/all.js'; var appId = Scraper.isLocal ? 1548780815344990 : 1424128567810216; var scope = 'read_friendlist'; //get actions var actions = DS._FB_ACTIONS; DS._FB_ACTIONS = null; //start proces this.init = func...
JavaScript
0.99992
@@ -3010,24 +3010,274 @@ r message;%0A%0A + //create time%0A var time = new DS.classes.Time();%0A time.setTTL(post.created_time);%0A%0A //create%0A message = new DS.classes.Message(%7B%0A 'time': time,%0A 'data': this.getMessageData(post)%0A %7D);%0A%0A ...
0b349aed27a22d824da7f5ae25a39b038d0552a5
remove blog routes
routes/home.js
routes/home.js
/* * Routes for rendering home index page */ var Fashion = require('../models/fashion.js'); var Category = require('../models/category.js'); module.exports = { index : function(req, res){ Fashion.find({}, function(err, fashion){ if(err) res.send(err); res.render('pages/index',{ fashion...
JavaScript
0
@@ -424,154 +424,8 @@ %7D,%0A%0A - blog : function(req, res)%7B%0A res.render('pages/blog')%0A %7D,%0A%0A blog_single : function(req, res)%7B%0A res.render('pages/blog_single')%0A %7D,%0A%0A ca
49ef83e675763e6869d4017ce9fab91dc87166d2
fix refetcherror in interestgroup
app/routes/interestgroups/InterestGroupDetailRoute.js
app/routes/interestgroups/InterestGroupDetailRoute.js
import { compose } from 'redux'; import { connect } from 'react-redux'; import prepare from 'app/utils/prepare'; import { fetchInterestGroup, joinInterestGroup, leaveInterestGroup, } from 'app/actions/InterestGroupActions'; import InterestGroupDetail from './components/InterestGroupDetail'; import { selectMembers...
JavaScript
0.000001
@@ -958,69 +958,122 @@ are( -(%7B match: %7B params: %7B interestGroupId %7D %7D %7D, dispatch) =%3E%0A +%0A (%0A %7B%0A match: %7B%0A params: %7B interestGroupId %7D,%0A %7D,%0A %7D,%0A dispatch%0A ) =%3E dis @@ -1122,16 +1122,54 @@ oupId))) +,%0A %5B'match.params....
d890f9529f7693a04d397e836a308cef4a22f8b6
Fix bug 890557 - Handle new way of no user found with loginapi
routes/make.js
routes/make.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /*jslint node: true */ "use strict"; module.exports = function( makeModel, loginApi, env ) { var DEFAULT_SEAR...
JavaScript
0
@@ -5081,32 +5081,133 @@ if ( err ) %7B%0A + return handleError( res, err, 500, %22search%22 );%0A %7D%0A%0A if ( !userData ) %7B%0A retu @@ -5258,25 +5258,25 @@ t exist%22, 40 -0 +4 , %22search%22 )
4999f8d92e4c486fb0415e14a4c4fc0173154ebd
create room endpoint
routes/room.js
routes/room.js
const MongoClient = require('mongodb').MongoClient; const bluebird = require('bluebird'); const uuid = require('uuid'); const validator = require('validator'); const dateFormat = require('dateformat'); const assert = require('assert'); const now = new Date(); const bcrypt = require('bcrypt-nodejs'); const salt = bcrypt...
JavaScript
0.000002
@@ -466,27 +466,24 @@ ilable' %7D);%0A -// MongoCli @@ -536,19 +536,16 @@ db) =%3E%7B%0A -// assert @@ -563,19 +563,16 @@ , err);%0A -// tr @@ -574,19 +574,16 @@ try%7B%0A -// @@ -596,28 +596,28 @@ collection(' -user +room s').findOne( @@ -621,49 +621,8 @@ ne(%7B -email_id:data.em...
e03a7dd2db164d7799b7d216973a2041dacc76a9
Clean root route file.
routes/root.js
routes/root.js
/** * Created by Edmundo on 4/8/2016 */ exports.root = function(req, res) { res.render('index', { routes: { root: 'active' }, sess : req.session }); };
JavaScript
0
@@ -96,70 +96,8 @@ dex' -, %7B%0A routes: %7B root: 'active' %7D,%0A sess : req.session%0A %7D );%0A%7D
72c1a7c5c8c9e8a9078e03808201eece213ab035
Fix up the cursorPosition example a little bit.
examples/cursorPosition.js
examples/cursorPosition.js
var tty = require('tty') var cursor = require('../')(process.stdout) process.stdin.once('data', function (b) { var xy = /\[(\d+)\;(\d+)R$/.exec(b.toString()).slice(1,3) console.error({ x: xy[0], y: xy[1] }) tty.setRawMode(false) process.stdin.pause() }) process.stdin.resume() tty.setRawMode(true) cursor.que...
JavaScript
0
@@ -1,12 +1,32 @@ +#!/usr/bin/env node%0A %0Avar tty = r @@ -84,16 +84,109 @@ tdout)%0A%0A +// listen for the queryPosition report on stdin%0Aprocess.stdin.resume()%0Atty.setRawMode(true)%0A%0A process. @@ -225,18 +225,21 @@ %7B%0A var -xy +match = /%5C%5B(%5C @@ -274,20 +274,79 @@ g()) -.slice(1,3 +%0A if (m...
8b52be2c01c1e4c97be2d06c59c42c240d913488
Update user.js
routes/user.js
routes/user.js
var express = require('express'); var router = express.Router(); var passport = require('passport'); var User = require('../model/User'); var List = require('../model/List'); // router.post('/', passport.authenticate('local', { failureRedirect: '/' }), function(req, res) { // User.findOne({ username: req.body.use...
JavaScript
0.000001
@@ -174,424 +174,8 @@ );%0A%0A -// router.post('/', passport.authenticate('local', %7B failureRedirect: '/' %7D), function(req, res) %7B%0A// User.findOne(%7B username: req.body.username %7D, function(err, user) %7B%0A// if (user) %7B%0A// console.log('success');%0A// res.json(%7B s...
5b2b6004a9bde458f693b5d561d8b7c649c7802b
Add KMK link
chippanfire.js
chippanfire.js
const { renderFile } = require('ejs') const fs = require('fs') const absoluteLinks = true const href = path => (absoluteLinks ? '' : 'https://www.chippanfire.com/') + path const renderPage = page => new Promise((resolve, reject) => { renderFile('templates/page.ejs', page, {}, (err, str) => err ? reject(err) : resolve...
JavaScript
0
@@ -666,24 +666,242 @@ devices'%0A%7D%0A%0A +const kmkScriptPage = %7B%0A content: %7B title: 'KMK Control Script' %7D,%0A external: true,%0A href: 'https://github.com/crosslandwa/kmkControl',%0A strapline: 'In-depth control of Ableton Live using the Korg Microkontrol'%0A%7D%0A%0A const cpfPag @@ -1163,16 +1163,3...
8b5a8f163fa5df5dc096662115e52577a0e90e8e
Disable e2e tests for now
test/end-to-end-tests/src/scenarios/e2e-encryption.js
test/end-to-end-tests/src/scenarios/e2e-encryption.js
/* Copyright 2018 New Vector Ltd 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 ...
JavaScript
0
@@ -607,16 +607,172 @@ se.%0A*/%0A%0A +// TODO: Update test for cross signing%0A%0Amodule.exports = async function() %7B%0A console.log(%22 this is supposed to be an e2e test, but it's broken%22);%0A%7D;%0A%0A// const se @@ -816,24 +816,27 @@ -message');%0A +// const accept @@ -878,24 +878,27 @@ t-invite');%0...
761e5db22050db9b17d1a2454550c7dba2654bee
Update pipeline contact assertion
test/end-to-end/cypress/specs/DIT/my-pipeline-spec.js
test/end-to-end/cypress/specs/DIT/my-pipeline-spec.js
const urls = require('../../../../../src/lib/urls') const fixtures = require('../../fixtures') const formSelectors = require('../../../../selectors/pipeline-form') const tabPanelSelector = '[data-auto-id="pipelineSubTabNav"] [role="tabpanel"]' function addAssertion(assertion) { return (content) => ({ assertion,...
JavaScript
0
@@ -4303,16 +4303,22 @@ tact -Dean Cox +Johnny Cakeman ',%0A
668b2fb288f9a3b7aa33ae0b009ba314c9912fc9
add tslint config
lib/commands/new/buildsystems/webpack/transpilers/typescript.js
lib/commands/new/buildsystems/webpack/transpilers/typescript.js
'use strict'; const ProjectItem = require('../../../../../project-item').ProjectItem; module.exports = function(project) { project.addToContent( ProjectItem.resource('tsconfig.json', 'content/tsconfig.template.json') .asTemplate(project.model), ProjectItem.directory('custom_typings') .add( ...
JavaScript
0
@@ -141,16 +141,80 @@ ontent(%0A + ProjectItem.resource('tslint.json', 'content/tslint.json'),%0A Proj
34f737c47bd1764b81be4ebda5d93a7ee5ee1070
Increase font test timeout for Windows (#16527)
test/integration/font-optimization/test/index.test.js
test/integration/font-optimization/test/index.test.js
/* eslint-env jest */ import { join } from 'path' import { killApp, findPort, nextStart, nextBuild, renderViaHTTP, initNextServerScript, } from 'next-test-utils' import fs from 'fs-extra' jest.setTimeout(1000 * 30) const appDir = join(__dirname, '../') const nextConfig = join(appDir, 'next.config.js') le...
JavaScript
0
@@ -222,10 +222,14 @@ 0 * -30 +60 * 2 )%0A%0Ac
fe9193231544e36bdcc4478aa118059099a7f5d5
add a basic Client interface that can be inherited from
packages/net/interfaces.js
packages/net/interfaces.js
// Sort of like a twisted protocol jsio('from base import *'); var ctx = jsio.__env.global; exports.Protocol = Class(function() { this.connectionMade = function(isReconnect) {} this.dataReceived = function(data) {} this.connectionLost = function(reason) {} this.connectionFailed = function() {} }); // Sort of lik...
JavaScript
0
@@ -299,16 +299,296 @@ %7B%7D%0A%7D);%0A%0A +exports.Client = Class(function() %7B%0A%09this.init = function(protocol) %7B%0A%09%09this._protocol = protocol;%0A%09%7D%0A%09%0A%09this.connect = function(transportName, opts) %7B%0A%09%09this._remote = new this._protocol();%0A%09%09this._remote._client = this;%0A%09%09ne...
a3c4f4fdbfa998a041e4f5e4c50f52c3693f9132
Rewrite main.js to use a different approach to components
concepts/frame-list/main.js
concepts/frame-list/main.js
var mercury = require("mercury") var FrameList = require("./apps/frame-list") var FrameEditor = require("./apps/frame-editor") var FrameData = require("./data/frames") // Load the data var initialFrameData = FrameData.load() var frames = mercury.hash(initialFrameData) var currentFrame = mercury.value(null) // Create...
JavaScript
0.999287
@@ -322,74 +322,254 @@ the -default view using the frame set%0Avar frameList = FrameList(frames) +frameList component using the frames data%0A// %60frameList%60 is %7B state: state, events: events %7D%0A// we can collapse these two objects into one interface optionally%0Avar frameList = FrameList(frames)%0A// %60fram...
bc09b643a4763de17f5d6db6b926174667825ad2
Change to new event form instead of to selecting an event
client/app/instructor/newevent/newevent.controller.js
client/app/instructor/newevent/newevent.controller.js
'use strict'; export default class NewEventCtrl { /*@ngInject*/ constructor($scope) { $scope.event = {info:{}}; $scope.stage = { select: true, create: false, assign: false, done: false } $scope.doneSelect = function(create){ $scope.stage.select = false; if (crea...
JavaScript
0.000001
@@ -149,19 +149,20 @@ select: -tru +fals e,%0A @@ -170,20 +170,19 @@ create: -fals +tru e,%0A
f87d2e15bda36823d27335538673e47f4951be4c
Support log extras
Libraries/Utilities/PerformanceLogger.js
Libraries/Utilities/PerformanceLogger.js
/** * Copyright (c) 2015-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
@@ -426,16 +426,33 @@ ns = %7B%7D; +%0Avar extras = %7B%7D; %0A%0A/**%0A * @@ -1730,16 +1730,33 @@ s = %7B%7D;%0A + extras = %7B%7D;%0A %7D,%0A%0A @@ -2297,16 +2297,311 @@ ;%0A %7D%0A + %7D,%0A%0A setExtra(key, value) %7B%0A if (extras%5Bkey%5D) %7B%0A if (__DEV__) %7B%0A console.log(%0A...
7ae58f5a9919c5ae4bce660a6eb90a1fff89bc32
Update `max-len` rule to 86 chars and add exceptions
rules/style.js
rules/style.js
'use strict' module.exports = { rules: { 'array-bracket-spacing': ['error', 'never'], 'block-spacing': ['error', 'never'], 'brace-style': ['error', '1tbs'], 'camelcase': 'error', 'eol-last': 'error', 'func-call-spacing': 'error', 'func-name-matching': 'error', 'func-names': ['error', ...
JavaScript
0
@@ -675,12 +675,171 @@ ', 8 -0 +6 , 2 +, %7B%0A ignoreUrls: true,%0A ignoreComments: false,%0A ignoreRegExpLiterals: true,%0A ignoreStrings: true,%0A ignoreTemplateLiterals: true,%0A %7D %5D,%0A
8fb86db9a842e12140c6de7d96f9e748934df8fc
Update jquery.easysearch.js
dist/jquery.easysearch.js
dist/jquery.easysearch.js
/* * jQuery-easySearch - v1.0 - 2016-04-11 * https://github.com/Archakov06/jQuery-easySearch * http://archakov.im/ * Released under the MIT License */ (function( $ ){ $.fn.jSearch = function( options ) { var defaults = { selector: null, child: null, minValLength: 3, Found: function(elem,...
JavaScript
0.000001
@@ -3,28 +3,29 @@ %0A * jQuery- -easy +Light Search - v1. @@ -83,41 +83,19 @@ ery- -easySearch%0A * http://archakov.im/ +LightSearch %0A * @@ -283,39 +283,32 @@ d: function(elem -, event )%7B%7D,%0A%09%09%09NotFound @@ -322,23 +322,16 @@ ion(elem -, event )%7B%7D,%0A%09%09%09 @@ -800,21 +800,16 @@ unction( -...
9c61fdff3cf4e40724f2565a5ab55f6d2b3aa0a9
Change port back to 6666
stats-server/lib/server.js
stats-server/lib/server.js
var express = require('express'); var https = require('https'); var logger = require('./logger'); var security = require('./security'); var db = require('./db'); var app = configureExpressApp(); initializeMongo(initializeRoutes); startServer(security, app); function configureExpressApp() { var app = express(); ap...
JavaScript
0.000001
@@ -955,12 +955,12 @@ t = -3000 +6666 ;%0A
f99ef69c06a4e7c0920b71f9a7ea1c1226e132ef
Update rbutton-JSX.js
js/rbutton-JSX.js
js/rbutton-JSX.js
var Trybutton = React.createClass({ render: function(){ return ( <a className="btn btn-info pull-left" href={this.props.tryurl} target="_blank"> TRY FIRST.</a> ); } }); var Answerbutton = React.createClass({ render: function(){ return ( <a className="btn btn-success pull-right" ...
JavaScript
0.000001
@@ -159,18 +159,11 @@ nk%22%3E - TRY - FIRST .%3C/a @@ -352,23 +352,14 @@ nk%22%3E - SAMPLE ANSWER -. %3C/a%3E
d8c26dced95944efbbfe3f17af666fa1b88d7159
Bump to v3
javascripts/application.js
javascripts/application.js
/*Application global vars*/ var year = 2003; var compare = 'paro'; var state = "mapa"; var global_url = "http://ec2-50-16-13-57.compute-1.amazonaws.com/data"; var proxy_url = "proxy.php"; var tiles_version = 3; var bubbles_version = 7; var gmaps_version = 2; ...
JavaScript
0
@@ -343,14 +343,13 @@ = %22v -2 +3 %22;%0A%0A -%0A $(
7e580f82edfbe1b3ba4e6e7a365c216b2b81cb91
Change default dev port to 3000
config/index.js
config/index.js
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
JavaScript
0
@@ -979,11 +979,11 @@ rt: -808 +300 0,%0A
4f7532041a6f3efbbfc142e232bf1aa7157da0fa
Simplify demo directory handling
config/index.js
config/index.js
'use strict'; var path = require('path'); var webpack = require('webpack'); var merge = require('./merge'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var pkg = require('../package.json'); var ROOT_PATH = path.resolve(__dirname, '..'); var config = { paths: { dist: path.join(ROOT_PATH, 'dist...
JavaScript
0
@@ -355,24 +355,79 @@ TH, 'lib'),%0A + demoIndex: path.join(ROOT_PATH, 'demo/index'),%0A %7D,%0A f @@ -572,46 +572,31 @@ -'./' + config.demoDirectory + '/i +config.paths.demoI ndex -' +, %0A @@ -1510,46 +1510,30 @@ -'./' + config.demoDirectory + '/i +config.paths.demoI ndex -' ,%0A ...
0f1fe48515298cd882e4a33f6fdcb02659204863
update data
js/streamgraph.js
js/streamgraph.js
stacked_chart(10); $(document).on('click', '.dropdown-menu li a', function () { stacked_chart(parseFloat($(this).text())); }); function stacked_chart(word_num){ var margin = {top: 20, right: 20, bottom: 30, left: 50}, width = 860 - margin.left - margin.right, height = 500 - margin.top - margin.bottom;...
JavaScript
0.000001
@@ -4033,32 +4033,48 @@ chartLayers%0A + .exit()%0A .transit @@ -4110,23 +4110,16 @@ -.exit() .remove(
243cf356e844e1cb4335bdd0d9c1675a2f6e5403
Add create plugin dom tree
js/testimonial.js
js/testimonial.js
/** * testimonial.js * * Aleksey Leshko * Copyright 2014, MIT License */ Testimonial = function($container) { this.settings = {}; this.slides = []; this.currentSlide = 0; this.$container = $container; this.parseDomTree(); }; Testimonial.prototype = { start: function() { }, stop: function() { ...
JavaScript
0
@@ -232,16 +232,46 @@ Tree();%0A + this.createPluginDomTree();%0A %7D;%0A%0ATest @@ -1131,15 +1131,454 @@ slide;%0A + %7D,%0A%0A createPluginDomTree: function() %7B%0A for (var i = 0; i %3C 1; i++) %7B%0A var slide = this.slides%5Bi%5D;%0A%0A var $slideNode = $('%3Cdiv /%3E', %7B 'class': 'testimoni...
fea6e5feee61739fa94664153bb9ed75bf593e69
set cheap-source-map to default
config/index.js
config/index.js
'use strict' // Template version: 1.2.6 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: {}, // Various Dev Server settings host: 'localhost', ...
JavaScript
0.000002
@@ -1072,12 +1072,13 @@ l: ' -eval +cheap -sou @@ -1076,33 +1076,32 @@ cheap-source-map -' ,%0A%0A // If you
feea69f7dea15a5f8a800414cd39c6a5481d6fac
Remove practice tour from index.js
js/tours/index.js
js/tours/index.js
// All tours must be require() here for the webpack bundler to be able // to find the modules at compile time. Each tour should register() // itself with lisTours. It seems there should be a way to not have to // maintain this index.js, maybe with require.context? But for now // this is required. require('./qtl-search...
JavaScript
0
@@ -416,46 +416,8 @@ ');%0A -require('./practice-break-stuff.js');%0A requ
2edbe2291137a20d3969271ced4c120a259f9ada
Add comment about effective stats
root/entities/entity.js
root/entities/entity.js
import Phaser from 'phaser'; // Elements import FireElement from './elements/fire'; export default class Entity extends Phaser.Sprite { constructor (game, x, y, key, frame, element) { super(game, x, y, key, frame, element); this._attack = 0; this._defense = 0; this._hitPoints = 0...
JavaScript
0
@@ -1419,24 +1419,380 @@ %7D%0A %7D%0A%0A + /* The effective stats (after status effects are aplied) */%0A get effectiveAttack () %7B return this.effectiveStat('attack'); %7D%0A get effectiveDefense () %7B return this.effectiveStat('defense'); %7D%0A get effectiveHitPoints () %7B return this....
86dbcb14365dffeebf13825e14f070029f44ff2d
reformat Table component;
browser/react/components/Table.js
browser/react/components/Table.js
import React from 'react'; export default (props) => ( <a-entity id="table" position={`${props.x} ${props.y} ${props.z}`}> <a-entity geometry={`primitive: box; depth: ${props.depth}; height: 0.20; width: 3`} material={`color: ${props.color}`} position={`0 ${props.legHeight} 0`}></a-entity> <a-entity ge...
JavaScript
0
@@ -240,32 +240,38 @@ $%7Bprops.color%7D%60%7D +%0A position=%7B%600 $%7B @@ -295,32 +295,32 @@ 0%60%7D%3E%3C/a-entity%3E%0A - %3Ca-entity ge @@ -441,32 +441,38 @@ $%7Bprops.color%7D%60%7D +%0A position=%7B%601.45 @@ -609,32 +609,32 @@ ; width: 0.10%60%7D%0A - material=%7B @@ -657,16 +657,...
980a1a12b92653531defc34a02807d3f03a749b2
Reconfigure Base Views
config/views.js
config/views.js
module.exports= { views: [{ "name": "Team Averages", "view": "teamAverages" },{ "name": "Raw Match Data", "view": "matches" }], matches: function (mongoCollection, callback) { mongoCollection .find() .sort({"_id": -1}) .toArray(function (err, matches) { callback([ { name: "Match...
JavaScript
0
@@ -2370,238 +2370,8 @@ k%22%09%0A - %7D,%0A%0A // AUTOGENERATED DATA%0A %7B%0A text: %22Device%22, %0A value: %22sender%22%09%0A @@ -2665,43 +2665,8 ...
9e7b0d3bccee8ab47a2016acc3414eaeb10117ec
Remove the Ballot.value field and add the 'queued' option for the Ballot.status field.
api/models/Ballot.js
api/models/Ballot.js
var keystone = require('keystone'); var transform = require('model-transform'); var Types = keystone.Field.Types; var Ballot = new keystone.List('Ballot', { defaultSort: '-time', nodelete: true, nocreate: true }); Ballot.add({ value: { type: String, default: true, required: true, initial: true }, time: { type: ...
JavaScript
0
@@ -230,80 +230,8 @@ d(%7B%0A -%09value: %7B type: String, default: true, required: true, initial: true %7D,%0A %09tim @@ -333,16 +333,26 @@ igning', + 'queued', 'pendin @@ -816,26 +816,43 @@ = ' -voter, value, time +time, status, voterAge, voterGender ';%0AB
a55945d8c0113bb9f44438061cb499e770aa00b9
Fix icns generation
src/lib/icns-generator.js
src/lib/icns-generator.js
import Fs from 'fs'; /** * It defines constants for the ICNS. * @type {Object} */ export const IcnsConstants = { /** * Sizes required for the ICNS file. * @type {Array} */ imageSizes: [ 16, 32, 64, 128, 256, 512, 1024 ], /** * The size of the ICNS header. * @type {Number} */ headerSize: 8...
JavaScript
0.000003
@@ -773,136 +773,8 @@ 24 %7D -,%0A %7B id: 'ic11', size: 32 %7D,%0A %7B id: 'ic12', size: 64 %7D,%0A %7B id: 'ic13', size: 256 %7D,%0A %7B id: 'ic14', size: 512 %7D %0A %5D
87eebeaee3d2930e29f8b9aa7e3784f7f519f444
Remove file extension from href's
jquery.activeNavigation.js
jquery.activeNavigation.js
(function( $ ) { $.fn.activeNavigation = function(selector) { var pathname = window.location.pathname var hrefs = [] $(selector).find("a").each(function(){ if (pathname.indexOf($(this).attr("href")) > -1) hrefs.push($(this)) }) if (hrefs.length) {...
JavaScript
0
@@ -107,16 +107,66 @@ athname%0A + var extension_position;%0A var href;%0A @@ -243,57 +243,278 @@ -if (pathname.indexOf($(this).attr(%22href%22) +// Remove href file extension%0A extension_position = $(this).attr(%22href%22).lastIndexOf('.');%0A href = (extension_pos...
3f5427c33cea65adac4532bd3a788a7f6e4c1cf6
fix for 3rd argument in css-vars.
modules/css-vars/script.js
modules/css-vars/script.js
/* global kirkiCssVarFields */ var kirkiCssVars = { /** * Get styles. * * @since 3.0.28 * @returns {Object} */ getStyles: function() { var style = jQuery( '#kirki-css-vars' ), styles = style.html().replace( ':root{', '' ).replace( '}', '' ).split( ';' ), stylesObj = {}; // Format styles a...
JavaScript
0
@@ -1148,24 +1148,26 @@ ct( -value ) && value +newVal ) && newVal %5B cs @@ -1190,22 +1190,49 @@ %09%09%09%09 -newVal = value +console.log( cssVar );%0A%09%09%09%09%09%09val = newVal %5B cs @@ -1300,20 +1300,17 @@ e( '$', -newV +v al );%0A%09%09
223ff370c6eddedd4ac1afcf3af23b6f54582ba2
update property names in spam test plugin also
plugins/spam/plugin.js
plugins/spam/plugin.js
#!/usr/bin/env node // spam plugin, useful for testing var post = require('../../lib/post.js'); var cnt = 0; setInterval(function() { post.sendPOST({ 'method': 'newNotification', 'text': 'spamäåö123456789atheoutheachumcramcrhkrcehachuechacmecuaocemuchaechucehaocumechoaceuhcmkch.phehlowhwhell' + cnt, 'source': ...
JavaScript
0
@@ -336,119 +336,178 @@ %0A%09%09' -context': 'context' + cnt,%0A%09%09'app': 'app' + cnt,%0A%09%09'url': 'url' + cnt,%0A%09%09'colorbg': 'red',%0A%09%09'colorfg': 'white' +sourcebg': 'red',%0A%09%09'sourcefg': 'white',%0A%09%09'context': 'context' + cnt,%0A%09%09'contextbg': 'blue',%0A%09%09'contextfg': 'white',%0A%0...
7539873b3445011100cb7fb77222b9445d7e5058
Update ambient-triggers.js
examples/ambient-triggers.js
examples/ambient-triggers.js
// Any copyright is dedicated to the Public Domain. // http://creativecommons.org/publicdomain/zero/1.0/ /********************************************* This ambient module example console.logs ambient light and sound levels and whenever a specified light or sound level trigger is met. *********************************...
JavaScript
0
@@ -537,41 +537,8 @@ %7B%0A%0A - ambient.setLightTrigger(0.5);%0A%0A // @@ -600,32 +600,233 @@ between 0 and 1%0A + ambient.setLightTrigger(0.5);%0A%0A // Set a sound level trigger%0A // The trigger is a float between 0 and 1%0A ambient.setSoundTrigger(0.1);%0A%0A console.log('Waiting for a bright light or ...
774d4746fb911cf777bdd18883f885b6560ec23e
fix check.png url
lib/site/topic-layout/sidebar/list/list-item/component.js
lib/site/topic-layout/sidebar/list/list-item/component.js
import React, {Component} from 'react' import user from 'lib/user/user' import t from 't-component' import tagImages from 'lib/tags-images' import { Link } from 'react-router' export default class ListItem extends Component { constructor (props) { super(props) this.onUserStateChange = this.onUserStateChange....
JavaScript
0.000003
@@ -2050,16 +2050,20 @@ g src='/ +lib/ boot/che
9ad1dc9470ac8a6fd39ffefe4f864117f31622c4
Add Fix for autocomplete bug in jquery UI 1.12
Resources/public/js/autocomplete/50_autocomplete.js
Resources/public/js/autocomplete/50_autocomplete.js
jQuery(function($, undefined) { $.fn.extend({ autocompleteSelMul: function() { return this.not('.autocompleteSelMulInited').each(function() { var me = $(this).hide().addClass('autocompleteSelMulInited'), meCont = me.parent().is('.selectCont') ? me.parent().hide() : me, val = me.val(), options =...
JavaScript
0
@@ -2411,32 +2411,451 @@ false;%0A%09%09%09%09%09%7D,%0A + search: function(e, ui) %7B%0A if ($.ui.version.indexOf('1.12') === 0) %7B%0A // Fix bug in jQuery.ui somewhere where menu.bindings just grows and grows%0A // See ...
42c3cf25454b8c42fba866d96f1f54dc60ab9b00
Use correct variable name
examples/voip/browserTest.js
examples/voip/browserTest.js
"use strict"; console.log("Loading browser sdk"); var BASE_URL = "https://matrix.org"; var TOKEN = "accesstokengoeshere"; var USER_ID = "@username:localhost"; var ROOM_ID = "!room:id"; var client = matrixcs.createClient({ baseUrl: BASE_URL, accessToken: TOKEN, userId: USER_ID }); var call; function disab...
JavaScript
0.999857
@@ -1313,15 +1313,9 @@ %7D;%0A%0A -matrixC +c lien
119bde83fdb4b4c21a07627c305e914e3b6e2d26
set `ignorePackages` to `import/extensions` (#936)
rules/plugins/import.js
rules/plugins/import.js
module.exports = { extends: ["plugin:import/errors", "plugin:import/warnings"], rules: { "import/dynamic-import-chunkname": "off", "import/exports-last": "off", "import/extensions": [ "error", "always", { js: "never", jsx: "never", ts: "never", }, ], ...
JavaScript
0.000016
@@ -220,13 +220,21 @@ %22 -alway +ignorePackage s%22,%0A
2bc11f5159c0db6e8af8eb67f99cd8138cf4c1dd
Set credentials to false
config/cors.js
config/cors.js
'use strict'; /** * Cross-Origin Resource Sharing (CORS) Settings * (sails.config.cors) * * CORS is like a more modern version of JSONP-- it allows your server/API * to successfully respond to requests from client-side JavaScript code * running on some other domain (e.g. google.com) * Unlike JSONP, it works wit...
JavaScript
0.999851
@@ -2578,19 +2578,20 @@ ntials: -tru +fals e,%0A%0A /*
26d0c3815f5bdcc23b25709167c1bcf96a8d14c2
Make single worker semaphore example slightly more interesting
examples/worker-semaphore.js
examples/worker-semaphore.js
var {Worker} = require("ringo/worker") var {Semaphore} = require("ringo/concurrent") var {setInterval, clearInterval} = require("ringo/scheduler"); function main() { // Create a new workers from this same module. Note that this will // create a new instance of this module as workers are isolated. var w = n...
JavaScript
0.000004
@@ -416,13 +416,11 @@ nt(%22 -Got r + R espo @@ -804,17 +804,17 @@ re gets -5 +3 signals @@ -814,17 +814,108 @@ signals. - +%0A s.wait(3);%0A print(%22Got 3 responses from worker.%22);%0A // Wait for 2 more responses. %0A s.w @@ -918,17 +918,17 @@ s.wait( -5 +2 );%0A p @@ -937,17 +937,22 @@ ...
411c2d9c84cc367bd717891dd3b413193973c1b9
update db -> database
config/motd.js
config/motd.js
const _ = require('lodash') module.exports = { hr: `---------------------------------------------------------------`, info: { start: `Starting...`, stop: `Shutting down...`, initialized: `All trailpacks are loaded.`, ready (app) { return ( `-----------------------------------------...
JavaScript
0
@@ -662,17 +662,23 @@ config.d -b +atabase .orm%7D%0A @@ -731,17 +731,23 @@ config.d -b +atabase .stores)
3fb5f1d0d5766f32f8edfa247fd79272794c9a54
Fix bug with extending - fixes #12
configstore.js
configstore.js
'use strict'; var path = require('path'); var os = require('os'); var fs = require('graceful-fs'); var osenv = require('osenv'); var assign = require('object-assign'); var mkdirp = require('mkdirp'); var yaml = require('js-yaml'); var uuid = require('uuid'); var user = (osenv.user() || uuid.v4()).replace(/\\/g, ''); v...
JavaScript
0
@@ -627,19 +627,9 @@ l = -assign(%7B%7D, +%5B defa @@ -647,24 +647,43 @@ this.all %7C%7C + %7B%7D%5D.reduce(assign, %7B%7D);%0A%7D%0A%0ACon
b42e23fa4e59e58297155a1ac113ece8257d96dd
Update assets/js/modules/analytics/util/report-validation.js
assets/js/modules/analytics/util/report-validation.js
assets/js/modules/analytics/util/report-validation.js
/** * Reporting API validation utilities. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LI...
JavaScript
0
@@ -3473,34 +3473,8 @@ ery( - ( dimensionFilterKey ) =%3E val @@ -3497,30 +3497,25 @@ lude -( dimensionFilterKey ) +, validDimensions ) &
fd210fb5393f71748c7917677934488cd568dd90
Update getCmd.js
lib/getCmd.js
lib/getCmd.js
var optionsMap = { dpiX: '--dpi-x', dpiY: '--dpi-y', zoomX: '--x-zoom', zoomY: '--y-zoom', zoom: '--zoom', output: '--output', format: '--format', width: '--width', height: '--height', keepAspectRatio: '--keep-aspect-ratio', noKeepImageData: '--no-keep-image-data', backgr...
JavaScript
0.000001
@@ -786,10 +786,8 @@ + ' - %3E ' +
08a7f19a7b512a168335eba8a3de452235f53cf1
Update graphqlTag error message
packages/relay-runtime/query/GraphQLTag.js
packages/relay-runtime/query/GraphQLTag.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ // flowlint ambiguous-object-type:error 'use strict'; const RelayConcreteNode = require('../util/RelayCon...
JavaScript
0
@@ -1328,16 +1328,113 @@ raphql%60. + Note also that there cannot be ' +%0A 'a space between graphql and the backtick that follows. ',%0A );%0A
d6c1b9ee6f805d30c884bc8fad69fec9a3e03fa3
refactor search nav
js/components/SearchNav.js
js/components/SearchNav.js
import React, { Component } from 'react' import { View, Text, StyleSheet, Image, TextInput, TouchableOpacity, PropTypes, AsyncStorage } from 'react-native' import { WIDTH, INNERWIDTH, HEIGHT, getResponsiveWidth, getResponsiveHeight } from '../common/styles' const history = 'history' import { A...
JavaScript
0.000092
@@ -461,55 +461,11 @@ %7B%0A -constructor(props) %7B%0A super(props)%0A this. +%0A stat @@ -470,18 +470,16 @@ ate = %7B%0A - hist @@ -490,18 +490,13 @@ %5B%5D%0A - %7D%0A %7D%0A +%0A co @@ -569,24 +569,25 @@ eturn%0A %7D%0A +%0A this.ref @@ -610,16 +610,17 @@ s()%0A %7D%0A +%0A...
2ec030d4392598959a76775f2a3506402bdf1c18
Fix of the clicks
extension/keysocket-hypem.js
extension/keysocket-hypem.js
function onKeyPress(key) { if(key === NEXT) { window.nextTrack(); } else if(key === PLAY) { window.togglePlay(); } else if(key === PREV) { window.prevTrack(); } }
JavaScript
0
@@ -55,84 +55,151 @@ -window.nextTrack();%0A %7D else if(key === PLAY) %7B%0A window.toggle +simulateClick(document.querySelector('#playerNext'));%0A %7D else if(key === PLAY) %7B%0A simulateClick(document.querySelector('#player Play -( +') );%0A @@ -239,25 +239,59 @@ -window.prevTrac...
d64d4d8c4a44f1ab14911b4db951a45cf731f8b9
Refactor helper function
lib/helper.js
lib/helper.js
/** * Helpers for sea-node.js * @author lifesinger@gmail.com */ var aliasCache = {} var url = require('url') exports.parseAlias = function (id) { // #xxx means xxx is already alias-parsed. if (id.charAt(0) === '#') { return id.substring(1) } var alias = aliasCache // Only top-level id needs to pars...
JavaScript
0.000001
@@ -107,16 +107,17 @@ 'url')%0A%0A +%0A exports. @@ -530,24 +530,25 @@ eturn id%0A%7D%0A%0A +%0A exports.conf @@ -734,16 +734,17 @@ %0A %7D%0A%7D%0A%0A +%0A exports. @@ -871,18 +871,8 @@ )%0A%0A - var req = con @@ -928,17 +928,17 @@ tusCode -= +! == 200) @@ -937,24 +937,79 @@ == 200) %7B%0A + throw...
630cf3347644d1023867dd2f252cc785969a1ea1
Improve unsupported browser design
packages/shared/lib/browser/unsupported.js
packages/shared/lib/browser/unsupported.js
const showUnsupported = () => { document.body.innerHTML = ` <h1>Unsupported browser</h1> <p>You are using an unsupported browser. Please update it to the latest version or use a different browser. <a href="https://protonmail.com/support/knowledge-base/browsers-supported/">More info</a>.</p> `; }; if (!window.prot...
JavaScript
0.000003
@@ -1,299 +1,806 @@ -const showUnsupported = () =%3E %7B%0A document.body.innerHTML = %60%0A%3Ch1%3EUnsupported browser%3C/h1%3E%0A%0A%3Cp%3EYou are using an unsupported browser. Please update it to the latest version or use a different browser. %3Ca href=%22https://protonmail.com/support/knowledge-base/browsers-sup...
56d48f6da02127e26c0845cdce5d665d4517da6c
Use strapiBin instead of global to uninstall a plugin
packages/strapi-admin/controllers/Admin.js
packages/strapi-admin/controllers/Admin.js
'use strict'; const fs = require('fs'); const path = require('path'); const exec = require('child_process').execSync; /** * A set of functions called "actions" for `Admin` */ module.exports = { index: async(ctx) => { try { // Send the HTML file with injected scripts ctx.body = strapi.admin.servi...
JavaScript
0
@@ -1188,16 +1188,109 @@ .params; +%0A const strapiBin = path.join(process.cwd(), 'node_modules', 'strapi', 'bin', 'strapi'); %0A%0A @@ -1388,22 +1388,33 @@ exec(%60 +node $%7B strapi +Bin%7D uninsta @@ -1480,24 +1480,24 @@ i.reload();%0A - %7D catch( @@ -1499,24 +1499,57 @@ atch(err) %7B%0A +...