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
2dc60da22542d8ab74b75fed1f9bb13e6d381c5f
remove unused StorageSupportUtility import
tests/unit/initializers/inject-storagekit-test.js
tests/unit/initializers/inject-storagekit-test.js
import Ember from 'ember'; import InjectStoragekitInitializer from 'dummy/initializers/inject-storagekit'; import { module, test } from 'qunit'; import StorageSupportUtility from 'ember-cli-storagekit/utilities/storage-support'; /*global sinon*/ let application; let sandbox = sinon.sandbox; module('Unit | Initialize...
JavaScript
0
@@ -141,92 +141,8 @@ it'; -%0Aimport StorageSupportUtility from 'ember-cli-storagekit/utilities/storage-support'; %0A%0A/*
19e0ac0f67aef5b38aa65f030c464a980c9366cf
Add a good and bad endpoint ... quick sanity checks
routes/api.js
routes/api.js
// EXPRESS ROUTES const routes = require('express').Router(); const logger = require('../lib/logger') routes.get('/game/:gameid', (req, res) => { //todo: check if the appropriate game id has been logged res.status(200).json({ "game_id": req.params.gameid, status: false}); }); module.exports = routes;
JavaScript
0.000033
@@ -202,16 +202,116 @@ logged%0A + if(req.params.gameid == 'bad')%7B%0A res.status(400).json(%7B error: true %7D);%0A %7D else %7B%0A res. @@ -333,17 +333,15 @@ n(%7B -%22 game_id -%22 : re @@ -361,25 +361,31 @@ id, -status +error : false + %7D);%0A + %7D%0A %7D);%0A
dcff7b4e2505e9aef22bb4c90bb4bb639c784978
Refactor init procedure
fetchSync/client/index.js
fetchSync/client/index.js
'use strict' /* global fetch:false, Request:false */ import serialiseRequest from 'serialise-request' import createSync from './createSync' import store from './store' import { registerSync, cancelAllSyncs, openCommsChannel } from './store/requests' import { setServiceWorker } from './store/creators' let hasStarted...
JavaScript
0.000001
@@ -2861,20 +2861,18 @@ ate()%0A -cons +le t contro @@ -3134,26 +3134,28 @@ .then(( -controller +registration ) =%3E %7B%0A @@ -3163,31 +3163,119 @@ if ( -!controller +registration && options) %7B%0A controller = registration.active%0A %7D else if (!registration && +! options) @@ -3622,24 +...
8365741050e679523a80aa695d59937d82da3a87
implement fix for IE to deal with console.log statements.
themes/atl/public/js/main.js
themes/atl/public/js/main.js
/* global SimpleMDE */ var $ = window.jQuery $(document).ready(function () { console.log('running') if (window._events) { console.log(window._events) $('#events-calendar').fullCalendar({ events: window._events }) } $(window).on('scroll', function (event) { var scroll = $(window).scrollTop...
JavaScript
0
@@ -1,8 +1,112 @@ +if (!window.console) window.console = %7B%7D;%0Aif (!window.console.log) window.console.log = function () %7B %7D; %0A/* glob
36002967701b854c3ac977ee5031b99b3b86c7c5
Support old jquery where responseJSON doesn't exist
readthedocs/core/static-src/core/js/doc-embed/search.js
readthedocs/core/static-src/core/js/doc-embed/search.js
/* * Sphinx search overrides */ var rtddata = require('./rtd-data'); var xss = require('xss/lib/index'); /* * Search query override for hitting our local API instead of the standard * Sphinx indexer. This will fall back to the standard indexer on an API * failure, */ function attach_elastic_search_query(data) ...
JavaScript
0
@@ -4138,16 +4138,37 @@ if ( +%0A status_c @@ -4188,16 +4188,104 @@ ess' %7C%7C +%0A typeof (resp.responseJSON) === 'undefined' %7C%7C %0A resp.res @@ -4305,16 +4305,33 @@ nt === 0 +%0A ) %7B%0A
5ac6a80a5121e39ae332f44d90031f5ea6ef883b
Remove an invalid attribute and React warning
src/components/users/UserVitals.js
src/components/users/UserVitals.js
/* eslint-disable no-confusing-arrow */ import React, { PropTypes } from 'react' import { Link } from 'react-router' import { numberToHuman } from '../../vendor/number_to_human' export const UserNames = ({ user }) => <div className="UserNames"> <h2 className="UserUsername"> <Link to={`/${user.username}`} >...
JavaScript
0.000002
@@ -636,33 +636,8 @@ span - activeClassName=%22active%22 cla
df2a66c852546a273f33d7a997c46945202b7155
fix redeem fixture mutation
test/payments.utils.js
test/payments.utils.js
const t = require('assert') const bscript = require('../src/script') const bnetworks = require('../src/networks') function tryHex (x) { if (Buffer.isBuffer(x)) return x.toString('hex') if (Array.isArray(x)) return x.map(tryHex) return x } function fromHex (x) { if (typeof x === 'string') return Buffer.from(x,...
JavaScript
0.000001
@@ -68,25 +68,25 @@ )%0Aconst -bnetworks +BNETWORKS = requi @@ -1742,16 +1742,26 @@ etwork, +BNETWORKS%5B b.networ @@ -1761,16 +1761,17 @@ .network +%5D , 'Inequ @@ -2680,25 +2680,25 @@ twork = -bnetworks +BNETWORKS %5Bx.netwo @@ -3530,32 +3530,75 @@ if (x.redeem) %7B%0A + x.redeem = Object.assign(%7B%7...
25ddb5004311ece16d53bea6b7bed10086722a53
add docs to touch.js
src/touch.js
src/touch.js
// Copyright (c) 2013-2014 Marco Biasini // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, ...
JavaScript
0.000001
@@ -1697,16 +1697,250 @@ cam;%0A%7D%0A%0A +// calculates the relevant touch/gesture properties based on previous touch %0A// state and the new event. It returns the new state with deltaScale, %0A// deltaRotation and deltaCenter attached than can be used to control the %0A// camera.%0A TouchHan @@ -3443,24 +3443,148 @...
207db4973c8d654af5a4565dcd78c2cf4075e134
Update tournament to 1.9.3
dev-scripts/config.get.js
dev-scripts/config.get.js
'use strict' const { getMhub } = require('./.get/get-mhub') const { getCaddy } = require('./.get/get-caddy') const { getMongo } = require('./.get/get-mongo') const { getNpmModule } = require('./.get/get-npm-module') const { getByHttp } = require('./.get/get-by-http') // eslint-disable-next-line node/exports-style mod...
JavaScript
0
@@ -1056,17 +1056,17 @@ n: '1.9. -1 +3 '%0A
0c232d0a9a7d9df85f5545cb04603d569d8dc66c
allow partial gets for realtime config
server/routes/config/get.js
server/routes/config/get.js
const _ = require('lodash') const config = require('../../../config/server') const runtimeConfig = require('../../models/runtimeConfig') const fakes = require('../../utils/fakeRepository') module.exports = function * () { const status = { preFlight: _.pick(config, ['env', 'port', 'target']) } status.fakes = (Objec...
JavaScript
0.000001
@@ -187,40 +187,408 @@ ')%0A%0A -module.exports = function * () %7B +const joi = require('joi')%0Aconst joiValidate = require('../../utils/joiValidate')%0A%0A// empty query includes all%0Aconst querySchema = %7B%0A include: joi.array().items(joi.string().valid(%5B%0A 'preFlight',%0A 'fakes',%0A 'recording',%...
d81a14c56d3f3704d7ce2a16f3277f6f72cf388d
update source for triangles and diamonds
source/SVG.js
source/SVG.js
L.SVG.include({ _updateShape: function _updateShape(layer) { var p = layer._point; var s = layer._radius; var shape = layer.options.shape; if(shape === "diamond"){ var d = "M"+ (p.x-s)+ " "+ (p.y)+ " L " + (p.x) +" "+ (p.y-s)+ " L" + (p.x+s) + " " + (p.y)+ " L" + (p.x) + " " + (p.y+s) +" L" + (p.x-s) +...
JavaScript
0
@@ -181,33 +181,48 @@ r d = %22M%22+ (p.x- -s +(Math.sqrt(2)*s) )+ %22 %22+ (p.y)+ %22 @@ -237,34 +237,49 @@ p.x) +%22 %22+ (p.y- +(Math.sqrt(2)* s) +) + %22 L%22 + (p.x+s @@ -269,33 +269,48 @@ )+ %22 L%22 + (p.x+ -s +(Math.sqrt(2)*s) ) + %22 %22 + (p.y)+ @@ -337,34 +337,64 @@ + (p.y+ -s) +%22 L%22 + (p.x-s...
5eeb98dcf48b18caf24b006719c8a28294ae35af
Add comments to api routes
routes/api.js
routes/api.js
var express = require('express'); var fs = require('fs'); var request = require('request'); var cheerio = require('cheerio'); var app = express.Router(); var url = require('url'); app.get('/', function(req, res){ var body = "Assist scraper <br> <br> '/api' displays how to use api <br> '/api/schools' displays the ...
JavaScript
0
@@ -178,16 +178,42 @@ url');%0A%0A +//displays how to use api%0A app.get( @@ -561,24 +561,128 @@ d(body);%0A%7D); +%0A%0A//displays the schools available to transfer to by going to the assist website and parsing the options %0Aapp.get('/s @@ -1508,32 +1508,139 @@ %09 %7D%0A%09%7D);%0A%7D);%0A +//gets all of the...
c81314aa27a604e5d1d7492cf58a16c850f4cb64
Fix unhandle promise rejection warnings by ensuring response has proper structure
assets/js/vuex/actions.js
assets/js/vuex/actions.js
/* Actions Functions that operate on store data but may be asynchronous This is the public API of the store for components */ import backend from '../api/backend.js'; import URI from 'urijs'; function unwrapResponse(response) { return response.body().data().results; } function fetchFeatures({dispatch}) { ...
JavaScript
0.000001
@@ -271,24 +271,100 @@ results;%0A%7D%0A%0A +function statusOk(r) %7B%0A return r.statusCode && r.statusCode() == 200;%0A%7D%0A%0A function fet @@ -471,33 +471,33 @@ (response) =%3E %7B%0A - +%0A if (respo @@ -495,36 +495,26 @@ if ( -response.statusCode() == 200 +statusOk(response) ) %7B%0A @@ -1305,36...
65e2be4c55e318294fd9fac99f0baeca3b7de79b
add sort prop
src/components/victory-sunburst.js
src/components/victory-sunburst.js
/* eslint-disable no-magic-numbers */ import React from "react"; import PropTypes from "prop-types"; import { PropTypes as CustomPropTypes } from "victory-core"; import * as d3Hierarchy from "d3-hierarchy"; import * as d3Scale from "d3-scale"; import * as d3Shape from "d3-shape"; import flare from "../../flare.js"; cl...
JavaScript
0.000001
@@ -1058,16 +1058,42 @@ t) / 2,%0A + sort: PropTypes.bool,%0A widt @@ -1299,16 +1299,28 @@ Radius,%0A + sort,%0A wi @@ -1957,16 +1957,79 @@ .sort( +sort ? (a, b) =%3E %7B%0A return b.value - a.value;%0A %7D : null);%0A%0A
800ca009865be333c24955313ece85af8ebc5834
whitelist dependency mismatches for ember-popper and ember-maybe-in-element.
config/dependency-lint.js
config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-concurrency': '^0.9.0 || ^0.10.0 || ^1.0.0', //conflict with ember-cli-new-version and ilios-common } };
JavaScript
0
@@ -181,15 +181,221 @@ -common%0A + 'ember-popper': '%5E0.9.2 %7C%7C %5E0.10.1', // conflict with ember-popper version in ilios-common%0A 'ember-maybe-in-element': '%5E0.1.3 %7C%7C %5E0.2.0' //sub-dependency of ember-popper, see comment on ember-popper%0A %7D%0A%7D;%0A
bf31d69f6d0b0a5e4c2d1c1f0e83b5637018e91e
Add operator presedence test in tests
tests/num.js
tests/num.js
// @description Number unit tests assert(3.0 == 3, "Number equality"); assert("3" == 3, "Number and string equality"); assert("4" !== 3, "Number and string strict equality"); assert(Number.isFinite(2), "Number.isFinite"); assert(Number.isFinite(Infinity) === false, "Number.isFinite"); assert((5 + 2) == 7, "Number addit...
JavaScript
0
@@ -447,16 +447,66 @@ ltiplication%22);%0A +assert((3 + 4 * 5) == 23, %22Operator precedence%22);%0A
38c87c02fc07f5bf090c97f7169fa5f6d1236163
remove space which messes up the url local variable
config/express.js
config/express.js
'use strict'; /** * Module dependencies. */ var express = require('express'), morgan = require('morgan'), bodyParser = require('body-parser'), session = require('express-session'), compress = require('compression'), methodOverride = require('method-override'), cookieParser = require('cookie-parser'), helmet =...
JavaScript
0.000057
@@ -1238,17 +1238,16 @@ l + ':// - ' + req.
00d3c23434cf4383dcfe3cd00b0f9ae8507f391b
Load a more reasonable # of rooms at a time.
src/modules/rooms/controllers/rooms-ctrl.js
src/modules/rooms/controllers/rooms-ctrl.js
(function (angular) { 'use strict'; angular.module('bebop.rooms') .controller('roomsController', ['$scope', '$routeParams', '$timeout', 'uiService', 'roomService', function ($scope, $routeParams, $timeout, uiService, roomService) { // Private var ROOMS_TO_LOAD = 2; ...
JavaScript
0
@@ -310,9 +310,10 @@ D = -2 +50 ;%0D%0A
f72ff38a99a490a6fdd970390635a10ca2951149
update cookies expires
static/js/like.js
static/js/like.js
$(function() { var likes = Cookies.get('likes') || ''; likes = likes.split(','); for (var i = 0, len = likes.length; i < len; i++) { $(`.ctrl.heart[photo='${likes[i]}']`).addClass('active'); } var click = 'ontouchstart' in window ? 'touchstart' : 'click'; $(document).off(click,'...
JavaScript
0.000001
@@ -78,17 +78,128 @@ kes. -split(',' +replace(/%5C_+/g,',').split(',');%0D%0A Cookies.remove('likes');%0D%0A Cookies.set('likes', likes.join(','),%7B expires: 365 %7D );%0D%0A
e48e24c5594f448283d0d7a8c5165eb0c2d06fc7
use different famous.org colors
arkady.pevzner/layouts/header-footer-example/header-footer-example.js
arkady.pevzner/layouts/header-footer-example/header-footer-example.js
BEST.module('arkady.pevzner:layouts:header-footer-example', 'HEAD', { behaviors: { '#container' : { 'size-proportional': '[[identity|containerProportion]]', 'align': [0.5, 0.5], 'mount-point': [0.5, 0.5] }, '#hf' : { 'header-height' : 100, ...
JavaScript
0
@@ -2221,41 +2221,8 @@ l',%0A - 'border': 'none'%0A @@ -4333,22 +4333,22 @@ olor: '# -444444 +333333 ',%0A%0A @@ -4568,38 +4568,8 @@ : %7B%0A - 'border': 'none',%0A @@ -4587,22 +4587,22 @@ lor': '# -444444 +333333 ',%0A @@ -4746,16 +4746,51 @@ pointer' +,%0A ...
e41d9add33e0bb220aeedc0c3aabd9484fe4b59e
test call
js/ajax.js
js/ajax.js
function ajaxFunction(){ $(document).ready(function() { $("#progressbar").css({"width":"100%"}); $("#loading").delay(1500).fadeOut(); $("#results").show(); }); var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(...
JavaScript
0.000002
@@ -164,16 +164,28 @@ show();%0A +%09 $(top10);%0A %09 %7D);%0A
7a845c568ddef11947a3430ee916f8c0a3bfa227
make a dependency linter exception for ember-concurrency.
config/dependency-lint.js
config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-get-config': '0.2.4 || 0.3.0', 'ember-inflector': '3.0.1 || 4.0.1', } };
JavaScript
0
@@ -153,15 +153,58 @@ 4.0.1',%0A + 'ember-concurrency': '1.3.0 %7C%7C 2.0.2',%0A %7D%0A%7D;%0A
ef68d7ba4430bfdb255fada2991f99810548269b
Remove based on array
routes/api.js
routes/api.js
const router = require('koa-router')() const jwt = require('koa-jwt') const log = require('../lib/log') const Page = require('../models/page') const User = require('../models/user') function *getOne (type, _id) { const query = eval(type + '.where({ _id })') try { var item = yield query.findOne() } catch (e...
JavaScript
0.000598
@@ -373,92 +373,150 @@ %0A%0A -var attributes = item.toObject()%0A%0A delete attributes._id%0A delete attributes.__v%0A +const remove = %5B%0A '_id',%0A 'id',%0A 'password',%0A '__v'%0A %5D%0A%0A var attributes = item.toObject()%0A%0A for (var property of remove) %7B%0A + dele @@ -528,25 +528...
974ce7449d440810af2948fd3cdb1c8fb7714125
add getClosest
Themes/default/scripts/quotedText.js
Themes/default/scripts/quotedText.js
function getSelectedText(divID) { if (typeof divID == 'undefined' || divID == false) return false; var text = '', selection, found = 0; if (window.getSelection) { selection = window.getSelection(); text = selection.toString(); } else if (document.selection && document.selection.type != 'Control') { s...
JavaScript
0
@@ -1,16 +1,261 @@ +function getClosest(el, divID)%0A%7B%0A%09if (typeof divID == 'undefined' %7C%7C divID == false)%0A%09%09return null;%0A%0A%09do%0A%09%7B%0A%09%09if (el.id === divID)%0A%09%09%7B%0A%09%09%09// tag name is found!%0A%09%09%09return el;%0A%09%09%7D%0A%09%7D%0A%09while (el = el.parentNode);%0A%0A%09// n...
ef80d730434d1457d8ea03e514ec318a3b3ef5b9
Consolidate logic for getting result element index
src/scripts/components/app.js
src/scripts/components/app.js
import m from 'mithril'; import classNames from 'classnames'; import RefSearch from '../models/ref-search'; import SearchIconComponent from './search-icon'; // The front-end application UI class AppComponent { constructor() { // Results for a "Filter by Reference" search this.searchResults = []; this.se...
JavaScript
0.000001
@@ -2171,24 +2171,201 @@ %0A %7D%0A %7D%0A%0A + // Get the index of a search result DOM element via its data-index attribute%0A getResultElemIndex(resultElem) %7B%0A return Number(resultElem.getAttribute('data-index'));%0A %7D%0A%0A // Scroll @@ -2509,17 +2509,27 @@ ew(vnode -, +) %7B%0A let result...
c7267f4e21b3af4f9449cfec70bde4fddb596fa1
REMOVE unused computed property in ItemFIlter
resources/js/src/app/components/itemList/filter/ItemFilter.js
resources/js/src/app/components/itemList/filter/ItemFilter.js
var FilterService = require("services/ItemFilterService"); var ResourceService = require("services/ResourceService"); Vue.component("item-filter", { props: [ "template", "facet", "categoryId" ], data: function() { return { facetParams: [] }; }...
JavaScript
0
@@ -479,788 +479,8 @@ %7D,%0A%0A - computed:%0A %7B%0A selectedNames: function()%0A %7B%0A if (this.facetParams.length %3E 0)%0A %7B%0A var names = %5B%5D;%0A%0A for (var selectedFacetId in this.facetParams)%0A %7B%0A ...
9bb02edcd215c067dc4cd70b5ba88fc4e4589415
更新 new-module 命令
tools/commands/new-module.js
tools/commands/new-module.js
'use strict'; /** * 项目脚手架开发工具 * * @author Zongmin Lei <leizongmin@gmail.com> */ const fs = require('fs'); const path = require('path'); const colors = require('colors'); const inquirer = require('inquirer'); const utils = require('lei-utils'); const schema = [{ type: 'input', name: 'module', message: 'modu...
JavaScript
0.000001
@@ -1499,27 +1499,16 @@ pitalize -FirstLetter (shortNa @@ -2064,12 +2064,105 @@ slice(1);%0A%7D%0A +%0Afunction capitalize(text) %7B%0A return text.split('-').map(capitalizeFirstLetter).join('');%0A%7D%0A
8fe39b5b6404ae859997eb0e9ded8bae56657f2d
处理404
04/04-03/server.js
04/04-03/server.js
let http = require('http'), parse = require('url').parse, join = require('path').join, fs = require('fs'); let root = __dirname; let server = http.createServer(( req, res )=>{ let url = parse( req.url ); let path = join( root, url.pathname ); let stream = fs.createReadStream(path); /**普通方法 stream.on('data',(c...
JavaScript
0
@@ -248,174 +248,306 @@ );%0A%09 -let stream = fs.createReadStream(path);%0A%09/**%E6%99%AE%E9%80%9A%E6%96%B9%E6%B3%95%0A%09stream.on('data',(chunk)=%3E%7B%0A%09%09res.write(chunk);%0A%09%7D);%0A%09stream.on('end',()=%3E +%0A%09fs.stat(path,(err,stat)=%3E%7B%0A%09%09if(err)%7B%0A%09%09%09if('ENOENT'==err.code)%7B%0A%0...
967e724b479b37db1b9656d18b300344628c3cbe
remove JSPerf references
src/types.js
src/types.js
module.exports = function enforce(type, value) { switch (type) { // http://jsperf.com/array-typecheck-2 case 'Array': { if (Array.isArray(value)) return break } // http://jsperf.com/boolean-typecheck case 'Boolean': { if (typeof value === 'boolean') return break } ...
JavaScript
0
@@ -64,51 +64,8 @@ ) %7B%0A - // http://jsperf.com/array-typecheck-2%0A @@ -76,24 +76,24 @@ 'Array': %7B%0A + if (Ar @@ -142,51 +142,8 @@ %7D%0A%0A - // http://jsperf.com/boolean-typecheck%0A @@ -309,60 +309,8 @@ %7D%0A%0A - // http://jsperf.com/number-constructor-v-isnan%0A @@ ...
d10d80ce3cdca4d791280dbd1d5fc923906a36c7
Fix react-helmet example missing initial props (#1598)
examples/with-react-helmet/pages/_document.js
examples/with-react-helmet/pages/_document.js
import Document, { Head, Main, NextScript } from 'next/document' import Helmet from 'react-helmet' export default class extends Document { static async getInitialProps ({ renderPage }) { // see https://github.com/nfl/react-helmet#server-usage for more information // 'head' was occupied by 'renderPage().head'...
JavaScript
0
@@ -169,25 +169,81 @@ ps ( -%7B renderPage %7D) %7B +...args) %7B%0A const documentProps = await super.getInitialProps(...args) %0A @@ -404,28 +404,29 @@ rn %7B ... -renderPage() +documentProps , helmet
58eda462beca8727af75047a9ceced10a3cd3261
Refactor channels :wrench: to use es6 syntax.
commands/channels.js
commands/channels.js
'use strict'; var Channels = require('../src/channels').Channels; exports.command = (rooms, items, players, npcs, Commands) => { return (args, player) => { for (let ch in Channels) { const channel = Channels[ch]; player.say("<yellow>" + channel.name + "</yellow>"); player.write(" "); pl...
JavaScript
0
@@ -11,11 +11,13 @@ t';%0A -var +const Cha
9f59b829150ee1a5ecc86b09cba6b183d58e9a1f
update ColorPickerExamples
examples/containers/app/modules/media/ColorPickerExamples.js
examples/containers/app/modules/media/ColorPickerExamples.js
import React, {Component} from 'react'; import Widget from 'src/Widget'; import WidgetHeader from 'src/WidgetHeader'; import ColorPicker from 'src/ColorPicker'; import PopupProvider from 'src/PopupProvider'; import PropTypeDescTable from 'components/PropTypeDescTable'; import doc from 'assets/propTypes/ColorPicker.js...
JavaScript
0
@@ -151,24 +151,65 @@ lorPicker';%0A +import ColorBlock from 'src/ColorBlock';%0A import Popup @@ -239,24 +239,24 @@ pProvider';%0A - %0Aimport Prop @@ -1595,35 +1595,42 @@ %3C -div +ColorBlock className=%22pick @@ -1684,47 +1684,29 @@ -style=%7B%7Bbackground: %60#$%7Bvalue%7D%60%7D%7D%3E%3C...
dc9fa27ced7403b441ab2c4196a9b0a528a58d71
Enable deprecated-type rule in www
src/model/transaction/addEntityToEntityMap.js
src/model/transaction/addEntityToEntityMap.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. * * @format ...
JavaScript
0.000002
@@ -324,21 +324,8 @@ flow - strict-local %0A */
f78620a19da299df0edc011ec3165dab3ac369a1
Update font-awesome vuejs link
docs/pages/components/icon/api/icon.js
docs/pages/components/icon/api/icon.js
export default [ { props: [ { name: '<code>type</code>', description: 'Type (color) of the icon, optional', type: 'String, Object', values: `<code>is-white</code>, <code>is-black</code>, <code>is-light</code>, <c...
JavaScript
0
@@ -2422,45 +2422,35 @@ use/ -web-fonts-with-css#additional-styling +on-the-web/using-with/vuejs %22 ta
73ed7f522e9cb429418a3aba34e5d6bccf702dd5
fix eslint warning: Variable might not have been initialized
generators/client/templates/gulp/utils.js
generators/client/templates/gulp/utils.js
'use strict'; var fs = require('fs'); module.exports = { endsWith : endsWith, parseVersion : parseVersion, isLintFixed : isLintFixed }; function endsWith(str, suffix) { return str.indexOf('/', str.length - suffix.length) !== -1; } <% if (buildTool == 'maven') { %> var parseString = require('xml2js')....
JavaScript
0.000061
@@ -416,16 +416,23 @@ version + = null ;%0A va @@ -862,20 +862,45 @@ %7D - else %7B%0A +%0A %7D);%0A if (version === null) %7B%0A @@ -967,37 +967,25 @@ ined');%0A - %7D%0A %7D); +%7D %0A return @@ -1493,17 +1493,16 @@ %3C%25 %7D %25%3E%0A -%0A function
7bc03b08628912b131b07025890a893611b28b1c
Fix computation in the "Online Version" section: 1KB = 1024B, not 1000B
public/js/online.js
public/js/online.js
$(document).ready(function() { var parser; var buildAndParseTimer = null; var parseTimer = null; var oldGrammar = null; var oldParserVar = null; var oldStartRule = null; var oldInput = null; function build() { oldGrammar = $("#grammar").val(); oldParserVar = $("#parser-var").v...
JavaScript
0.999999
@@ -24,16 +24,61 @@ ion() %7B%0A + var KB = 1024;%0A var MS_IN_S = 1000;%0A%0A var pa @@ -853,24 +853,25 @@ + +( ($(%22#grammar @@ -880,32 +880,39 @@ .val().length / +KB) / ( (timeAfter - tim @@ -911,32 +911,43 @@ er - timeBefore) + / MS_IN_S) ).toPrecision(2) @@ -2409,16 +2409,17 @@ ...
218ff416eb1cca4a7b57a618a16b6b180ae094e6
Remove unnecessary .search state
public/js/routes.js
public/js/routes.js
var app = angular.module("browseApp.routes", ['ui.router']); /* * Configurations for states for ui-router. Controllers refer to * the controllers located in mainctrls.js. * */ app.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider .otherwise('/categories'); $stateProvider .s...
JavaScript
0.000002
@@ -926,93 +926,8 @@ %7D)%0A%0A - .state('list.search',%7B%0A templateUrl: 'templates/list.search.html'%0A %7D)%0A%0A
10181e179a63b02ab6f017ab955c09a126f48827
update netlify form settings
src/containers/ContactContainer.js
src/containers/ContactContainer.js
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React, { PureComponent } from 'react'; import { Form, Input, Button } from '../components'; import { parseInput } from '../utils'; // ─────...
JavaScript
0.000001
@@ -1295,26 +1295,20 @@ -data-netlify=%22true +method=%22POST %22%0A @@ -1317,13 +1317,8 @@ -data- netl @@ -1345,64 +1345,25 @@ eld%22 -%0A method=%22POST%22%0A action=%22/contact#success%22 + %0A netlify %0A%0A
9fb2432b14ed85889b892e5ba024fb07a204faf7
Add ThemedStyleSheet.registerInterface to react-with-styles example (#13284)
examples/with-react-with-styles/pages/_app.js
examples/with-react-with-styles/pages/_app.js
import React from 'react' import { DIRECTIONS } from 'react-with-direction' import AphroditeInterface from 'react-with-styles-interface-aphrodite' import WithStylesContext from 'react-with-styles/lib/WithStylesContext' import defaultTheme from '../defaultTheme' function MyApp(props) { const { Component, pageProps } ...
JavaScript
0
@@ -212,16 +212,86 @@ ontext'%0A +import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'%0A import d @@ -392,16 +392,74 @@ props%0A%0A + ThemedStyleSheet.registerInterface(AphroditeInterface)%0A%0A return
8ea4b42bbefb2bcb8b6188ba33b4db276bfa6ff6
update path to Console.jsm module
src/entry.js
src/entry.js
var providers; // When included as a jsm file. if (typeof Components !== 'undefined') { Components.utils.import("resource://gre/modules/devtools/Console.jsm"); Components.utils.import("resource://gre/modules/Timer.jsm"); Components.utils.import('resource://gre/modules/Services.jsm'); XMLHttpRequest = Component...
JavaScript
0
@@ -136,17 +136,8 @@ les/ -devtools/ Cons
4b450f7b36ffbfcefe04485cf95530608345deb4
Return size information
src/models/queries/registrationInformation.js
src/models/queries/registrationInformation.js
var Model = require('../index'); module.exports = { attributes: { include: [['id', 'registration_id'], 'created_at', 'updated_at', 'scout_id', 'event_id'], exclude: ['projectedCost', 'actualCost'] }, include: [{ model: Model.Scout, as: 'scout', attributes: [['id', 'scout_id'], 'firstname', 'l...
JavaScript
0.000001
@@ -1034,32 +1034,44 @@ 'item', 'price' +, 'has_size' %5D,%0A through:
a8ff44ecb7ae9d742e2b7165f2e4a0edc123c934
fix import
sp-filter/ViewModel.js
sp-filter/ViewModel.js
import DefineMap from 'can-define/map/map'; import Filter from '../sp-filter-builder/Filter'; /** * A `<sp-filter />` component's ViewModel * * @class ViewModel * @memberof sp-filter */ export default DefineMap.extend('SPFilter', { /** @lends sp-filter.ViewModel.prototype */ /** * The filter object ...
JavaScript
0.000001
@@ -44,22 +44,24 @@ %0Aimport +%7B Filter +%7D from '.
3e790c92fd8bc94df7562155fea045d8d1a7d330
Set wizard start button type (#16020)
src/applications/static-pages/wizard/index.js
src/applications/static-pages/wizard/index.js
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import set from 'platform/utilities/data/set'; import { connect } from 'react-redux'; import { form526BDDFeature } from '../../disability-benefits/all-claims/config/selectors'; import { WIZARD_STATUS, WIZARD_STATUS...
JavaScript
0
@@ -4187,16 +4187,42 @@ %3Cbutton%0A + type=%22button%22%0A
5985142a7f934c5d2a06da8c3d86f259ccba4b87
fix issue on opening codepen
docs/plugins/codepen.js
docs/plugins/codepen.js
import CodePen from './components/codepen.vue' import tinyCopy from './scripts/tiny-copy' const reStyle = /<style>([\s\S]+)<\/style>/ const reScript = /<script>([\s\S]+)<\/script>/ const reTemplate = /<template(|\s*[^>]+)>([\s\S]+)<\/template>/ export default { install (Vue) { Vue.component('c-codepen', CodePen...
JavaScript
0.000001
@@ -610,15 +610,13 @@ -' title -' : 'C @@ -641,14 +641,12 @@ -' html -' : '%3C @@ -681,17 +681,16 @@ -' js_pre_p @@ -697,17 +697,16 @@ rocessor -' : 'babel @@ -718,17 +718,16 @@ -' css_exte @@ -722,33 +722,32 @@ css_external -' : 'https://unpkg @@ -842,17 +842,16 @@ ...
a93def495c24c2ef6263992cc7a3a011ea225a1c
Update ball edge functions to return x/y coordinates
js/ball.js
js/ball.js
var Ball = function(){ this.x = 0, this.y = 100, this.velocityX = 5, this.velocityY = 2, this.radius = 5 , this.colour = 'green', this.center = function(){ } } Ball.prototype.reachedBoundary = function () { if (this.y + this.velocityY > canvas.height || this.y + this.velocityY < 0) { // this.ve...
JavaScript
0.000001
@@ -760,24 +760,34 @@ %7B%0A return +%7B%0A %22x%22: this.x - thi @@ -786,32 +786,66 @@ .x - this.radius +,%0A %22y%22:this.y + this.radius%0A %7D %0A%7D;%0A%0ABall.protot @@ -879,24 +879,34 @@ %7B%0A return +%7B%0A %22x%22: this.x + thi @@ -909,24 +909,58 @@ this.radius +,%0A %22y%22:this.y ...
378cd9237208140950d8a8419de4621db72efc95
Fix resizing issues with iframed pages
frontend/src/containers/TeamPage/TeamPage.js
frontend/src/containers/TeamPage/TeamPage.js
import React, { Component } from 'react' import Helmet from 'react-helmet' import { NavBar } from '../../components' const styles = { iframe: { width: '100%', } } class TeamPage extends Component { componentDidMount() { var iframe = this.refs.iframe iframe.addEventListener('load', () => { va...
JavaScript
0
@@ -261,16 +261,198 @@ iframe%0A%0A + window.addEventListener('resize', () =%3E %7B%0A var iframeScrollHeight = iframe.contentWindow.document.body.scrollHeight + 'px'%0A%0A iframe.height = iframeScrollHeight%0A %7D)%0A%0A ifra
3068b4d713b97f3de1d72ae4b7d6a716092b3901
Add catID url parameter to state
public/js/routes.js
public/js/routes.js
var app = angular.module("browseApp.routes", ['ui.router']); app.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider .otherwise('/categories'); $stateProvider .state('allcats',{ url: '/categories', templateUrl: 'templates/catlist.html', controller: 'h...
JavaScript
0.000001
@@ -369,16 +369,23 @@ : '/list +/:catID ',%0A @@ -499,16 +499,23 @@ l: '/new +/:catID ',%0A
33e0196c02ad4cb79bc8916322babf528f6284ec
Make isObservable stricly boolean, not merely truthy
observable.js
observable.js
var WeakMap = require("./weak-map"); var List = require("./list"); var contentChangeDescriptors = new WeakMap(); // {isActive, willChangeListeners, changeListeners} var Observable = exports; Observable.getContentChangeDescriptor = function () { if (!contentChangeDescriptors.has(this)) { contentChangeDes...
JavaScript
0.00357
@@ -1058,32 +1058,34 @@ is.isObserved = +!! listeners.length @@ -1571,16 +1571,18 @@ erved = +!! listener
c2172a4f5d34af88ea8d6bcccaadf785935652a7
use varstring OKAY instead of special fixed message
codec.js
codec.js
var svarint = require('signed-varint') var varstruct = require('varstruct') var varmatch = require('varstruct-match') var assert = require('assert') var b2s = varstruct.buffer(32) var signature = varstruct.buffer(64) var type = varstruct.varbuf(varstruct.bound(varstruct.byte, 0, 32)) var msgpack = r...
JavaScript
0
@@ -3221,24 +3221,81 @@ th == 32%0A%7D%0A%0A +function isString(s) %7B%0A return 'string' === typeof s%0A%7D%0A%0A var Okay =%0A @@ -3357,16 +3357,67 @@ true%7D)%0A%0A +var VBuffer = varstruct.varstring(varstruct.byte)%0A%0A codec%0A @@ -3789,16 +3789,48 @@ kay%0A %7D) +%0A .type(150, VBuffer, isString) %0A...
d5376245e01a62f59d25a809fddd50f5790c6430
Make sure to export the endpoints
awssum-amazon-dynamodb.js
awssum-amazon-dynamodb.js
// -------------------------------------------------------------------------------------------------------------------- // // dynamodb.js - class for AWS DynamoDB // // Copyright (c) 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: http://opensource.org/l...
JavaScript
0
@@ -3791,16 +3791,421 @@ xports%0A%0A +exports.US_EAST_1 = amazon.US_EAST_1;%0Aexports.US_WEST_1 = amazon.US_WEST_1;%0Aexports.US_WEST_2 = amazon.US_WEST_2;%0Aexports.EU_WEST_1 = amazon.EU_WEST_1;%0Aexports.AP_SOUTHEAST_1 = amazon.AP_SOUTHEAST_1;%0Aexports.AP_SOUTHEAST_2 = amazon.AP_SOUTHEAST_2;%0A...
71d43fa5e437ce2b4aefca5db0f93ff14b3b3f52
Add global test timeout
tests/connectors-tests.js
tests/connectors-tests.js
'use strict'; /** * This runner executes tests of the extension connectors. * These tests are placed into 'connectors' directory. */ require('node-define'); const RETRIES_COUNT = 4; const fs = require('fs'); const path = require('path'); const options = require('./helpers/options'); /** * Get full path to test...
JavaScript
0.000001
@@ -180,16 +180,44 @@ UNT = 4; +%0Aconst TEST_TIMEOUT = 60000; %0A%0Aconst @@ -3037,24 +3037,54 @@ _COUNT);%0A%09%09%7D +%0A%09%09this.timeout(TEST_TIMEOUT); %0A%0A%09%09let conn
ac3b791799341bdae72e7347fbefe762d4f8c481
Set spotlight inner angle to glTF defaults
spot-light.js
spot-light.js
const Signal = require('signals') function SpotLight (opts) { this.type = 'SpotLight' this.enabled = true this.changed = new Signal() this.target = [0, 0, 0] this.color = [1, 1, 1, 1] this.intensity = 1 this.angle = Math.PI / 4 this.innerAngle = Math.PI / 6 this.range = 10 this.castShadows = false ...
JavaScript
0
@@ -260,19 +260,9 @@ e = -Math.PI / 6 +0 %0A t
9e206ccc9de34bf6cf93e8b82259906ab99902a3
Clean migrations
db/migrations/20170121173624_create_users_table.js
db/migrations/20170121173624_create_users_table.js
'use strict'; exports.up = function(knex, Promise) { return knex.schema.createTableIfNotExists('users', function(table) { table.increments('id').unsigned().primary(); table.integer('role_id').unsigned().index().references('id').inTable('roles').onDelete("CASCADE").notNullable(); table.strin...
JavaScript
0.000001
@@ -279,28 +279,27 @@ SCADE%22). -notNullable( +defaultTo(3 );%0A
d9dd6a9ce0668659cdb1964cfab52323113e4dd4
Change animate slide transition type from linear to swing
full-screen-gif-slider.js
full-screen-gif-slider.js
(function($) { 'use strict'; $(function() { var slider = $('#slider'); var wrapper = $('#wrapper'); var container = $('#images'); var url = 'fileNamesFromFolder.php'; var gifFolder = 'gifs'; var fileNamesText; var fileNamesArray; var winWidth; var winHeight; container.load(u...
JavaScript
0
@@ -1854,14 +1854,13 @@ 0, ' -linear +swing ', f
33d25c8a8ab02c323e1262ea80c28b9777ce462f
add offline functionality
work/service-worker.js
work/service-worker.js
var cacheName = 'weatherPWA-step-6-1'; var filesToCache = [ '/', '/index.html', '/scripts/app.js', '/styles/inline.css', '/images/clear.png', '/images/cloudy-scattered-showers.png', '/images/cloudy.png', '/images/fog.png', '/images/ic_add_white_24px.svg', '/images/ic_refresh_white_24px.svg', '/ima...
JavaScript
0.000001
@@ -1398,12 +1398,400 @@ laim();%0A%7D);%0A +%0Aself.addEventListener('fetch', function(e) %7B%0A console.log('%5BServiceWorker%5D Fetch', e.request.url);%0A e.respondWith( // pass response back to webpage%0A caches.match(e.request).then(function(response) %7B%0A return response %7C%7C fetch(e.request);%0A ...
0b84dc0d18cd298a5a07e75b01a9d441094417fd
handle fx:Declarations in main app
frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
/** * 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 * distribu...
JavaScript
0
@@ -2137,16 +2137,125 @@ this;%0A%0A + org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this, null, this.get_MXMLDescriptor());%0A %0A this.d
94a70ba966af247788ed775629bf89dc40b4e31b
Install specific dependencies of the generated code
generators/app/index.js
generators/app/index.js
const Generator = require('yeoman-generator') const chalk = require('chalk') const fs = require('fs') const generateDuck = require('./generateDuck') const generateStoreIndex = require('./generateStoreIndex') module.exports = class extends Generator { constructor (args, opts) { super(args, opts) this.optio...
JavaScript
0.000001
@@ -6752,17 +6752,12 @@ %7D%0A - %0A %7D%0A + %0A i @@ -6843,16 +6843,17 @@ %0A%0A if + (install @@ -6883,28 +6883,106 @@ his. -i +npmI nstall -Dependencies( +(%5B'redux'%5D, %7B save: true %7D)%0A this.npmInstall(%5B'react-router-redux'%5D, %7B save: true %7D )%0A
4737774ac9f5022f2a75ddb75130863b50a0c155
Remove the timeout
src/entry.js
src/entry.js
//TODO: fix bug when remove multiple comboboxes import moment from 'moment'; import {inject} from 'aurelia-framework'; import {HttpClient} from 'aurelia-fetch-client'; import 'fetch'; import {comboBox} from './combobox'; const DEFAULTSELECT = 'Select food item:'; let foodArray = []; @inject(HttpClient) export class E...
JavaScript
0.003746
@@ -3655,16 +3655,42 @@ false;%0A + this.recheck = false;%0A %7D%0A%0A g @@ -4035,24 +4035,80 @@ -setTimeout(() =%3E +this.recheck = true;%0A %7D%0A%0A get showUnitsInput() %7B%0A if (this.recheck) %7B%0A @@ -4150,59 +4150,42 @@ ull; +%0A - %0A %7D, 100);%0A %7D%0A%0A get showUnits...
44948be8b124ed6cc770cec2b91e52aa72209bdf
fix "default" keyword warning
js/half.js
js/half.js
/* * Copyright (c) 2013-2013, John Mettraux, jmettraux@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
JavaScript
0.00016
@@ -4084,24 +4084,27 @@ (n && f -. +%5B' default +'%5D ) data%5Bf @@ -4117,16 +4117,19 @@ = f -. +%5B' default +'%5D ;%0A
b5d9be82acac99893dd0e245f7efec277e61495e
make closebutton smaller. Still ugly
frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
/** * 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 * distribu...
JavaScript
0.000001
@@ -1344,16 +1344,95 @@ = 'x';%0A%0A + this.element.style.padding = 0;%0A this.set_height(11);%0A this.set_width(11);%0A return
bf31988371423654bbb0df65e05558c5b502139a
Update tetromino to use set function in constructor
tetromino.js
tetromino.js
var Tetromino = function(args) { this.element = args.element; var shape = args.shape; this.blocks = shape.map(function(block) { return {x: new Number(block.x), y: new Number(block.y)}; }); this.row = 0; this.col = 4; for(var block in this.blocks) { this.blocks[block].y += this.row; this.blo...
JavaScript
0
@@ -44,31 +44,141 @@ ment - = args.element;%0A var +;%0A this.blocks;%0A this.shape;%0A%0A this.set(args);%0A%7D%0ATetromino.prototype.set = function(args) %7B%0A this.element = args.element;%0A this. shap @@ -210,16 +210,21 @@ locks = +this. shape.ma @@ -496,16 +496,21 @@ = 0;%0A +this. shape.fo @@ -6...
3821c593b7958302b79c0bf74251ae9860b2898e
Add intro
functions/convey/index.js
functions/convey/index.js
var alexa = require('alexa-app'); var app = new alexa.app('convey'); var _ = require('underscore'); var removeMd = require('remove-markdown'); var conveyPackage = require('./package.json'); var factsArray = require('./facts.json') var alternativeFactGenerator = require('./services/alternative_fact_generator') console...
JavaScript
0.000001
@@ -1705,16 +1705,55 @@ res.say( +%60Here are today's alternative facts: $%7B alternat @@ -1770,12 +1770,14 @@ in(' -, +; ') +%7D%60 );%0A
70b57c2a492ccb061c6cdd70f2767cc4e4c945cd
fix merged files
generators/pattern-library/example/config.js
generators/pattern-library/example/config.js
/* * This is the configuration file that is needed to create the real * documentation such as the pattern library. * * When a new project is created this file will need to be updated with the * correct paths from your project. * */ var patterns = { //The pattern library will be created and include document...
JavaScript
0.000001
@@ -394,21 +394,8 @@ ts.%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A @@ -882,303 +882,8 @@ ml'%0A -=======%0A patterns: %7B%0A settings: %7B%0A dest: 'demo/documentation/pattern-library',%0A //include path to where the templates will live for the pattern library%0A template: 'de...
24e2dc23fa3a114b3c9d8d99d424d2955209e180
Fix link for audio href tag
servers/static/js/tracks.js
servers/static/js/tracks.js
window.App = window.App || {}; (function($, Backbone, _, L, App) { var tracksView = Backbone.View.extend({ el: $("#tracks-list"), events: { "click li": "onTrackClick" }, initialize: function(options) { // set the collection and call render this.collection = options['collecti...
JavaScript
0
@@ -2814,14 +2814,8 @@ link -1_href + %22
984fadb11429757b72cd055ddfc9cf0a12a1b7e5
Fix a bug on property name
client/gacha/routers/GachaRouter.js
client/gacha/routers/GachaRouter.js
// load: client/common/models/Card.js // load: client/common/models/GachaBoxItem.js // load: client/common/routers/Router.js (function(App, undef) { "use strict"; var Card = App.models.Card; var GachaBoxItem = App.models.GachaBoxItem; var Klass = App.routers.GachaRouter = App.routers.Router.extend({ ...
JavaScript
0.000006
@@ -1570,26 +1570,24 @@ this.box -Collection +ListView .active(
d22bef7eb3639478390f040cb6e154deb98ff6e9
update to newer addon docs routing
tests/dummy/app/router.js
tests/dummy/app/router.js
import EmberRouter from '@ember/routing/router'; import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('demos', function() { this.route('each'); this.route('container-only'); this.r...
JavaScript
0
@@ -4,40 +4,65 @@ ort -Ember +AddonDocsRouter, %7B docs Route -r + %7D from ' -@ ember -/routing +-cli-addon-docs /rou @@ -130,13 +130,17 @@ r = -Ember +AddonDocs Rout @@ -887,129 +887,36 @@ s%0A -this.route('docs', function() %7B%0A this.route('api', function() %7B%0A this.route('item', %7B path: ...
3ec8cf70249093640d9ad88af4649c65243dbef2
comment mongodb connect string
config/env/development.js
config/env/development.js
module.exports = { // Local instance. // To install mongodb: https://docs.mongodb.org/manual/tutorial/ // With mongodb installed, All you should need to do is uncomment the `db` property below, and run the following command: // grunt db-reset:development // That will create the local nodegoat data-store,...
JavaScript
0
@@ -371,16 +371,18 @@ ts.%0A%0A +// db: %22mo
48de920f90a5986f64eb0797c78876fe57dcbfd0
Remove register command
commands/register.js
commands/register.js
'use strict'; var exec = require('child_process').exec; var users; module.exports = function register(controller, db) { users = db.collection('users'); controller.hears(['register'], ['direct_message','mention','direct_mention', 'message_received'], function(bot, message) { bot.api.users.info({user: messag...
JavaScript
0.000003
@@ -117,16 +117,19 @@ db) %7B%0A%0A +// users @@ -155,16 +155,19 @@ ers');%0A%0A +// contro @@ -279,24 +279,27 @@ message) %7B%0A +// bot.api. @@ -351,24 +351,27 @@ r, _user) %7B%0A +// var us @@ -387,16 +387,19 @@ r.user;%0A +// bo @@ -445,24 +445,27 @@ ame + '!');%0A +// ...
593b315b1dd290c92e3a3322fa424b7eec357c5f
Delete uncollated sets on source and witness delete (Fix #89)
dev/_/components/js/comparisonSetCollectionView.js
dev/_/components/js/comparisonSetCollectionView.js
AV.ComparisonSetCollectionView = Backbone.View.extend({ el: '#list_set_container', initialize: function() { this.listenTo(this.collection, 'reset remove', this.render); this.listenTo(Backbone, 'comparison:collate', this.refresh); this.listenTo(Backbone, 'source:deleted', this.refresh); ...
JavaScript
0
@@ -296,37 +296,40 @@ eleted', this.re -fresh +qDeleted );%0A this. @@ -369,29 +369,32 @@ ed', this.re -fresh +qDeleted );%0A %7D,%0A @@ -996,24 +996,373 @@ %7D%0A %7D,%0A + reqDeleted: function()%7B%0A this.collection.fetch();%0A var deletedModels = _.filter(this.collection.mode...
65cab88b4d11449c5f6d38468fde70bf22a2dd0f
Fix some issues
agendor-api-integration.js
agendor-api-integration.js
"use strict" var userToken = process.env.AGENDOR_TOKEN; var agendorUrl = "https://api.agendor.com.br/v1/"; var request = require('request'); module.exports.nextTask = function nextTask(sendTextMessage, sender, res) { request({ url: agendorUrl + "tasks", headers: {"Authorization": "Token " + userToken}, q...
JavaScript
0.013428
@@ -606,35 +606,20 @@ ole.log( -response.statusCode +body );%0A c
50833743e06dc0349bf993f64e5672461ba6542a
Improve typechecking for InstantAssessmentsContainerField
client/src/components/assessments/InstantAssessmentsContainerField.js
client/src/components/assessments/InstantAssessmentsContainerField.js
import { CustomFieldsContainer, ReadonlyCustomFields } from "components/CustomFields" import LinkTo from "components/LinkTo" import _isEmpty from "lodash/isEmpty" import PropTypes from "prop-types" import React from "react" import { Table } from "react-bootstrap" const InstantAssessmentsContainerField = ({ entit...
JavaScript
0
@@ -122,16 +122,53 @@ LinkTo%22%0A +import Model from %22components/Model%22%0A import _ @@ -2017,16 +2017,47 @@ es.array +Of(PropTypes.instanceOf(Model)) ,%0A enti @@ -2281,24 +2281,35 @@ Types.object +.isRequired ,%0A valida @@ -2416,16 +2416,32 @@ ops = %7B%0A + entities: %5B%5D,%0A readon
30494b62312fe03dee056012eb68392127665e67
Add xml parser for correctly
servers/static/js/tracks.js
servers/static/js/tracks.js
window.App = window.App || {}; (function($, Backbone, _, L, App) { var tracksView = Backbone.View.extend({ el: $("#tracks-list"), events: { "click li": "onTrackClick" }, initialize: function(options) { // set the collection and call render this.collection = options['collecti...
JavaScript
0
@@ -1185,16 +1185,17 @@ the map%0A +%0A @@ -1231,15 +1231,77 @@ gpx( -data +%0A (new DOMParser()).parseFromString(data, 'text/xml') );%0A +%0A
8eab414580b3cf2c88af1e4940a98b69e03f5e3d
Remove unused require in the test unitilies module.
test/support/common.js
test/support/common.js
'use strict'; var assert = require('assert'); var path = require('path'); var fs = require('fs'); var common = require('../../lib/js-yaml/common'); var NIL = common.NIL; var _hasOwnProperty = Object.prototype.hasOwnProperty; function each(obj, iterator, context) { var keys, i, l; if (null === obj || un...
JavaScript
0
@@ -13,40 +13,8 @@ ;%0A%0A%0A -var assert = require('assert');%0A var
54162d7a1fc91ee063835a1c2b79458b06b9d39d
Fix storage a bit
public/js/submit.js
public/js/submit.js
$(document).ready(function() { var store = new LocalStorageManager(); win1 = CodeMirror.fromTextArea(document.getElementById("bot1_code"), { lineNumbers: true, mode: "text/javascript" }); win2 = CodeMirror.fromTextArea(document.getElementById("bot2_code"), { lineNumbers: true, mode: "text/javasc...
JavaScript
0
@@ -1114,32 +1114,66 @@ === 'custom');%0A + if (!_.isEmpty(category)) %7B%0A store.set('d @@ -1179,32 +1179,38 @@ d1', category);%0A + %7D%0A %7D);%0A b2s.chan @@ -1345,24 +1345,58 @@ 'custom');%0A + if (!_.isEmpty(category)) %7B%0A store.se @@ -1414,16 +1414,22 @@ egory);%0A + %7D%0...
6605146e05887d93fe9fb1a9e66c75f1aa32535b
fix missing gulp filter for webpack
generators/app/index.js
generators/app/index.js
const fountain = require('fountain-generator'); const conf = require('./conf'); module.exports = fountain.Base.extend({ prompting() { this.fountainPrompting(); }, configuring: { pkg() { const pkg = { devDependencies: { 'del': '^2.0.2', 'gulp': 'gulpjs/gulp#4.0', ...
JavaScript
0.000001
@@ -364,16 +364,51 @@ ry-init' +,%0A 'gulp-filter': '%5E3.0.1' %0A @@ -707,43 +707,8 @@ 3',%0A - 'gulp-filter': '%5E3.0.1',%0A
2255a87987a6bf7defec6eab6a7c9515cc68ea93
Add comment regarding purpose of variable
src/event.js
src/event.js
var _on = Thorax.View.prototype.on; {{#inject "configure"}} //_events not present on HelperView this.constructor._events && _.each(this.constructor._events, function(event) { this.on.apply(this, event); }, this); if (this.events) { _.each(Thorax.Util.getValue(this, 'events'), function(handler, eventNam...
JavaScript
0.000001
@@ -1,12 +1,72 @@ +// Save a copy of the _on method to call as a $super method%0A var _on = Th
038cfb9e611eee2bd8d550eb49e1fa6623b5bdd5
Update development.js
config/env/development.js
config/env/development.js
'use strict'; var defaultEnvConfig = require('./default'); module.exports = { db: { uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || , options: { user: '', pass: '' }, // Enable mongoose debug mode debug: process.env.MONGODB_DEBUG || false }, log: { ...
JavaScript
0.000001
@@ -147,19 +147,16 @@ OLAB_URI - %7C%7C ,%0D%0A
096ad7ff257a9386da3a6712d917b95f2a48559a
remove text input plugin
public/app.js
public/app.js
// Execute JavaScript on page load $(function() { Initialize phone number text input plugin $('#customerNumber').intlTelInput({ responsiveDropdown: true, autoFormat: true, utilsScript: '/vendor/intl-phone/libphonenumber/build/utils.js' }); $('#businessNumber').intlTelInput({ ...
JavaScript
0.000002
@@ -47,415 +47,8 @@ ) %7B%0A - Initialize phone number text input plugin%0A $('#customerNumber').intlTelInput(%7B%0A responsiveDropdown: true,%0A autoFormat: true,%0A utilsScript: '/vendor/intl-phone/libphonenumber/build/utils.js'%0A %7D);%0A $('#businessNumber').intlTelInput(%7B%0A ...
5956d1a22e6d1d3a6d8a3a96cb6c33e196ed55c5
Add JSPM in NPM scripts to avoid global install
generators/app/index.js
generators/app/index.js
'use strict'; const _ = require('lodash'); const fountain = require('fountain-generator'); const conf = require('./conf'); const transforms = require('./transforms'); module.exports = fountain.Base.extend({ configuring: { pkg() { this.updateJson('package.json', packageJson => { packageJson.jspm = ...
JavaScript
0
@@ -1495,16 +1495,69 @@ %5E0.5.4'%0A + %7D,%0A scripts: %7B%0A jspm: 'jspm'%0A
e7152c70d3d573df29d85ed2420b6fcc6282abc7
Fix macros to wait for previous command.
dotfiles/.vscode/extensions/vroy-code/extension.js
dotfiles/.vscode/extensions/vroy-code/extension.js
const vscode = require('vscode'); const PromiseSeries = require('promise-series'); function wordCase(cb) { return function() { let startPos = vscode.window.activeTextEditor.selection.active; vscode.commands.executeCommand("cursorWordRight").then(() => { let endPos = vscode.window.activ...
JavaScript
0
@@ -803,16 +803,23 @@ (() =%3E %7B + return vscode.
f33b1ace8c8f4938f7d9c19ab12f72c82f847e7c
Use const to store Git Plus commit title
lib/autosave-onchange.js
lib/autosave-onchange.js
'use babel'; /** * TRIGGER FORMATTING ON ENTER KEY * On action newline below * CHECK LINE CONTEXT TextEditor ::scopeDescriptorForBufferPosition(bufferPosition) * FORMAT ON ENTER Mutating Text ::insert new line (TextEditor) // Trigger any shortcuts on * ADD EW FILE BUTTON * * * For this 15 mins session, I want ...
JavaScript
0
@@ -715,16 +715,64 @@ veDelay; +%0Aconst GIT_PLUS_COMMIT_TITLE = 'COMMIT_EDITMSG'; %0A%0Aexport @@ -2757,32 +2757,37 @@ e() === -'COMMIT_EDITMSG' +GIT_PLUS_COMMIT_TITLE ) %7B%0A
e4e3d65a41ae31de85b13d404e7da369be57e54d
Use alloy's Atlas theme
client/src/components/TextEditor.js
client/src/components/TextEditor.js
import React, {Component} from 'react' import AlloyEditor from 'alloyeditor/dist/alloy-editor/alloy-editor-no-react' import 'alloyeditor/dist/alloy-editor/assets/alloy-editor-ocean.css' export default class TextEditor extends Component { componentDidMount() { setTimeout(() => { this.editor = AlloyEditor.editable...
JavaScript
0
@@ -173,13 +173,13 @@ tor- -ocean +atlas .css
c093a25a65d5ad8ef7abaa64f0831f1d7f8e202e
Update Package creation
generators/app/index.js
generators/app/index.js
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay( 'Welcome to the epic ' + chalk.green('generator-magnifyalljs') + ' generat...
JavaScript
0
@@ -1250,17 +1250,17 @@ e(%22 %22, %22 -_ +- %22);%0A
1cac7d1ffc9a46a91e2a35631e5555e4ecc4aa77
fix dropzone error callback for admin fields (#1250)
filer/static/filer/js/addons/dropzone.init.js
filer/static/filer/js/addons/dropzone.init.js
// #DROPZONE# // This script implements the dropzone settings /* globals Dropzone, django */ 'use strict'; // as of Django 2.x we need to check where jQuery is var djQuery = window.$; if (django.jQuery) { djQuery = django.jQuery; } if (Dropzone) { Dropzone.autoDiscover = false; } /* globals Dropzone, django...
JavaScript
0
@@ -4957,32 +4957,37 @@ function (file, + msg, response) %7B%0A @@ -4975,32 +4975,149 @@ sg, response) %7B%0A + if(response && response.error)%7B%0A msg += ' ; ' + response.error;%0A %7D%0A @@ -5141,38 +5141,27 @@ me + ': ' + -response.error +...
8a34f63b90c862a1532995f7a6b50f158c319cd5
Include server count only if service has a servers field
public/src/index.js
public/src/index.js
var LagerApp = React.createClass({ loadServersData: function() { $.ajax({ url: "/servers", dataType: 'json', cache: false, success: function(data) { this.setState({ servers: data }); }.bind(this) }); }, loadServicesData: function() { $.ajax({ url: "/servic...
JavaScript
0
@@ -2272,32 +2272,191 @@ r: function() %7B%0A + var serverCountLabel = '';%0A if (this.props.service.servers) %7B%0A serverCountLabel = %3Cp%3EServer count: %7Bthis.props.service.servers.length%7D%3C/p%3E;%0A %7D%0A%0A return (%0A @@ -2676,65 +2676,26 @@ - %3Cp%3ES +%7Bs erver - c +C ount...
32dcc7cdda8f766a8aa5d38cdc989692611738a8
correct navbar with device with small screen
src/app/components/gui/components/navbar/navbar.controller.js
src/app/components/gui/components/navbar/navbar.controller.js
/* * Copyright (C) Schweizerische Bundesbahnen SBB, 2016. */ class NavbarController { /*@ngInject*/ constructor(preScreenLoadingInterceptorsCallerService, $location, languagePickerService) { this.languagePickerService = languagePickerService; preScreenLoadingInterceptorsCallerService.intercept...
JavaScript
0
@@ -429,16 +429,50 @@ %7D%0A + this.navCollapsed = true;%0A
697aabacddfccfa8638cfd1075061fbf8e3ae552
Allow state to be optional. If not passed in then set it to null.
website/app/application/services/project-state.js
website/app/application/services/project-state.js
Application.Services.factory("projectState", projectStateService); // projectState service tracks state information by project. Each // state has a unique id that is assigned to it. function projectStateService() { var self = this; self.stateByProject = {}; self.lastID = 0; // The last state id assigned. ...
JavaScript
0
@@ -2791,16 +2791,58 @@ xtID();%0A + var s = state ? state : null;%0A @@ -2863,36 +2863,32 @@ tes%5BstateID%5D = s -tate ;%0A re
9f6fbd881dfa6a14da7c30454a52f846a53db833
fix glEnumToString for non-numbers
src/utils.js
src/utils.js
/* * Copyright 2019 Gregg Tavares * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, ...
JavaScript
0.999513
@@ -4796,15 +4796,41 @@ %7C%7C ( -%220x%22 + +typeof value === 'number' ? %600x$%7B valu @@ -4843,16 +4843,26 @@ ring(16) +%7D%60 : value );%0A %7D;%0A
6b72b0e8646c8adfbcec10d412f0ac91213225cc
add missing space
filer/static/filer/js/addons/dropzone.init.js
filer/static/filer/js/addons/dropzone.init.js
// #DROPZONE# // This script implements the dropzone settings 'use strict'; /* global Dropzone */ (function ($) { $(function () { var dropzoneSelector = '.js-dropzone'; if ($(dropzoneSelector).length && Dropzone) { Dropzone.autoDiscover = false; new Dropzone(dropzoneSelecto...
JavaScript
0.999995
@@ -586,16 +586,17 @@ function + (file) %7B
3f2b14d6801dcae0dbd00c6583428226f8fa9878
Fix wrong check for login status
public/src/index.js
public/src/index.js
var LagerApp = React.createClass({ _loadServersData: function() { $.ajax({ url: "/servers", dataType: 'json', cache: false, success: function(data) { this.setState({ servers: data }); }.bind(this) }); }, _loadServicesData: function() { $.ajax({ url: "/serv...
JavaScript
0.000001
@@ -820,17 +820,17 @@ token') -= +! == ''%0A
dd3ff8655a9b882ad3218bc6e9b86da0a399494e
add descriptions
src/aura/BGE_BatchGiftEntryTab/BGE_BatchGiftEntryTabHelper.js
src/aura/BGE_BatchGiftEntryTab/BGE_BatchGiftEntryTabHelper.js
({ /******************************** Init Functions *****************************/ doInit: function(component) { var action = component.get('c.getTableModel'); action.setCallback(this, function (response) { const state = response.getState(); if (state === 'SUCCESS') { ...
JavaScript
0.000001
@@ -3887,24 +3887,126 @@ *********/%0A%0A + /**%0A * @description: performs field permissions check and then opens New Batch Wizard%0A */%0A handleNe @@ -4182,24 +4182,102 @@ ));%0A %7D,%0A%0A + /**%0A * @description: handler for row actions from Batch table%0A */%0A handleRo
f4d3d6f244d16a64043433874b3ba8f03dbde0ff
update transcription display
js/demo.js
js/demo.js
// GLOBAL VARIABLES var nodes = { downloadButton: document.querySelector('#downloadButton'), inputArea: document.querySelector('#inputArea'), inputAreaWordsWrapper: document.querySelector('#inputArea .words'), jsonArea: document.querySelector('#jsonArea'), transcriptionBox: document.querySelector('#transcript...
JavaScript
0
@@ -380,24 +380,188 @@ ationBox'),%0A + transcriptionDisplay: document.querySelector('#interlinearGloss .transcription'),%0A translationDisplay: document.querySelector('#interlinearGloss .translation'),%0A wordTempla @@ -1947,24 +1947,147 @@ inear() %7B%0A +nodes.translationDisplay.textContent = phrase.transla...
eff973ebc80915e6d3e9dabeb7f1d5c18b2b2e2a
Update trainingpeaks.js
js/trainingpeaks.js
js/trainingpeaks.js
// this JS bookmarklet adds CADENCE values to Trainingpeaks structured workout // sometimes you may have them in the description field but missed in the // actual workout. Use it in that case! function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } result = []; z = document.querySelectorA...
JavaScript
0
@@ -189,16 +189,27 @@ case!%0A%0A%0A +javascript: function @@ -466,16 +466,141 @@ RPM/i);%0A + if (!matcher) %7B%0A v = querySelector(%22.notes .contents%22).innerText;%0A matcher = v.match(/(%5Cw+) ?RPM/i);%0A %7D%0A let
40a3fc45ca91b12f30c5d5026db7b574dc58e174
use tryRequire for screenshot reporter env (#41)
config/protractor.conf.js
config/protractor.conf.js
'use strict'; const {tryRequire} = require('../lib/utils'); //Private wix applitools key //skip wix' key for applitools //In case you want to use applitools & eyes.it (https://github.com/wix/eyes.it) //in your project, please use your own key tryRequire('wix-eyes-env'); // Private Wix environment config for screensh...
JavaScript
0
@@ -434,14 +434,9 @@ %0Atry - %7B%0A r +R equi @@ -466,31 +466,16 @@ -env');%0A -%7D catch (e) %7B%7D%0A %0A%0Arequir
4f40d2f888e588b76765324ae1e3228822b28b33
add missing method [SCT-518] - was causing failure on IE11
src/plugin/modules/widgets/signinWidget.js
src/plugin/modules/widgets/signinWidget.js
define([ 'bluebird', 'kb_common/html', 'kb_common/gravatar', 'kb_common/domEvent2', 'kb_plugin_auth2-client', 'bootstrap' ], function ( Promise, html, Gravatar, DomEvents, Plugin ) { 'use strict'; function myWidget(config) { var runtime = config.runtime; ...
JavaScript
0
@@ -776,76 +776,8 @@ '),%0A - br = t('br', %7B close: false %7D),%0A i = t('i'),%0A @@ -8075,32 +8075,95 @@ %7D%0A %7D%0A%0A + function stop () %7B%0A return null;%0A %7D%0A%0A return %7B
db45d9f9e1f47b6fe5ba77d41f975f6b8eda3128
Update routes.js
client/routes.js
client/routes.js
/* eslint-disable arrow-parens */ /* eslint-disable react/jsx-indent */ /* eslint-disable indent */ import React, {Component} from 'react'; import {connect} from 'react-redux'; import {Router} from 'react-router'; import {Route, Switch} from 'react-router-dom'; import PropTypes from 'prop-types'; import history from '...
JavaScript
0
@@ -1048,21 +1048,8 @@ /%3E%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A @@ -1123,16 +1123,8 @@ /%3E%0A -=======%0A @@ -1261,23 +1261,8 @@ /%3E%0A -%3E%3E%3E%3E%3E%3E%3E master%0A
4605ec3b662e8a612850dc26b585c43f8fa8fa9c
Fix jspm dependencies only if systemjs
generators/app/index.js
generators/app/index.js
const _ = require('lodash'); const fountain = require('fountain-generator'); module.exports = fountain.Base.extend({ prompting() { this.fountainPrompting(); }, configuring: { pkg() { const pkg = { devDependencies: { // https://github.com/babel/babel-eslint/issues/267 'e...
JavaScript
0.000015
@@ -3106,32 +3106,308 @@ '%7D%7D%7D);%0A %7D +%0A%0A if (this.props.js !== 'typescript') %7B%0A _.merge(pkg, %7B%0A jspm: %7B%0A dependencies: %7Bbabel: 'npm:babel-core@%5E6.6.5'%7D,%0A devDependencies: %7B'plugin-babel': 'npm:systemjs-plugin-babel@%5E0.0.8'%...
8aea663b365b3de75a559a00bedc508786eb6f7d
Fix bug in deepCopy
js/util/deepCopy.js
js/util/deepCopy.js
/** * Fast deep copy function, copied from https://github.com/davidmarkclements/rfdc * Function is copied rather than imported because project does not support es6 import, only 'require' */ function cloneArray(a, fn) { const keys = Object.keys(a) const a2 = new Array(keys.length) for (let i = 0; i < ke...
JavaScript
0
@@ -634,24 +634,60 @@ epCopy(o) %7B%0A + if (o instanceof File) return o%0A if (type
af2b4cf9a3b78daaf278ad0da12ded1489ce8ff2
Comment sections
client/routes.js
client/routes.js
Router.configure({ layoutTemplate: 'main' }); Router.route('/', function () { this.render('addActivity'); }, { name: 'front' }); Router.route('/residents', function () { this.render('residents'); }, { name: 'residents' }); Router.route('/resident/:residentId', function () { var controller = this; var r...
JavaScript
0
@@ -122,32 +122,51 @@ e: 'front'%0A%7D);%0A%0A +/*%0A Residents%0A*/%0A%0A Router.route('/r @@ -506,24 +506,40 @@ ident'%0A%7D);%0A%0A +/*%0A Groups%0A*/%0A%0A Router.route @@ -944,32 +944,47 @@ e: 'group'%0A%7D);%0A%0A +/*%0A Homes%0A*/%0A%0A Router.route('/h @@ -1322,32 +1322,46 @@ iesByType'%0A%7D);%0A%0A ...
5939d76ca26c5075104892bbd9669fc83cc4dc8f
include dot-files in simple copy
generators/app/index.js
generators/app/index.js
var _ = require('lodash'); var generator = require('yeoman-generator'); module.exports = generator.Base.extend({ constructor: function () { generator.Base.apply(this, arguments); }, promptingName: function () { var done = this.async(); this.prompt({ type: 'input', name: 'name', mes...
JavaScript
0
@@ -1151,16 +1151,44 @@ ('**/*') +, this.templatePath('**/.*') %5D, '', v