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 |
|---|---|---|---|---|---|---|---|
8681bebb355e433abbc89e4b20f87981fb34eaee | Change how the Accessory UUID is generated (#3) | index.js | index.js | const Bulb = require('tplink-lightbulb')
const promiseTimeout = require('promise-timeout')
const promiseRetry = require('promise-retry')
var PlatformAccessory, Service, Characteristic, UUIDGen
module.exports = function (homebridge) {
PlatformAccessory = homebridge.platformAccessory
Service = homebridge.hap.Servic... | JavaScript | 0 | @@ -1681,16 +1681,29 @@
deviceId
+ + light.name
), 5)%0A%0A
|
9348a00515273173bc60db63f33fd63fcab9db34 | Fix output | index.js | index.js | var path = require('path')
var log = require('git-log')
var Multi = require('multi-stream')
var moment = require('moment')
var Table = require('cli-table')
var clcTTY = require('cli-color-tty')
var once = require('once')
module.exports = function (repos, opts, cb) {
repos = Array.isArray(repos) ? repos : [repos]
... | JavaScript | 0.999999 | @@ -1136,16 +1136,136 @@
M-DD')%0A%0A
+ if (opts.from && commitDate.isBefore(opts.from)) return%0A if (opts.to && commitDate.isAfter(opts.to)) return%0A%0A
da
@@ -1440,129 +1440,8 @@
%5B%5D%0A
-%0A if (opts.from && commitDate.isBefore(opts.from)) return%0A if (opts.to && commitDate.isAfter... |
3538fb372ab4be8c1281a7c0f93569c13a9dd560 | Correct typo in variable | index.js | index.js | "use strict";
var postcss = require("postcss"),
/* Properties to check */
epubProps = [
/* epub text */
"-epub-hyphens",
"-epub-line-break",
"-epub-text-align-last",
"-epub-word-break",
/* epub text decoration */
"-epub-text-emphasis",
"-epub-text-emphasis-color",
"-epub-text-emphasis-... | JavaScript | 0.001419 | @@ -1717,24 +1717,25 @@
hasTextTran
+s
form = decl.
@@ -1831,16 +1831,17 @@
TextTran
+s
form) %7B%0A
|
98019c50737a15d6d7868f2ad011edb0f43c3b68 | Fix bug that leads to typing happening in reverse | index.js | index.js | 'use strict';
var ko = require('knockout');
var CodeMirror = require('code-mirror');
var themes = require('code-mirror/theme');
module.exports = enableCM;
function enableCM(defaults) {
var events = {
'editor-created': [],
'editor-disposed': []
};
ko.bindingHandlers.codemirror = {
init: function(ele... | JavaScript | 0.000003 | @@ -1235,24 +1235,87 @@
nction () %7B%0A
+ if (editor.getValue() !== valueAccessor().value())%0A
ed
|
2ac09bd640f5ec1b566c16f012aa5e05c9ded59f | Fix express3-handlebars package name | index.js | index.js | var express = require('express');
var bodyParser = require('body-parser');
var expressHbs = require('express3-handlebars');
var socket = require('./socket.js').socket;
var socket_send = require('./socket.js').send;
var onConnection = require('./socket.js').onConnection;
var sockets = express();
var sockets_server = r... | JavaScript | 0.000032 | @@ -101,17 +101,16 @@
'express
-3
-handleb
|
acf48108b3f329e1cd8cbdf72944f2eda64e9e15 | exit phantom as quickly as possible, resolves #30 | index.js | index.js | /* global document */
var querystring = require('querystring');
var cheerio = require('cheerio');
var extend = require('util-extend');
var phantom = require('phantom');
var url = require('url');
var options = {
url: 'http://guides.ucsf.edu/srch.php'
};
exports.setOptions = function (newOptions) {
options = e... | JavaScript | 0 | @@ -1417,32 +1417,72 @@
ion (rawHtml) %7B%0A
+ ph.exit();%0A%0A
@@ -2249,47 +2249,8 @@
v);%0A
- ph.exit();%0A
|
84b8616c31f2adfed63a126641ffc3cc8d69c0c9 | remove semi :space_invader: | index.js | index.js | 'use strict'
const transformFileSync = require('babel-core').transformFileSync
const transform = require('buble').transform
const babelPlugin = require('babel-plugin-transform-es2015-modules-commonjs');
const contains = (a, b) => a.indexOf(b) > 0
const EXTENSIONS = ['.js', '.es', '.es6']
const bubleOpts = {
trans... | JavaScript | 0.000113 | @@ -199,9 +199,8 @@
js')
-;
%0A%0Aco
|
074f908e261e45b5dd5c29bd319a3bc83937239c | remove instrumentation for now | index.js | index.js |
/**
* Module dependencies.
*/
var debug = require('debug')('koa-compose');
/**
* Expose compositor.
*/
module.exports = debug.enabled
? instrumented
: compose;
/**
* Compose `middleware` returning
* a fully valid middleware comprised
* of all those which are passed.
*
* @param {Array} middleware
* @r... | JavaScript | 0 | @@ -1,83 +1,4 @@
-%0A/**%0A * Module dependencies.%0A */%0A%0Avar debug = require('debug')('koa-compose');%0A
%0A/**
@@ -45,43 +45,8 @@
ts =
- debug.enabled%0A ? instrumented%0A :
com
@@ -648,915 +648,8 @@
%0A%7D%0A%0A
-/**%0A * Compose %60middleware%60 instrumented for debugging.%0A *%0A * TODO: remove and supp... |
9a25400535994d26cc2aaeeab2fe6896c6bca7b8 | move escodegen require | index.js | index.js | var aparse = require('acorn').parse;
var defined = require('defined');
var requireRe = /\brequire\b/;
function parse (src, opts) {
if (!opts) opts = {};
return aparse(src, {
ecmaVersion: defined(opts.ecmaVersion, 6),
ranges: defined(opts.ranges, opts.range),
locations: defined(opts.loc... | JavaScript | 0 | @@ -30,16 +30,54 @@
.parse;%0A
+var escodegen = require('escodegen');%0A
var defi
@@ -604,46 +604,8 @@
);%0A%7D
-%0Avar escodegen = require('escodegen');
%0A%0Ava
|
23ad7f895f01412b52cf930026348f3ed8610ffe | Fix bug with getting branches | index.js | index.js | #!/usr/bin/env node
var Promise = require('bluebird');
var git = require('nodegit');
var moment = require('moment');
var _ = require('lodash');
var exec = Promise.promisify(require('child_process').exec);
var config = {
// Maximum time diff between 2 subsequent commits in minutes which are
// counted to be i... | JavaScript | 0 | @@ -2311,49 +2311,8 @@
) %7B%0A
- console.log(branchName);%0A
@@ -2401,45 +2401,8 @@
) %7B%0A
- console.log(branch);%0A
@@ -3066,16 +3066,64 @@
return
+new Promise(function(resolve, reject) %7B%0A
exec(cmd
@@ -3138,23 +3138,18 @@
gitPath%7D
-).then(
+,
function... |
d7cf3d479af55cc8250cc6fceb0f6917ba319001 | Support Windows for resolve path (#80) | index.js | index.js | 'use strict';
const path = require('path');
const gutil = require('gulp-util');
const multimatch = require('multimatch');
const streamfilter = require('streamfilter');
module.exports = (pattern, options) => {
pattern = typeof pattern === 'string' ? [pattern] : pattern;
options = options || {};
if (!Array.isArray(p... | JavaScript | 0 | @@ -837,36 +837,34 @@
if (
-relPath.indexOf('../') === 0
+/%5E%5C.%5C.%5B%5C%5C/%5D/.test(relPath)
) %7B%0A
|
8772a8bb29039907a88f83dd4934e8be35992fab | update rpg | week-7/TextRPG/gamekit-master/mygame/main.js | week-7/TextRPG/gamekit-master/mygame/main.js |
(function(){
/* Don't touch this or the code above */
/* Important game variable */
var gameTitle = "Hero-00";
var intro = "Welcome to a new day."
var playerName = "";
var pants = false;
var toothbrush = false;
var hearts = 5;
var coins = 0;
alert(gameTitle);
/* Title Screen*/
function askName(){
playerName = prompt... | JavaScript | 0.000001 | @@ -97,19 +97,19 @@
tle = %22H
-ero
+ERO
-00%22;%0Ava
@@ -2082,16 +2082,54 @@
5 coins!
+ %22+%22You still need to find your pants.
%22);%0A
@@ -2293,16 +2293,53 @@
a heart.
+ %22+%22You still need to find your pants
%22);%0A
|
1f4f150c2d009a6222da42ea99c3b102de869229 | Update ai.js | js/ai.js | js/ai.js | function AI() {
this.moves = [0,1,2,3];
this.brain = new deepqlearn.Brain(19,4, {
epsilon_test_time: 0.1,
epsilon_min: 0.01,
experience_size: 3000000
});
this.previousMove = 0;
this.previousMoved = false;
}
AI.prototype.getMaxVal = function() {
var max = 0;
this.grid.cells.forEach(function(row){
row.f... | JavaScript | 0 | @@ -101,17 +101,17 @@
time: 0.
-1
+0
,%0A%09%09epsi
|
51ac902d819af7ab65aa8fd97eccb57e4fc26520 | Update fb.js | js/fb.js | js/fb.js | Parse.initialize("7YyZO6oZNVongKR6pluyULEkMEmvLVRtVZvd6OXn", "JTOrsTnWqTBhxqxFMEvPdOUzDd9Ro01JqpiAF003");
window.fbAsyncInit = function() {
Parse.FacebookUtils.init({ // this line replaces FB.init({
appId : '971388552927772', // Facebook App ID
status : true, // check Faceboo... | JavaScript | 0.000001 | @@ -3525,17 +3525,17 @@
bj.set(%22
-L
+l
astName%22
|
de9e7a51e5fe68fce8147e72b1bf123a3e25721a | remove unused function | chrome/content/scripts/notification.js | chrome/content/scripts/notification.js |
var getNotification = function(param) {
log('notification()');
var that = {},
// private variables
onabort = param.onabort,
document = param.document,
window = document.defaultView,
browser = window.opener,
total,
processedTotal,
timeout,
nBox,
nProgress,
// private functions
startProgr... | JavaScript | 0.000016 | @@ -2578,370 +2578,102 @@
%0A%09%09%7D
-,%0A%09%09onunload = function() %7B%0A%09%09%09log('notification.onunload()');%0A%09%09%09if (typeof window !== 'undefined') %7B%0A%09%09%09%09window.removeEventListener('pagehide', onunload, false);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%0A%09// public%0A%09that.start = startProgres... |
30a3c014e45e261b8c5f47338363a5fd1e6896a6 | Remove ringo/engine.getWorker() | modules/ringo/engine.js | modules/ringo/engine.js | /**
* @fileOverview Provides access to the Rhino JavaScript engine.
*/
export( 'properties',
'addHostObject',
'addRepository',
'asJavaString',
'asJavaObject',
'createSandbox',
'evaluate',
'getErrors',
'getWorker',
'getRingoHome',
'getRep... | JavaScript | 0 | @@ -257,29 +257,8 @@
s',%0A
- 'getWorker',%0A
@@ -5373,210 +5373,8 @@
%0A%7D%0A%0A
-/**%0A * Get the current org.ringojs.engine.RingoWorker instance.%0A * @returns the worker instance associated with the current thread%0A */%0Afunction getWorker() %7B%0A return getRhinoEngine().getWorker();%0A%7D%0A%0... |
2026d135d79f2a42acfb750f0c3dd3525a133215 | refactor client tests | test/client.js | test/client.js | // *****************************************************************************
// Copyright 2016 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apac... | JavaScript | 0.000249 | @@ -760,46 +760,8 @@
obal
- after, afterEach, before, beforeEach,
con
@@ -1033,169 +1033,8 @@
) %7B%0A
- var client = null%0A beforeEach(function () %7B%0A client = new Client(helper.config)%0A %7D)%0A afterEach(function () %7B%0A client.close(false)%0A %7D)%0A%0A
@@ -1149,32 +1149,79... |
5c56820c7e925951d98a83258afbbca9de235b5a | Remove period from test name | test/create.js | test/create.js | import test from 'ava';
import { create } from '../lib';
test('"create" function.', ({is, true: isTrue}) => {
// Create object.
let Test = create(function(a){
this.a = a;
}, {
foo: function(a){ this.a = a; }
});
// Initialize object.
let foo = new Test('baz');
// Check construction value.
is(... | JavaScript | 0.001751 | @@ -74,17 +74,16 @@
function
-.
', (%7Bis,
|
fcab5c796156b464f5213f0fb171fc7a4c03c405 | test for row based construction | test/create.js | test/create.js | var test = require('tape'),
Frame = require('../frame');
test("access column from hidden property", function(t){
t.plan(1);
var a = [0, 0, 0, 1, 1, 0, 1, 0, 1];
var b = [1, 2, 2, 3, 1, 3, 4, 2, 1];
var frame = new Frame({
"a" : a,
"b" : b
});
t.equals(JSON.stringify(frame._cols["a"]), JSON.stringify(a));... | JavaScript | 0 | @@ -315,24 +315,564 @@
y(a));%0A%7D);%0A%0A
+test(%22row based constructor creates columns correctly%22, function(t)%7B%0A%09t.plan(2);%0A%09var rows = %5B%0A%09%09%7B%22a%22 : 0, %22b%22 : 1%7D,%0A%09%09%7B%22a%22 : 0, %22b%22 : 2%7D,%0A%09%09%7B%22a%22 : 0, %22b%22 : 2%7D,%0A%09%09%7B%22a%22 : 1, %22b%22 : 3%7D,%0A%... |
4f197c30b559e2adf485e315c8b7b0b679846f2b | Fix events test to check for peer:connect instead | test/events.js | test/events.js | var quickconnect = require('..');
var test = require('tape');
var uuid = require('uuid');
var connections = [];
var dcs = [];
var roomId = uuid.v4();
// var signallingServer = 'http://rtc.io/switchboard/';
var signallingServer = location.origin;
require('cog/logger').enable('rtc-quickconnect');
test('connection:creat... | JavaScript | 0 | @@ -297,33 +297,28 @@
%0A%0Atest('
+peer:
connect
-ion:create
', funct
@@ -335,16 +335,23 @@
var qc
+, timer
;%0A t.pl
@@ -445,25 +445,20 @@
on('
+peer:
connect
-ion:create
', f
@@ -562,24 +562,53 @@
on(stats) %7B%0A
+ clearTimeout(timer);%0A
t.pa
@@ -790,16 +790,88 @@
stest');
+%0A%0A tim... |
c3c21b1a4e66471b28dbc0ab45f03f9144de9777 | test is: boolean | test/filter.js | test/filter.js | var tape = require('tape')
var make = require('../make')
function filter(query) {
return make({$filter: query})
}
var data = [
'string',
'strength',
{okay: true},
{foo: 1, bar: 2},
{a: {b: 'okay'}},
{a: {b: 'notokay'}},
{source: 'a', dest: 'b', rel: ['name', '@bob']},
{source: 'b', dest: 'a', rel: [... | JavaScript | 1 | @@ -390,17 +390,93 @@
false%5D%7D
+,%0A %7Bsource: 'b', dest: 'a', rel: %5B'contact', false, null%5D%7D,%0A true,%0A false
%0A
-
%5D%0A%0Avar q
@@ -666,16 +666,76 @@
true%5D%7D%7D
+,%0A %7Brel: %5B'contact', %7B$is: 'boolean'%7D%5D%7D,%0A %7B$is: 'boolean'%7D
%0A%5D%0A%0Avar
@@ -1055,16 +1055,163 @@
false... |
8cef2ef500bd676e432ade1d4ad79b8f3ccd108c | Write test | test/iTunes.js | test/iTunes.js | var path = './test/iTunes.xml'
, fstream = require('fs').createReadStream(path)
, pickup = require('../lib/pickup.js')()
, test = require('tap').test
, es = require('event-stream')
test('iTunes', function (t) {
var expected = getExpected()
es.connect(
fstream.pipe(pickup),
es.writeArray(function... | JavaScript | 0.000089 | @@ -187,281 +187,25 @@
')%0A%0A
-test('iTunes', function (t) %7B%0A var expected = getExpected()%0A %0A es.connect(%0A fstream.pipe(pickup),%0A es.writeArray(function (err, lines) %7B%0A t.deepEqual(JSON.parse(lines.join('')), expected)%0A t.end()%0A %7D)%0A ) %0A%7D)%0A%0Afunction getExpected... |
dca5951be7ae907c7c6628c463ba6481bcd9419d | test name change | test/labels.js | test/labels.js | /**
* Created by Karen_Cohen on 8/25/14.
*/
var should = require('should');
var assert = require('assert');
var expect = require('expect.js');
var config = require("./config.js");
var APP_SECRET = config.appSecret;
var APP_KEY = config.appKey;
var INSTANCE_ID = config.instanceId;
describe('Labels', function() {
v... | JavaScript | 0.000026 | @@ -3269,33 +3269,36 @@
scribe('getLabel
-s
+ById
', function() %7B%0A
|
74a598c8cfaf426c974db1ddf42bf352211618bf | fix api link for lbry.tv | src/platforms/web/api-setup.js | src/platforms/web/api-setup.js | import { Lbry } from 'lbry-redux';
import apiPublishCallViaWeb from './publish';
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
export const SDK_API_URL = process.env.SDK_API_URL || 'https://api.lbry.tv/api/v1/proxy';
Lbry.setDaemonConnectionString(SDK_API_URL);
Lbry.setOverride(
'publish',
params =>
ne... | JavaScript | 0 | @@ -128,16 +128,51 @@
oken';%0A%0A
+const PROXY_PATH = 'api/v1/proxy';%0A
export c
@@ -190,16 +190,19 @@
I_URL =
+%60$%7B
process.
@@ -220,13 +220,29 @@
_URL
+%7D/$%7BPROXY_PATH%7D%60
%7C%7C
-'
+%60
http
@@ -257,29 +257,30 @@
lbry.tv/
-api/v1/proxy'
+$%7BPROXY_PATH%7D%60
;%0ALbry.s
|
54bcbf7f0e0151d6575be9714c9765413fe4a1d0 | check customfields output | test/parser.js | test/parser.js | var FS = require('fs');
var Parser = require('../index.js');
var Expect = require('chai').expect;
var IN_DIR = __dirname + '/input';
var OUT_DIR = __dirname + '/output';
var INPUT_FILE = __dirname + '/input/reddit.rss';
var OUTPUT_FILE = __dirname + '/output/reddit.json';
describe('Parser', function() {
var test... | JavaScript | 0.000001 | @@ -2305,128 +2305,290 @@
-if (process.env.WRITE_GOLDEN) %7B%0A FS.writeFileSync(OUT_DIR + '/customfields.json', JSON.stringify(parsed, null, 2)
+let str = JSON.stringify(parsed, null, 2);%0A let outfile = OUT_DIR + '/customfields.json';%0A if (process.env.WRITE_GOLDEN) %7B%0A FS.writeFile... |
e3371732f9faf6977b3fcc0297d949bced01bac8 | check on no metadata should return empty object | test/router.js | test/router.js | var chai = require('chai');
var chaiHttp = require('chai-http');
var should = chai.should();
var express = require('express');
var bodyParser = require('body-parser');
var config = require('config');
var Promise = require('bluebird');
var crypto = require('crypto');
var umpack = require('../umpack')(config.get('umpac... | JavaScript | 0.000933 | @@ -2388,16 +2388,604 @@
%7D);%0A%0A
+ it('should return empty object on user without metadata', function() %7B%0A%0A return saveRecordWithParameters()%0A .then(login)%0A .then(function(res) %7B%0A%0A res.should.have.status(200);%0A%0A return chai.request(app)%0A .... |
947e7eda61264c7aa1759a9fad496ca7b898f414 | Use assert for spec | test/search.js | test/search.js | var assert = require('assert')
var expect = require('chai').expect
var search = require('../index').search
var _ = require('lodash')
describe('binary search', function () {
it('returns null for an empty list', function () {
var list = []
var found = search.binary(list, 1)
assert.equal(found, null)
})
... | JavaScript | 0 | @@ -24,16 +24,19 @@
ssert')%0A
+//
var expe
@@ -1607,36 +1607,60 @@
-expect(find).to.equal(found)
+assert.equal(find, found, 'found the target value')%0A
%0A
@@ -1664,21 +1664,21 @@
-expec
+asser
t(maxCom
@@ -1686,24 +1686,12 @@
ares
-).to.be.at.most(
+ %3C=
Math
@@ -1717,16 +1717,64 @@
ze))... |
500eafb9bca0c3872a8b595b9cc1beec9d6836ae | Update document by name | test/update.js | test/update.js |
var mr = require('..');
var sl = require('simplelists');
var db;
var repo;
var adamId;
var eveId;
exports['open database'] = function (test) {
test.async();
mr.openDatabase('mongorepo-test', function (err, data) {
test.ok(!err);
db = data;
test.ok(db);
test.ok(db.close);... | JavaScript | 0 | @@ -1631,32 +1631,451 @@
%7D);%0A %7D)%0A%7D%0A%0A
+exports%5B'update document by name'%5D = function (test) %7B%0A test.async();%0A %0A repo.update(%7B name: %22Eve%22 %7D, %7B age: 701 %7D, function (err, data) %7B%0A test.ok(!err);%0A %0A repo.find(eveId, function (err, doc) %7B%0... |
ddee958d406582cf3d1e87f35517a93e58ddb140 | Update updated_at on save() | src/resources/base/CrudBase.js | src/resources/base/CrudBase.js | /*
* BSD 3-Clause License
*
* Copyright (c) 2018, MapCreator
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, th... | JavaScript | 0 | @@ -3772,16 +3772,126 @@
= %7B%7D;%0A%0A
+ if ('updated_at' in this._baseProperties) %7B%0A this._baseProperties%5B'updated_at'%5D = new Date();%0A %7D%0A%0A
if (
|
9ebc8f32dd761647ff533ae3a0441ff3e0907d16 | Use headers instead of divs | src/resources/js/soundboard.js | src/resources/js/soundboard.js | $(document).ready(() => {
// background
const backgroundCookie = (document.cookie.split(';').find(cookie => cookie.trim().startsWith('background')) || '').trim();
const background = backgroundCookie.substr(backgroundCookie.indexOf('=') + 1);
const randomBg = ['bg1.jpg', 'bg2.jpg', 'bg3.jpg', 'bg4.jpg', 'bg5.jpg', ... | JavaScript | 0 | @@ -1992,19 +1992,18 @@
ppend(%60%3C
-div
+h1
class=%22
@@ -2028,19 +2028,18 @@
urce%7D:%3C/
-div
+h1
%3E%60);%0A%09%09%09
|
68a20ce7e997ad5f83f8253e006204e648ea7571 | Set color, when sliders change. | tools/misc.js | tools/misc.js | function buf2hex(arrayBuffer) { // buffer is an ArrayBuffer
return Array.prototype.map.call(new Uint8Array(arrayBuffer), x => ('00' + x.toString(16)).slice(-2)).join('');
}
function dumpBytes(dataView) {
var s = dataView.byteLength + ': 0x';
for (var i = 0; i < dataView.byteLength; i++) {
var b = d... | JavaScript | 0 | @@ -900,97 +900,331 @@
al;%0A
-%7D%0A%0Afunction maxDisplay(val) %7B%0A document.getElementById('maxStressDisplay').value = val
+ var lut = colorLUT(document.getElementById('valueStressDisplay').value);%0A setColorValue(lut.r, lut.g, lut.b);%0A%7D%0A%0Afunction maxDisplay(val) %7B%0A document.getElementByI... |
556978b18d294f16e59b4dd0987455aedc07c8c4 | Allow disabling the commons chunk plugin | packages/@sanity/server/src/configs/webpack.config.js | packages/@sanity/server/src/configs/webpack.config.js | import fs from 'fs'
import path from 'path'
import webpack from 'webpack'
import RoleResolverPlugin from '@sanity/webpack-loader'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import postcssUse from 'postcss-use'
import postcssImport from 'postcss-import'
import resolveStyleImport from '../resolveStyleImp... | JavaScript | 0 | @@ -1172,16 +1172,208 @@
ceMap%60%0A%0A
+ const commonChunkPlugin = (%0A typeof config.commonChunkPlugin === 'undefined'%0A %7C%7C config.commonChunkPlugin%0A ) && new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js')%0A%0A
return
@@ -2861,36 +2861,14 @@
-new webpack.optimize.C
+c
omm... |
fe10c1df781fead089f3295297fdf04b1c325ccb | update import for vue 2/3 interop (#7862) | packages/icon-build-helpers/src/builders/vue/utils.js | packages/icon-build-helpers/src/builders/vue/utils.js | /**
* Copyright IBM Corp. 2018, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { getAttributes } from '@carbon/icon-helpers';
import { h } from 'vue';
const getSvgAttrs = (title, svgAttrs, componentAttrs) => {
... | JavaScript | 0 | @@ -237,24 +237,318 @@
ort
-%7B h %7D from 'vue'
+* as Vue from 'vue';%0A%0A// Note: we dynamically access keys on the Vue namespace so that rollup does not%0A// automatically rewrite the binding into %60import %7B h %7D from 'vue'%60 as this is%0A// currently causing issues in Vue 2 environments%0Afunction getVueExp... |
33c3a7b8fb959fd67717c76eae29c1aa4db67c93 | Update query params sent to activity endpoint so that they aren't rounded incorrectly (#10322) | ui/app/routes/vault/cluster/metrics/index.js | ui/app/routes/vault/cluster/metrics/index.js | import Route from '@ember/routing/route';
import ClusterRoute from 'vault/mixins/cluster-route';
import { hash } from 'rsvp';
import { endOfMonth } from 'date-fns';
import { parseDateString } from 'vault/helpers/parse-date-string';
const getActivityParams = ({ start, end }) => {
// Expects MM-YYYY format
// TODO: ... | JavaScript | 0 | @@ -128,26 +128,31 @@
mport %7B
-endOfMonth
+format, addDays
%7D from
@@ -531,45 +531,41 @@
e =
-Math.round(startDate.getTime() / 1000
+format(addDays(startDate, 1), 'X'
);%0A
@@ -740,55 +740,40 @@
e =
-Math.round(endOfMonth(endDate).getTime() / 1000
+format(addDays(endDate, 10), 'X'
);%0A
|
32f43e999b3eb2db623a90a4f53ccfae87c03e33 | Add comments and raise timeout | tests/index.js | tests/index.js | "use strict";
const chunker = require('..');
const assert = require('assert');
const fs = require('fs');
const co = require('co');
const os = require('os');
const path = require('path');
const crypto = require('crypto');
const stream = require('stream');
function streamToBuffer(stream) {
return new Promise(function(... | JavaScript | 0 | @@ -2594,16 +2594,136 @@
fname);%0A
+%09%09%09// If doPassThrough, pipe data through a PassThrough stream,%0A%09%09%09// which changes the read size (?) and backpressure.%0A
%09%09%09if(do
@@ -2733,24 +2733,24 @@
sThrough) %7B%0A
-
%09%09%09%09const pa
@@ -2963,23 +2963,16 @@
le.log(%7B
-count,
chunkStr
@@ -2978... |
8a7f25bcf4df12cf98908ca71216f64b949fc589 | set Title function simple fix | dev/Boots/AbstractApp.js | dev/Boots/AbstractApp.js | /* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
/**
* @constructor
* @extends KnoinAbstractBoot
*/
function AbstractApp()
{
KnoinAbstractBoot.call(this);
this.oSettings = null;
this.oPlugins = null;
this.oLink = null;
this.oLocal = null;
this.isLocalAutocomplete = true;
this.po... | JavaScript | 0.000003 | @@ -2969,40 +2969,13 @@
e =
-sTitle;%0A%09_.delay(function () %7B%0A%09
+'_';%0A
%09win
@@ -3007,16 +3007,8 @@
le;%0A
-%09%7D, 5);%0A
%7D;%0A%0A
|
351f7546b238dadf44bed09d34f8a99a4b882810 | Update tests | tests/tests.js | tests/tests.js | exports.defineAutoTests = function() {
describe('Bridge plugin (cordova.plugins.bridge)', function() {
it('should exist', function() {
expect(window.cordova.plugins.bridge).toBeDefined();
});
});
describe('Open method (cordova.plugins.bridge.open)', function() {
it('should exist', function() {
... | JavaScript | 0.000001 | @@ -1075,780 +1075,93 @@
%0A%0A
-function downloadAndOpen(fileUrl, directory) %7B%0A document.addEventListener('deviceready', onDeviceReady, false);%0A function onDeviceReady() %7B%0A var dir = (cordova.file.tempDirectory) ? 'tempDirectory' : 'externalCacheDirectory',%0A ft = new FileTransfer(),%... |
a1abe24e89b3a4887cd70a9cb5dbc710b05e2802 | comment out canUpdate for now | directives/hyper-form.js | directives/hyper-form.js | /**
* Module dependencies
*/
var pkg = require('../package');
var utils = require('../lib/utils');
var $safeApply = utils.$safeApply;
var merge = utils.merge;
var shallowMerge = utils.shallowMerge;
var each = angular.forEach;
var qs = require('querystring');
/**
* hyperForm
*/
pkg.directive('hyperForm', [
'$lo... | JavaScript | 0 | @@ -912,24 +912,26 @@
%7B%0A
+//
if (!canUpda
|
07f9e46e9a215f2083c749e9c0331cb02d00b796 | fix active link problems | directives/hyper-link.js | directives/hyper-link.js | /**
* Module dependencies
*/
var pkg = require('../package');
/**
* Initialize our regular expression for url construction/deconstruction
*/
var regexp = /:([\w-\.]+)/g;
/**
* Register it with angular
*/
pkg.directive('hyperLink', [
'$location',
'hyperLink',
'hyperStatus',
function($location, hyperLi... | JavaScript | 0 | @@ -450,16 +450,46 @@
perLink;
+%0A var isActive = false;
%0A%0A
@@ -799,38 +799,8 @@
);%0A%0A
- var isActive = false;%0A
@@ -847,41 +847,16 @@
if (
-href === ($location.url() %7C%7C '/')
+isActive
) re
@@ -859,25 +859,27 @@
) return set
-A
+Ina
ctive();%0A
@@ -885,32 +885,57 @@
... |
440d6ff2a57da0a2ca91575a36e395fe0675d6ef | add missing responsive meta tag [#153755172] | packages/bonde-public/pages/index.js | packages/bonde-public/pages/index.js | import React from 'react'
import Head from 'next/head'
import withRedux from 'next-redux-wrapper'
// Intl
import { IntlProvider } from 'react-intl'
import { locale, messages } from '../intlReducer'
// ApolloClient
import { ApolloProvider } from 'react-apollo'
import apolloClient from '../apolloClient'
// Store
impor... | JavaScript | 0 | @@ -1766,24 +1766,170 @@
me%7D%3C/title%3E%0A
+ %3Cmeta httpEquiv=%22X-UA-Compatible%22 content=%22IE=edge%22 /%3E%0A %3Cmeta name=%22viewport%22 content=%22width=device-width, initial-scale=1%22 /%3E%0A
%3Cm
|
3e47b8a38d75d1c430af40579c25c5da1765dd02 | remove dead code | www/common/pinpad.js | www/common/pinpad.js | define([
'/common/cryptpad-common.js',
'/common/rpc.js',
'/bower_components/tweetnacl/nacl-fast.min.js'
], function (Cryptpad, Rpc) {
var Nacl = window.nacl;
var localChannelsHash = function (fileList) {
fileList = fileList || Cryptpad.getUserChannelList();
var channelIdList = [];... | JavaScript | 0.999454 | @@ -924,551 +924,11 @@
-// TODO move this into pinpad%0A false && (function () %7B%0A // compute what you think the hash should be%0A%0A // then ask the server if what it has matches your records%0A rpc.send('GET_HASH', edPublic, function (e, hash) %7B%0A if (e) %7B return void ... |
36b9bbed10142d454156d9bcc488d8cdd88a45fa | Fix version constraints | ng2-compilers/package.js | ng2-compilers/package.js | Package.describe({
name: 'barbatus:ng2-compilers',
version: '0.2.0-beta.2',
summary: 'Angular2 template, HTML, TypeScript Compilers for Meteor 1.3',
git: 'https://github.com/Urigo/angular2-meteor/',
documentation: null
});
Package.registerBuildPlugin({
name: 'Compilers',
sources: [
'utils/file_mixin.... | JavaScript | 0.000035 | @@ -736,31 +736,8 @@
');%0A
-Fix version constraints
%0A /
|
cf97f8d3cf0671d154c63eca5a6971908cc5466d | Fix MongoDB test failure in hasOne-reverse | test/integration/association-hasone-reverse.js | test/integration/association-hasone-reverse.js | var ORM = require('../../');
var helper = require('../support/spec_helper');
var should = require('should');
var async = require('async');
var _ = require('lodash');
describe("hasOne", function () {
var db = null;
var Person = null;
var setup = function () {
return function (done) {
Person = db.d... | JavaScript | 0.999993 | @@ -3678,11 +3678,19 @@
Deco
-.id
+%5BPet.id%5B0%5D%5D
%7D).
|
20892b86a695258974e73e48fcc847cf956855a4 | Fix typing indicator styling issue (#832) | src/components/Message/Message.Bubble.css.js | src/components/Message/Message.Bubble.css.js | import styled from 'styled-components'
import { getColor } from '../../styles/utilities/color'
import { BEM } from '../../utilities/classNames'
import Heading from '../Heading'
const bem = BEM('.c-MessageBubble')
export const config = {
borderRadius: {
sm: 4,
md: 12,
},
icon: {
left: 14,
offset:... | JavaScript | 0 | @@ -2532,24 +2532,40 @@
%0A &.is-note
+:not(.is-typing)
%7B%0A backg
|
d5354b042a45496832f63c4dc50792547b837bdf | remove ds store and restore the dashboard | src/components/layout/Dashboard/dashboard.js | src/components/layout/Dashboard/dashboard.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib/index';
import FlatButton from 'material-ui/FlatButton';
import Immutable from 'immutable';
import CircularProgress from 'material-ui/CircularProgress';
import Tra... | JavaScript | 0 | @@ -162,57 +162,8 @@
x';%0A
-import FlatButton from 'material-ui/FlatButton';%0A
impo
@@ -927,221 +927,23 @@
%3C
-a href=%22#%22 onClick=%7B() =%3E window.open(%22ethereum:0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8?gas=4200&value=150&from=0xc8af13a04404eee57129da36b30adddc015052a0%22)%7D %3E click me %3C/a%3E%0A ... |
91c990ad485d4f33a433766352deadb108c38120 | Fix cb names | src/deep-cache/test/Driver/InMemoryDriver.js | src/deep-cache/test/Driver/InMemoryDriver.js | 'use strict';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import {InMemoryDriver} from '../../lib.compiled/Driver/InMemoryDriver';
chai.use(sinonChai);
suite('Driver/InMemoryDriver', function() {
let inMemoryDriver = new InMemoryDriver();
let testKey = 'test_key';
le... | JavaScript | 0.999993 | @@ -2339,23 +2339,17 @@
alidateC
-allback
+b
);%0A
@@ -2457,39 +2457,33 @@
testKey, spyHasC
-allback
+b
);%0A chai.ex
|
2a1c1d4869b4998f183342da32ed6b964fc64b59 | add docs for image path | docs/client/components/pages/Emoji/index.js | docs/client/components/pages/Emoji/index.js | import React, { Component } from 'react';
import styles from './styles.css';
import Container from '../../shared/Container';
import Heading from '../../shared/Heading';
import SocialBar from '../../shared/SocialBar';
import NavBar from '../../shared/NavBar';
import Separator from '../../shared/Separator';
import Code ... | JavaScript | 0 | @@ -6958,32 +6958,441 @@
%3C/div%3E%0A
+ %3Cdiv className=%7B styles.param %7D%3E%0A %3Cspan className=%7B styles.paramName %7D%3EimagePath%3C/span%3E%0A %3Cspan%3EThe Emojis are displayed using SVGs. The full path is constructed of multiple parts like this: %7B '%60$%7BimagePat... |
c90aeb8628b2a6a7c4d58954786c011f17ee743b | Fix gallery images for dev-only Sandcastle demos. | Tools/buildTasks/createGalleryList.js | Tools/buildTasks/createGalleryList.js | /*global importClass,project,attributes,elements,java,Packages*/
importClass(Packages.org.mozilla.javascript.tools.shell.Main); /*global Main*/
Main.exec(['-e', '{}']);
var load = Main.global.load;
load(project.getProperty('tasksDirectory') + '/shared.js'); /*global forEachFile,readFileContents,writeFileContents,File,... | JavaScript | 0 | @@ -363,16 +363,55 @@
os = %5B%5D;
+%0Avar output = attributes.get('output');
%0A%0AforEac
@@ -679,20 +679,32 @@
ew File(
-file
+new File(output)
.getPare
@@ -1002,32 +1002,14 @@
nts(
-attributes.get('
output
-')
, co
|
85bc5612e3574e59aab55dc0fb114b7a43c7bd77 | fix for safari | scripts/gamepad.js | scripts/gamepad.js | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | JavaScript | 0 | @@ -4318,24 +4318,188 @@
ect);%0A %7D%0A
+ _addPlayerForGamepadIfNew(gamepad) %7B%0A let player = this._controllers%5Bgamepad.index%5D;%0A if (!player) %7B%0A this._addGamepad(gamepad);%0A %7D%0A %7D%0A
_handleC
@@ -4525,23 +4525,37 @@
his._add
+PlayerFor
Gamepad
+IfNew
(e.gamep
... |
ae89d5bd35d86c0f3f7274b290a83ed64168f33c | Use letter v when tagging releases. | scripts/release.js | scripts/release.js | /**
* Library release script.
*
* @module scripts/release.
*/
const shelljs = require('shelljs');
const options = require('minimist')(process.argv.slice(1));
const logger = require('log-symbols');
if (!options.version) {
console.log(logger.error, 'No --version=<version> argument defined!');
process.exit(... | JavaScript | 0 | @@ -951,16 +951,17 @@
tag -a
+v
' + opti
|
727fc22a28612460c38402a9cf67884d798e6103 | Fix release script | scripts/release.js | scripts/release.js | #!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const { execSync, exec, spawn, spawnSync } = require('child_process')
const tmp = require('tmp')
const chalk = require('chalk')
const emojify = require('node-emoji').emojify
const { PACKAGE_DIR, getPackages, getInternalDependencies, sortByDepend... | JavaScript | 0.000004 | @@ -2115,16 +2115,25 @@
wVersion
+.slice(1)
%0A%0A log(
@@ -2639,16 +2639,35 @@
depType%5D
+ %7C%7C !versions%5Bname%5D
) return
|
138180ab794b3bd43221fe4c383e4fe61a8b687d | add default value | addon/components/infinite-scroller.js | addon/components/infinite-scroller.js | import Component from '@ember/component';
import layout from '../templates/components/infinite-scroller';
import { bind, debounce, cancel } from '@ember/runloop';
import { resolve } from 'rsvp';
import { inject } from '@ember/service';
export default Component.extend({
_infiniteScroller: inject('-infinite-scroller')... | JavaScript | 0.000002 | @@ -483,16 +483,31 @@
e: 100,%0A
+ error: null,%0A
isLoad
|
623a5f83fad3289990c86269b89c322757de5518 | clean up | addon/components/infinite-scroller.js | addon/components/infinite-scroller.js | import Component from '@glimmer/component';
import { debounce, cancel, scheduleOnce } from '@ember/runloop';
import { action } from '@ember/object';
import { resolve } from 'rsvp';
import { tracked } from '@glimmer/tracking';
const { round } = Math;
export default class InfiniteScrollerComponent extends Component {
... | JavaScript | 0.000001 | @@ -373,33 +373,8 @@
l;%0A%0A
- @tracked error = null;%0A
@t
@@ -3173,16 +3173,22 @@
%0A %7D%0A%0A
+async
_loadMor
@@ -3197,31 +3197,8 @@
) %7B%0A
- this.error = null;%0A
@@ -3229,16 +3229,14 @@
-resolve(
+await
this
@@ -3267,107 +3267,74 @@
re')
-)
+;%0A
%0A
- .catch(this._handleLoa... |
e5f0695fd6f6e4bebe2baa56bed454db3396753f | fix scroll bug then close modal | MWUI/static/js/predictor/image-edit.plugin.js | MWUI/static/js/predictor/image-edit.plugin.js | (function ($) {
$.fn.imageEdit = function (obj) {
var methods = {
init: function (params) {
var settings = $.extend({}, {
cml: false,
width: 500,
height: 410,
typeImg: 'png',
zoomM... | JavaScript | 0 | @@ -3994,24 +3994,92 @@
,0,0,0)'%7D);%0A
+ $(%22body%22).removeClass('modal-open');
%0A
|
e97d077803ddc4259c0433d71dfbfc200acedc2d | Upgrade lazy-loading component when loadFn load little data will not fill whole target element issue. | client/component/lazy-loading/index.js | client/component/lazy-loading/index.js | /**
* Created by jack on 16-9-11.
*/
import Vue from 'vue';
import throttle from 'lodash/throttle';
import * as DOMUtil from 'common/util/DOM';
import './style.scss';
import template from './template.html';
export default Vue.component('lazyLoading', {
template,
props: {
loadFn: {
type: Function,
require... | JavaScript | 0 | @@ -975,16 +975,91 @@
lFn() %7B%0A
+%09%09%09// when loading, don't call loadFn again%0A%09%09%09if (this.isLoading) return;%0A
%09%09%09!this
@@ -1231,16 +1231,299 @@
%09%09%7D%0A%09%7D,%0A
+%09watch: %7B%0A%09%09isLoading: function(newValue) %7B%0A%09%09%09// when load finished, call scrollFn to test element is fi... |
a5d2c20e8220b4f3c74a0f1c345e9ed095216042 | Improve FromModel comments slightly. | client/lib/database_form/form_model.js | client/lib/database_form/form_model.js | // A utility class that we use in FormModel to set up a convention for the default labels for each form input field.
var StringUtils = {
/*
Assumes that the argument is a camel-case string.
It places spaces between each word and capitalize the first letter. So, a string like "camelCase" becomes "Camel Case".
*/
... | JavaScript | 0 | @@ -238,16 +238,17 @@
pitalize
+s
the fir
@@ -1196,16 +1196,79 @@
values.%0A
+%09%09The schema field holds the data to be saved to the database.%0A
%09%09*/%0A%09%09t
|
5848ffda9f7865102b1839a574f5c6d796beea85 | swap before fade | when-looked-at.js | when-looked-at.js | /* global AFRAME, THREE */
if (typeof AFRAME === 'undefined') {
throw new Error('Component attempted to register before AFRAME was available.');
}
AFRAME.registerComponent('when-looked-at', {
schema: {
focus: {
default: 0.5,
type: 'number'
},
dur: {
type: 'number'
},
prope... | JavaScript | 0 | @@ -1944,123 +1944,8 @@
) %7B%0A
- this.el.setAttribute('animation__when-looked-at', 'to', this.data.in);%0A this.el.emit('__look-changed');%0A
@@ -2167,92 +2167,8 @@
%7D%0A
- this.wasInView = true;%0A %7D else if (!isInView && this.wasInView !== false)%7B%0A
@@ -2235,19 +2235,18 @@
i... |
73b5fd5797d8a99457d87d659b5dc288307a635d | Add challenge head/tail to contents on execute | client/sagas/execute-challenge-saga.js | client/sagas/execute-challenge-saga.js | import { Scheduler, Observable } from 'rx';
import {
challengeSelector
} from '../../common/app/routes/challenges/redux/selectors';
import { ajax$ } from '../../common/utils/ajax-stream';
import throwers from '../rechallenge/throwers';
import transformers from '../rechallenge/transformers';
import types from '../../... | JavaScript | 0 | @@ -2300,16 +2300,18 @@
;/*fcc*/
+%5Cn
';%0A%0Aexpo
@@ -3036,24 +3036,143 @@
finalFile;%0A
+ const finalContents = %5B%0A file.head,%0A file.contents,%0A file.tail%0A %5D;%0A
if
@@ -3276,27 +3276,41 @@
ipt%3E$%7Bfi
-le.c
+nalC
ontents
+.join(jsCatch)
... |
58f262b483b16fe3a7779e83c59056b450328d60 | remove role="menuitem" from Switcher li's (#5525) | packages/react/src/components/UIShell/SwitcherItem.js | packages/react/src/components/UIShell/SwitcherItem.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { settings } from 'carbon-components';
import cx from 'classnames';
import PropTypes from 'prop-types';
imp... | JavaScript | 0 | @@ -1060,24 +1060,8 @@
ame%7D
- role=%22menuitem%22
%3E%0A
|
2079a018e221e3ea064822c1fe8a38b6d20c3bee | Add `@this` annotation to new `elementFromPoint` wrappers. | packages/shadydom/src/patches/DocumentOrShadowRoot.js | packages/shadydom/src/patches/DocumentOrShadowRoot.js | /**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... | JavaScript | 0 | @@ -3130,24 +3130,61 @@
%7D%0A %7D,%0A%0A
+ /** @this %7BDocument%7CShadowRoot%7D */%0A
elementsFr
@@ -3833,16 +3833,53 @@
;%0A %7D,%0A%0A
+ /** @this %7BDocument%7CShadowRoot%7D */%0A
elemen
|
1192427fb437b22181935738343f1db111198021 | update global version number | src/sdk/api/emp3.api.global.js | src/sdk/api/emp3.api.global.js | if (!window.emp3) {
emp3 = {};
}
if (!window.emp3.api) {
emp3.api = {};
}
/**
* @namespace
* @memberof emp3.api
* @desc Contains global settings properties and utility functions for EMP.
* @property {Object} configuration Contains configuration properties for EMP.
* @property {String} configuration.urlProxy S... | JavaScript | 0.000001 | @@ -519,17 +519,16 @@
al %7C%7C %7B%0A
-%0A
vers
@@ -535,17 +535,17 @@
ion: %222.
-0
+3
.0%22,%0A
|
e6407cfc85ca391e20829dceec37b1e8076ebe72 | fix bad merge | src/services/nexboard/index.js | src/services/nexboard/index.js | const { static: staticContent } = require('@feathersjs/express');
const path = require('path');
const {
Project,
Board,
} = require('./services');
const { Project, Board } = require('./services');
const hooks = require('./hooks');
module.exports = (app) => {
const projectRoute = '/nexboard/projects';
const boar... | JavaScript | 0.000037 | @@ -94,62 +94,8 @@
);%0A%0A
-const %7B%0A%09Project,%0A%09Board,%0A%7D = require('./services');%0A%0A
cons
|
b932cc2eb15f61670f86e71ba46c29c68936380a | Update path_group.class.js | src/shapes/path_group.class.js | src/shapes/path_group.class.js | (function(global) {
'use strict';
var fabric = global.fabric || (global.fabric = { }),
extend = fabric.util.object.extend,
invoke = fabric.util.array.invoke,
parentToObject = fabric.Object.prototype.toObject;
if (fabric.PathGroup) {
fabric.warn('fabric.PathGroup is already defined');
... | JavaScript | 0.000002 | @@ -1867,16 +1867,12 @@
-var m =
+if (
this
@@ -1891,22 +1891,8 @@
trix
-;%0A%0A if (m
) %7B%0A
@@ -1916,43 +1916,40 @@
form
-(m%5B0%5D, m%5B1%5D, m%5B2%5D, m%5B3%5D, m%5B4%5D, m%5B5%5D
+.apply(ctx, this.transformMatrix
);%0A
@@ -2064,24 +2064,76 @@
this, ctx);%0A
+ ctx.translate(-this.width/2, ... |
840e7c49fc8effa68dd0c412c74bd11f52b525ff | Remove chain_id from Global Object tcomb struct | dl/src/stores/tcomb_structs.js | dl/src/stores/tcomb_structs.js | var t = require("tcomb");
let Account = t.struct({
active: t.Obj,
annotations: t.Arr,
blacklisting_accounts: t.Arr,
id: t.Str,
lifetime_referrer: t.Str,
lifetime_referrer_fee_percentage: t.Num,
membership_expiration_date: t.Str,
name: t.Str,
network_fee_percentage: t.Num,
option... | JavaScript | 0.000002 | @@ -2988,29 +2988,8 @@
rr,%0A
- chain_id: t.Str,%0A
|
5cb812e2414d96c0c1a7f216a43ac386ac034a99 | Revert 00 date fix | src/shortcuts/DateFormatter.js | src/shortcuts/DateFormatter.js | 'use strict';
var DateFormatter = function (datePattern) {
var owner = this;
owner.blocks = [];
owner.datePattern = datePattern;
owner.initBlocks();
};
DateFormatter.prototype = {
initBlocks: function () {
var owner = this;
owner.datePattern.forEach(function (value) {
... | JavaScript | 0.000002 | @@ -912,26 +912,24 @@
-
case 'd':%0A
@@ -926,16 +926,16 @@
se 'd':%0A
+
@@ -1086,32 +1086,34 @@
+//
sub = '01';%0A
@@ -1149,34 +1149,32 @@
break;%0A
-
@@ -1183,16 +1183,16 @@
se 'm':%0A
+
@@ -1319,32 +1319,32 @@
b, 10) === 0)... |
2e72fd885b896d7dd5ee582c3af76e44da8abf70 | Make lint happy | distributions/uniform.js | distributions/uniform.js | (function(define) {'use strict';
define(function(require) {
// uniform.js
// requires both parameters with a < b
return function(a, b) {
return a + (b - a) * this.random();
};
});
}(typeof define === 'function' && define.amd ? define : function(factory) {
'use strict';
module.exports = factory(... | JavaScript | 0.000047 | @@ -327,8 +327,9 @@
e);%0A%7D));
+%0A
|
d258a61b30cf30f7fb5f8963c4b1d06a3fa08600 | Add prop types for getFromButtonRef and getToButtonRef | src/components/DateRangePicker/SelectionPane.js | src/components/DateRangePicker/SelectionPane.js | const React = require('react');
const moment = require('moment');
const PropTypes = require('prop-types');
import { withTheme } from '../Theme';
const DefaultRanges = require('../DateRangePicker/DefaultRanges');
const { SelectedBox } = require('../../constants/DateRangePicker');
const { themeShape } = require('../../... | JavaScript | 0 | @@ -591,16 +591,90 @@
.array,%0A
+ getFromButtonRef: PropTypes.func,%0A getToButtonRef: PropTypes.func,%0A
onDa
|
60438327c6a320d7c335acf8b03a1801de338f32 | remove another log | src/components/functionselect/functionselect.js | src/components/functionselect/functionselect.js | 'use strict';
angular.module('vleApp')
.directive('functionSelect', function(_) {
return {
templateUrl: 'components/functionselect/functionselect.html',
restrict: 'E',
scope: {
encType: '=',
pills: '=',
schema: '='
},
link: function(scope /*,element, attrs*/)... | JavaScript | 0.000001 | @@ -1272,16 +1272,19 @@
+ //
console
|
3f522c17c266e9bd900c3ed7236958d312f51f6c | update story for icon button | src/components/iconButton/iconButton.stories.js | src/components/iconButton/iconButton.stories.js | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { boolean, select } from '@storybook/addon-knobs/react';
import { IconAddMediumOutline, IconAddSmallOutline } from '@teamleader/ui-icons';
import IconButton from './IconButton';
const colors = ['white', 'ne... | JavaScript | 0 | @@ -368,24 +368,90 @@
', 'ruby'%5D;%0A
+const tints = %5B'lightest', 'light', 'normal', 'dark', 'darkest'%5D;%0A
const elemen
@@ -957,24 +957,68 @@
'neutral')%7D%0A
+ tint=%7Bselect('Tint', tints, 'darkest')%7D%0A
size=%7Bse
@@ -1347,24 +1347,68 @@
'neutral')%7D%0A
+ tint=%7Bselect('Tint', tints, 'darkes... |
083a7d00de66bc035733d362889a84976db76b3d | update story | src/components/loadingBar/loadingBar.stories.js | src/components/loadingBar/loadingBar.stories.js | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { select } from '@storybook/addon-knobs';
import { LoadingBar } from '../../index';
const colors = ['neutral', 'mint', 'violet', 'ruby', 'gold', 'aqua', 'teal'];
const sizes = ['small', 'medium', 'large'];
... | JavaScript | 0 | @@ -109,59 +109,8 @@
port
- %7B select %7D from '@storybook/addon-knobs';%0Aimport %7B
Loa
@@ -116,26 +116,24 @@
adingBar
- %7D
from '.
./../ind
@@ -128,208 +128,20 @@
m '.
-./../index';%0A%0Aconst colors = %5B'neutral', 'mint', 'violet', 'ruby', 'gold', 'aqua', 'teal'%5D;%0Aconst sizes = %5B'small', 'medium', ... |
41c8caf42ffbcbafdf68662c3611f86b3db8ccd5 | Fix in bib-items modal panel. | src/components/panels/manage_bib_items_panel.js | src/components/panels/manage_bib_items_panel.js | 'use strict';
var Substance = require('substance');
var _ = Substance._;
var OO = Substance.OO;
var Component = Substance.Component;
var Icon = require("substance/ui/font_awesome_icon");
var $$ = Component.$$;
var ListBibItems = require('./list_bibitems_panel');
var AddBibItems = require('./add_bibitems_panel');
var... | JavaScript | 0 | @@ -1479,32 +1479,43 @@
$$('button')
+%0A
.addClass('butto
@@ -1537,32 +1537,24 @@
loat-right')
-.append(
%0A $
@@ -1552,16 +1552,24 @@
+.append(
$$(Icon)
@@ -1599,16 +1599,17 @@
lose' %7D)
+)
%0A
@@ -1609,17 +1609,18 @@
-)
+
.on('cli
@@ -1629,22 +1629,18 @@
... |
5033b81d0e3984179cfeb03b5089f2eb705202db | Fix PR-answer sample (#1347) | src/content/peerconnection/pr-answer/js/main.js | src/content/peerconnection/pr-answer/js/main.js | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
const vid1 = document.getElementById('vid1');
const vid2 = document.getElementByI... | JavaScript | 0 | @@ -777,24 +777,65 @@
et local
-stream
+Stream;%0Aconst remoteStream = new MediaStream()
;%0A
+%0A
const of
@@ -1003,25 +1003,25 @@
eam;%0A local
-s
+S
tream = stre
@@ -1387,33 +1387,33 @@
eoTracks = local
-s
+S
tream.getVideoTr
@@ -1443,25 +1443,25 @@
acks = local
-s
+S
tream.getAud
@@ -2037,25 +2037,25 @@
... |
f912c8e8b62e4f8c3da621269b11053801fd5f20 | Update simplefile.js | www/simplefile.js | www/simplefile.js | function FileSystem(root) {
var self = this;
self.root = root;
self.read= function(fileName, successCallback, errorCallback) {
cordova.exec(
function(data64) {
successCallback(atob(data64));
},
errorCallback,
"SimpleFilePlugin",
... | JavaScript | 0.000001 | @@ -2718,25 +2718,25 @@
) %7Bcb2();%7D,
-7
+5
0);%0A
@@ -2817,33 +2817,33 @@
() %7Bcb2(err);%7D,
-7
+5
0);%0A
@@ -2977,25 +2977,25 @@
rcb(err);%7D,
-7
+5
0);%0A
@@ -3074,9 +3074,9 @@
;%7D,
-7
+5
0);%0A
|
b582aa546865263ea27346a96de7f79ead59dce5 | Allow multiple interactions in star demo | demo/js/star.js | demo/js/star.js | document.addEventListener('DOMContentLoaded', function () {
'use strict';
var sns="http://www.w3.org/2000/svg",
xns="http://www.w3.org/1999/xlink",
root = document.getElementById('svg-edit-demo'),
star = document.getElementById('edit-star'),
rootMatrix,
originalPoints = ... | JavaScript | 0.000001 | @@ -2051,32 +2051,58 @@
%0A %7D,%0A
+ max: Infinity%0A
%7D)%0A
@@ -2333,24 +2333,65 @@
or(false);%0A%0A
+ interact.maxInteractions(Infinity);%0A%0A
document
|
c87d500c590bbd18641a91d08d36ec08e674c9cb | add user context changing | demo/src/App.js | demo/src/App.js | import React, { Component } from 'react';
import { compose } from 'recompose';
import { Provider, connect } from 'react-redux';
import classNames from 'classnames';
import {
ConfigureFlopFlip,
withFeatureToggle,
injectFeatureToggle,
FeatureToggled,
} from '@flopflip/react-redux';
// change to `from '@flopflip/r... | JavaScript | 0.000001 | @@ -2965,16 +2965,18 @@
key: 'ld
+-2
@tdeeken
@@ -3024,16 +3024,57 @@
tFlags%7D%0A
+ shouldChangeUserContext=%7Btrue%7D%0A
|
8b3903010ecf8a6891ec4f168ecc07c3f692089d | add to docstring | src/traces/image/attributes.js | src/traces/image/attributes.js | /**
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var baseAttrs = require('../../plots/attributes');
var hovertemplateAttrs = require('../../plots/template_attrib... | JavaScript | 0.000001 | @@ -2010,16 +2010,17 @@
ithm use
+d
to smoo
@@ -2032,17 +2032,99 @@
%60 data.'
-
+,%0A 'This only applies for image traces that use the %60source%60 attribute.'
%0A
|
dcca309fcabdf9fd524549be56ecbca42fdf075b | update object diff | src/utils/object-difference.js | src/utils/object-difference.js | import diff from 'deep-diff';
import valueAt from 'lodash/object/get'
var ignored = ['$$hashKey'];
export default class ObjectDifference {
constructor(logger) {
if (logger) {
this.logger = logger;
} else {
this.logger = console.log.bind(console);
}
}
static diff(left, right) {
retur... | JavaScript | 0.000001 | @@ -248,26 +248,8 @@
sole
-.log.bind(console)
;%0A
|
a34b5abc8250ad6b6bd636b57c2535cc079897b7 | Use multipart-form encoding for rageshake uploads (#3646) | src/vector/submit-rageshake.js | src/vector/submit-rageshake.js | /*
Copyright 2017 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0 | @@ -577,47 +577,8 @@
%22q%22;
-%0Aimport request from %22browser-request%22;
%0A%0Aim
@@ -673,16 +673,220 @@
shake'%0A%0A
+%0A// polyfill textencoder if necessary%0Aimport * as TextEncodingUtf8 from 'text-encoding-utf-8';%0Alet TextEncoder = window.TextEncoder;%0Aif (!TextEncoder) %7B%0A TextEncoder = TextEncodin... |
1151a6059ac6564285375fce7481ac88be323ea9 | call WrappedComponent lifecycle methods | src/victory-util/add-events.js | src/victory-util/add-events.js | import { defaults, assign, isFunction, partialRight } from "lodash";
import Events from "./events";
export default (WrappedComponent) => {
return class addEvents extends WrappedComponent {
constructor() {
super();
this.state = {};
const getScopedEvents = Events.getScopedEvents.bind(this);
... | JavaScript | 0.000001 | @@ -189,28 +189,88 @@
t %7B%0A
+%0A
co
-nstructor(
+mponentWillMount() %7B%0A if (isFunction(super.componentWillMount)
) %7B%0A
+
@@ -280,11 +280,38 @@
uper
-();
+.componentWillMount();%0A %7D
%0A
@@ -325,16 +325,30 @@
.state =
+ this.state %7C%7C
%7B%7D;%0A
@@ -556,42 +556,8 @@
s);... |
8a20f52ef2d2444b7a80f430cf33d3dd36d43538 | remove team link | docs/.vuepress/nav/en.js | docs/.vuepress/nav/en.js | module.exports = [
{ text: 'Guide', link: '/' },
// { text: 'Blog', link: '/blog/' },
{
text: 'Team',
link: '/team/'
},
{
text: 'Support Fuse.js',
link: '/support/'
},
// {
// text: 'Jobs',
// link: '/jobs/'
// },
// {
// text: 'Stories',
// link: '/stories/'
// },
... | JavaScript | 0 | @@ -81,27 +81,33 @@
blog/' %7D,%0A
-%7B%0A
+// %7B%0A //
text: 'Te
@@ -108,24 +108,27 @@
t: 'Team',%0A
+ //
link: '/t
@@ -130,24 +130,27 @@
: '/team/'%0A
+ //
%7D,%0A %7B%0A
|
858d6756563f29858fbe43508ddec13d43a688b1 | fix orthograph | starter/walker-fs/walker-fs.js | starter/walker-fs/walker-fs.js | 'use strict';
const walk = require('walk'),
path = require('path'),
mime = require('mime');
class WalkerFS {
constructor(pathInput) {
this._path = pathInput;
this.totalFile = 0;
this.functionEventOnFile = (root, stats) => {
// Permet d'identifier les fichiers .nxml (BMJ) et .Meta (Springer) c... | JavaScript | 0.00468 | @@ -537,17 +537,16 @@
extens
-t
ion: pat
|
25bb3c95934a06f4f6a72710ee2d6d27a93a24fb | remove redundant js config option | .kickoff/config.js | .kickoff/config.js | /**
* Global build task vars
* Both Webpack and Gulp use these vars. Change as much as you like :)
*/
const gutil = require('gulp-util');
const pkg = require('../package');
const ConfigOptions = function () {
const config = this;
config.isRelease = (gutil.env.release ? true : false);
config.srcDir = './assets/... | JavaScript | 0.000003 | @@ -1284,163 +1284,8 @@
tDir
-%0A%0A%09%09// Renaming this changes the name of the generated JS file%0A%09%09// Make sure you update your template file%0A%09%09distFile: 'kickoff.js', // config.js.distFile
%0A%09%7D;
|
3f1598eb029ba7e958896f13c506e765d9ac902f | set timeseries isActive in table module | src/js/Table/tableModule.js | src/js/Table/tableModule.js | angular.module('n52.core.table', ['n52.core.timeseries', 'ngTable'])
.controller('tableController', ['$scope', '$filter', 'ngTableParams', 'timeseriesService', '$rootScope',
function ($scope, $filter, ngTableParams, timeseriesService, $rootScope) {
// http://ngmodules.org/modules/ng-... | JavaScript | 0.000002 | @@ -2230,16 +2230,67 @@
es.color
+,%0A isActive: ts.isActive
%0A
|
51dcff4ea35e59384cf310b6b0663f90d98fa782 | change update time to something sane | src/js/components/editor.js | src/js/components/editor.js | require('codemirror/mode/javascript/javascript')
require('codemirror/lib/codemirror.css')
import CodeMirror from 'codemirror'
import reactStamp from 'react-stamp'
const Editor = (React) => {
return reactStamp(React).compose({
shouldComponentUpdate() {
return false
},
component... | JavaScript | 0 | @@ -928,16 +928,18 @@
this), 1
+50
)%0A
|
74ce36312fb1df5916f756a15a2a650e65c0dbc0 | Remove console logs | src/js/controllers/needs.js | src/js/controllers/needs.js | 'use strict';
/**
* @ngdoc function
* @name Pear2Pear.controller:NeedsCtrl
* @description
* # Needs Ctrl
* Show Needs for a given project
*/
angular.module('Pear2Pear')
.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/communities/:comId/projects/:id/needs', {
temp... | JavaScript | 0.000002 | @@ -4803,36 +4803,8 @@
-console.log($route.current);
%0A
@@ -4842,49 +4842,8 @@
1);%0A
- console.log($route.current);%0A
|
b613566191aaa0b6c27277a0504886df876239cb | Fix accept-button=“false” not hiding accept button. | src/js/directives/banner.js | src/js/directives/banner.js | angular.module('angular-cookie-law')
.directive('cookieLawBanner', ['$compile', 'CookieLawService', function ($compile, CookieLawService) {
return {
restrict: 'EA',
replace: true,
scope: {
message: '@',
acceptText: '@',
declineText: '@',
policyT... | JavaScript | 0 | @@ -934,18 +934,37 @@
tButton
-%7C%7C
+=== 'false' ? false :
true, /
|
1c45423d2c0985ad3d4ed419e93866d2ee2327ef | remove fdescribe | test/server/cards/01-Core/WayOfTheCrab.spec.js | test/server/cards/01-Core/WayOfTheCrab.spec.js | fdescribe('Way of the Crab', function() {
integration(function() {
describe('Way of the Crab\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
fate: 1,
... | JavaScript | 0.999242 | @@ -1,9 +1,8 @@
-f
describe
|
0cab624b969a1cb594cc6497c22e24dc88ab98c7 | Fix test for absence creation | test/server/rest/account/requestAbsenceSpec.js | test/server/rest/account/requestAbsenceSpec.js | 'use strict';
describe('request absence account rest service', function() {
var server, right1, right2;
beforeEach(function(done) {
var helpers = require('../mockServer');
helpers.mockServer('accountRequestAbsence', function(_mockServer) {
server = _mockServer;
do... | JavaScript | 0.000001 | @@ -2856,32 +2856,52 @@
).toEqual(200);%0A
+ done();%0A
%7D);%0A
|
18ddbb708e4c080fbb57f0ff45d535a8b0d30d8f | FIX Linter errors | test/unit/server/information-reporting-test.js | test/unit/server/information-reporting-test.js | /*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of iotagent-lwm2m-lib
*
* iotagent-lwm2m-lib 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 ... | JavaScript | 0 | @@ -5624,47 +5624,8 @@
) %7B%0A
- var finished = false;%0A%0A
|
cfd15133db0bf39afbfb0d7a000555a81a5a1720 | remove console reporting logic from JUnitXmlReporter (use ConsoleReporter if you want console output) | src/jasmine.junit_reporter.js | src/jasmine.junit_reporter.js | (function() {
if (! jasmine) {
throw new Exception("jasmine library does not exist in global namespace!");
}
function elapsed(startTime, endTime) {
return (endTime - startTime)/1000;
}
function ISODateString(d) {
function pad(n) { return n < 10 ? '0'+n : n; }
retu... | JavaScript | 0 | @@ -1785,110 +1785,8 @@
= %7B%0A
- reportRunnerStarting: function(runner) %7B%0A this.log(%22Runner Started.%22);%0A %7D,%0A%0A
@@ -1885,17 +1885,16 @@
if (!
-
spec.sui
@@ -1981,92 +1981,8 @@
%7D
-%0A%0A this.log(spec.suite.description + ' : ' + spec.description + ' ... |
0c99a9d6a71b88c0b90e24fa23140fad6d041982 | Fix warning of browser history | src/javascript/store/store.js | src/javascript/store/store.js | import createStore from 'react-waterfall'
import createHistory from 'history/createBrowserHistory'
import { addSettingsFromParameters, getBenchmarksLoadFunctionForDefinedExamples, getBenchmarksLoadFunctionForSourceExamples } from 'store/processParameters.js';
import Examples from 'models/Examples.js';
import { example... | JavaScript | 0.000004 | @@ -41,30 +41,41 @@
'%0Aimport
+ %7B
create
+Browser
History
+ %7D
from 'h
@@ -84,29 +84,8 @@
tory
-/createBrowserHistory
'%0A%0Ai
@@ -517,16 +517,23 @@
= create
+Browser
History(
|
2ac975f7d4fc417186b15f7584b52acad1a5a076 | fix typo | example/modules/app/controllers/appTest.es6 | example/modules/app/controllers/appTest.es6 | angular.module('App')
//you can user $scope method or controllerAs, anyway
.controller('App.controllers.appTest', ['PropertyBinder.services.binder', 'App.factories.users',
function(bind, userFactory){
// old method - just create a reference with the factory property
// this.users = userFactory.users;
bin... | JavaScript | 0.999991 | @@ -355,17 +355,19 @@
propert
-y
+ies
*/).from
@@ -567,16 +567,18 @@
of alias
+es
*/);%0A%0A%09%09
|
c091139a9e15cbe741df2160052c6ef3d0022c5d | remove fixme | packages/ssr-web/mirage/config.js | packages/ssr-web/mirage/config.js | import { nativeCurrencies } from '@cardstack/cardpay-sdk';
import config from '@cardstack/ssr-web/config/environment';
export default function () {
this.namespace = 'api';
// FIXME ugh!! should not need a host
this.get('/card-spaces/:slug', (schema, { params: { slug } }) => {
return schema.cardSpaces.where(... | JavaScript | 0.000002 | @@ -173,48 +173,8 @@
';%0A%0A
- // FIXME ugh!! should not need a host%0A
th
|
b3fd9e6839f8e0cb138647da5c05af177e523a61 | Mark Show less/more for localization | src/js/components/CollapsibleErrorMessage.js | src/js/components/CollapsibleErrorMessage.js | import classNames from "classnames/dedupe";
import PropTypes from "prop-types";
import React from "react";
import Icon from "./Icon";
/**
* Methods to bind in 'this' context
*/
const METHODS_TO_BIND = ["toggleExpanded"];
/**
* An error bar component commonly used in the ServiceForm and the JobsForm
* that contai... | JavaScript | 0 | @@ -1,12 +1,94 @@
+import %7B Trans %7D from %22@lingui/macro%22;%0Aimport %7B i18nMark %7D from %22@lingui/react%22;%0A%0A
import class
@@ -1842,55 +1842,26 @@
-// Get text%0A let moreLess = %22more%22;%0A if (
+const labelText =
this
@@ -1879,42 +1879,73 @@
nded
-) %7B
%0A
-moreLess = %22
+? i1... |
74168b5e64b7631eff914f765c38b17a9961bee4 | add button to non-special word set pages | src/js/dictPageConfig.js | src/js/dictPageConfig.js | const dictPageRE = new RegExp('https?://lingualeo.com/(.+?)/dictionary/vocabulary/(.+)$')
export default (url) => {
const match = url.match(dictPageRE)
if (!match) return
let wordGroupId = match[2]
if (wordGroupId === 'my') {
wordGroupId = 1
} else if (wordGroupId === 'jungle') {
wordGroupId = 2
} ... | JavaScript | 0.000002 | @@ -372,16 +372,67 @@
pId = 3%0A
+ %7D else %7B%0A wordGroupId = parseInt(wordGroupId)%0A
%7D%0A re
|
32aaddc5b9328cc6933b4cfbee8067ea55713c69 | Add sample creation button to developer dialog | client/src/js/dev/components/Dialog.js | client/src/js/dev/components/Dialog.js | import React from "react";
import { connect } from "react-redux";
import styled from "styled-components";
import { pushState } from "../../app/actions";
import { Button, Modal, ModalBody, ModalHeader } from "../../base";
import { routerLocationHasState } from "../../utils/utils";
import { postDevCommand } from "../acti... | JavaScript | 0 | @@ -1346,32 +1346,479 @@
erCommandLabel%3E%0A
+ %3Ch3%3ECreate Sample%3C/h3%3E%0A %3Cp%3ECreates a sample that is ready for use.%3C/p%3E%0A %3C/DeveloperCommandLabel%3E%0A %3CDeveloperCommandControl%3E%0A %3CButton color=%22red%22 onClick=%7B() =%3E on... |
92ee75be998116ca2322666326cb7f497ba275e8 | Change <BlogPage> title based on current tag | src/js/components/BlogPage.js | src/js/components/BlogPage.js | import React from 'react';
import PostsContainer from './PostsContainer';
import { setTitle } from '../utils';
function BlogPage({ match }) {
const { tag } = match.params;
if (tag) {
setTitle(`Tag "${tag}"`);
} else {
setTitle('Blog');
}
return (
<div className="blogpage">
<h1>Blog</h1>
... | JavaScript | 0 | @@ -174,85 +174,79 @@
;%0A
-if (tag) %7B%0A setTitle(%60Tag %22$%7Btag%7D%22%60);%0A %7D else %7B%0A setTitle('Blog');%0A %7D
+const pageTitle = tag ? %60Tag %22$%7Btag%7D%22%60 : 'Blog';%0A setTitle(pageTitle);
%0A r
@@ -294,20 +294,29 @@
%3Ch1%3E
-Blog
+%7B pageTitle %7D
%3C/h1%3E%0A
|
addd3cfb6632cd7360e88607f9daf68f1a4a22ab | Fix missing var declaration in arduino.js (#2247) | src/languages/arduino.js | src/languages/arduino.js | /*
Language: Arduino
Author: Stefania Mellai <s.mellai@arduino.cc>
Description: The Arduino® Language is a superset of C++. This rules are designed to highlight the Arduino® source code. For info about language see http://www.arduino.cc.
Requires: cpp.js
Website: https://www.arduino.cc
*/
function(hljs) {
ARDUINO_KW... | JavaScript | 0 | @@ -303,16 +303,20 @@
js) %7B%0A%0A%09
+var
ARDUINO_
|
89e25eb0dd0814b3dc99b831afd252b3de328a1a | Add advice in edit-profile, the user can't change the user name. | client/src/pages/users/edit-profile.js | client/src/pages/users/edit-profile.js | // npm packages
import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux';
import {push} from 'react-router-redux';
// our packages
import {editProfile} from '../../store/actions';
const mapStateToProps = (state) => ({
user: state.auth.user,
});
const mapDispatchToProps = (... | JavaScript | 0.000003 | @@ -2202,217 +2202,70 @@
rio:
-%3C/label%3E%0A %3Cinput%0A type=%22text%22%0A className=%22form-control%22%0A id=%22inputLogin%22%0A defaultValue=%7Buser.login%7D%0A ref=%7B(i) =%3E %7B loginInput = i; %7D%7D%0A /
+ %7Buser.login%7D (el nombre de... |
f6117f93b62cf2f25bd0fe258ab555b955659b7f | use server side rendering for large images (MR, CR) | src/js/displayImagingStudy.js | src/js/displayImagingStudy.js | function addImage(imagingStudy, series, instance) {
if(config.imageRenderMode === 'client') {
addImageClient(imagingStudy, series, instance);
} else if(config.imageRenderMode === 'server') {
addImageServer(imagingStudy, series, instance);
}
}
function displayImagingStudy(imagingStudy) {
... | JavaScript | 0 | @@ -49,19 +49,29 @@
) %7B%0A
-if(
+var client =
config.i
@@ -97,16 +97,180 @@
'client'
+;%0A // user server side rendering for large images%0A if(series.modality === 'MG' %7C%7C series.modality === 'CR')%0A %7B%0A client = false;%0A %7D%0A%0A if(client
) %7B%0A
@@ -317,24 +317,24 @@
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.