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
6aab5fa512ff66fb550090483b1fad727be5d34c
exit when a subscription is negated
bin/sub.js
bin/sub.js
#!/usr/bin/env node var mqtt = require('../') , path = require('path') , fs = require('fs') , concat = require('concat-stream') , helpMe = require('help-me')({ dir: path.join(__dirname, '..', 'doc') }) , minimist = require('minimist'); function start(args) { args = minimi...
JavaScript
0.000002
@@ -2035,16 +2035,244 @@ rgs.qos +%7D, function (err, result) %7B%0A result.forEach(function (sub) %7B%0A if (sub.qos %3E 2) %7B%0A console.error('subscription negated to', sub.topic, 'with code', sub.qos);%0A process.exit(1);%0A %7D%0A %7D)%0A %7D);%0A %7D)
30dbf5edbb0a8f6e02403d41d6da5aa539a7d53a
make sure error is handled
bin/cli.js
bin/cli.js
#!/usr/bin/env node var path = require('path'); var argv = require('minimist')(process.argv.slice(2)); var utils = require('../lib/utils'); var errors = require('./errors'); var assemble = require('..'); function run(cb) { var cwd = process.cwd(); /** * Get the assemblefile.js to use */ var assemblefile...
JavaScript
0.000001
@@ -1268,104 +1268,30 @@ if ( -typeof err === 'string' && errors%5Berr%5D) %7B%0A console.log(e +err) handleE rror -s%5B +( err -%5D ); -%0A process.exit(1);%0A %7D %0A%0A @@ -1557,12 +1557,183 @@ ;%0A %7D);%0A%7D);%0A +%0A%0A%0Afunction handleError(err) %7B%0A if (typeof err === 'string' && errors%5Be...
6a114ea7ab40cd6f98008889b60d951f400254c6
fix missing apikey param
sfprofile.user.js
sfprofile.user.js
// ==UserScript== // @name gmodstore Checker // @namespace meharryp.xyz // @version 1.1.2 // @description View a scriptfodder users profile information on their steam profile page. // @author meharryp // @downloadURL https://raw.githubusercontent.com/meharryp/sfprofile/master/sfprof...
JavaScript
0.000005
@@ -104,17 +104,17 @@ 1.1. -2 +3 %0D%0A%09// @d @@ -1471,16 +1471,39 @@ steamid + + %22?api_key=%22 + apikey ,%0D%0A%09%09%09me
beee7e8787228e6e9ce4fd00a4b18bc9932a7a55
Correct the names of required classes. Thanks @bartvde for the hint.
examples/printpage/print-page.js
examples/printpage/print-page.js
/** * Copyright (c) 2008-2012 The Open Source Geospatial Foundation * * Published under the BSD license. * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text * of the license. */ /** api: example[print-page] * Print Your Map * -------------- * Print the visible extent of a MapPanel...
JavaScript
0
@@ -569,18 +569,18 @@ tainer.W -MS +ms Legend', @@ -607,10 +607,10 @@ er.U -RL +rl Lege
73d7dc26f79960a9ce6c8d176da0974c8a34baf9
Allow reverse lookup of Delta types.
src/delta.js
src/delta.js
'use strict'; var Types = { paragraphInsert: 1, paragraphUpdate: 2, paragraphDelete: 3, sectionInsert: 4, sectionUpdate: 5, sectionDelete: 6 } /** * Delta constructor. Type should be one of the types above. * * @param {Int} index * @param {*} data * @param {String} type */ function Delta (index, dat...
JavaScript
0
@@ -146,24 +146,163 @@ elete: 6%0A%7D%0A%0A +// We should also be able to look up the string from the number.%0AObject.keys(Types).forEach(function (key) %7B%0A Types%5BTypes%5Bkey%5D%5D = key%0A%7D)%0A%0A /**%0A * Delta @@ -353,24 +353,58 @@ s above.%0A *%0A + * @param %7BString %7C%7C Number%7D type%0A * @param...
1933d497d64281908650a3236910db63181365eb
Add property 'useShimWorker' for debugging purposes
src/Task.js
src/Task.js
define(function(require) { var Utils = require('./utils/Utils'), ShimWorker = require('./shim/ShimWorker'), Task ; /* Class definition and class functions /* ---------------------------------------------------------------------- */ Task = function() { Task.prototype._initialize.apply(this, arguments); }...
JavaScript
0
@@ -682,16 +682,65 @@ f string +%0A%09%09useShimWorker: false, //for debugging purposes %0A%0A%09%09/* T @@ -1362,16 +1362,91 @@ s.task;%0A +%09%09%09this.useShimWorker = this._options.useShimWorker %7C%7C%C2%A0this.useShimWorker;%0A %09%09%09this. @@ -2349,32 +2349,33 @@ ow.Blob &&%0A%09%09%09%09%09 +( typeof ur...
a449b2082f806bd01638c76968636d5b75977256
make demo product page easier to read
pages/product.js
pages/product.js
import React from 'react'; import PropTypes from 'prop-types'; import withRedux from 'next-redux-wrapper'; import toSlug from '../lib/to-slug'; import App from '../components/app'; import { Text } from '../components/base'; import fetchProducts from '../lib/fetch-products'; import initStore from '../lib/store'; import ...
JavaScript
0
@@ -187,16 +187,21 @@ t %7B Text +, Box %7D from @@ -218,24 +218,24 @@ ents/base';%0A - import fetch @@ -509,16 +509,43 @@ %3CApp%3E%0A + %3CText bold%3EName%3C/Text%3E%0A %3CTex @@ -572,32 +572,67 @@ ct.name%7D%3C/Text%3E%0A + %3CText bold%3EManufacturer%3C/Text%3E%0A %3CText%3E%7Bprops @@ -6...
ccc890c8dc101e4e68accadc92dc08967c2c1bad
add https support
models/server.js
models/server.js
/** * Module dependencies */ var fs = require('fs'), http = require('http'), path = require('path'); /** * Main Model logic */ function Server() { var servers = {}, f = fs.readFileSync(path.join(__dirname, '../config.json')), config = JSON.parse(f), keys = Object.keys(config.servers),...
JavaScript
0
@@ -73,24 +73,54 @@ re('http'),%0A + https = require('https'),%0A path = r @@ -480,21 +480,90 @@ key%5D -;%0A%0A +,%0A -http + module = server.url.match(/%5Ehttps:%5C/%5C//) ? https : http;%0A%0A module .get
75fa34bca543b7cafb86f4c8087f0af33e71caff
Fix Scope style undefined.
search/quick-search/scope.js
search/quick-search/scope.js
var builder = require('focus').component.builder; var type = require('focus').component.types; var React = require('react'); //var type = require('../../core/validation/types'); var find = require('lodash/collection/find'); var uuid = require('uuid'); var scopeMixin = { /** * Component tag name. * @type {Strin...
JavaScript
0
@@ -2124,20 +2124,81 @@ e = -activeScope; +this.getActiveScope();%0A%09%09if(!activeScope)%7B%0A%09%09%09return %22qs-scope-none%22;%0A%09%09%7D %0A
2fb3aeaed21823db73fd19963f278ce2b4f01b69
Use DB_MIGRATOR_DIR env variable as per documentation
bin/env.js
bin/env.js
'use strict' module.exports = { getConfig: function () { const config = {} const args = Array.prototype.slice.call(process.argv, 2) config.connectionString = args[0] || process.env.npm_package_config_db_migrator_db_url || process.env.npm_config_db_migrator_db_url || process.env.DATABA...
JavaScript
0
@@ -578,11 +578,11 @@ TOR_ -ENV +DIR %7C%7C%0A
7efda5158e7830cb4907e82e6e5bf90d5b9869eb
Revert previous commit 8761d698021d50c591cc446c7957cd493be217f5
src/dateparser/dateparser.js
src/dateparser/dateparser.js
angular.module('ui.bootstrap.dateparser', []) .service('dateParser', ['$locale', 'orderByFilter', function($locale, orderByFilter) { this.parsers = {}; var formatCodeToRegex = { 'yyyy': { regex: '\\d{4}', apply: function(value) { this.year = +value; } }, 'yy': { regex: '\\d{2}', ...
JavaScript
0
@@ -1171,36 +1171,32 @@ x: ' -0 %5B1- -9%5D%7C%5B1 2%5D +? %5B0-9%5D +%7B1%7D %7C3%5B0 +- 1%5D -%7C%5B1-9%5D +%7B1%7D ',%0A
58cbc81dc244d3cdb0bd1f48e03389281e14d629
Fix source and destination paths for installing plugins from local disk
src/fetch.js
src/fetch.js
var shell = require('shelljs'), fs = require('fs'), plugins = require('./util/plugins'), xml_helpers = require('./util/xml-helpers'), path = require('path'); module.exports = function fetchPlugin(plugin_dir, plugins_dir, link, subdir, callback) { // Ensure the containing directory exists....
JavaScript
0
@@ -1268,17 +1268,64 @@ ell. -cp('-R', +mkdir('-p', dest);%0A shell.cp('-R', path.join( plug @@ -1327,24 +1327,31 @@ (plugin_dir, + '*') , dest);%0A
351106d13b819d2fa5b7ee711adf0aa04654d047
fix minor typo (#1188)
bin/nyc.js
bin/nyc.js
#!/usr/bin/env node const configUtil = require('../lib/config-util') const foreground = require('foreground-child') const NYC = require('../index.js') const processArgs = require('../lib/process-args') const sw = require('spawn-wrap') const wrapper = require.resolve('./wrap.js') // parse configuration and command-li...
JavaScript
0.000003
@@ -2151,16 +2151,17 @@ gv descr +i ption, b
91dd86d5e137f2ad9ea04deb022c4920d778b371
Add version check for global proxy
src/eval.js
src/eval.js
'use strict'; const vm = require('vm'); const path = require('path'); const isBuffer = Buffer.isBuffer; const requireLike = require('require-like'); const {isString, isObject, isBoolean} = require('./util'); const settings = require('./config'); function _createConfig(content, filename, scope, includeGlobals) { con...
JavaScript
0
@@ -240,16 +240,146 @@ nfig');%0A +const semvar = require('semver');%0A%0Aconst proxiedGlobal = ((semvar.satisfies(process.versions.node + '%3E=8.3.0')) ? true : false);%0A%0A %0Afunctio @@ -1474,16 +1474,34 @@ eGlobals + && !proxiedGlobal ) Object @@ -1527,48 +1527,8 @@ obal -, %7Brequire:requireLike(config.filen...
03069a80c2f306cb616016211d45c26d663f5870
Fix refactoring typo
modules/bully.js
modules/bully.js
module.exports.run_bully = function(r, p, reply) { reply(parts.join(", ") + ": I feel offended by your recent action(s). Please read http://stop-irc-bullying.eu/stop"); };
JavaScript
0.001164
@@ -60,12 +60,8 @@ ly(p -arts .joi
e2828b486d144729926690348a92bb12661f9d35
Remove old comment
src/form.js
src/form.js
{{#inject "model-options"}} , populate: true {{/inject}} {{#inject "model-change"}} if (this._modelOptions && this._modelOptions.populate) { this.populate(this.model.attributes, this._modelOptions.populate === true ? {} : this._modelOptions.populate); } {{/inject}} _.extend(Thorax.View.prototype, { //ser...
JavaScript
0
@@ -5068,152 +5068,8 @@ %0A%7D)%0A -/*%0A var selector = '%5B' + viewCidAttributeName + '%5D';%0A if (!options.helper) %7B%0A selector += ':not(%5B' + viewHelperAttributeName + '%5D)';%0A %7D%0A*/ %0Afun
08c50623b71c15f66169045e306c7507c48d3b32
Add modules to exports
src/game.js
src/game.js
const User = require(`${__dirname}/game/model/user.js`); const Status = require(`${__dirname}/game/model/status.js`); const Equipment = require(`${__dirname}/game/model/Equipment.js`); const Weapon = require(`${__dirname}/game/model/Weapon.js`); const Parameter = require(`${__dirname}/game/model/Parameter.js...
JavaScript
0.000001
@@ -378,24 +378,194 @@ tRate.js%60);%0A +const Spell = require(%60$%7B__dirname%7D/game/model/Spell.js%60);%0Aconst Effect = require(%60$%7B__dirname%7D/game/model/Effect.js%60);%0Aconst AttackEffect = Effect.AttackEffect;%0A const EventE @@ -567,24 +567,25 @@ ventEmitter + = require('e @@ -2014,11 +2014,...
0032783576ad9356d4fd131b140e008301aaf509
fix width height
src/image.js
src/image.js
import React, {Component} from 'react' export class Image extends Component { render () { const {file, source, src} = this.props const image = file ? `static/${file}` : src || source return ( <img src={image} style={{minWidth: '50%', maxWidth: '100%'}} /> ) } }
JavaScript
0.000037
@@ -238,33 +238,29 @@ e=%7B%7B -minW +w idth: ' -5 +10 0%25', -maxWidth +height : '1
3ba6cd09d6702eb4802b90c377ec2c74163a41c1
Fix for undefined `this` in event handlers
bliss._.js
bliss._.js
(function($) { "use strict"; if (!Bliss || Bliss.shy) { return; } var _ = Bliss.property; // Methods requiring Bliss Full $.add({ // Clone elements, with events clone: function () { var clone = this.cloneNode(true); var descendants = $.$("*", clone).concat(clone); $.$("*", this).concat(this).forEach(functi...
JavaScript
0
@@ -1560,32 +1560,40 @@ re) %7B%0A%09%09if (this + && this %5B_%5D && callback) @@ -2441,8 +2441,9 @@ (Bliss); +%0A
8f2497d7d5e695cb752e9682d5a9291178403985
add axis scale for timefn
src/axis.js
src/axis.js
var globals = require('./globals'), util = require('./util'); var axis = module.exports = {}; axis.names = function (props) { return util.keys(util.keys(props).reduce(function(a, x) { var s = props[x].scale; if (s===X || s===Y) a[props[x].scale] = 1; return a; }, {})); } axis.defs = function(names,...
JavaScript
0.000002
@@ -1436,16 +1436,182 @@ %7D%0A %7D%0A%0A + if (encoding.isType(name, T)) %7B%0A var fn = encoding.fn(name);%0A switch (fn) %7B%0A case %22day%22:%0A case %22month%22:%0A axis.scale = %22time-%22+fn;%0A %7D%0A %7D%0A%0A return
b2858f2a428f98d8cc182fade0dea5e841b15c0c
Use capture on mousemove and mouseup.
src/drag.js
src/drag.js
import {dispatch} from "d3-dispatch"; import {event, customEvent, select, mouse, touch} from "d3-selection"; import cancel from "./cancel"; import constant from "./constant"; import DragEvent from "./event"; import noclick from "./noclick"; import nodrag from "./nodrag"; import noselect from "./noselect"; // Ignore ri...
JavaScript
0
@@ -2185,16 +2185,22 @@ usemoved +, true ).on(%22mo @@ -2222,16 +2222,22 @@ useupped +, true );%0A m
9758f09608fb0df94c3fac708813b0d6ac3c8b89
Fix safari bug
src/index.js
src/index.js
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import mixin from './mixin'; import InputHandler from './InputHandler'; function noop() { } function preventDefault(e) { e.preventDefault(); } const InputNumber = React.createClass({ propTypes: { focusOnUpDown: PropTypes.bool, ...
JavaScript
0
@@ -1679,16 +1679,43 @@ ndefined + && this.start !== this.end ) %7B%0A
469ba735e1b00d159da2234daa66c42c16e54b1e
allow 207 Multi-Status
src/index.js
src/index.js
import { STATUS_CODES } from 'http' export const BASE_URI = '' export const DEFAULT_TYPE = 'about:blank' export const IANA_STATUS_CODES = 'http://www.iana.org/assignments/http-status-codes#' export const ERR_STATUS = '"status" must be a valid HTTP Error Status Code ([RFC7231], Section 6)' export const ERR_TITLE = 'mi...
JavaScript
0.000433
@@ -184,16 +184,71 @@ -codes#' +%0Aexport const CONTENT_TYPE = 'application/problem+json' %0A%0Aexport @@ -1019,16 +1019,17 @@ %0A if +( (statusN @@ -1063,16 +1063,41 @@ r %3C 400) + && statusNumber !== 207) %7B%0A @@ -1923,34 +1923,20 @@ e', -'application/problem+json' +CONTENT_TYPE )%0A
ef9d172ae8bbfaad8eb8b1da6d0663f7a462a4c9
Use div instead of img
src/index.js
src/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import ReactDOMServer from 'react-dom/server' // See: https://github.com/webpack/react-starter/issues/37 const isBrowser = typeof window !== 'undefined' const SVGInjector = isBrowser ? require('svg-injector') : undefined export default class ...
JavaScript
0.000003
@@ -1101,19 +1101,19 @@ %3C -img +div %0A @@ -1228,20 +1228,17 @@ const -imgW +w rapper = @@ -1302,12 +1302,9 @@ tor( -imgW +w rapp
99b82e7f3608dc23828d417f6c07e72681b29afa
fix isPatter()
src/index.js
src/index.js
function isPattern(candidate) { return typeof candidate === `string` && (candidate.charAt(0) === `/` || candidate.charAt(0) === `*`) } function isRouteConfigurationObject(routes) { if (typeof routes !== `object`) { return false } for (let path in routes) { if (routes.hasOwnProperty(path)) { r...
JavaScript
0.000006
@@ -108,34 +108,24 @@ %7C%7C candidate -.charAt(0) === %60*%60)%0A%7D%0A
b9f1753af8373fbebb3291db4e682a7a06516fd9
remove redundant voiced initialization
src/index.js
src/index.js
"use strict"; var dataCatalogue = require('./data-catalogue'), speak = require('./functions/speak'); var iOS = /iPad|iPhone|iPod/.test(navigator.platform); var app = { init: function () { this.startButtonElement = document.getElementsByClassName('start-button')[0]; this.mainElement = document...
JavaScript
0.000859
@@ -2414,40 +2414,8 @@ ) %7B%0A - this.voiced = true;%0A @@ -2692,41 +2692,8 @@ e %7B%0A - this.voiced = false;%0A
1a88481fbda4a3614adbb9f537e3e86494850414
Fix Blob for older node versions and webpack. (#618)
src/blob.js
src/blob.js
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js // (MIT licensed) import { Readable } from 'stream'; export const BUFFER = Symbol('buffer'); const TYPE = Symbol('type'); export default class Blob { constructor() { this[TYPE] = ''; const blobPar...
JavaScript
0
@@ -138,34 +138,112 @@ ort -%7B Readable %7D from 'stream' +Stream from 'stream';%0A%0A// fix for %22Readable%22 isn't a named export issue%0Aconst Readable = Stream.Readable ;%0A%0Ae
57b076b57e9de04c38f205911d9da3e672a5e16a
Remove logs and return results in promise
src/index.js
src/index.js
const npm = require('./npm'); const NPMTwit = require('./npmTwit'); const semver = require('semver'); const fs = require('fs'); const defaults = require('lodash.defaults'); const AWS = require('aws-sdk'); function getCacheObject(options, s3) { if (s3) { const params = { Bucket: options.s3_bucke...
JavaScript
0
@@ -2766,67 +2766,8 @@ %3E %7B%0A - console.log(%60modules: $%7BnpmModules.length%7D%60);%0A%0A @@ -3026,79 +3026,8 @@ );%0A%0A - console.log(%60updated modules: $%7BupdatedModules.length%7D%60);%0A%0A @@ -3503,16 +3503,143 @@ ons, s3) +%0A .then(() =%3E (%7B%0A ...
37018823fd0b4e4b7bd781312de7fdcbb8f5db71
fix incorrect require
src/index.js
src/index.js
'use strict'; var LightningVisualization = require('lightning-visualization'); var vega = require('./deps/vega'); var vl = require('vega-lite'); /* * Extend the base visualization object */ var Visualization = LightningVega.extend({ init: function() { this.render(); }, render: function() { ...
JavaScript
0.00001
@@ -217,19 +217,28 @@ ghtningV -ega +isualization .extend(
cd1d0be66fe61b38a3ade86585a2329040367fd2
Clean up
src/index.js
src/index.js
const actOnFiltered = actionFn => filter => rows => rows.filter(filter).map(actionFn); const applyWhenPredicate = actionFn => predicate => row => (predicate(row) ? actionFn(row) : row); const actOnMatching = actionFn => filter => rows => rows.map(applyWhenPredicate(actionFn)(filter)); const returnRow = row => row; c...
JavaScript
0.000002
@@ -531,80 +531,21 @@ %7D;%0A%0A -export %7B default as byArrowKeys %7D from './by-arrow-keys';%0Aexport const a +const selectA ll = @@ -588,22 +588,21 @@ ));%0A -export const n +const selectN one @@ -647,22 +647,21 @@ ));%0A -export const r +const selectR ows @@ -804,22 +804,21 @@ %7D);%0A -export const t +co...
3d365c364d50a1e8fa407d5a8f93dd3c56d19a17
delete unused code
src/index.js
src/index.js
/** * Module dependencies. */ var spawn = require('child_process').spawn; /** * The default path to the CINEMA 4D Application. * * @api private */ var cinema4d_path = '/Applications/MAXON/CINEMA\ 4D R14/CINEMA\ 4D.app/Contents/MacOS/CINEMA\ 4D'; /** * Set the path to the CINEMA 4D Application. * * @param {St...
JavaScript
0.000002
@@ -2600,38 +2600,8 @@ %7D;%0A%0A - //log(d, tmpOptionsArray);%0A%0A //
7a06a58d721c34ada78578dd6c1e67652082daca
Remove leftover.
src/index.js
src/index.js
import './vendor'; import './globals'; import './sass/style.scss'; import '../svgfonts.font'; import featuresModule from './features/module'; import teamModule from './team/module'; import issuesModule from './issues/module'; import userModule from './user/module'; import providersModule from './providers/module'; imp...
JavaScript
0
@@ -3827,38 +3827,8 @@ e);%0A -controllersModule(appModule);%0A serv
5708051851adeb248cbdc3bdd21931fffadfceda
Add support for custom resolvePath from babel plugin (#109)
src/index.js
src/index.js
const path = require('path'); const resolve = require('resolve'); const pkgUp = require('pkg-up'); const { resolvePath } = require('babel-plugin-module-resolver'); const { OptionManager } = require('@babel/core'); function getPlugins(file, cwd) { try { const manager = new OptionManager(); const result = mana...
JavaScript
0
@@ -1205,24 +1205,93 @@ ias %7C%7C %7B%7D),%0A + resolvePath: plugin.options.resolvePath %7C%7C config.resolvePath,%0A extens @@ -3235,16 +3235,58 @@ %7C%7C %7B%7D,%0A + resolvePath: options.resolvePath,%0A @@ -3422,16 +3422,86 @@ alias);%0A + const resolvePathFunc = pluginOptions.re...
bbcc2917df59ca73017ce232d54d848c04ac7ccd
add refetchData prop
src/index.js
src/index.js
// @flow import React from 'react'; export default ( resource: string | Function, options?: RequestOptions, ): Function => Component => class FetchHOC extends React.Component { _isMounted: boolean; getUrl = () => { let url = resource; if (typeof resource === 'function') { url = resou...
JavaScript
0
@@ -877,24 +877,95 @@ lse;%0A %7D%0A%0A + refetchData = () =%3E %7B%0A this.fetchData(this.getUrl());%0A %7D;%0A%0A fetchDat @@ -2642,16 +2642,17 @@ return +( %3CCompone @@ -2653,16 +2653,24 @@ omponent +%0A %7B...thi @@ -2677,16 +2677,24 @@ s.props%7D +%0A %7B...thi @@ -2705...
c893bd6637239baa03d83ee356ec5d9f551c2e88
update test
src/index.js
src/index.js
const Discord = require('discord.js'); const config = require('./config.json'); const banList = require('../out/banned.json'); const fs = require('fs'); const UpdateListener = require('./updater'); const updateListener = new UpdateListener(); const client = new Discord.Client({ max_message_cache: 5, fetch_all_mem...
JavaScript
0.000001
@@ -492,17 +492,16 @@ m online -! ');%0A up
4971beb666990b709c62c192451c7e93722d7392
Add cache control meta to index.html
src/html.js
src/html.js
import React from "react" import { TypographyStyle } from "react-typography" import * as PropTypes from "prop-types" import typography from "./utils/typography" let stylesStr if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log...
JavaScript
0.000001
@@ -1035,24 +1035,174 @@ cale=1.0%22/%3E%0A + %3Cmeta httpEquiv=%22Cache-control%22 content=%22no-cache, no-store, must-revalidate%22 /%3E %0A %3Cmeta httpEquiv=%22Pragma%22 content=%22no-cached%22 /%3E%0A %3Ct
37b43b1515499023414630bc966450240d5e3e9b
move export state to bottom of file
src/core.js
src/core.js
'use strict'; import {Model} from './model'; import {serialize, deserialize} from './serializers/xml'; import {persist} from './adapters/mediawiki'; export {Core as InfoboxTemplateBuilder}; class Core extends Model { constructor(params = {}) { super(); const {from} = params; /* * If builder is instanti...
JavaScript
0
@@ -147,51 +147,8 @@ ';%0A%0A -export %7BCore as InfoboxTemplateBuilder%7D;%0A%0A%0A clas @@ -870,16 +870,17 @@ 0.1.0';%0A +%0A window.I @@ -909,8 +909,50 @@ = Core;%0A +%0Aexport %7BCore as InfoboxTemplateBuilder%7D;%0A
dc75bd2495a32c75cfbeb71a76ca87f9bc9e07b0
Fix stupid typo. It's time for adding unit tests!
src/index.js
src/index.js
var _ = require('lodash'); var instrument = function (file) { return { pattern: file, instrument: true, load: true, ignore: false }; }; var notInstrument = function (file) { return { pattern: file, instrument: false, load: true, ignore: false }; }; function applyMappings(mapping...
JavaScript
0.000001
@@ -2027,39 +2027,37 @@ s: getFilesList( -wallaby +karma Files, 'ignore', @@ -2083,39 +2083,37 @@ e: getFilesList( -wallaby +karma Files, 'ignore',
3f8db231e9f74c0cf8e9f376b5d62c7316ce9e54
Change order of definitions
src/index.js
src/index.js
var persistence = module.exports; persistence.Schema = require('./schema').Schema; persistence.define = require('./main').define; persistence.setValidator = require('./main').setValidator; persistence.getValidator = require('./main').getValidator; persistence.setEngine = require('./main').setEngine; per...
JavaScript
0.000034
@@ -148,17 +148,17 @@ istence. -s +g etValida @@ -181,17 +181,17 @@ /main'). -s +g etValida @@ -199,33 +199,33 @@ or;%0Apersistence. -g +s etValidator = re @@ -232,33 +232,33 @@ quire('./main'). -g +s etValidator;%0Aper @@ -266,17 +266,17 @@ istence. -s +g etEngine @@ -299,17 +299,17 @@ /main'). -s +g etEng...
542c4b328c422414057fe3f27ea00dac9fa26202
Patch for fenced code blocks
src/index.js
src/index.js
const TAGS = { '' : ['<em>','</em>'], _ : ['<strong>','</strong>'], '~' : ['<s>','</s>'], '\n' : ['<br />'], ' ' : ['<br />'], '-': ['<hr />'] }; /** Outdent a string based on the first indented line's leading whitespace * @private */ function outdent(str) { return str.replace(RegExp('^'+(str.match(/^(\t| )+/...
JavaScript
0.000042
@@ -696,16 +696,18 @@ %7C(?:%5E%60%60%60 + * (%5Cw*)%5Cn(
38585e6f72f89d79e427072a3e8eab382eab5708
Change namepsace
src/index.js
src/index.js
// export const namespace = "@@lirmes/redux-socket.io-connect"; // export const actionTypes = { CONNECT: `${namespace}/CONNECT`, CONNECT_ERROR: `${namespace}/CONNECT_ERROR`, CONNECT_TIMEOUT: `${namespace}/CONNECT_TIMEOUT`, CONNECT_SUCCESS: `${namespace}/CONNECT_SUCCESS`, CLIENT_REDUX_ACTION: `${namespace}/CL...
JavaScript
0.000277
@@ -28,15 +28,8 @@ %22@@ -lirmes/ redu @@ -3590,24 +3590,16 @@ ction);%0A - %7D);%0A %7D);%0A%7D%0A
30a2ff7909df07d5188c4dbeae719d46562ef778
Add fallback option.
src/index.js
src/index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Platform, View, Image, NativeModules, requireNativeComponent, ViewPropTypes, StyleSheet, } from 'react-native' const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource') const Fa...
JavaScript
0
@@ -737,16 +737,38 @@ ildren,%0A + fallback,%0A @@ -859,24 +859,656 @@ ce(source)%0A%0A + if (fallback) %7B%0A return (%0A %3CView style=%7B%5Bstyle, styles.imageContainer%5D%7D ref=%7Bthis.captureRef%7D%3E%0A %3CFastImageView%0A ...
bef3f2f99efd4098bec72f6befc9c9fb4f9096fc
Simplify `serializeArray()` implementation
src/form.js
src/form.js
// Zepto.js // (c) 2010-2014 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. ;(function($){ $.fn.serializeArray = function() { var el, type, result = [] $([].slice.call(this.get(0).elements)).each(function(){ el = $(this) type = el.attr('type') if (this...
JavaScript
0.00008
@@ -172,16 +172,22 @@ var el, + name, type, r @@ -192,24 +192,166 @@ result = %5B%5D +,%0A add = function(value) %7B%0A if (value.forEach) return value.forEach(add)%0A result.push(%7B name: name, value: value %7D)%0A %7D %0A $(%5B%5D.sl @@ -447,16 +447,39 @@ 'type')%0A + name = t...
2f611d365c5bb40523acb19274996739cf52ca6e
Add fullscreenPseudoClass()
src/index.js
src/index.js
const key = { fullscreenEnabled: 0, fullscreenElement: 1, requestFullscreen: 2, exitFullscreen: 3, fullscreenchange: 4, fullscreenerror: 5, }; const webkit = [ 'webkitFullscreenEnabled', 'webkitFullscreenElement', 'webkitRequestFullscreen', 'webkitExitFullscreen', 'webkitfullscreenchange', 'web...
JavaScript
0.000001
@@ -145,16 +145,32 @@ ror: 5,%0A + fullscreen: 6%0A %7D;%0A%0Acons @@ -342,32 +342,57 @@ llscreenerror',%0A + '-webkit-full-screen',%0A %5D;%0A%0Aconst moz = @@ -541,24 +541,46 @@ reenerror',%0A + '-moz-full-screen',%0A %5D;%0A%0Aconst ms @@ -728,16 +728,36 @@ Error',%0A + '-ms-fullscreen',%0A %5D;%0A%0A//...
6b5edeffb6bebb64c125ec9e920e0bf6160d17df
change time
src/index.js
src/index.js
import 'babel-polyfill'; //import {Gpio} from 'onoff'; var sensor = require('node-dht-sensor'); var http = require('http'); http.post = require('http-post'); setTimeout(loop, 600000); function loop() { sensor.read(22, 18, function(err, temperature, humidity) { if (!err) { http.post('http://asiancede...
JavaScript
0.000022
@@ -167,27 +167,25 @@ meout(loop, -600 +5 000);%0A%0Afunct @@ -726,11 +726,9 @@ op, -600 +5 000)
d335b6e4decba10eec1aa65c944d81052929bf49
Send headers with local queries
src/index.js
src/index.js
const axios = require('axios') const path = require('path') let GraphQL try { // do to GraphQL schema issue [see](https://github.com/graphql/graphiql/issues/58) GraphQL = require(path.join(process.cwd(), './node_modules/graphql')) } catch (e) { // fallback if graphql is not installed locally GraphQL = require(...
JavaScript
0
@@ -951,24 +951,43 @@ chema, query +, null, %7B headers %7D )%0A %7D%0A%7D%0A%0Amod
f3cea3b9bb13dc480f579ca80bf06199b311f02c
Add bulma CSS file.
src/main.js
src/main.js
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', router, compo...
JavaScript
0
@@ -210,16 +210,52 @@ outer'%0A%0A +require('./assets/sass/main.scss')%0A%0A Vue.conf
4e8b8ec6baad0f3e1b9868751a77c190a354ba02
Enhance main module - Make promisifyAll work bluebird style - Return null instead of false in case of error when throwError is false - Return true instead of undefined in case of success when throwError is false - Make module exports babel styled
src/index.js
src/index.js
'use strict' /* @flow */ function promisify(callback: Function, throwError: boolean = true): Function { return function promisified(){ const parameters = Array.from ? Array.from(arguments) : Array.prototype.slice.call(arguments) const parametersLength = parameters.length + 1 let promise = new Promise((r...
JavaScript
0.000001
@@ -1,18 +1,4 @@ -'use strict'%0A%0A /* @ @@ -119,159 +119,24 @@ ied( -)%7B%0A const parameters = Array.from ? Array.from(arguments) : Array.prototype.slice.call(arguments)%0A const parametersLength = parameters.length + 1 +...parameters) %7B %0A @@ -318,46 +318,8 @@ %7D)%0A - if (parametersLength ==...
d3edc84b74ca2a35d550092d3d429c25b8721047
Clean main file
src/main.js
src/main.js
import Vue from 'vue' import { sync } from 'vuex-router-sync' import router from './router' import i18n from './lib/i18n' import store from './store' import App from './App' import vuescroll from 'vue-scroll' import VueLazyload from 'vue-lazyload' import Meta from 'vue-meta' import infiniteScroll from 'vue-infinite-s...
JavaScript
0.000001
@@ -63,22 +63,19 @@ %0Aimport -router +App from '. @@ -75,22 +75,19 @@ from './ -router +App '%0Aimport @@ -117,21 +117,22 @@ %0Aimport -store +router from '. @@ -132,21 +132,22 @@ from './ -store +router '%0Aimport @@ -139,35 +139,37 @@ /router'%0Aimport -App +store from './App'%0A%0Ai @@ -161,19 +161,...
bae178054f4bcb6034d6f96e21cdea07405e7be9
Fix cheating possibility, closes #10
src/game.js
src/game.js
Lettris.Game = function (game) { }; Lettris.Game.prototype = { create: function (game) { this.stars = this.game.add.tileSprite(0, 0, 240, 400, 'sprites', 'background'); // Physics stuff game.physics.startSystem(Phaser.Physics.P2JS); game.physics.p2.setBoundsToWorld(true, true, false, tru...
JavaScript
0
@@ -87,16 +87,62 @@ game) %7B%0A +%0A%09game.stage.disableVisibilityChange = true;%0A%0A %09this.st
b026fcc05c1065f19a31cf10f78821665c566886
Fix spacing
src/main.js
src/main.js
(function() { var game = new Game(); // This would get replaced by UI / controllers game.on( "change:state", function(game, state) { console.log( "state changed", state ); if (state == Game.State.PlayerSetup) { game.finishPlayerSetup( 3 ); } else if (state == Game.State.ShowScenarioChoices ) {...
JavaScript
0.000415
@@ -847,17 +847,16 @@ ionPhase - ) %7B%0A @@ -928,17 +928,16 @@ alChoice - ) %7B%0A
8990426bd5ceb617d0dd47a8cc4ac1d157ae3ee4
Add internationalization mixin
src/main.js
src/main.js
/* global chrome*/ import Vue from 'vue'; import App from './App'; import router from './router'; import Vuex from 'vuex'; import Buefy from 'buefy'; import VsNotify from '@/components/vs-notify'; import store from './store'; window.addEventListener('unload', () => { chrome.runtime.sendMessage({ from: 'app', ...
JavaScript
0.000138
@@ -562,16 +562,113 @@ %7D;%0A %7D,%0A + filters: %7B%0A i18n: function(value) %7B%0A return chrome.i18n.getMessage(value);%0A %7D,%0A %7D,%0A %7D);%0A%0A/*
fa65162f42f23e464ab153783b61962cf8bea3fb
Ajuste les dépendances suite à la migration
src/main.js
src/main.js
import '@babel/polyfill' import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import moment from 'moment' import ScrollService from './plugins/ScrollService' import StateService from './plugins/StateService' import AsyncComputed from 'vue-async-computed' import ...
JavaScript
0
@@ -5,23 +5,22 @@ rt ' -@babel/polyfill +core-js/stable '%0Aim @@ -1196,16 +1196,44 @@ er,%0A%7D)%0A%0A +if (window._paq) %7B%0A window. _paq.pus @@ -1311,16 +1311,18 @@ ble-line +%0A%7D %0A%0AVue.fi
e6d4bfd40e2493ceb2d27526872e5ead08a33f33
Remove duplicate log
src/index.js
src/index.js
import chalk from 'chalk' import childProcess from 'child_process' import template from 'lodash.template' import fs from 'fs' import path from 'path' import readline from 'readline' export const logger = { debug: (...args) => { console.log(chalk.blue(...args)) }, info: (...args) => { console.log(chalk.bo...
JavaScript
0.000005
@@ -2653,16 +2653,40 @@ miter)%0A%0A + logger.info(command)%0A%0A // Han @@ -2727,33 +2727,8 @@ ) %7B%0A - logger.info(command)%0A @@ -2799,39 +2799,16 @@ default%0A - logger.info(command)%0A return
1745bea852cdd34159fd9fdbc0738c099c15a765
Add comments
src/index.js
src/index.js
import express from 'express'; import morgan from 'morgan'; const app = express.Router(); app.use(morgan('combined')); app.get('/', (req, res) => { res.send(":-)"); }); export default app;
JavaScript
0
@@ -168,16 +168,180 @@ );%0A%7D);%0A%0A +export function init() %7B%0A // initialize db connections etc. here%0A return Promise.resolve();%0A%7D%0A%0Aexport function cleanup() %7B%0A // close db connections etc. here%0A%7D%0A%0A export d
4b50a7465baef8156ec6a3ae5087da8e2f06aa96
Remove unneeded import
app/assets/javascripts/class_lists/InlineStudentProfile.js
app/assets/javascripts/class_lists/InlineStudentProfile.js
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import {nextGrade} from '../helpers/gradeText'; import SectionHeading from '../components/SectionHeading'; import GenericLoader from '../components/GenericLoader'; import StudentPhotoCropped from '../components/StudentPhotoCropped'; ...
JavaScript
0.000002
@@ -84,56 +84,8 @@ h';%0A -import %7BnextGrade%7D from '../helpers/gradeText';%0A impo
3271e98daa41e7dfd3e3c0370f23ad65049d66c6
Load template relative to current modules path
src/main.js
src/main.js
'use strict'; const fs = require('fs'); const Handlebars = require('handlebars'); const template = fs.readFileSync('./src/templates/index.html').toString(); const renderTemplate = Handlebars.compile(template, {}); const util = require('./util'); const readFile = util.promisify(fs.readFile); const exists = util.prom...
JavaScript
0
@@ -34,16 +34,46 @@ ('fs');%0A +const path = require('path');%0A const Ha @@ -113,17 +113,23 @@ %0A%0Aconst -t +pathToT emplate @@ -134,52 +134,103 @@ e = -fs.readFileSync('./src/templates/index.html' +path.join(__dirname, './templates/index.html');%0Aconst template = fs.readFileSync(pathToTemplate ).to
59af37b67ebee7a89cec8f5bb0439d4d13b8795d
relocate add analysis button
app/assets/javascripts/components/SampleDetailsAnalyses.js
app/assets/javascripts/components/SampleDetailsAnalyses.js
import React, {Component} from 'react'; import {PanelGroup, Panel, Button, Row, Col} from 'react-bootstrap'; import AnalysisComponent from './Analysis'; import Analysis from './models/Analysis'; export default class SampleDetailsAnalyses extends Component { constructor(props) { super(); const {sample} = prop...
JavaScript
0.000001
@@ -1183,20 +1183,22 @@ me=%22 -pull +button -right%22 styl @@ -1197,32 +1197,8 @@ ht%22 -style=%7B%7BmarginTop: -12%7D%7D %3E%0A @@ -1297,38 +1297,20 @@ -%3Ci className=%22fa fa-plus%22%3E%3C/i%3E +Add analysis %0A @@ -2026,32 +2026,74 @@ (%0A %3Cdiv%3E%0A + %3Cp%3E&nbsp;%7Bthis.add...
ae6f14a41459d0aae8f6eac094d5e033629f269c
Update index.js
src/index.js
src/index.js
// devicehive-freeboard-datasource // http://devicehive.com // // Author: Artem Sorokin (https://github.com/sorjef) // // Copyright (c) 2015 devicehive.com // Licensed under the MIT license. (function () { var pluckArraySettings = function (arr) { var res = _.compact(_.pluck(arr, 'value')); return...
JavaScript
0.000002
@@ -4804,17 +4804,17 @@ Cookie(' -d +D eviceHiv
65ff094d12d110fc3614eaf5e15109d667063ebc
Fix pencil emoji.
src/main.js
src/main.js
import $ from 'jquery'; import { before, after } from 'meld'; import Plugin from 'extplug/Plugin'; import rolloverView from 'plug/views/users/userRolloverView'; import getBlurb from './blurb'; import style from './style.css'; const emoji = $('<span />').addClass('emoji-glow') .append($('<span />').addClass('emoji e...
JavaScript
0.000009
@@ -55,16 +55,58 @@ 'meld';%0A +import * as emoji from 'plug/util/emoji';%0A import P @@ -267,116 +267,8 @@ ';%0A%0A -const emoji = $('%3Cspan /%3E').addClass('emoji-glow')%0A .append($('%3Cspan /%3E').addClass('emoji emoji-1f4dd'));%0A%0A cons @@ -1415,14 +1415,62 @@ end( -emoji, +%0A emoji.replace_colo...
c3d7dd5afbd8f9dec189500b2bf1ef91fe4f8f3c
test for VR feature, so polyfill triggers download of sdftext
src/deps.js
src/deps.js
import feature from './utils/feature'; const packs = [ { test: () => feature.hasWebVR, prepare: () => ( new Promise((resolve) => { require.ensure([], function (require) { deps.SDFText = require('./sdftext'); resolve(); }); }) ), }, { test: () => fea...
JavaScript
0
@@ -84,11 +84,8 @@ .has -Web VR,%0A
55188739cfcbb373cd850a9f091028cff9cf0273
Update component name
src/grid.js
src/grid.js
var React = require('react'); var Item = require('./item'); var Grid = React.createClass({ propTypes: { entries: React.PropTypes.arrayOf(React.PropTypes.element).isRequired, height: React.PropTypes.number, width: React.PropTypes.number, padding: React.PropTypes.number, wrap...
JavaScript
0.000001
@@ -58,16 +58,24 @@ );%0A%0Avar +Infinite Grid = R @@ -5303,14 +5303,22 @@ ports = +Infinite Grid;%0A
306ea1ed64ee3c7441d6167301d40fd1e37cbb27
fix title
src/main.js
src/main.js
var PORT = 28101; if (process.env.PORT) PORT = process.env.PORT; // --- Utility --- var crypto = require('crypto'); var fs = require('fs'); function cryptoUUID() { var N = 128; // http://www.wolframalpha.com/input/?i=solve+62%5En+%3D+2%5E128 return crypto.randomBytes(N * 4).toString('base64').replace(/[+=\/]...
JavaScript
0.000797
@@ -3482,24 +3482,121 @@ urn;%0A %7D%0A %0A + var title = obj.title;%0A if (stringIsBad(title)) %7B%0A res.sendStatus(400);%0A return;%0A %7D%0A %0A var himpl @@ -3829,16 +3829,34 @@ total),%0A + title: title,%0A crea
fbc5ef0e7b5e11368a1837cbe9de6fbade7de51a
Refactor return values
src/index.js
src/index.js
export default function isFree(domain) { const request = require('request-promise'), domainAvailabilityUrl = 'http://free.iis.se/free?q='; return request(domainAvailabilityUrl + domain) .then((responseData) => { const domainAvailability = responseData.split(' ')[0]; if (domainAvailability ...
JavaScript
0.000002
@@ -203,25 +203,17 @@ .then(( -responseD +d ata) =%3E @@ -230,142 +230,159 @@ nst -domainAvailability = responseData.split(' ')%5B0%5D;%0A%0A if (domainAvailability === 'free') %7B%0A return 'FREE';%0A +returnValues = %7B%0A 'free': 'FREE',%0A 'not_valid': 'NOT_VALID',%0A ...
96558cc2317214ec14c35b3bbcca2ff6f9eadb2e
Remove exported forEachNode (now a method of AST.Node).
src/main.js
src/main.js
module AST from "AST.js"; import { Parser } from "Parser.js"; import { Scanner } from "Scanner.js"; export { Parser, Scanner, AST }; export function parseModule(input, options) { return new Parser(input, options).Module(); } export function parseScript(input, options) { return new Parser(input, options).S...
JavaScript
0
@@ -328,745 +328,4 @@ ;%0A%7D%0A -%0Aexport function forEachChild(node, fn) %7B%0A%0A var keys = Object.keys(node), val, i, j;%0A %0A for (i = 0; i %3C keys.length; ++i) %7B%0A %0A // Don't iterate over backlink to parent%0A if (keys%5Bi%5D === %22parentNode%22)%0A continue;%0A ...
3274bf5e5e0a23b084f3ed9305de8d4c93085502
handle self parenting
src/index.js
src/index.js
import path from 'path'; import fs from 'fs'; function findRootModule(mod) { const m = mod || module; return (m.parent ? findRootModule(m.parent) : m); } function findFile(curDir, filename) { const fullpath = path.resolve(curDir, filename); try { if (fs.statSync(fullpath).isFile()) { return fullpath...
JavaScript
0
@@ -107,16 +107,17 @@ return +( (m.paren @@ -117,16 +117,41 @@ m.parent + && m.id !== m.parent.id) ? findR
6b89b02d03aefb6f29f93c33f532a4991ad37f86
Correct boxes
src/index.js
src/index.js
import SVG from 'svg.js' import { daysInMonth } from './helper' const gcg = { id: 'gcg', font: { family: 'Helvetica', size: 9 }, limit: 52, padding: 2, boxSize: 8 } const GCGraph = id => { var element = document.createElement('div') element.innerHTML = 'Summary' element.id = id return ele...
JavaScript
0.00038
@@ -150,10 +150,9 @@ it: -52 +7 ,%0A @@ -178,9 +178,10 @@ ze: -8 +10 %0A%7D%0A%0A @@ -956,16 +956,20 @@ offsetY + + 2 %0A const @@ -1770,16 +1770,26 @@ g * +Math.floor (index -%25 +/ lim @@ -1836,34 +1836,24 @@ dding * -Math.floor (index -/ +%25 limit)%0A @@ -1998,9 +1998,9 @@ = 36 -4 +5 %0Ale...
a3df81353f44668fca02064d41b54ec5cf4e1200
add debug statements
src/index.js
src/index.js
const bitcoinjslib = require('bitcoinjs-lib') class BitgoWallet { constructor(config) { this.config = config this.bitgo = config.bitgo this.walletId = config.walletId this.passphrase = config.passphrase this.chain = config.chain || 0 this.minConfirms = config.minConfirms this._cache = {} ...
JavaScript
0.000002
@@ -38,16 +38,100 @@ js-lib') +%0Aconst initDebug = require('debug')%0A%0Aconst debug = initDebug('bitgo-bitcoin-wallet') %0A%0Aclass @@ -601,32 +601,63 @@ _loadWallet() %7B%0A + debug('loading wallet...')%0A return this. @@ -725,24 +725,54 @@ allet) =%3E %7B%0A + debug('wallet loaded.')%0A thi...
70a2e7037f996581a4dcd4350720a29d102713e0
Fix live reloading
src/index.js
src/index.js
import {writeFileSync, readFileSync} from 'fs'; import ConvertAnsi from 'ansi-to-html'; import Promise from 'promise'; import {sync as mkdirp} from 'mkdirp'; import {sync as rimraf} from 'rimraf'; import {transformFileSync} from 'babel-core'; import {sync as lsr} from 'lsr'; import {setServerLocation} from './config/no...
JavaScript
0.000001
@@ -1213,24 +1213,40 @@ -live')( +require.resolve( filename , %7B%0A @@ -1237,16 +1237,17 @@ filename +) , %7B%0A @@ -1377,16 +1377,90 @@ tform),%0A + babelrc: false,%0A presets: %5Brequire.resolve('babel-preset-moped')%5D,%0A %7D,%0A v @@ -1714,23 +1714,10 @@ tml( -global.lastErro +er r)%7D%3...
1cad52ecbf2c82fabd5420def4cfa5e31e31bfe0
Add 'data-cfw' to track which docs are optimized via this package (#8)
src/index.js
src/index.js
const AmpOptimizer = require('@ampproject/toolbox-optimizer') const LinkRewriter = require('./link-rewriter') const config = /** @type {ConfigDef} */ (require('../config.json')) /** * Configuration typedef. * @typedef {{ * from: string, * to: string, * domain: string, * optimizer: Object, * enableCloudflar...
JavaScript
0
@@ -1625,16 +1625,23 @@ return +addTag( maybeRew @@ -1660,16 +1660,17 @@ config) +) %0A %7D cat @@ -2106,24 +2106,352 @@ esponse)%0A%7D%0A%0A +/**%0A * Adds %60data-cfw%60 to the html node to mark it as optimized by this package.%0A * @param %7B!Response%7D response%0A * @returns %7B!Response%7D%0A */%0Afuncti...
7ada42cd3976ca78b075bad0c5c775c45930a319
Revert "Added $SkyScroll to kvue"
src/index.js
src/index.js
import _throttle from 'lodash.throttle'; const SkyScrollPlugin = { install(Vue, options) { const _defaults = { throttle: 0, }; const config = Object.assign({}, _defaults, options); const _vm = new Vue({ data() { return { scroll: { x: 0, y: 0, deltaX: 0, deltaY: 0, ...
JavaScript
0
@@ -3351,52 +3351,8 @@ %09%7D%0A%0A -%09%09Vue.prototype.$SkyScroll = $SkyScroll;%0A%09%09%0A %09%09Vu
2e3d219f2316f307ac0d8df5b07463ab296a1029
Allow to give rules as array of entries
src/index.js
src/index.js
const {resolve} = require('path') const tasksEngine = require('@projectlint/tasks-engine') const {parsedTypeParse} = require('levn') // const pkgDir = require('pkg-dir') const {parseType} = require('type-check') const entry = '(String | Number, Undefined | {...})' const ruleTypeDesc = `${entry} | [${entry}] | {...}...
JavaScript
0.000002
@@ -3619,24 +3619,86 @@ t be set')%0A%0A + if(Array.isArray(rules)) rules = Object.fromEntries(rules)%0A%0A // Normali
a46e4b77a56efe0e9e39046cb1df86a297bfa533
Update index.js
src/index.js
src/index.js
var express = require('express'); var app = express(); var path = require('path'); var port = process.env.PORT || 8080; // set the view engine to ejs app.set('view engine', 'ejs'); // make express look in the public directory for assets (css/js/img) app.use(express.static(__dirname + '/public')); // set the home pa...
JavaScript
0.000002
@@ -653,11 +653,12 @@ urn -tru +fals e;%0A%7D
5f8a9b4f51681bd083fa4308a3e95ff822f60eb6
improve globals commenting (units for everything)
src/jump.js
src/jump.js
import easeInOutQuad from './easing' const jumper = () => { // globals let start // where scroll starts (px) let stop // where scroll stops (px) let offset // adjustment from the stop position (px) let easing // easing function let duration // scroll duration let dis...
JavaScript
0
@@ -67,16 +67,68 @@ globals%0A + let element // element to scroll to (node)%0A%0A let st @@ -315,16 +315,77 @@ function + (function)%0A let a11y // accessibility support flag %0A%0A let @@ -416,16 +416,21 @@ duration + (ms) %0A let d @@ -512,16 +512,21 @@ started + (ms) %0A let t @@ -564...
a843791b6dcde4474ddb556b7944428e5706c5ec
Fix importing on node
src/index.js
src/index.js
import most from 'most' import snabbdom from 'snabbdom' import h from 'snabbdom/h' const { a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, ...
JavaScript
0.000002
@@ -744,22 +744,43 @@ rs%60)(h)%0A -import +let matchesSelector%0Atry %7B%0A matches @@ -788,22 +788,27 @@ elector -from ' += require(%60 matches- @@ -815,17 +815,63 @@ selector -' +%60)%0A%7D catch (e) %7B%0A matchesSelector = () =%3E %7B%7D%0A%7D %0Aimport
f145aa0caba223c846dc8fe9656feaa6f4eaa621
Add reset functionality
src/index.js
src/index.js
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const fs = require('fs'); app.use(bodyParser.urlencoded({ extended: true })); const HashMap = require('hashmap'); const dirname = fs.realpathSync('./'); var teams = new HashMap(); var ingredients = JSON.parse(fs.readF...
JavaScript
0.000001
@@ -1410,40 +1410,8 @@ e %7B%0A - // res.sendStatus(400);%0A @@ -2090,37 +2090,8 @@ );%0A%0A -// TODO in swagger eintragen%0A app. @@ -2342,16 +2342,17 @@ %7D%0A%7D) +; %0A%0Aapp.po @@ -2368,17 +2368,16 @@ s/create -/ ', funct @@ -2804,16 +2804,151 @@ e, %5B%5D);%0A + setTimeout(callback...
84e5b58f8dc522ceafe2626cbeef0f9ea16781bc
Add mutation to JS objects because f#?k it lol
src/index.js
src/index.js
// pull in desired CSS/SASS files require('./styles/base.css') require('./styles/hobo.css') require('font-awesome-webpack') const Elm = require('./Main') const hoboAuthKey = 'hobo-auth' class HoboJs { constructor () { let hoboAuth = this.getAuth() if (!hoboAuth.authenticated) { this.showFacebookLogi...
JavaScript
0
@@ -1719,24 +1719,140 @@ Response) %7B%0A + fbResponse.facebookAccessToken = this.facebookAccessToken // Mutation, but fuck it, my main app is in Elm LOL!%0A%0A $.post(' @@ -2366,24 +2366,146 @@ nnected') %7B%0A + this.facebookAccessToken = response.authResponse.accessToken // Another mutation and also f...
9e77c5eb7942c7d9400b923aee5deb5420d4553a
fix a linter issue
src/index.js
src/index.js
export { observable as store } from '@nx-js/observer-util' export { default as view } from './view'
JavaScript
0.000006
@@ -92,8 +92,9 @@ './view' +%0A
78b3b9a8bfdfafc8d72b5328d1cdea9798810e48
document menu
src/menu.js
src/menu.js
define(function(require, exports) { 'use strict'; /** * Bracket modules */ var Menus = brackets.getModule('command/Menus'); /** * Extension modules */ var osFtpCommon = require('src/common'); /** * Exported functions */ exports.addToContextMenus = addToContextMenus; expor...
JavaScript
0.000002
@@ -886,48 +886,50 @@ %7B%0A%0A +%0A / -/function vars%0A var contextMenu; +**%0A * Add to working set%0A */ %0A%0A @@ -958,33 +958,47 @@ working set%0A -c +var workingSetC ontextMenu = Men @@ -1122,33 +1122,43 @@ uDivider)%0A -c +workingSetC ontextMenu.addMe @@ -1222,33 +1222,43 @@ ...
cde1eebb755138b6a15a9a201629840394946a70
simplify ajaxify:fetch
src/main.js
src/main.js
(function(document, location, history) { "use strict"; if (!history.pushState) return; // skip unsupported browsers const states = []; // in-memory storage for states var currentState = {}; function dispatchAjaxifyEvent(target, eventType, eventDetail) { const e = document.createEvent("Cus...
JavaScript
0.999893
@@ -2781,33 +2781,32 @@ el = e.target;%0A -%0A var @@ -2805,26 +2805,40 @@ -var url = e.detail +const xhr = new XMLHttpRequest() ;%0A @@ -2847,19 +2847,21 @@ -var +const method @@ -2866,336 +2866,177 @@ d = -%22get%22;%0A var data = null;%0A%0A if (el.nodeNa...
dfe591f97d9e83867fbec9a0f80e1617ff5f474b
bump internal API version number
src/main.js
src/main.js
var FC = $.fullCalendar = { version: "<%= meta.version %>", internalApiVersion: 2 }; var fcViews = FC.views = {}; $.fn.fullCalendar = function(options) { var args = Array.prototype.slice.call(arguments, 1); // for a possible method call var res = this; // what this function will return (this jQuery object by def...
JavaScript
0
@@ -80,9 +80,9 @@ on: -2 +3 %0A%7D;%0A
969bcdfef8cfdd11c8e7f24bf2a0c1c48a3fede6
Disable vue developer tools.
src/main.js
src/main.js
import Vue from 'vue' import axios from 'axios' import VueAxios from 'vue-axios' import { sync } from 'vuex-router-sync' import vueScrollTo from 'vue-scroll-to' import VueCookie from 'vue-cookie' import VueCarousel from 'vue-carousel' import VueAnalytics from 'vue-ua' import App f...
JavaScript
0
@@ -2326,11 +2326,12 @@ s = -tru +fals e%0A%0As
fb5947474a4f0b603f1699e71f679eaa9782c4ad
Add Vuex to app.
src/main.js
src/main.js
import Vue from 'vue'; import VueRouter from 'vue-router'; import App from './App'; Vue.use(VueRouter); /* eslint-disable no-new */ new Vue({ el: '#app', template: '<App/>', components: { App }, });
JavaScript
0
@@ -14,17 +14,16 @@ om 'vue' -; %0Aimport @@ -49,17 +49,40 @@ -router' -; +%0Aimport Vuex from 'vuex' %0Aimport @@ -97,17 +97,16 @@ './App' -; %0A%0AVue.us @@ -117,17 +117,30 @@ eRouter) -; +%0AVue.use(Vuex) %0A%0A/* esl @@ -232,10 +232,8 @@ pp %7D -, %0A%7D) -; %0A
37afbc2139e829eaa04f631d24fcb992dfba103d
Fix emotion import assuming ES2015 imports intead of commonjs with webpack
src/hash.js
src/hash.js
const emotionHash = require('@emotion/hash') let cache = {} function hash (string) { if (!cache[string]) { cache[string] = emotionHash(string) } return cache[string] } module.exports = hash
JavaScript
0.000194
@@ -35,16 +35,33 @@ ion/hash +/dist/hash.cjs.js ')%0A%0Alet
e609e7a2e6ad6b20e185bb133d02208c6ea97099
Use domready
src/main.js
src/main.js
import domready from './module/domready' import App from './app.js' domready(function () { var app = new App() console.log('start app', app) }) // import debug from 'debug.js'; // // by default stderr is used // const log = debug('app:log'); // if (ENV) { // // Enable the logger. // debug.enable('*'); // l...
JavaScript
0.000001
@@ -144,16 +144,147 @@ pp)%0A%7D)%0A%0A +// document.addEventListener('DOMContentLoaded', function () %7B%0A// var app = new App()%0A%0A// console.log('start app', app)%0A// %7D)%0A%0A // impor
3e8f1ba3cfb517b810b0a456f5595bde73505cab
removing function from processing as special vs. normal funcs are ambiguous
src/hazy.js
src/hazy.js
'use strict'; var _ = require('lodash'), jsonPath = require('jsonpath'), fs = require('fs'), Chance = require('chance') // TODO - assert var hazy = {} hazy.config = { seed: null, lazy: true, matchers: { use: true } } hazy.meta = { types: { basic : ['bool', 'characte...
JavaScript
0.999657
@@ -5121,150 +5121,8 @@ %7D%0A%0A - if (_.isFunction(stub)) %7B%0A return stub(null, hazy.config.seed) // TODO - provide/support per-instance seed and the object key%0A %7D%0A%0A
056b6e6f486e4b48b622e50ff4ecb578c3e7f460
change host
src/host.js
src/host.js
module.exports = { core: "http://bateeq-core-api.mybluemix.net/v1/core", inventory: "http://localhost:9001/v1/inventory", merchandiser:"http://localhost:9001/v1/merchandiser" }
JavaScript
0.000001
@@ -89,38 +89,58 @@ ry: %22http:// -localhost:9001 +bateeq-inventory-api.mybluemix.net /v1/inventor @@ -172,22 +172,42 @@ p:// -localhost:9001 +bateeq-inventory-api.mybluemix.net /v1/
1203bfef464a4e40d4d7749cb5f72b144efb9ff9
Add autoUpdater
src/main.js
src/main.js
var app = require('app'); var Menu = require('menu'); var Tray = require('tray'); var BrowserWindow = require('browser-window'); var fs = require('fs'); var config = JSON.parse(fs.readFileSync(__dirname + "/config.json", "utf-8")); var net = require('./net'); var utils = require('./utils') var status = 'UNKNOWN'; va...
JavaScript
0
@@ -121,16 +121,152 @@ indow'); +%0Avar autoUpdater = require('auto-updater');%0AautoUpdater.setFeedUrl('https://net-tsinghua.herokuapp.com/update/osx/' + app.getVersion()); %0A%0Avar fs
4037d6e116be0d34f350c654b32d2fc36fce47ea
Use anonymous module when exporting via AMD
src/main.js
src/main.js
// @echo header (function (moduleName, factory) { 'use strict'; if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { // CommonJS/Node.js factory(require('knockout'), require('jquery')); } else if (typeof define === 'function' && define.amd) { ...
JavaScript
0
@@ -21,28 +21,16 @@ nction ( -moduleName, factory) @@ -333,20 +333,8 @@ ine( -moduleName, %5B'kn @@ -414,22 +414,8 @@ %0A%7D)( -'knockstrap', func
6743a69ed7bb3ec218330a6752989dff988f2c01
Separate sentences
src/main.js
src/main.js
const LANG = 'en'; function main() { const needsDom = document.querySelector('.needs'); for (let right of data.common.rights) { needsDom.innerHTML += ` <label> <input type="radio" name="needs" value="${right}" /> ${right} </label> `; ...
JavaScript
0.999999
@@ -806,16 +806,17 @@ n(', ')%7D +. %60;%0A
812739b038faa84825a230a26541b64e1aefbea9
fix callback syntax after dnswl cfg file change (#1794)
plugins/dnswl.js
plugins/dnswl.js
'use strict'; // dnswl plugin exports.register = function () { var plugin = this; plugin.inherits('dns_list_base'); plugin.load_dnswl_ini(); // IMPORTANT: don't run this on hook_rcpt otherwise we're an open relay... ['ehlo','helo','mail'].forEach(function (hook) { plugin.register_hook(hook...
JavaScript
0
@@ -114,24 +114,25 @@ ist_base');%0A +%0A plugin.l @@ -454,23 +454,44 @@ l.ini', -exports +function () %7B%0A plugin .load_dn @@ -497,16 +497,25 @@ nswl_ini +();%0A %7D );%0A%0A
5c6ff95e84f225e232258e8b200597c0fc2a539f
Remove visit function
src/misc.js
src/misc.js
(function () { $.misc = { uuid: function() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); }); } } })(); $.extend(Object.prototype, { visit: function (fu...
JavaScript
0
@@ -265,407 +265,4 @@ ();%0A -%0A$.extend(Object.prototype, %7B%0A%0A visit: function (func) %7B%0A for (var prop in this) %7B%0A func.apply(this, %5Bprop, this%5Bprop%5D%5D);%0A if ($.type(this%5Bprop%5D) === %22thisect%22) %7B%0A visit(this%5Bprop%5D, func);%0A %7D%0A else if ($.type(t...
64976aaa02720755744751bb06fec88224c9d385
Fix show and hide elements
src/main.js
src/main.js
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import {ClientTable, Event} from 'vue-tables-2' import 'bootstrap/dist/css/bootstrap.min.css' import axios from 'axios' import _ from 'lodash' import serializ...
JavaScript
0
@@ -1568,88 +1568,34 @@ or: -() =%3E %7B%0A return true%0A %7D,%0A showTable: () =%3E %7B%0A return false%0A %7D +true,%0A showTable: false ,%0A
8f3202d8e8054b98834e863ab23301371e1e3743
Update the 'Learn More' link
src/main.js
src/main.js
/* eslint import/no-unresolved: 0 */ import { app, BrowserWindow, Menu, shell } from 'electron'; import cnc from './cnc'; // https://github.com/electron/electron/blob/master/docs/api/menu/ const template = [ { label: 'View', submenu: [ { label: 'Reload', ...
JavaScript
0
@@ -1878,16 +1878,21 @@ eton/cnc +/wiki ');%0A
48d249ec2b4d6a0597bc995acaee891ea4bf9e08
clear memory of rooms and sources
src/main.js
src/main.js
var _global = require('global'); var _extension = require('extension'); const RoomManager = require('manager_room'); const profiler = require('lib_screeps-profiler'); // This line monkey patches the global prototypes. const EnableProfiler = Config.EnableProfiler; if(EnableProfiler) profiler.enable(); module.exports.lo...
JavaScript
0
@@ -421,38 +421,18 @@ ata%0A -clearCreepAndStructure +GC ();%0A @@ -1148,45 +1148,16 @@ %7D;%0A%0A -var clearCreepAndStructure = function () %7B @@ -1148,24 +1148,27 @@ %7D;%0A%0Afunction + GC () %7B%0A for @@ -1160,35 +1160,35 @@ GC() %7B%0A for( -var +let name in Memory. @@ -1365,19 +1365,19...
bbeb9937fd33a8c6e0af3e2c6133b7a200b42cd1
Save and restore window size
src/main.js
src/main.js
let app = require('app'); // Module to control application life. let BrowserWindow = require('browser-window'); // Module to create native browser window. let process = require('process'); // avoid https://github.com/atom/electron/issues/550 if (process.platform == "darwin") { process.env['PATH'] = "/usr/local/sbi...
JavaScript
0
@@ -183,16 +183,68 @@ ocess'); +%0Alet path = require('path');%0Alet fs = require('fs'); %0A%0A// avo @@ -1075,24 +1075,294 @@ unction() %7B%0A + let windowSizePath = path.join(app.getPath('userData'), 'window-size.json');%0A let windowSize;%0A try %7B%0A windowSize = JSON.parse(fs.readFileSync(windowSizePath,...
2208be71d169ae9836dd2487e263fe7c8397afb7
fix compatibility issues with clappr flashls player 0.4.0
src/main.js
src/main.js
var UiCorePlugin = require('ui_core_plugin') var JST = require('.././jst') var Styler = require('./styler') var version = require('../package.json').version var Events = Clappr.Events class LevelSelector extends UiCorePlugin { static get version() { return version } get name() { return 'level_selector' } get t...
JavaScript
0
@@ -3239,24 +3239,31 @@ yback.el.get +Current Level()%0A %7D%0A @@ -3330,15 +3330,16 @@ yerS -moothSe +etCurren tLev
7183936f1ae8dfac3c0333c52cac1b58e16188b9
fix jquery form path
src/main.js
src/main.js
requirejs.config({ paths: { URI: "./3rdparty/URI", jquery: "./3rdparty/jquery-1.8.2", jquery_anythingslider: "./3rdparty/jquery.anythingslider", jquery_autosuggest: "./3rdparty/jquery.autoSuggest", jquery_chosen: "./3rdparty/chosen.jquery", jquery_ext: "./jquery-ext",...
JavaScript
0.000002
@@ -334,32 +334,27 @@ ry_form: %22./ -3rdparty +lib /jquery.form
23f8247e9bc020fd9cfa87ef3ebc7cb69581a33b
Use current lang as default for loadTranslations
src/main.js
src/main.js
(function (global) { "use strict"; var languageDialect = (function(lang) { window.location.search.slice(1).split("&").some(function (searchTerm) { if (searchTerm.indexOf("lang=") === 0) { lang = searchTerm.split("=").slice(1).join("="); return true; } });...
JavaScript
0
@@ -3278,28 +3278,24 @@ unction(lang -uage , set, base) @@ -3340,16 +3340,25 @@ %7C%7C %22%22) + + (lang %7C%7C languag @@ -3354,24 +3354,25 @@ %7C%7C language +) + %22/%22 + (se
d80bbe14bd2f06f6c7a5d30cd21af5efebb30f6b
Update main.js
src/main.js
src/main.js
define(function(require) { var View = require('streamhub-sdk/view'); /** * ScorecardView is a view that uses streamhub data to populate it's child elements. * It reads the bodyHtml of each item and trys to match the format * "score <score1> <score2> <quarter text> <datestamp>" where score1 and score2 are nu...
JavaScript
0.000001
@@ -241,27 +241,27 @@ ore -%3C +- score1 -%3E %3C +- - score2 -%3E %3C +- - quar @@ -272,11 +272,11 @@ text -%3E %3C +- - date @@ -280,17 +280,17 @@ atestamp -%3E +- %22 where