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 |
|---|---|---|---|---|---|---|---|
088d3bc74527922bc221e514f2e012df3542ed77 | remove focus from text when not editable anymore | isso/js/app/edit.js | isso/js/app/edit.js | /* Copyright Théo Zimmermann 2014
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define(["app/dom", "app/i18n", "app/utils", "diff_match_patch"], function($, i18... | JavaScript | 0 | @@ -3101,32 +3101,70 @@
rHTML === %22%22) %7B%0A
+ current_block.blur();%0A
|
20ac781b81810a6719e5c8603b458fbaca2baed7 | fix destructive packages handling | lib/packageConstructor.js | lib/packageConstructor.js | const xmlbuilder = require('xmlbuilder');
const metadata = require('./utils/metadata');
module.exports = function(config){
this.constructPackage = function(structuredDiffs) {
return new Promise(function(resolve,reject){
let filesContent = {};
const sorted_packageType = Object.keys(structuredDiffs).so... | JavaScript | 0.000001 | @@ -115,16 +115,17 @@
(config)
+
%7B%0A this
@@ -144,25 +144,16 @@
ckage =
-function(
structur
@@ -159,17 +159,19 @@
redDiffs
-)
+ =%3E
%7B%0A r
@@ -188,24 +188,16 @@
Promise(
-function
(resolve
@@ -204,16 +204,20 @@
,reject)
+ =%3E
%7B%0A
@@ -342,25 +342,16 @@
forEach(
-function(
packageT
@@ ... |
59a7e04a75de00f31c76feedfcf1f70025ed4e27 | Update npmcheckversion.js | packages/strapi-helper-plugin/lib/internals/scripts/npmcheckversion.js | packages/strapi-helper-plugin/lib/internals/scripts/npmcheckversion.js | /* eslint-disable */
var shell = require('shelljs');
shell.exec('npm -v', {silent: true}, function (code, stdout, stderr) {
if (code) throw stderr;
if (parseFloat(stdout) < 3) {
throw new Error('[ERROR: Strapi plugin] You need npm version @>=3');
process.exit(1);
}
});
| JavaScript | 0.000002 | @@ -18,11 +18,13 @@
*/%0A
-var
+const
she
|
bf7cb932de7d44e74b192d09028236e583ff28d1 | fix Error.captureStackTrace | bridge/bridge.js | bridge/bridge.js | /*
Copyright (c) 2015, Kotaro Endo.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | JavaScript | 0.000003 | @@ -2635,17 +2635,16 @@
Trace =
-(
function
@@ -2648,883 +2648,547 @@
ion(
+obj
) %7B%0A%09
-function StackTraceEntry(info) %7B%0A%09%09this.info = info;%0A%09%7D%0A%09StackTraceEntry.prototype.getFileName = function() %7B%0A%09%09return this.info.filename;%0A%09%7D%0A%09StackTraceEntry.prototype.getLineNumber = f... |
1c22f724b292b66cc3910a98e85e0849851b8a38 | remove piche console.log | qpanel/themes/qpanel/static/js/qpanel.index.js | qpanel/themes/qpanel/static/js/qpanel.index.js | $(document).ready(function () {
getDataQueue(); //load data on page ready :)
setInterval(function () {
getDataQueue();
}, REQUEST_INTERVAL);
});
// parse data and put values on view
function parseDataQueue(data){
console.lo... | JavaScript | 0 | @@ -295,39 +295,8 @@
a)%7B%0A
- console.log(data);%0A
|
3ce06463b7424fdb0d28fdf7ba2d58d314422397 | fix header | src/notebook/api/messaging/index.js | src/notebook/api/messaging/index.js | /* eslint camelcase: 0 */ // <-- Per Jupyter message spec
import * as uuid from 'uuid';
const Rx = require('@reactivex/rxjs');
const Observable = Rx.Observable;
const session = uuid.v4();
export function createMessage(msg_type) {
const username = process.env.LOGNAME || process.env.USER ||
proce... | JavaScript | 0.000001 | @@ -1574,31 +1574,24 @@
ly...', msg.
-parent_
header.msg_t
|
d4fbfa374d34b71e8aa8308e1e44e178c68f3c9b | Allow images to load from myemma.com | server/config/security.js | server/config/security.js | BrowserPolicy.content.allowOriginForAll("*.googleapis.com");
BrowserPolicy.content.allowOriginForAll("*.gstatic.com");
BrowserPolicy.content.allowOriginForAll("*.bootstrapcdn.com");
BrowserPolicy.content.allowFontDataUrl();
| JavaScript | 0 | @@ -174,16 +174,71 @@
n.com%22);
+%0ABrowserPolicy.content.allowOriginForAll(%22myemma.com%22);
%0A%0ABrowse
|
48910fa05af97ff10dc0ad2fa07b7bb2647635c0 | Use this.route instead of this.resource to make transition to pods easier. | tests/dummy/app/router.js | tests/dummy/app/router.js | import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType,
scrollToTopAfterRouteTransition: Ember.observer( 'url', function() {
window.scrollTo( 0, 0 );
})
});
Router.map( function() {
this.route( 'index', { path: '/... | JavaScript | 0 | @@ -364,14 +364,11 @@
is.r
-esourc
+out
e( '
|
d3c66ba1ece0bace394022e023b0c4ade959503e | Fix cache headers on CSS file. | lib/serve-css.js | lib/serve-css.js | var prepare = require('prepare-response')
, autoprefixer = require('autoprefixer-core')()
, fs = require('fs')
var cache = new Map()
, isProd = process.env.NODE_ENV == 'production'
module.exports = serveCss
function serveCss(path) {
var cacheKey = JSON.stringify(path)
return function(req, res, next) {
i... | JavaScript | 0 | @@ -737,36 +737,36 @@
ders
-.
+%5B'
cache
- = 'public, max-age=60
+-control'%5D = '14 days
'%0A
|
392deac1c1ef94234fdcacdbd145edf6b8f198f3 | Add board size to config | config/config.example.js | config/config.example.js | module.exports = {
"secret": "CHANGETHISDONTUSETHISITSINSECURE", // <------- CHANGE THIS DONT USE THE DEFAULT YOU'LL GET HACKED AND DIE 100%
"database": "mongodb://localhost/place",
"port": 3000,
"onlyListenLocal": true,
"trustProxyDepth": 1, // How many levels of proxy to trust for IP
"debug": ... | JavaScript | 0.000001 | @@ -201,16 +201,39 @@
: 3000,%0A
+ %22boardSize%22: 1400,%0A
%22onl
@@ -1666,8 +1666,9 @@
%7D%0A%7D;
+%0A
|
27c543b60d8f32cabe773700aee61f3066073f25 | Fix generate method | lib/shortlink.js | lib/shortlink.js | (function() {
'use strict';
var alphabetList = {
base52: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
base58: '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ',
base64: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
};
var alphabet = alph... | JavaScript | 0.000019 | @@ -666,56 +666,8 @@
%7C%7C 5
-,%0A alphabetArray = alphabet.split('')
;%0A%0A
@@ -862,13 +862,8 @@
abet
-Array
%5Bind
@@ -2315,24 +2315,25 @@
bet.length;%0A
+%0A
retu
|
01eb0edb64e1ce82894c5de924d84116f44ff5e1 | work on twitter API | api/api.js | api/api.js | import express from 'express';
import bodyParser from 'body-parser';
import config from '../src/config';
import * as actions from './actions/index';
import {mapUrl} from 'utils/url.js';
import PrettyError from 'pretty-error';
import http from 'http';
import SocketIo from 'socket.io';
import passport from'passport';
con... | JavaScript | 0 | @@ -850,25 +850,28 @@
= %60$%7Bconfig.
-h
+apiH
ost%7D:$%7Bconfi
@@ -864,33 +864,36 @@
iHost%7D:$%7Bconfig.
-p
+apiP
ort%7D/login/twitt
@@ -895,22 +895,20 @@
twitter/
-return
+auth
%60;%0Aconso
@@ -1022,22 +1022,8 @@
s =
-Object.assign(
%7B%0A
@@ -1033,18 +1033,18 @@
allbackU
-rl
+RL
: twitte
@@ -1059,13 +... |
aaf44a6dc8761b01a453fd4cfccc94f07653a0d7 | Allow zero-value transactions | lib/simulator.js | lib/simulator.js | var vm = require('vm')
var extend = require('extend')
var clone = require('clone')
var EventEmitter = require('events').EventEmitter
var Contract = require('./contract.js')
var Transaction = require('./transaction.js')
var Wallet = require('./wallet.js')
var Block = require('./block.js')
module.exports = Simulator
f... | JavaScript | 0.000052 | @@ -1977,16 +1977,17 @@
.value %3E
+=
0%0A &
|
83de46d9d198626ae7676b9c2032b37b5c2a1228 | use the correct hash function | plugins/gui/frontend/gosa/source/class/gosa/ui/form/WebhookListItem.js | plugins/gui/frontend/gosa/source/class/gosa/ui/form/WebhookListItem.js | /*
* This file is part of the GOsa project - http://gosa-project.org
*
* Copyright:
* (C) 2010-2017 GONICUS GmbH, Germany, http://www.gonicus.de
*
* License:
* LGPL-2.1: http://www.gnu.org/licenses/lgpl-2.1.html
*
* See the LICENSE file in the project's top-level directory for details.
*/
qx.Class.d... | JavaScript | 0.979626 | @@ -2616,16 +2616,19 @@
.tr(%22SHA
+-51
2 hash o
|
fd04ba63d4194800195bdde57adea5f441fac035 | clean up unused parts of script | lib/slim2html.js | lib/slim2html.js | var util = require('util');
var spawn = require('child_process').spawn
var createSlimPreprocessor = function(logger, basePath, config) {
config = typeof config === 'object' ? config : {};
var log = logger.create('preprocessor.slim');
var stripPrefix = new RegExp('^' + (config.stripPrefix || ''));
var prepend... | JavaScript | 0.000005 | @@ -113,30 +113,12 @@
gger
-, basePath, config
) %7B%0A
+
co
@@ -220,273 +220,8 @@
);%0A%0A
- var stripPrefix = new RegExp('%5E' + (config.stripPrefix %7C%7C ''));%0A var prependPrefix = config.prependPrefix %7C%7C '';%0A var cacheIdFromPath = config && config.cacheIdFromPath %7C%7C function(filepath) %7B%0A ... |
4ff6ea8ecfafe1abfbf56996111488ba9a186888 | make it better | config/env/production.js | config/env/production.js | 'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/phonebuzz',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.css',
... | JavaScript | 0.000086 | @@ -1026,16 +1026,291 @@
,%0A%09%09css:
+ %5B%0A%09%09%09'public/modules/**/css/*.css'%0A%09%09%5D,%0A%09%09js: %5B%0A%09%09%09'public/config.js',%0A%09%09%09'public/application.js',%0A%09%09%09'public/modules/*/*.js',%0A%09%09%09'public/modules/*/*%5B!tests%5D*/*.js'%0A%09%09%5D,%0A%09%09tests: %5B%0A%09%09%09'public... |
b3f5076373a5790d6068d24da769f7a80543d812 | work on dbcontroller | server/db/dbController.js | server/db/dbController.js | var model = require('./dbModel.js');
var getUser = function (user) {
model.User.findOne({ where: { username: user.username }})
.then(function (match) {
if (!match) {
throw (new Error('User does not exist!'));
} else {
return match;
}
})
};
var addUser = function (user) {
... | JavaScript | 0 | @@ -1040,24 +1040,78 @@
itemList) %7B%0A
+ for (var i = 0; i %3C itemList.length; i++) %7B%0A %0A %7D
%0A%7D;%0A%0Avar add
|
353795683afc30a050caa4b76369377ea184bfdd | Update defer.js | javascript/defer.js | javascript/defer.js | function defer(fn) {
var timer = null;
return function() {
clearTimeout(timer);
timer = setTimeout(fn, 400);
}
}
// TODO: add some variations; like on utilizes RAF etc.
| JavaScript | 0.000001 | @@ -193,8 +193,94 @@
AF etc.%0A
+// TODO: maybe make this things modular; and write in ES6 and transpile to ES5 maybe.%0A
|
88a8eb74291f179ea44ac28626e7602f9a2d47c4 | Work around sync event on proxy attach | packages/stream-dom/src/nodes/stream.js | packages/stream-dom/src/nodes/stream.js | import { merge } from 'most'
import create from 'lodash.create'
import { initializeChildren } from './util'
export function stream(context, children$) {
return (scope) => {
const { document } = context
const { destroy$ } = scope
const domStartNode = document.createComment('')
const domEndNode = docu... | JavaScript | 0 | @@ -214,16 +214,26 @@
const %7B
+ mounted$,
destroy
@@ -478,16 +478,146 @@
cope, %7B%0A
+ // TODO: Remove use of delay() workaround for most-proxy sync dispatch during attach%0A mounted$: mounted$.delay(1),%0A
|
bec2387801a3902d2e9fe028e970718e11fe6486 | Reset unread count for active contact on focus. | clientapp/models/state.js | clientapp/models/state.js | /*global app, $*/
"use strict";
var HumanModel = require('human-model');
module.exports = HumanModel.define({
initialize: function () {
var self = this;
$(window).blur(function () {
self.focused = false;
});
$(window).focus(function () {
self.focused = true;... | JavaScript | 0 | @@ -12,11 +12,15 @@
p, $
+, me
*/%0A
-
%22use
@@ -310,32 +310,139 @@
focused = true;%0A
+ if (me._activeContact) %7B%0A me.setActiveContact(me._activeContact);%0A %7D%0A
self
@@ -550,32 +550,32 @@
, function () %7B%0A
-
@@ -604,16 +604,62 @@
Time... |
0ddcee0784d3a33e2e16b16181f047ac62d9464e | Update fba.js | asset/js/fba.js | asset/js/fba.js | /*********************************************************************
* #### CI File Browser Awesome v01 ####
* Coded by Ican Bachors 2015.
* https://github.com/bachors/CI-FIle-Browser-Awesome
* Updates will be posted to this site.
*********************************************************************/
// Setting: Bas... | JavaScript | 0 | @@ -1106,17 +1106,17 @@
ta.root+
-%22
+'
%3C/td%3E%3C/t
@@ -1117,17 +1117,18 @@
td%3E%3C/tr%3E
-%22
+';
%0A%09%09%7D%0A%09%09$
|
27508c770edfc78e6023508482dfc87f4d0cac03 | Fix a bug introduced by pull request #2315 | frontend/tasks/server.js | frontend/tasks/server.js | const fs = require('fs');
const url = require('url');
const gulp = require('gulp');
const config = require('../config.js');
const connect = require('gulp-connect');
const pkey = fs.readFileSync('./frontend/certs/server/my-server.key.pem');
const pcert = fs.readFileSync('./frontend/certs/server/my-server.crt.pem');
c... | JavaScript | 0 | @@ -710,18 +710,19 @@
no dot
-or
+and
trailin
@@ -847,16 +847,16 @@
'/') %7B%0A
-
@@ -945,16 +945,229 @@
%7D%0A
+ // Rewrite /static/addon/latest to /static/addon/addon.xpi%0A if (pathname === '/static/addon/latest') %7B%0A parsed.pathname = '/static/addon/addon.xpi';%0A ... |
b2a1fc2c38ecd22a981fe2d187052ccbe9ad79e0 | Set cross origin tag for html5 embeds | react/gameday2/components/embeds/EmbedHtml5.js | react/gameday2/components/embeds/EmbedHtml5.js | /* global videojs */
import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
export default class EmbedHtml5 extends React.Component {
static propTypes = {
webcast: webcastPropType.isRequired,
}
componentDidMount() {
videojs(this.props.webcast.id, {
width: '100%',
... | JavaScript | 0 | @@ -421,16 +421,48 @@
ontrols%0A
+ crossorigin=%22anonymous%22%0A
|
380ebe5e6c204b9cdded18e444ce0b9b498f4467 | Add Action URL to the features API | server/lib/api/feature.js | server/lib/api/feature.js | module.exports = function(app, db) {
//*****************************// Index //**********************************//
app.get('/api/features', function(req, res) {
var cb = function(error, features) {
if (!error) {
res.json(features); // Write the jsonified features to the response object
} e... | JavaScript | 0 | @@ -1135,16 +1135,49 @@
action,%0A
+ actionUrl: data.actionUrl,%0A
im
|
a99459a9dfbee49d1c6a4ae0c4029d9efb8208db | Remove webpack2 conditional in postcss | packages/postcss/index.js | packages/postcss/index.js | /**
* PostCSS webpack block.
*
* @see https://github.com/postcss/postcss-loader
*/
module.exports = postcss
/**
* @param {PostCSSPlugin[]} [plugins] Will read `postcss.config.js` file if not supplied.
* @param {object} [options]
* @param {RegExp|Function|string} [options.exclude] ... | JavaScript | 0.000002 | @@ -1623,98 +1623,8 @@
) %7B%0A
- const isWebpack2 = typeof webpack.validateSchema !== 'undefined'%0A%0A if (isWebpack2) %7B%0A
re
@@ -1634,18 +1634,16 @@
n %7B%0A
-
plugins:
@@ -1641,26 +1641,24 @@
plugins: %5B%0A
-
new we
@@ -1693,18 +1693,16 @@
-
options:
@@ -1710,26 +1710,24 ... |
2db44c797ec7bdafbeef66f20f8adffaaac83dca | Remove dead code | src/grid.js | src/grid.js | var component = require('omniscient'),
EventEmitter = require('events').EventEmitter,
Immutable = require('immutable'),
bind = require('lodash.bind'),
React = require('react/addons');
var CELL_SIZE = 30,
BORDER_SIZE = 1,
TEXT_X_OFFSET = 7,
TEXT_Y_OFFSET = 25;
function position(a) {
ret... | JavaScript | 0.001497 | @@ -1873,83 +1873,8 @@
%0A%7D%0A%0A
-function fConst(a) %7B%0A return function () %7B%0A return a;%0A %7D;%0A%7D;%0A%0A
var
|
5d0b638ec1341b6f1d5f7d476373a8d37919e83c | use grunt command to start grunt | frontend/Gruntfile.js | frontend/Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
copy:{
html: {
src: './index.html', dest: 'dist/index.html'
},
dist: {
files: [
{
expand: true,
d... | JavaScript | 0.000003 | @@ -4012,24 +4012,26 @@
build task%0A
+%0A%0A
grunt.re
@@ -4053,1021 +4053,8 @@
ault
-', %5B%0A 'clean:dist',%0A 'copy:html',%0A 'copy:dist',%0A 'useminPrepare',%0A 'concat:generated',%0A ... |
85e1158111ad953270e8d4f9799bf590a7922a4d | Add put request to save file | glark/app/js/services/filesystem/RemoteFile.js | glark/app/js/services/filesystem/RemoteFile.js | /* Copyright 2013 Florent Galland & Luc Verdier
This file is part of glark.io.
glark.io is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
at your option) any later versio... | JavaScript | 0 | @@ -2529,32 +2529,528 @@
-defered.resolve(
+$http.put(this.baseurl, %7B'path': this.basename + this.name, 'content': content%7D,%0A %7Bheaders: %7B'Authorization': this.authenticationHeader%7D%7D)%0A .success(function (response) %7B%0A defered.resolve(respo... |
91bd41399bf979a733bf7c8691d2991b07c3a63a | Update redshift driver to use new postgres driver | lib/Drivers/DML/redshift.js | lib/Drivers/DML/redshift.js | var util = require("util");
var postgres = require("./postgres");
exports.Driver = Driver;
function Driver(config, connection, opts) {
postgres.Driver.call(this, config, connection, opts);
}
util.inherits(Driver, postgres.Driver);
Driver.prototype.insert = function (table, data, id_prop, cb) {
var q = this.qu... | JavaScript | 0 | @@ -492,28 +492,29 @@
);%0A%09%7D%0A%09this.
-db.q
+execQ
uery(q, func
@@ -582,12 +582,13 @@
his.
-db.q
+execQ
uery
@@ -631,24 +631,25 @@
(err, result
+s
) %7B%0A%09%09%09retur
@@ -687,12 +687,8 @@
sult
-.row
s%5B0%5D
|
4883c2f905f5fffc5b1f94052766a82620495591 | Remove duplicated parsing code | quest-checker/hiscores.js | quest-checker/hiscores.js | 'use strict';
var express = require('express');
var parser = require('body-parser');
var http = require('http');
var app = express();
app.use(parser.urlencoded({
extended: true
}));
app.use(parser.json());
var port = process.env.PORT || 3000;
var router = express.Router();
router.use(function (req, res, next)... | JavaScript | 0.000823 | @@ -1962,573 +1962,8 @@
);%0A%0A
-function extractStats(raw) %7B%0A var stats = %7B%7D;%0A%0A var skills = %5B'overall', 'attack', 'defence', 'strength', 'constitution', 'ranged', 'prayer', 'magic', 'cooking', 'woodcutting', 'fletching', 'fishing', 'firemaking', 'crafting', 'smithing', 'mining', 'herblore', 'agi... |
3bb323ebd9461e69f21cf58351f9c689ae5d5385 | Update game.js | javascripts/game.js | javascripts/game.js | var money = 10;
var tickSpeedCost = 1000;
var tickspeed = 1000;
var firstCost = 10;
var secondCost = 100;
var thirdCost = 10000;
var fourthCost = 1000000;
var firstAmount = 0;
var secondAmount = 0;
var thirdAmount = 0;
var fourthAmount = 0;
var interval;
function updateMoney() {
var element = document.getElementById("... | JavaScript | 0.000001 | @@ -248,16 +248,224 @@
terval;%0A
+var firstButton = document.getElementById(%22first%22)%0Avar secondButton = document.getElementById(%22second%22)%0Avar thirdButton = document.getElementById(%22third%22)%0Avar fourthButton = document.getElementById(%22fourth%22)%0A
function
@@ -1574,24 +1574,25 @@
rthCost)%0A%7D%0... |
774ee22bda918b0255f71297d3e7f2010e1a6c16 | Use correct GCF URL in Slack sample (#1756) | functions/slack/index.js | functions/slack/index.js | // Copyright 2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -4105,17 +4105,17 @@
_REGION%5D
-.
+-
%5BYOUR_PR
@@ -4145,17 +4145,17 @@
s.net/kg
-s
+S
earch%0A *
|
435c6c453944f495ea09ab1ee9e805abbb6d9083 | Update CHANGELOG.js | src/parser/priest/holy/CHANGELOG.js | src/parser/priest/holy/CHANGELOG.js | import React from 'react';
import { Khadaj, niseko, Yajinni, Zerotorescue, blazyb } from 'CONTRIBUTORS';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { change, date } from 'common/changelog';
export default [
change(date(2019, 8, 6), 'Added essence Lucid Dreams.', [blazyb]),
... | JavaScript | 0.000001 | @@ -267,17 +267,18 @@
019, 8,
-6
+12
), 'Adde
|
3348acadd2f9da7aaf47b9bfa26feef873dfea45 | add navbar component | resources/assets/components/Wimf/WimfNavbar.js | resources/assets/components/Wimf/WimfNavbar.js | import React from 'react';
import { connect } from 'react-redux';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
const mapStateToProps = ({ user }) => {
return {
user
};
}
const WimfNavbar = ({ user }) => (
<Navbar inverse>
<Navbar.Header>
<Navbar.Brand>
<a ... | JavaScript | 0.000001 | @@ -773,14 +773,41 @@
.1%7D%3E
-Action
+%3Ca href='/auth/logout'%3ELogout%3C/a%3E
%3C/Me
@@ -1108,16 +1108,17 @@
ar%3E%0A);%0A%0A
+%0A
export d
|
6a05a93c0aa2f6372c48834aa3d4e78226efe679 | Remove open from deploy task | gulpfile.js/tasks/deploy.js | gulpfile.js/tasks/deploy.js | var ghPages = require('gulp-gh-pages')
var gulp = require('gulp')
var open = require('open')
var os = require('os')
var path = require('path')
var deployTask = function() {
var pkg = require(path.resolve(process.env.PWD, 'package.json'))
var settings = {
url: pkg.homepage,
src: path.resolve(... | JavaScript | 0.000002 | @@ -66,38 +66,8 @@
p')%0A
-var open = require('open')%0A
var
@@ -86,24 +86,24 @@
quire('os')%0A
+
var path
@@ -312,17 +312,22 @@
_CONFIG.
-d
+finalD
est, '**
@@ -439,16 +439,16 @@
gs.src)%0A
+
.pip
@@ -480,67 +480,8 @@
s))%0A
- .on('end', function()%7B%0A open(settings.url)%0A %7D)%0A
%... |
1f952d72518d4a5958f33b17521cffff5830760f | test for correct port and host passing | spec/sequelize.spec.js | spec/sequelize.spec.js | var config = require("./config/config")
, Sequelize = require("../index")
describe('Sequelize', function() {
it('should pass the global options correctly', function() {
var sequelize = new Sequelize(config.database, config.username, config.password, {
logging: false,
define: { underscored:true }... | JavaScript | 0 | @@ -444,12 +444,343 @@
y()%0A %7D)
+%0A%0A it('should correctly set the host and the port', function() %7B%0A var options = %7B host: '127.0.0.1', port: 1234 %7D%0A , sequelize = new Sequelize(config.database, config.username, config.password, options)%0A%0A expect(sequelize.config.host).toEqual(options... |
e8a0e33b389dd7f19454d647996178ab7fee76cb | test changes | src/rules/comment-no-loud/__tests__/index.js | src/rules/comment-no-loud/__tests__/index.js | import rule, { ruleName, messages } from "..";
testRule(rule, {
ruleName,
config: [true],
syntax: "scss",
accept: [
{
code: "// comment",
description: "Double slash comments"
}
],
reject: [
{
code: `
/* comment */
`,
description: "One line with optional ending... | JavaScript | 0.000001 | @@ -366,300 +366,8 @@
%7B%0A
- code: %22/* comment%22,%0A description: %22One line with no ending%22,%0A message: messages.expected%0A %7D,%0A %7B%0A code: %60%0A /* comment line 1%0A comment line 2 %0A %60,%0A description: %22Multline comment with no ending%22,%0A ... |
7a99bf6379232d4d2481e4f57d766b2ddd03ac65 | Allow transformations to tooltip name & value | react-chartist-tooltip.js | react-chartist-tooltip.js | import React from 'react';
import Chartist from 'chartist';
import classnames from 'classnames';
export default class Chart extends React.Component {
constructor(props) {
super(props);
this.state = {
datapoint: {
name: '',
value: '',
},
tooltip: {
top: 0,
le... | JavaScript | 0.000001 | @@ -91,16 +91,42 @@
ames';%0A%0A
+const identity = x =%3E x;%0A%0A
export d
@@ -627,24 +627,81 @@
render() %7B%0A
+ let props = this.props,%0A state = this.state;%0A%0A
return (
@@ -848,21 +848,16 @@
chart',
-this.
props.cl
@@ -990,21 +990,16 @@
oltip',
-this.
state.to
@@ -1114,21 +1114,16 @@
... |
2288da6141bbf53ded67892c83a8ff55ec2cfbac | Use custom success handler for saving list of subscribers | src/apps/omis/apps/edit/controllers/subscribers.js | src/apps/omis/apps/edit/controllers/subscribers.js | const { sortBy } = require('lodash')
const { EditController } = require('../../../controllers')
const { getAdvisers } = require('../../../../adviser/repos')
const { transformObjectToOption } = require('../../../../transformers')
class EditSubscribersController extends EditController {
async configure (req, res, nex... | JavaScript | 0 | @@ -7,16 +7,22 @@
%7B sortBy
+, pick
%7D = req
@@ -36,16 +36,16 @@
odash')%0A
-
%0Aconst %7B
@@ -188,16 +188,37 @@
ToOption
+, transformIdToObject
%7D = req
@@ -249,16 +249,61 @@
ormers')
+%0Aconst %7B Order %7D = require('../../../models')
%0A%0Aclass
@@ -590,16 +590,16 @@
label')%0A
-
supe
@@ -629,16... |
42fdedf6ee23c04b33410e2ff1a54043dd29ac8c | save teardown state | tests/mocks/sw-toolbox.js | tests/mocks/sw-toolbox.js | /***
* Copyright (c) 2015, 2016 Alex Grant (@localnerve), LocalNerve LLC
* Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
*
* A simple mock for sw-toolbox.
*
* Intended for use via mockery (or equiv) as a configurable drop-in that loads
* in-place of sw-toolbox so modules... | JavaScript | 0 | @@ -5559,24 +5559,53 @@
own.self) %7B%0A
+ teardown.self = false;%0A
delete
@@ -5644,24 +5644,52 @@
down.url) %7B%0A
+ teardown.url = false;%0A
delete
|
1ed5c1c2141e64056d6264e9dceb4e113a9a5ec9 | Add debug messages for missing strings. | packages/vulcan-lib/lib/modules/intl.js | packages/vulcan-lib/lib/modules/intl.js | import SimpleSchema from 'simpl-schema';
import { getSetting } from '../modules/settings';
export const Strings = {};
export const Domains = {};
export const addStrings = (language, strings) => {
if (typeof Strings[language] === 'undefined') {
Strings[language] = {};
}
Strings[language] = {
...Strings[... | JavaScript | 0 | @@ -83,16 +83,59 @@
ttings';
+%0Aimport %7B debug %7D from 'meteor/vulcan:lib';
%0A%0Aexport
@@ -502,85 +502,461 @@
%7C%7C
-Strings%5BdefaultLocale%5D %7C%7C %7B%7D
+%7B%7D;%0A let message = messages%5Bid%5D;%0A%0A // use default locale%0A if(!message) %7B%0A debug(%60%5Cx1b%5B32m%3E%3E INTL: No string found... |
c103fbabc6422a37f24df845a7cd9e1dd80b1696 | Set google satelite as the default layer | app/Map.js | app/Map.js | //a wrapper around leaflet that configures it as well
var map_config=require('../config/map-config');
var path=require('path');
var MapDraw=require('./models/MapDraw');
var MapMeasure=require('./models/MapMeasure');
var MapPath=require('./models/MapPath');
var Map=function(L){
var leaflet=L;//reference to the window... | JavaScript | 0 | @@ -1679,32 +1679,39 @@
: %5Bbase_layers%5B'
+Google
Satellite'%5D, ove
|
23657a55026f6637bc4a4db1f902e9d2d6ea2355 | Delete the databases between tests rather than nuking all entries since that doesn't remove indexes | spec/util/db-helper.js | spec/util/db-helper.js | /*
* Helper class for cleaning nedb state
*/
"use strict";
var Promise = require("bluebird");
var promiseutil = require("../../lib/promiseutil");
var Datastore = require("nedb");
/**
* Reset the database, wiping all data.
* @param {String} databaseUri : The database URI to wipe all data from.
* @return {Promise} ... | JavaScript | 0.000001 | @@ -85,24 +85,48 @@
bluebird%22);%0A
+var fs = require(%22fs%22);%0A
var promiseu
@@ -664,153 +664,149 @@
ar d
- = promiseutil.defer();%0A var db = new Datastore(%7B%0A filename: baseDbName + name,%0A autoload: true,%0A onload:
+bPath = baseDbName + name;%0A return new ... |
972e265830b54957a6afb554be45605a76031847 | Update the closure slider to have a getThumbCssClass, similar to getCssClass protected method. This allows implementations of this class to have more control over the CSS structure. | closure/goog/ui/slider.js | closure/goog/ui/slider.js | // Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | JavaScript | 0.000001 | @@ -3541,16 +3541,274 @@
);%0A%7D;%0A%0A%0A
+/**%0A * Returns CSS class applied to the slider's thumb element.%0A * @return %7Bstring%7D The CSS class applied to the slider's thumb element.%0A * @protected%0A */%0Agoog.ui.Slider.prototype.getThumbCssClass = function() %7B%0A return goog.ui.Slider.THUMB_CSS_CLASS;%0A%... |
0aff44504c01cc1895202f998b783763af4e2b3f | Use a factory function for simple arg-passing actions | src/actions/LessonActions.js | src/actions/LessonActions.js | var {
ADD_LESSON,
ADD_STEP,
DELETE_LESSON,
DELETE_STEP,
IMPORT_LESSONS,
SELECT_LESSON,
SELECT_STEP,
TOGGLE_EDITING,
UPDATE_LESSON,
UPDATE_STEP
} = require('../ActionTypes')
function addLesson() {
return {
type: ADD_LESSON
}
}
function addStep() {
return {
type: ADD_STEP
}
}
functi... | JavaScript | 0.000001 | @@ -191,120 +191,233 @@
')%0A%0A
-function addLesson() %7B%0A return %7B%0A type: ADD_LESSON%0A %7D%0A%7D%0A%0Afunction addStep() %7B%0A return %7B%0A type:
+var createAction = (type, ...props) =%3E%0A (...args) =%3E%0A props.reduce((action, prop, i) =%3E (action%5Bprop%5D = args%5Bi%5D, action), %7Btype... |
d5043fabe8c254287f3a5d0ec328c17239237bc0 | Change description | reportcomm.user.js | reportcomm.user.js | // ==UserScript==
// @name Reddit Steam Group Comment Reporter
// @namespace MilkGames
// @version 0.1
// @description More options to delete comments
// @author MilkGames -- Royalgamer06 for original script
// @match *://steamcommunity.com/groups/reddit*
// @grant none
// ==/UserSc... | JavaScript | 0.000004 | @@ -133,39 +133,50 @@
on
-More opti
+Report comments
on
-s
t
-o delete comments
+he Reddit Steam group.
%0A//
|
1f0b2cf8ece80fd30245807ae4233bbc55ad458a | Update toggle.js | source/utility/toggle.js | source/utility/toggle.js | import acid from '../namespace/index';
import { assign } from '../internal/object';
<<<<<<< HEAD
import { isEqual } from './isEqual';
/**
* Performs a toggle between 2 values using a deep or strict comparison.
=======
import { hasValue } from '../internal/is';
let count = 0;
const uuidFree = [];
const uuidClosed = {}... | JavaScript | 0.000001 | @@ -81,144 +81,8 @@
t';%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0Aimport %7B isEqual %7D from './isEqual';%0A/**%0A * Performs a toggle between 2 values using a deep or strict comparison.%0A=======%0A
impo
@@ -301,38 +301,16 @@
reused.%0A
-%3E%3E%3E%3E%3E%3E%3E origin/master%0A
*%0A *
@@ -348,689 +348,8 @@
on%7D%0A
-%... |
5f9014d18c91d7749135a8cedda4723cd72221d2 | FIX exception on objectlink remove button | src/client/js/xpsui/directives/objectlink2-edit.js | src/client/js/xpsui/directives/objectlink2-edit.js | (function(angular) {
'use strict';
angular.module('xpsui:directives')
.directive('xpsuiObjectlink2Edit', [
'xpsui:logging',
'$parse',
'xpsui:DropdownFactory',
'xpsui:Objectlink2Factory',
'xpsui:SelectDataFactory',
'xpsui:SchemaUtil',
'xpsui:RemoveButtonFactory',
function(log, $parse, dropdownFacto... | JavaScript | 0 | @@ -1335,12 +1335,9 @@
el.$
-setM
+m
odel
@@ -1345,29 +1345,13 @@
alue
-(%0A%09%09%09%09%09%09%09%09%7B%7D%0A%09%09%09%09%09%09%09)
+ = %7B%7D
;%0A%09%09
|
8bc4ef10c9341111e761ce9b2f321ee440638de9 | Comment out segment so I don't get a million rollbar errors | src/html.js | src/html.js | import React from "react";
import PropTypes from "prop-types";
import BodyClassName from "react-body-classname";
import Helmet from "react-helmet";
import { siteMetadata as config } from "../gatsby-config";
const HTML = ({ color, favicon, body, headComponents, postBodyComponents }) => {
let head = Helmet.rewind();
... | JavaScript | 0 | @@ -2095,24 +2095,36 @@
favicon%7D /%3E%0A
+ %7B/*%0A
%3Cscr
@@ -2174,24 +2174,36 @@
ytics %7D%7D /%3E%0A
+ */%7D%0A
%7Bcss
|
c33554e2d56a7266bad3ea507eea7238733c0ab9 | change sakura element id | src/app/page/Sakura/Sakura.js | src/app/page/Sakura/Sakura.js | import React from 'react'
import Button from 'material-ui/FloatingActionButton'
import UpdateIcon from 'material-ui/svg-icons/action/update'
function Sakura({doFetchSakuraData, sakuraLists}) {
sakuraLists.map(list => list.discs).forEach(discs => {
discs.sort((a, b) => a.this_rank - b.this_rank)
})
const styl... | JavaScript | 0.000381 | @@ -412,12 +412,14 @@
id=%22
-home
+sakura
%22%3E%0A
|
9c14aa7b03bdc1310d64e77a7c069902873c16d3 | update last bug fixed | request/handler.js | request/handler.js | const Promise = require('bluebird')
const logger = require('log4js').getLogger()
function promisify(func, params) {
return new Promise((resolve, reject) => {
func(params, (err, response) => {
if (err) {
reject(err)
} else {
resolve(response)
}
})
})
}
function parseForm(s... | JavaScript | 0 | @@ -841,16 +841,25 @@
orm%5Bkey%5D
+ !== null
) %7B%0A
|
5aa2013bdadf4914af09d7fb0c2b935127ac39d8 | Fix up comments and variable names in lib/subscribe.js. | lib/subscribe.js | lib/subscribe.js | /**
* subscribe.js implements subscriptions to several observables at once.
*
* E.g. if we have some existing observables (which may be instances of `computed`),
* we can subscribe to them explicitly:
* let obs1 = observable(5), obs2 = observable(12);
* subscribe(obs1, obs2, (use, v1, v2) => console.log(v1,... | JavaScript | 0 | @@ -689,31 +689,24 @@
assed to the
- read()
callback. T
@@ -702,16 +702,18 @@
callback
+()
. These
@@ -1195,20 +1195,24 @@
tructor(
-read
+callback
, depend
@@ -1682,20 +1682,24 @@
l.bindB(
-read
+callback
, this._
@@ -1778,31 +1778,24 @@
led when the
- read()
callback ca
@@ -2277,31 +2277,24 @@
* Calls ... |
da630a6a9fdd8781d02d0aee6c381671ea99d262 | Revert "add new logging output" | browscap.js | browscap.js | var jsonfile = './browscap.json';
exports.setJson = function (filename) {
jsonfile = filename;
};
exports.getBrowser = function (userAgent) {
var patterns, re, patternReplaced;
patterns = require(jsonfile);
// Test user agent against each browser regex
for (var pattern in patterns) {
if (!patterns.has... | JavaScript | 0 | @@ -678,53 +678,8 @@
) %7B%0A
- console.log('userAgent:' + userAgent);%0A
@@ -959,16 +959,73 @@
ttern%5D);
+%0A console.log('parsed browser data:' + browserData);
%0A%0A
@@ -1193,24 +1193,30 @@
roperty%5D;%0A
+ %7D%0A
consol
@@ -1249,59 +1249,17 @@
' +
-property + ' =%3E ' + brow... |
b6ef46a1b589b42d764203cbf110e9e5444e6b06 | Send concept id to LMS | src/scripts/app/play/sentences/controller.js | src/scripts/app/play/sentences/controller.js | 'use strict';
module.exports =
/*@ngInject*/
function SentencePlayCtrl (
$scope, $state, SentenceWritingService, RuleService, _,
ConceptTagResult, ActivitySession, localStorageService, $analytics
) {
$scope.$on('$locationChangeStart', function (event, next) {
if (next.indexOf('gen-results') !== -1) {
... | JavaScript | 0 | @@ -1594,32 +1594,67 @@
onceptCategory,%0A
+ concept_id: crq.conceptId,%0A
answer:
|
3d47acdfe3c81385ca97a8f9410994924820ed6a | Update main.js | javascripts/main.js | javascripts/main.js | console.log (THis is cool-FireMiner99)
| JavaScript | 0.000001 | @@ -11,9 +11,9 @@
g (T
-H
+h
is i
@@ -30,10 +30,34 @@
eMiner99
+ I might add a game too.
)%0A
|
d76a0373d2273d62bcfec473a0cbe27e9c8c0bf0 | Check for scope.player.d to exist before destroy() | src/angular-youtube-embed.js | src/angular-youtube-embed.js | /* global YT */
angular.module('youtube-embed', ['ng'])
.service ('youtubeEmbedUtils', ['$window', '$rootScope', function ($window, $rootScope) {
var Service = {}
// adapted from http://stackoverflow.com/a/5831191/1614967
var youtubeRegexp = /https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?... | JavaScript | 0 | @@ -6343,16 +6343,58 @@
layer &&
+ scope.player.d &&%0A
typeof
|
850aec241df71ee36e2361ddcc5894dc5ecab1c1 | add tachyfontreporter.js | run_time/src/gae_server/www/js/closure_deps.js | run_time/src/gae_server/www/js/closure_deps.js | /**
* @license
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | JavaScript | 0.000001 | @@ -2495,24 +2495,133 @@
Promise'%5D);%0A
+goog.addDependency('../../../tachyfont/tachyfontreporter.js',%0A %5B'tachyfont.reporter'%5D,%0A %5B'goog.log'%5D);%0A
goog.addDepe
@@ -2825,32 +2825,141 @@
omises'%0A %5D);%0A
+goog.addDependency('../../../tachyfont/tachyfontutils.js',%0A %5B'tachyfont.utils'%5D... |
9e87b835e08aac17a4cd931c9d697bd47a5b7614 | Fix transition to machines view after creating single server | src/mist/io/static/js/app/views/backend_add.js | src/mist/io/static/js/app/views/backend_add.js | define('app/views/backend_add', [
'app/models/backend',
'text!app/templates/backend_add.html',
'ember'],
/**
*
* Add Backend Dialog
*
* @returns Class
*/
function(Backend, backend_add_html) {
return Ember.View.extend({
template: Ember.Handlebars.compile... | JavaScript | 0 | @@ -7772,36 +7772,16 @@
false);
-
%0A
@@ -8363,338 +8363,285 @@
-//add bare metal backend if it does not exist already %0A var machines_url = window.location.href + %22/machines%22; %0A window.location.h... |
c92a61070d2cb936ac44444cfdd84b7c60bbb642 | Change the ajax failure message | ecommerce/static/js/pages/checkout_payment.js | ecommerce/static/js/pages/checkout_payment.js | /**
* Checkout payment page scripts.
**/
require([
'jquery',
'underscore',
'utils/utils',
'jquery-cookie'
],
function ($,
_,
Utils) {
'use strict';
var redirectToPaymentProvider = function (data) {
var $form = $('<form>'... | JavaScript | 0.00001 | @@ -1932,30 +1932,116 @@
tion
-(jqXHR, errorThrown) %7B
+ () %7B%0A var message = gettext('Problem occurred during checkout. Please contact support');
%0A
@@ -2140,64 +2140,19 @@
' +
-jqXHR.status + errorThrown + ' occurred during checkout.
+message + '
%3C/di
|
a37a228e228489ab8a214b462f3d983f8d5c18a3 | add icon in speed chart tooltip | src/scripts/services/ariaNgMonitorService.js | src/scripts/services/ariaNgMonitorService.js | (function () {
'use strict';
angular.module('ariaNg').factory('ariaNgMonitorService', ['$filter', '$translate', 'moment', 'ariaNgConstants', function ($filter, $translate, moment, ariaNgConstants) {
var currentGlobalStat = {};
var storagesInMemory = {};
var globalStorageKey = 'global';
... | JavaScript | 0 | @@ -1464,24 +1464,54 @@
eturn '%3Cdiv%3E
+%3Ci class=%22fa fa-clock-o%22%3E%3C/i%3E
' + time + '
|
1ec13c48785bbc0f3e4cabc5c26a7192ca759f39 | Fix undefined function error. | assets/tools.js | assets/tools.js | /**
* Magister Calendar v1.0.0
* https://git.io/magister
*
* Copyright 2015 Sander Laarhoven
* Licensed under MIT (http://git.io/magister-calendar-license)
*/
var fs = require("fs");
module.exports = {
validjson: function (string) {
try {
JSON.parse(string);
}
catch (e) {
return false;... | JavaScript | 0.000027 | @@ -1340,14 +1340,101 @@
(file);%0A
+ %7D,%0A sendPushMessage: function(appointment) %7B%0A // To be implemented..%0A return;%0A
%7D%0A%7D%0A
|
de599537eca17f2ae897c33f8ad7f6d074c74958 | Store EditableTable events in the instance | app/assets/javascripts/tables/editable_table.js | app/assets/javascripts/tables/editable_table.js | var EditableTable = (function(){
var selector, changeData, changeListener;
EditableTable.prototype = {
append: function(_changeListener, _changeData){
changeListener = (_changeListener || function(){});
changeData = (_changeData || function(){});
$(this.selector).on('change', changeListener.... | JavaScript | 0 | @@ -30,53 +30,8 @@
()%7B%0A
- var selector, changeData, changeListener;%0A%0A
Ed
@@ -110,24 +110,29 @@
ata)%7B%0A
+this.
changeListen
@@ -169,32 +169,37 @@
ion()%7B%7D);%0A
+this.
changeData = (_c
@@ -263,16 +263,21 @@
hange',
+this.
changeLi
@@ -867,22 +867,28 @@
ribute;%0A
+%0A
+this.... |
15891ab27fab1499afc58856b82c72c4e284cfa1 | Apply the 'change' handler if provided | htdocs/components/00_jquery_speciesdropdown.js | htdocs/components/00_jquery_speciesdropdown.js | /*
* Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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... | JavaScript | 0 | @@ -984,30 +984,9 @@
down
-, except 'change' key
%0A
+
*
@@ -1165,16 +1165,20 @@
.extend(
+%7B%7D,
options,
@@ -1388,16 +1388,16 @@
.png');%0A
-
@@ -1400,16 +1400,116 @@
%7D);%0A
+ if (options && options.change) %7B%0A options.change.apply(this, arguments);%0A %7D%0A
... |
b8725f3b2ad4a032a85b705ff56ae5e647c804bf | fix overriding styles, add size="" prop to set width/height | src/icon.js | src/icon.js | var element = require('magic-virtual-element')
exports.render = function render (component) {
var attrs = {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 24 24',
style: {
width: 24,
height: 24
}
}
Object.keys(component.props).forEach(function (key) {
if (key === 'style') {
... | JavaScript | 0.000001 | @@ -88,16 +88,93 @@
nent) %7B%0A
+ var props = component.props%0A var size = 'size' in props ? props.size : 24%0A
var at
@@ -263,49 +263,56 @@
le:
-%7B%0A width: 24,%0A height: 24%0A %7D
+'width: ' + size + 'px; height: ' + size + 'px;'
%0A %7D
@@ -326,26 +326,16 @@
ct.keys(
-component.
props).... |
9e15c9daa1eab9c0047b23542321e11097000e5e | Update production aws bucket in node dependencies | buildbug.js | buildbug.js | //-------------------------------------------------------------------------------
// Requires
//-------------------------------------------------------------------------------
var buildbug = require("buildbug");
//-------------------------------------------------------------------------------
// Simplify ... | JavaScript | 0 | @@ -1661,16 +1661,23 @@
aws.com/
+deploy-
airbug/b
|
589b510b8e97f55f8dd46336db5bd0ee0cb514c7 | Fix accepted tooltip grammar (#129) | app/components/registration-status/component.js | app/components/registration-status/component.js | import Ember from 'ember';
const STATUS_HELP = {
pending: function(registration) {
return 'The application for ' + registration.sourceName + ' is being reviewed. Check back soon!';
},
accepted: function(registration) {
if (registration.directSource) {
return registration.sourceN... | JavaScript | 0 | @@ -315,34 +315,33 @@
ourceName + ' ha
-ve
+s
been approved a
@@ -429,18 +429,17 @@
e + ' ha
-ve
+s
been ap
|
719b97cba7aa54121d08601e62514b1818b601b8 | make oldDashboard default page after login, again; #219 | imports/startup/client/routes/Routes.Public.js | imports/startup/client/routes/Routes.Public.js | import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { Session } from 'meteor/session';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
import { wrs } from '/imports/framework/Functions/Async';
import { checkLanguage,... | JavaScript | 0 | @@ -876,20 +876,8 @@
) =%3E
- %7B%0A
Flo
@@ -892,38 +892,14 @@
go('
-dashboard.details');%0A %7D
+home')
);%0A
|
4c8e7d377ab97ddded7c5bdc032be6d8f66583d1 | Change CacheControl to no-cache for HTML | lib/templates.js | lib/templates.js | 'use strict';
const pug = require('pug');
module.exports.updateIndex = (s3, config) => {
const html = pug.renderFile('views/index.pug', config.podcast)
return s3.putObject({
Bucket: config.bucket,
Key: 'index.html',
Body: html,
ContentType: 'text/html; charset=utf-8',
ACL:... | JavaScript | 0.000001 | @@ -352,36 +352,32 @@
heControl: '
-max-age=3600
+no-cache
'%0A %7D).promi
@@ -699,36 +699,32 @@
heControl: '
-max-age=3600
+no-cache
'%0A %7D).promi
@@ -1055,36 +1055,32 @@
heControl: '
-max-age=3600
+no-cache
'%0A %7D).promi
|
d736e641fdf568dfc66ba2693ddde070e4339b86 | Change initial player positions | scripts/app/game.js | scripts/app/game.js | define([
"app/assetmanager",
"app/audiomanager",
"app/entitycreator",
"app/ecs/world",
"app/ecs/entity",
"app/systems/animationsystem",
"app/systems/collisionsystem",
"app/systems/deathsystem",
"app/systems/deterioratesystem",
"app/systems/inputsystem",
"app/systems/movements... | JavaScript | 0 | @@ -2255,19 +2255,23 @@
%22link%22,
+10
0,
+50
0, contr
@@ -2335,15 +2335,15 @@
n%22,
-1
+9
00,
-10
+35
0, c
|
ddc14a11c2d68f063c570a1cc52874db98451620 | add POST /users object schema | server/users/userRoute.js | server/users/userRoute.js | const express = require('express');
const userCtrl = require('./userCtrl');
const userRoute = module.exports = express.Router();
userRoute.get('/', userCtrl.getUsers);
userRoute.post('/');
| JavaScript | 0.000001 | @@ -73,60 +73,433 @@
');%0A
-%0Aconst userRoute = module.exports = express.Router()
+const Joi = require('joi');%0Aconst validate = require('../utils/validate');%0A%0Aconst userRoute = module.exports = express.Router();%0A%0Aconst createUserSchema = %7B%0A email: Joi.string().email().required(),%0A password: Joi.str... |
6876301c04e048f66dad03bd7fc3edf14c2e7dbc | indent formatting | api/api.js | api/api.js | import express from 'express';
import session from 'express-session';
import bodyParser from 'body-parser';
import config from '../src/config';
import * as actions from './actions/index';
import { mapUrl } from 'utils/url.js';
import PrettyError from 'pretty-error';
import http from 'http';
const pretty = new PrettyEr... | JavaScript | 0.000002 | @@ -761,23 +761,16 @@
params)
-%0A
.then((r
@@ -777,24 +777,26 @@
esult) =%3E %7B%0A
+
if
@@ -841,16 +841,18 @@
+
result(r
@@ -856,16 +856,18 @@
t(res);%0A
+
@@ -887,24 +887,26 @@
+
res.json(res
@@ -907,24 +907,26 @@
on(result);%0A
+
%7D%0A... |
9d06a8e670cbc67b87a1644d24e35b3edfddf64a | Add the filter to the init file. | src/init.js | src/init.js | (function (angular) {
'use strict';
angular.module('djangularRestFramework', [
'drf-config',
'drf-provider'
]);
}(window.angular));
| JavaScript | 0 | @@ -125,16 +125,51 @@
rovider'
+,%0A 'drf-display-name-filter'
%0A %5D);
|
832aaabdda787b766cc6b5ac9fe9e2e0bf053380 | add "name" arg to trailpack constructor | lib/trailpack.js | lib/trailpack.js | 'use strict'
const Trailpack = require('trailpack')
module.exports = class SmokesignalsTrailpack extends Trailpack {
constructor(app, config) {
super(app, {
pkg: {
name: 'trailpack-smokesignals'
},
config: config || { }
})
}
/**
* Wait for some stuff so that the process doe... | JavaScript | 0.000001 | @@ -137,16 +137,22 @@
, config
+, name
) %7B%0A
@@ -190,16 +190,24 @@
name:
+ name %7C%7C
'trailp
|
6058362b53330e8b50a6026e23b6642c7dc15939 | Fix test setup in test-permissions.js | src/base1/test-permissions.js | src/base1/test-permissions.js | /* global cockpit, QUnit */
var root_user = {
name: "weird-root",
id: 0,
groups: null
};
var priv_user = {
name: "user",
id: 1000,
groups: ["user", "agroup"]
};
QUnit.module("Permission tests", {
setup: function() {
this.old_dbus = cockpit.dbus;
this.old_is_superuser = coc... | JavaScript | 0.000407 | @@ -224,25 +224,21 @@
-setup: function()
+before: () =%3E
%7B%0A
@@ -383,28 +383,20 @@
-teardown: function()
+after: () =%3E
%7B%0A
|
1f153faa8e8432ccba6c88074eb61c445890a6ab | update files | lib/transform.js | lib/transform.js | /**
* Created by nuintun on 2015/4/27.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var util = require('./util');
var through = require('@nuintun/through');
var gutil = require('@nuintun/gulp-util');
var join = path.join;
var relative = path.relative;
/**
* include
*
* @param options
*... | JavaScript | 0.000001 | @@ -1535,16 +1535,162 @@
= this;
+%0A var path = gutil.pathFromCwd(vinyl.path);%0A%0A // print process progress%0A util.print('process: %25s', gutil.colors.reset.green(path));
%0A%0A
@@ -2107,58 +2107,8 @@
e();
-%0A var path = gutil.pathFromCwd(vinyl.path);
%0A%0A
|
4dccc9d4df086999dca3ca67ded848bc612aaa7b | Fix super destroy in item | src/item.js | src/item.js | import { select } from 'd3';
import { Observer } from '@scola/d3-model';
import Button from './part/button';
import Icon from './part/icon';
import Icons from './part/icons';
import Scroller from './part/scroller';
import Space from './part/space';
import Switch from './part/switch';
import Input from './part/input';
i... | JavaScript | 0 | @@ -1074,29 +1074,8 @@
) %7B%0A
- super.destroy();%0A
@@ -1268,16 +1268,38 @@
= null;
+%0A%0A super.destroy();
%0A %7D%0A%0A
|
c21c0e1150092a461ff330947c9f3b909438d759 | Add error to debug panel | src/components/views/settings/CrossSigningPanel.js | src/components/views/settings/CrossSigningPanel.js | /*
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -912,16 +912,58 @@
state =
+%7B%0A error: null,%0A ...
this._ge
@@ -978,16 +978,27 @@
Status()
+,%0A %7D
;%0A %7D%0A
@@ -1707,24 +1707,64 @@
ync () =%3E %7B%0A
+ this.setState(%7B error: null %7D);%0A
try
@@ -2655,24 +2655,65 @@
catch (e) %7B%0A
+ th... |
66ae77de174ed45ae58adf04b0b4faf94e7713a3 | Modify payload format for kafka message | api/log.js | api/log.js | 'use strict'
const config = require('config')
const logAPI = module.exports = {}
logAPI.get = function *() {
var token
// TODO: Add support for session cookie authentication.
token = this.token
// Check necessary if fields are provided.
if (!token._id) this.throw('User id is required.', 400)
var log =... | JavaScript | 0.000003 | @@ -306,35 +306,8 @@
00)%0A
- var log = this.query.log%0A
if
@@ -374,9 +374,8 @@
d =
-%5B
%7B%0A
@@ -427,9 +427,8 @@
%0A %7D
-%5D
%0A%0A
@@ -482,23 +482,25 @@
nt.send(
+%5B
payload
+%5D
)%0A%0A thi
|
5e04c005e3d35c1b3f7e7b31aa5c475debf01224 | Allow fetchData in development mode | app/app.js | app/app.js | import 'babel/polyfill';
import './client/lib/index';
import $ from 'jquery';
import React from 'react';
import Router from 'react-router';
import app from 'app/client/components/main/app';
import routes from './routes';
import configureStore from './client/stores/index';
$(document).ready(() => {
const appDOM = do... | JavaScript | 0.000001 | @@ -397,79 +397,333 @@
%0A%0A
-Router.run(routes, Router.HistoryLocation, (Handler, routerState) =%3E %7B%0A
+if (process.env.NODE_ENV === 'development') %7B%0A const fetchData = require('./client/helpers/fetch-data');%0A let areFetchedData = false;%0A%0A Router.run(routes, Router.HistoryLocation, (Handler,... |
8d3c0cdde2fe97121bd45202589e9e537e0aafd2 | Remove logging. | src/article/CellComponent.js | src/article/CellComponent.js | /* globals clearTimeout */
import { NodeComponent, FontAwesomeIcon, isEqual } from 'substance'
import ValueComponent from '../shared/ValueComponent'
import CodeEditor from '../shared/CodeEditor'
import { getCellState, getError, getErrorMessage } from '../shared/cellHelpers'
import { toString as stateToString, BROKEN, F... | JavaScript | 0 | @@ -5650,173 +5650,8 @@
)%0A
- if (showError) %7B%0A console.log('SHOW ERROR', oldCellState.status, status, oldCellState.errors.join(','), cellState.errors.join(','))%0A %7D%0A
|
13945ccf0e67f7d2b64e5b11735deaaf534b3bef | improve commenting | 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 | @@ -569,24 +569,74 @@
eCurrent) %7B%0A
+ // store time started scrolling when starting%0A
if(!time
|
fdd778c1392bf9a19e46e1d8ffebb3fde046e253 | Add ESC key | src/keys.js | src/keys.js | export default {
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
ENTER: 13,
SPACE: 32,
};
| JavaScript | 0.000002 | @@ -83,11 +83,22 @@
CE: 32,%0A
+ ESC: 27,%0A
%7D;%0A
|
a931ad038002f53dfb90b9d4fb1f0cdd0ee65b4e | Remove socket connection on app load for security | app/app.js | app/app.js | 'use strict';
// Declare app level module which depends on views, and components
angular.module('collaborate', [
'ui.router',
'ngAnimate',
'ui.bootstrap',
'home',
'login',
'services',
'directives'
]).
config(['$urlRouterProvider','$httpProvider', function($urlRouterProvider, $httpProvider) {
$httpProvi... | JavaScript | 0 | @@ -404,54 +404,8 @@
');%0A
- io.connect(window.__config.socketEndPoint);%0A
%7D%5D);
|
97c5f7e647ecd659275db54c5f1519fa0ebec902 | Add cleaning of generators | scripts/clean_up.js | scripts/clean_up.js | import craftai from '../src';
const craftToken = { token: process.env.CRAFT_TOKEN };
const JOB_ID = process.env.TRAVIS_JOB_ID || 'local';
const client = craftai(craftToken);
console.log(client);
client.listAgents()
.then((agentNames) => {
console.log('got', agentNames.length);
agentNames.filter((agentName) =... | JavaScript | 0 | @@ -168,16 +168,17 @@
Token);%0A
+%0A
console.
@@ -185,16 +185,65 @@
log(
-client);
+'Clearning up dangling agents and generators from tests')
%0Acli
@@ -669,24 +669,24 @@
leted) =%3E %7B%0A
-
console.
@@ -733,16 +733,607 @@
ted.%60);%0A
+ return client.listGenerators%0A .then((generatorsName) =%3E %... |
e17734aaac261ed3d88076bab8503bd594da2f5e | Fix show/hide editor | app/app.js | app/app.js | var Pastebin = Pastebin || {};
Pastebin = (function () {
'use strict';
// common RDF vocabs
var RDF = $rdf.Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");
var DCT = $rdf.Namespace("http://purl.org/dc/terms/");
var SIOC = $rdf.Namespace("http://rdfs.org/sioc/ns#");
var SOLID = $rdf.Na... | JavaScript | 0 | @@ -615,24 +615,155 @@
on init() %7B%0A
+ document.getElementById('edit').classList.add('hidden');%0A document.getElementById('view').classList.add('hidden');%0A%0A
if (
@@ -823,35 +823,32 @@
load
-Bin
(queryVals%5B'view
@@ -940,19 +940,16 @@
load
-Bin
(queryVa
@@ -976,32 +97... |
0c748fc84a4dc332fc6dd8b8875d2fac89a092e7 | fix controls bug where clicking in time box triggers event | scripts/controls.js | scripts/controls.js | /*jslint nomen: true, browser: true*/
/*global define*/
define([
'jquery',
'underscore',
'backbone',
'text!../templates/controls.html'
], function ($, _, Backbone, controlsTmpl) {
'use strict';
var ControlsView;
ControlsView = Backbone.View.extend({
template: _.template(controlsTmp... | JavaScript | 0 | @@ -572,24 +572,39 @@
form %3E input
+%5Btype=%22submit%22%5D
': 'readText
@@ -650,16 +650,31 @@
%3E input
+%5Btype=%22submit%22%5D
': 'rend
|
14d049a5fbdc82f844f3bc477762d9ab7b092f15 | Use fs.wrtieFile instead | lib/util/file.js | lib/util/file.js | var fs = require('graceful-fs'),
path = require('path'),
async = require('async'),
_ = require('lodash'),
EOL = require('os').EOL,
EOLre = new RegExp(EOL, 'g');
if (!fs.exists || !fs.existsSync){
fs.exists = path.exists;
fs.existsSync = path.existsSync;
}
var mkdir = exports.mkdir = function(destination... | JavaScript | 0 | @@ -985,24 +985,27 @@
ist)%7B%0A
+fs.
writeFile(de
@@ -1088,16 +1088,19 @@
+fs.
writeFil
|
6379557d7cf328f214a581fa5e781f9ec9d67573 | Fix security token on settings page in Chrome | common/ui/inline/mvelo.js | common/ui/inline/mvelo.js |
/**
* Mailvelope - secure email with OpenPGP encryption for Webmail
* Copyright (C) 2012 Thomas Oberndörfer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation.
*
* This ... | JavaScript | 0.000002 | @@ -1073,33 +1073,26 @@
fox%0A
+if (
mvelo.
-extension.connect =
+ffa) %7B%0A
mve
@@ -1116,23 +1116,9 @@
ect
-%7C%7C mvelo.ffa &&
+=
fun
@@ -1128,24 +1128,26 @@
on(obj) %7B%0A
+
+
mvelo.extens
@@ -1165,16 +1165,18 @@
t(obj);%0A
+
obj.ev
@@ -1186,16 +1186,18 @@
s = %7B%7D;%0A
+
var po
@@ -1207... |
4d78ad3c7fcd0ef6eaa41b045f9b86101b0a5076 | add shape | src/cartesian/ReferenceDot.js | src/cartesian/ReferenceDot.js | /**
* @fileOverview Reference Line
*/
import React, { Component, PropTypes } from 'react';
import pureRender from '../util/PureRender';
import Layer from '../container/Layer';
import Dot from '../shape/Dot';
import { PRESENTATION_ATTRIBUTES, getPresentationAttributes } from '../util/ReactUtils';
import { validateCoor... | JavaScript | 0 | @@ -1075,16 +1075,85 @@
mber%5D),%0A
+ shape: PropTypes.oneOfType(%5BPropTypes.func, PropTypes.element%5D),%0A
%7D;%0A%0A
@@ -2376,32 +2376,340 @@
turn null;%0A %7D%0A%0A
+ renderDot(option, props) %7B%0A let dot;%0A%0A if (React.isValidElement(option)) %7B%0A dot = React.cloneElement(option, pro... |
f73cec06a8fc08b0c74a8e1e1976b6e1a96444ee | Update getstrokeweight.js | draw/colors/getstrokeweight.js | draw/colors/getstrokeweight.js | if(!Draw.getStrokeWeight) {
Draw.getStrokeWeight = function() {
if(!Canvas.configured) {
console.warn("KAPhy Warning - You must use Canvas.configure(); before you can draw!");
return;
}
return Canvas.context.lineWidth;
};
}
| JavaScript | 0 | @@ -21,16 +21,229 @@
ight) %7B%0A
+ /* Draw.getStrokeWeight%0A Draw.getStrokeWeight returns the canvas context's current stroke weight (or line width)%0A %0A @author TemporalFuzz%0A @version 1.0%0A @returns Number current stroke weight%0A */%0A
Draw.g
|
a06b5f4d0715c3c503a7142b6104482674f72222 | Fix gulp task | scripts/gulpfile.js | scripts/gulpfile.js | /* eslint no-console: ["error", { allow: ["log"] }] */
const gulp = require('gulp');
const connect = require('gulp-connect');
const gopen = require('gulp-open');
const runSequence = require('run-sequence');
const buildKsCore = require('./build-ks-core.js');
const buildKsVue = require('./build-ks-vue.js');
const buildK... | JavaScript | 0.000208 | @@ -1563,16 +1563,22 @@
d-core',
+ () =%3E
runSequ
|
dd52dd3f817b4c421735fa30c3bab28a89d3b94f | Fix init loading | app/app.js | app/app.js | import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';
import getAndInitNewEpisodes from "./lib/getAndInitNewEpisodes"
var App;
var ipc = nRequire("ipc");
Ember.MODEL_FACTORY_INJECTIONS = true;
var notifier =... | JavaScript | 0.000002 | @@ -927,15 +927,46 @@
des(
-store,
+epController.currentUser, store).then(
func
@@ -1318,17 +1318,17 @@
endSync(
-'
+%22
newBackg
@@ -1340,17 +1340,17 @@
Episodes
-'
+%22
, 1);%0A
|
131154fd4cd073ae62ba08a1324242c2a785540c | Fix linter error | app/app.js | app/app.js | var _ = require('lodash');
var React = require('react');
var createReactClass = require('create-react-class');
var request = require('browser-request');
var cx = require('classnames');
var { transform, formatError } = require('../lib/util');
var examples = require('./examples.json');
var exampleGrammar = examples[0].... | JavaScript | 0.000004 | @@ -5380,25 +5380,24 @@
hub.com%5C/(%5B%5E
-%5C
/%5D+)%5C/(%5B%5E%5C/%5D
@@ -5393,17 +5393,16 @@
%5D+)%5C/(%5B%5E
-%5C
/%5D+)%5C/bl
|
817e5f4a52143c3c93dcab460e23da440f5b9e69 | add link to home | src/client/components/Main.js | src/client/components/Main.js | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { bindActions, mapStateToProps } from '../stores';
import * as actions from '../actions/main';
import Page from './Page';
import SideMenu from './SideMenu';
import PageContent from './PageContent';
// eslint-di... | JavaScript | 0 | @@ -403,16 +403,75 @@
nu = %5B%7B%0A
+ to: %7B pathname: '/' %7D,%0A label: 'Home',%0A %7D, %7B%0A
to
|
2a5a9f86f485a91b6b1315cb577beb3a362f2faa | remove dev.js from cli args | app/dev.js | app/dev.js | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... | JavaScript | 0.000002 | @@ -798,16 +798,146 @@
v'%0A%7D);%0A%0A
+// monkey-patch cli args to not open this file in application%0Aprocess.argv = process.argv.filter(arg =%3E !arg.includes('dev.js'));%0A
%0Aconst a
|
f51484adeaea13dd46104bf4314a2296a3663078 | Update jquery.slideshow.js | jquery.slideshow.js | jquery.slideshow.js | $.fn.Slideshow = function(args){
var self = this;
this.currentSlide = 0;
var playState=true;
var slides = getSlides(this,args['slides']['selectorType'],args['slides']['selector']);
var controls = buildControls(this, args);
autoPlay();
function buildControls(sliderShow, args){
if(typeof(args["controls"])!==un... | JavaScript | 0 | @@ -1259,51 +1259,8 @@
i)%7B%0A
-%09%09console.log(self.currentSlide+%22 -%3E %22+i);%0A
%09%09ch
|
090d653033e15d8174d9c475d704e8f91f31e4cc | Fix event handler | scripts/explore/ExploreDiscussionController.js | scripts/explore/ExploreDiscussionController.js |
/**
* ExploreDiscussionController
* Concrete view controller to display a Discussion.
* @constructor
*/
let ExploreDiscussionController = ConversationController.createComponent("ExploreDiscussionController");
ExploreDiscussionController.createViewFragment = function createViewFragment() {
return cloneTemplate("... | JavaScript | 0.000042 | @@ -1506,16 +1506,21 @@
OnClick(
+event
) %7B%0A
@@ -1520,16 +1520,20 @@
%7B%0A e
+vent
.prevent
@@ -1548,16 +1548,20 @@
);%0A e
+vent
.stopPro
|
7ca2d233cc7274a8b8c21510f369b0715b0a4ce5 | Fix for Synapse backbone integration | js/application/synapse/hooks/backbone-model.js | js/application/synapse/hooks/backbone-model.js |
(function(root, factory) {
if (typeof exports !== 'undefined') {
return factory(root, exports, require('synapse/core'), require('backbone'));
} else if (typeof define === 'function' && define.amd) {
return define('synapse/hooks/backbone-model', ['synapse/core', 'backbone', 'exports'], function(core, Backb... | JavaScript | 0 | @@ -540,16 +540,26 @@
ok, core
+, Backbone
) %7B%0A re
|
18aa55888b45eb683c216b887e04e062fa6a85f6 | Improve electron process webpack plugin | scripts/webpack/ManageElectronProcessPlugin.js | scripts/webpack/ManageElectronProcessPlugin.js | const { exec } = require('child_process');
class ManageElectronProcessPlugin {
apply(compiler) {
if (compiler.options.watch) {
let electron = null;
compiler.hooks.done.tap(
'RestartElectronPlugin',
() => {
if (electron === null) {
electron = exec("yarn electron ... | JavaScript | 0 | @@ -138,39 +138,97 @@
let electron
- = null
+MainProcess = null;%0A let isMainProcessBeingRestarted = false
;%0A compiler
@@ -315,16 +315,27 @@
electron
+MainProcess
=== nul
@@ -351,32 +351,43 @@
electron
+MainProcess
= exec(%22yarn el
@@ -418,16 +418,27 @@
electron
+MainProcess
.once('c... |
dbc7e260ad53ffec5c318efeee425804132debb2 | Reorder routes to trigger rebuild. | src/main.js | src/main.js | import './main.sass'
import 'babel-core/polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { compose, createStore, applyMiddleware } from 'redux'
import {... | JavaScript | 0 | @@ -2018,71 +2018,8 @@
-createRedirect('onboarding', '/onboarding/communities'),%0A
requ
@@ -2073,24 +2073,87 @@
es/following
+'),%0A createRedirect('onboarding', '/onboarding/communities
'),%0A re
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.