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 |
|---|---|---|---|---|---|---|---|
0912ecc0ce007f4b96c52b386c5ff8612b54f24c | tweak rule settings | rules/best-practices.js | rules/best-practices.js | 'use strict'
module.exports = {
rules: {
'accessor-pairs': 'error',
'array-callback-return': 'error',
'block-scoped-var': 'error',
'class-methods-use-this': 'off',
complexity: 'off',
'consistent-return': 'off',
curly: 'off',
'default-case': 'error',
'dot-location': [ 'error', 'pro... | JavaScript | 0.000001 | @@ -2320,29 +2320,27 @@
s-on-top': '
-error
+off
',%0A 'wrap
|
9057d406724a7df560b335431b67aee065e03a6d | Fix global leaks | js/id/ui/inspector.js | js/id/ui/inspector.js | iD.Inspector = function() {
var event = d3.dispatch('changeTags', 'changeWayDirection', 'update', 'remove', 'close');
function drawhead(selection) {
selection.html('');
selection.append('h2')
.text(iD.Util.friendlyName(selection.datum()));
selection.append('a')
.... | JavaScript | 0.998786 | @@ -2368,16 +2368,20 @@
+var
tr = tbo
@@ -2496,16 +2496,20 @@
+var
row = tr
@@ -2539,32 +2539,36 @@
+var
valuetds = row.s
|
8a9bf7e4d81067bc6450a9a9ecc264256c6aa432 | Fix minor ember error | app/adapters/application.js | app/adapters/application.js | import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
host: 'http://localhost:8000',
buildURL(modelName, id, snapshot, requestType) {
// Fix issue where CORS request failed on 301s: Ember does not seem to append trailing
// slash to URLs for single documents, but DRF redirects ... | JavaScript | 0.000002 | @@ -21,16 +21,43 @@
r-data';
+%0Aimport Ember from 'ember';
%0A%0Aexport
|
2fb54a298340a88d415dff0f46d9d095ad46d9cc | Stringify values of sql queries that happen to be json objects so that they are rendered appropriately in the console | app/js/console.js | app/js/console.js | define(['jquery',
'underscore',
'backbone',
'base',
'ladda',
'SQL',
'text!views/console.html',
'text!views/table.html',
'text!views/row.html',
'bootstrap',
], function ($, _, Backbone, base, Ladda, SQL, ConsoleTemplate, TableTemplate, RowTempla... | JavaScript | 0.998713 | @@ -497,32 +497,472 @@
rgs%7D);%0A %7D
+,%0A%0A // Override to JSON and prettyprint any objects we might have into values.%0A toJSON: function () %7B%0A var json = Backbone.Model.prototype.toJSON.call(this);%0A json.values = _.map(json.values, function (val) %7B%0A ... |
dddcb934175c53ccce6526af15c0efd0568b22b7 | Add comments to the display class | app/js/display.js | app/js/display.js |
var Display = (function() {
function Display() {
this.reference = document.getElementById('display');
this.isFloat = false;
this.isDirty = false;
this.isResult = false;
this.reference.innerText = 0;
}
Display.prototype.setValue = function (new_value) {
if (new_value == '.'){
this.a... | JavaScript | 0 | @@ -131,100 +131,290 @@
lse;
-%0A this.isDirty = false;%0A this.isResult = false;%0A this.reference.innerText = 0;%0A %7D%0A
+ // Used to restrict the amount of inputted points.%0A this.isDirty = false; // Indicate that the value is used.%0A this.isResult = false; // The value it's a result of an ... |
0bbbe1c93934af0da9d2459d3bdcb321aa4ec81b | Clarify SSO-on email address information | app/components/sso/Index.js | app/components/sso/Index.js | import React from 'react';
import Relay from 'react-relay';
import DocumentTitle from 'react-document-title';
import Button from '../shared/Button';
import Icon from '../shared/Icon';
import Panel from '../shared/Panel';
import PageHeader from '../shared/PageHeader';
import Spinner from '../shared/Spinner';
class SSO... | JavaScript | 0.000962 | @@ -2315,16 +2315,18 @@
ne with
+a
%7Bthis.pr
@@ -2382,24 +2382,16 @@
address
-address
can logi
@@ -2492,17 +2492,17 @@
nization
-
+-
specific
|
627a254c7c540819d49dc34a0952990c7b7d8aec | remove unused app var | labs/architecture-examples/thorax/js/app.js | labs/architecture-examples/thorax/js/app.js | var app = app || {};
var ENTER_KEY = 13;
$(function() {
Backbone.history.start();
// Kick things off by creating the **App**.
var view = new Thorax.Views['app']();
$('body').append(view.el);
});
| JavaScript | 0.000001 | @@ -1,25 +1,4 @@
-var app = app %7C%7C %7B%7D;%0A
var
|
41a144aac6fd37a222d67ad89c29b4e35a70bbe7 | fix sort-order | src/store/context/actions.js | src/store/context/actions.js | import api from '../../data/context-api';
import { dispatchAndThrow } from '../util';
export const RECEIVE_CONTEXT = 'RECEIVE_CONTEXT';
export const ERROR_RECEIVE_CONTEXT = 'ERROR_RECEIVE_CONTEXT';
export const REMOVE_CONTEXT = 'REMOVE_CONTEXT';
export const ERROR_REMOVING_CONTEXT = 'ERROR_REMOVING_CONTEXT';
export co... | JavaScript | 0.002774 | @@ -971,16 +971,99 @@
(json =%3E
+ %7B %0A json.sort((a, b) =%3E a.sortOrder - b.sortOrder);%0A
dispatc
@@ -1085,16 +1085,30 @@
t(json))
+%0A %7D
)%0A
|
5195e1932ebb782a3c32a735dd9f370de82c5084 | fix duplicate fetch bug | src/stores/TableDataStore.js | src/stores/TableDataStore.js | import { autorun, observable, computed, toJS } from 'mobx';
import { isUndefined, omitBy } from 'lodash';
import modalStore from 'stores/modalStore';
export default class TableDataStore {
@observable isFetching = false;
@observable selectedKeys = [];
@observable query = {};
collections = observable.map();
totals ... | JavaScript | 0 | @@ -2988,51 +2988,189 @@
%7D%0A%09%09
-const disposer = autorun(() =%3E %7B%0A%09%09%09return
+this._hasBoundQueryListener = false;%0A%09%09const disposer = autorun(() =%3E %7B%0A%09%09%09if (this.query && !this._hasBoundQueryListener) %7B%0A%09%09%09%09this._hasBoundQueryListener = true;%0A%09%09%09%7D else %7B%0A%0... |
7f22385d904bdb643ddb79d411efb8babe792cb3 | Update iqiyi.com.js | js/rules/iqiyi.com.js | js/rules/iqiyi.com.js | // 移除规则
// 符合规则的元素直接移除
var removeRule = [
];
// 替换规则
// 符合规则的元素用透明元素替换
var replaceRule = [
// ['', 0]
];
jumpAds();
function jumpAds() {
var temp_video = document.querySelector('video');
console.log(temp_video.src);
if (temp_video.src.indexOf('http://data.video.qiyi.com/videos/other/') > -1) {
... | JavaScript | 0 | @@ -196,41 +196,8 @@
');%0A
- console.log(temp_video.src);%0A
@@ -345,9 +345,9 @@
ds,
-2
+1
000)
@@ -355,8 +355,9 @@
%0A %7D%0A%7D
+%0A
|
5e5a53833d8be6d0a47fb8bc13381d55140c193a | allow sorting on table | js/street-sweeping.js | js/street-sweeping.js | Date.prototype.getUTCMonthWeek = function(){
var firstDay = new Date(this.getUTCFullYear(), this.getUTCMonth(), 1).getUTCDay();
return Math.ceil((this.getUTCDate() + firstDay)/7);
}
function sortIt (d, order) {
/*
* d is the column that we're sorting
* order is a string, if it's set to 'descending' then sort b... | JavaScript | 0.000001 | @@ -4021,16 +4021,21 @@
%0A )
+%0A
;%0A //in
|
5a302271b31b1486efcc6d0b221f234ce6e1c79f | Remove unneeded listeners | js/views/list_view.js | js/views/list_view.js | /* vim: ts=4:sw=4:expandtab
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribu... | JavaScript | 0.000001 | @@ -1068,90 +1068,8 @@
) %7B%0A
- this.listenTo(this.collection, 'change', this.render); // auto update%0A
@@ -1198,71 +1198,8 @@
l);%0A
- this.listenTo(this.collection, 'all', this.render);
%0A
|
4123f76ed868207a218345ef5ae738631e71c51d | delete attachment route | resources/assets/js/admin/delete-attachment.js | resources/assets/js/admin/delete-attachment.js | $(function () {
/**
* Delete attachment
*/
$('.delete-attachment').click(function(){
var field = $(this).data('field'),
id = $(this).data('id'),
table = $(this).data('table'),
data = {},
$this = $(this),
url = '/api/' + ... | JavaScript | 0.000001 | @@ -310,10 +310,12 @@
'/a
-pi
+dmin
/' +
@@ -520,10 +520,12 @@
: 'P
-UT
+ATCH
',%0A
|
4fd1dba57601b0e56cc4b6a7ba37f042ed654f81 | move changes to proper branch | jsapp/js/alertify.es6 | jsapp/js/alertify.es6 | import alertify from 'alertifyjs';
import { KEY_CODES } from 'js/constants';
/**
* @namespace MultiButton
* @param {string} label
* @param {string} [color] "blue" or "red", if not given button will be gray
* @param {string} [icon] one of k-icons
* @param {function} callback
*/
/**
* Use this custom alertify mo... | JavaScript | 0.000001 | @@ -3337,597 +3337,8 @@
);%0A%0A
- // This needs to be done here not during buttons creation as it would stay%0A // disabled for all further dialogs.%0A buttons.forEach((button, index) =%3E %7B%0A if (button.isDisabled) %7B%0A const buttonEl = dialog.elements.buttons.primary.children%5Bindex%5D;%0A if ... |
03bff19a9fbb66704617faa47b747b5f1e61e5c3 | Enable selecting items in RadioButtons programatically | fan/ui/RadioButtons.js | fan/ui/RadioButtons.js | jsio('from shared.javascript import Class')
jsio('import fan.ui.Component')
exports = Class(fan.ui.Component, function(supr) {
this._className = 'RadioButtons'
this._createContent = function() {
this._delegateOn('click', bind(this, '_onDelegateClick'))
this._payloads = {}
this._buttons = []
}
this.addB... | JavaScript | 0 | @@ -921,16 +921,18 @@
right')%0A
+%09%09
%0A%09%09retur
@@ -933,18 +933,129 @@
%09return
-el
+this%0A%09%7D%0A%09%0A%09this.select = function(index) %7B%0A%09%09this._onDelegateClick(this._buttons%5Bindex%5D.delegateId)%0A%09%09return this
%0A%09%7D%0A%09%0A%09t
|
a5157036cce5c34e31709ca86ea6d78caafc9a47 | FIX (dotfiles in gist): fix links of dotfiles | app/js/filters/dotToDash.js | app/js/filters/dotToDash.js | 'use strict';
angular.module('gisto.filter.dotToDash', []).filter('dotToDash', function () {
return function (input) {
return input.replace('.','-');
};
}); | JavaScript | 0 | @@ -113,24 +113,138 @@
n (input) %7B%0A
+ var output = input;%0A if(input.charAt(0) === '.') %7B%0A output = input.substr(1);%0A %7D%0A
retu
@@ -246,18 +246,19 @@
return
-in
+out
put.repl
|
d6a58da7a61ee6a0d30437a52c81800a95a1e8b4 | Change register in ScaleBar to return a promise | TC/control/ScaleBar.js | TC/control/ScaleBar.js | TC.control = TC.control || {};
if (!TC.Control) {
TC.syncLoadJS(TC.apiLocation + 'TC/Control');
}
TC.control.ScaleBar = function () {
TC.Control.apply(this, arguments);
};
TC.inherit(TC.control.ScaleBar, TC.Control);
(function () {
var ctlProto = TC.control.ScaleBar.prototype;
ctlPr... | JavaScript | 0 | @@ -584,35 +584,37 @@
map) %7B%0D%0A
-var
+const
self = this;%0D%0A
@@ -619,16 +619,31 @@
%0A
+ const result =
TC.Cont
@@ -733,24 +733,48 @@
wrap.ctl);%0D%0A
+ return result;%0D%0A
%7D;%0D%0A%0D%0A
|
2dccdcb38a7021315ac790f35e923cbf64c3de09 | Update rockpaperscissors.js | app/js/rockpaperscissors.js | app/js/rockpaperscissors.js | ////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... | JavaScript | 0 | @@ -732,32 +732,37 @@
le called %60move%60
+ test
%0A // If a %60mo
|
6805176775488db494e7fba940135d3983ec500f | Fix reading the "can use" data | Beocreate2/beo-extensions/ui-settings/ui-settings-client.js | Beocreate2/beo-extensions/ui-settings/ui-settings-client.js | var ui_settings = (function() {
var externalDisplayOn = false;
$(document).on("ui-settings", function(event, data) {
if (data.header == "externalDisplay") {
if (canUseExternalDisplay) {
document.querySelector(".external-display-settings").classList.remove("hidden");
if (data.content.enabled) {
external... | JavaScript | 0.998433 | @@ -161,16 +161,29 @@
%7B%0A%09%09if (
+data.content.
canUseEx
|
f136993c5057d408334c5583ce1b8f1ad3430377 | Use checkContentType middleware | lib/cartodb/controllers/named_maps_admin.js | lib/cartodb/controllers/named_maps_admin.js | var step = require('step');
var assert = require('assert');
var templateName = require('../backends/template_maps').templateName;
var cors = require('../middleware/cors');
var userMiddleware = require('../middleware/user');
/**
* @param {AuthApi} authApi
* @param {PgConnection} pgConnection
* @param {TemplateMaps... | JavaScript | 0 | @@ -667,32 +667,71 @@
userMiddleware,%0A
+ this.checkContentType('POST'),%0A
this.aut
@@ -891,32 +891,70 @@
userMiddleware,%0A
+ this.checkContentType('PUT'),%0A
this.aut
@@ -1844,102 +1844,8 @@
) %7B%0A
- ifInvalidContentType(req, 'template POST data must be of type applic... |
88d9fcb292ab1a71cf4ce90c11fa9c1a5435c9dc | remove strict vuex store config | app/renderer/store/store.js | app/renderer/store/store.js | import Vue from 'vue'
import Vuex from 'vuex'
import io from 'socket.io-client/socket.io'
import * as types from './mutation-types'
import appMutations from './mutations'
import appActions from './actions'
import { createModule, ADD_TOAST_MESSAGE } from 'vuex-toast'
const { mutations, state } = appMutations
const { ac... | JavaScript | 0.000001 | @@ -2676,24 +2676,8 @@
ast%7D
-,%0A strict: true
%0A%7D)%0A
|
32d721898f64f627730f24a8191b40fbb43cb0a7 | Fix for Phantom | app/routes/crate/version.js | app/routes/crate/version.js | import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Route.extend({
model(params) {
const requestedVersion = params.version_num === 'all' ? '' : params.version_num;
const crate = this.modelFor('crate');
const controller = this.controllerFor(this.routeName);
... | JavaScript | 0 | @@ -549,20 +549,24 @@
n.in
-cludes
+dexOf
(flag)
+ %3E -1
;%0A
|
8dc59719a85afdc13f901d439d9304a701c47e9c | Revert "refactor(StackedPaneDisplay): Experiment with Save button on top." | lib/components/user/stacked-pane-display.js | lib/components/user/stacked-pane-display.js | import PropTypes from 'prop-types'
import React from 'react'
import { Button } from 'react-bootstrap'
import FormNavigationButtons from './form-navigation-buttons'
import { PageHeading, StackedPaneContainer } from './styled'
/**
* This component handles the flow between screens for new OTP user accounts.
*/
const S... | JavaScript | 0 | @@ -57,49 +57,8 @@
act'
-%0Aimport %7B Button %7D from 'react-bootstrap'
%0A%0Aim
@@ -351,24 +351,16 @@
title &&
- (%0A
%3CPageHe
@@ -369,116 +369,15 @@
ing%3E
-%0A %3CButton bsStyle='primary' className='pull-right' type='submit'%3ESave%3C/Button%3E%0A %7Btitle%7D%0A
+%7Btitle%7D
%3C/Pa
... |
cd83d20d738e2943828eba1e2df1f38f3c82d7e4 | Fix a bug in applyDiff function | src/tokenize/toTokenTrees.js | src/tokenize/toTokenTrees.js | import {flatMap, last, keyBy} from 'lodash';
import {computeOldLineNumber, computeNewLineNumber} from '../utils';
const applyDiff = (oldSource, hunks) => {
const lines = oldSource.split('\n');
const changes = hunks.reduce(
(changes, hunk) => changes.concat(hunk.changes),
[]
);
// We us... | JavaScript | 0 | @@ -112,208 +112,408 @@
';%0A%0A
-const applyDiff = (oldSource, hunks) =%3E %7B%0A const lines = oldSource.split('%5Cn');%0A const changes = hunks.reduce(%0A (changes, hunk) =%3E changes.concat(hunk.changes),%0A %5B%5D%0A );%0A
+// This function mutates %60linesOfCode%60 argument.%0Aconst applyH... |
288110620df451b768098a9befc7521e913a106a | Make example deploy a bit simpler. | packages/truffle/example/migrations/2_deploy_contracts.js | packages/truffle/example/migrations/2_deploy_contracts.js | module.exports = function(deployer) {
deployer.deploy(ConvertLib);
deployer.autolink(MetaCoin);
deployer.deploy(MetaCoin);
};
| JavaScript | 0 | @@ -82,24 +82,16 @@
utolink(
-MetaCoin
);%0A dep
|
c8ea1b2181dc7aa9bc77f76cc07e5156e3b07fc2 | update CascaderListItem | src/_CascaderListItem/CascaderListItem.js | src/_CascaderListItem/CascaderListItem.js | /**
* @file CascaderListItem component
* @author wendy(wendy.wei@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import List from '../List';
import Valid from '../_vendors/Valid';
class CascaderListItem extends Component {
constructor(props, ...restArgs) {
... | JavaScript | 0 | @@ -155,16 +155,53 @@
-types';
+%0Aimport classNames from 'classnames';
%0A%0Aimport
@@ -1681,45 +1681,106 @@
e =
-(currDepth === 0 ? ' first' : '') + (
+classNames('cascader-popup-list', %7B%0A first: currDepth === 0,%0A last:
curr
@@ -1802,23 +1802,22 @@
- 1
- ? ' last' : ''
+%0A... |
be439e23f8a3dc5a2c40284d872d4a1625c92025 | Remove restart, stop, start action for pod | app/models/pod.js | app/models/pod.js | import C from 'ui/utils/constants';
import Resource from 'ember-api-store/models/resource';
import { reference } from 'ember-api-store/utils/denormalize';
import { get, computed } from '@ember/object';
import { inject as service } from "@ember/service";
import { strPad } from 'ui/utils/util';
import { formatSi } from '... | JavaScript | 0 | @@ -2565,470 +2565,8 @@
%7D,%0A
- %7B label: 'action.restart', icon: 'icon icon-refresh', action: 'restart', enabled: !!a.restart, bulkable: true%7D,%0A %7B label: 'action.start', icon: 'icon icon-play', action: 'start', enabled: !!a.start, bulkable: true... |
d325f8241d323677732b703be0f7fcfd8b3572c0 | fix Block-scoped declarations (let, const, function, class) not yet supported outside strict mode | app/views/helpers/global.js | app/views/helpers/global.js | let blocks = Object.create(null);
let debug = function(varToDebug) {
console.log("==============VIEW DEBUG ==============" );
console.log(varToDebug);
};
module.exports = {
"extends" : function(name, context) {
let block = blocks[name];
if (!block) {
block = blocks[name] = [... | JavaScript | 0 | @@ -1,16 +1,30 @@
+'use strict';%0A
let blocks = Obj
|
b84d426ef6533b2408819c8d6e7f2e064f5e9a03 | Revert "Revert "Commented out code that would inject "Figure #" under images."" | assets/js/script.js | assets/js/script.js | $(document).ready(function() {
// random color
function randomColor(tags, property, colors) {
for (var i = 0; i < tags.length; i++) {
var color = colors[i%colors.length];
$(tags[i]).css(property, color);
}
}
var randomColorTargets = {
"target_1": {
"tag": ".post-content h2",
... | JavaScript | 0 | @@ -636,24 +636,81 @@
%0A %7D%0A %7D%0A%0A
+/* Commented out due to not wanting captions for images.%0A
// insert
@@ -1034,24 +1034,27 @@
%22%3C/p%3E%22);%0A %7D
+%0A*/
%0A%0A // show
|
5153803f8a95f2f880fa6f8613604161acf277e5 | Revert "Set content-type:text/plain on Errbit request" | src/app/components/error/ErrorBoundary.js | src/app/components/error/ErrorBoundary.js | import React from 'react';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import StackTrace from 'stacktrace-js';
import StackTraceGPS from 'stacktrace-gps';
import config from 'config'; // eslint-disable-line require-path-exists/exists
import ErrorPage from './ErrorPage';
import GenericUnkn... | JavaScript | 0 | @@ -934,32 +934,24 @@
': '
-text/plain;charset=UTF-8
+application/json
',%0A
|
b5452a5ec3e110a25ce314714f0b0e78d2ea474a | Change marker size on zoom logic | src/modules/unit/components/UnitMarker.js | src/modules/unit/components/UnitMarker.js | import React, {Component} from 'react';
import {Marker} from 'react-leaflet';
import {Icon} from 'leaflet';
import {getUnitIcon, getUnitPosition, getUnitSport} from '../helpers';
import {UNIT_ICON_WIDTH, UnitFilters} from '../constants';
import {DEFAULT_ZOOM} from '../../map/constants';
import UnitPopup from './UnitPop... | JavaScript | 0 | @@ -810,132 +810,8 @@
) %7B%0A
- if(zoomLevel - DEFAULT_ZOOM %3E 0) %7B%0A return (zoomLevel - DEFAULT_ZOOM + 4) * 0.25 * UNIT_ICON_WIDTH;%0A %7D else %7B%0A
@@ -829,28 +829,18 @@
Level /
-DEFAULT_ZOOM
+18
* UNIT_
@@ -851,22 +851,16 @@
_WIDTH;%0A
- %7D%0A
%7D%0A%0A g
@@ -895,128 +895,8 @... |
f8b7f922a242b8cd1e9d0d87a56facae529cc83f | fix toPromise function | src/app/services/EthereumHelperService.js | src/app/services/EthereumHelperService.js | import {insurechain} from "../../modules/ethereum/contract-definitions";
function EthereumService ($q, AppWeb3CheckService) {
this.insurechain = web3.eth.contract (insurechain.abi).at (insurechain.contractAddress);
this.toPromise = (contractFunc) => {
const defer = $q.defer();
return AppWeb3C... | JavaScript | 0.998278 | @@ -293,324 +293,422 @@
();%0A
-%0A return AppWeb3CheckService.userCheck().then(() =%3E %7B%0A contractFunc(arguments, (err, result) =%3E %7B%0A if(err) %7B%0A defer.reject(err);%0A %7D else %7B%0A defer.resolve(result);%0A ... |
d6d1e370edfcecb684173d9f984922f97afb0836 | Replace Display with ToggleableDisplay | src/notebook/components/cell/code-cell.js | src/notebook/components/cell/code-cell.js | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import Inputs from './inputs';
import Editor from './editor';
import Display from 'react-jupyter-display-area';
import LatexRenderer from '../latex';
import Pager from './pager';
import Immutable from 'immutable';
class CodeCe... | JavaScript | 0.000032 | @@ -153,16 +153,26 @@
%0Aimport
+Toggleable
Display
@@ -2406,16 +2406,26 @@
%3C
+Toggleable
Display%0A
|
e73ead03a0cab40f850e30977084e186bc7aa54b | copy images as well | apps/Gruntfile.js | apps/Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
copyto: {
jsrfToLocal: {
files:
[
{cwd: '../lib/phprf/', src: ["**/*"], dest: 'php_mvc/cakephp/app/vendor/razorflow_php/'},
{cwd: '../lib/phprf/static/rf/', src: ["js/razorflow.wrapper.min.js", "css/razorflow.min.css"],... | JavaScript | 0 | @@ -576,32 +576,42 @@
zorflow.min.css%22
+, %22img/**%22
%5D, dest: 'php_mv
|
7d01e65f20d9297ca52be4c3730efefeebc77c4c | Tweak reporting, no more frames... | scct/src/main/resources/html-reporting/main.js | scct/src/main/resources/html-reporting/main.js | $(document).ready(function() {
$(window).resize(function() {
var height = $(window).height();
$("#overview").height(height);
$("#detail").height(height);
$("#packages").height(height - 40);
}).resize();
$("a").live("click", function() {
var $this = $(this);
if ($this.parent().hasClass("pkg... | JavaScript | 0 | @@ -200,9 +200,9 @@
t -
-4
+6
0);%0A
|
741aa1a5032ad59d46d6ed42fcefcac7a2d24716 | Fix crash when input/preview component could not be resolved | packages/@sanity/form-builder/src/FormBuilderContext.js | packages/@sanity/form-builder/src/FormBuilderContext.js | import PropTypes from 'prop-types'
import React from 'react'
import {fallbackInputs} from './fallbackInputs'
import Schema from '@sanity/schema'
import pubsub from 'nano-pubsub'
const NOOP = () => {}
function resolve(type, providedResolve = NOOP) {
let itType = type
while (itType) {
const resolved = provided... | JavaScript | 0 | @@ -726,24 +726,41 @@
(this, arg)%0A
+ if (arg) %7B%0A
map.set(
@@ -769,16 +769,22 @@
g, val)%0A
+ %7D%0A
retu
|
0903195ab3de2d1bb5abfd8bac4763e09aa12899 | Update categories route to handle role updates | packages/client-sync/src/local-api/routes/categories.js | packages/client-sync/src/local-api/routes/categories.js | const Joi = require('joi');
const Serialization = require('../serialization');
const {createAndReplyWithSyncbackRequest} = require('../route-helpers');
module.exports = (server) => {
['Folder', 'Label'].forEach((klass) => {
const term = `${klass.toLowerCase()}s`;
server.route({
method: 'GET',
pa... | JavaScript | 0 | @@ -2232,32 +2232,50 @@
payload:
+Joi.object().keys(
%7B%0A di
@@ -2302,33 +2302,122 @@
ng()
-.required(),%0A %7D,
+,%0A role: Joi.string(),%0A %7D).or('display_name', 'role'), // Require at least one of these fields
%0A
@@ -2584,56 +2584,1038 @@
st %7B
-payload%7... |
7f37e7cbd12797bf395e53822abadd79b0c32c64 | Use the Amazon Signature V2 | awssum-amazon-cloudfront.js | awssum-amazon-cloudfront.js | // --------------------------------------------------------------------------------------------------------------------
//
// cloudfront.js - class for AWS CloudFront
//
// Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/
// Written by Andrew Chilton <chilts@appsattic.com>
//
// License: http://opensource.o... | JavaScript | 0.000012 | @@ -1574,16 +1574,27 @@
n.Amazon
+SignatureV2
);%0A%0A// -
|
e0edfd90943dd92b4bb58eb24b1292b9bccadc2c | fix import typo | actor-sdk/sdk-web/src/components/modals/InviteUser.react.js | actor-sdk/sdk-web/src/components/modals/InviteUser.react.js | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component, PropTypes } from 'react';
import Modal from 'react-modal';
import { Container } from 'flux/utils';
import fuzzaldrin from 'fuzzaldrin';
import { KeyCodes, AsyncActionStates } from '../../constants/ActorAppConstants';
import { h... | JavaScript | 0.000011 | @@ -607,14 +607,8 @@
User
-Reduce
Stor
|
d451df21a36c9b5d1d0ea2bda75e6023d2c50d50 | Fix link to workbench in project request page | webapp/src/main/resources/public/js/components/drops/DropDetail.js | webapp/src/main/resources/public/js/components/drops/DropDetail.js | import PropTypes from 'prop-types';
import React from "react";
import {Table, ProgressBar, Button, Label} from "react-bootstrap";
import {History, Link} from "react-router";
import {FormattedMessage, FormattedNumber} from "react-intl";
import Locales from "../../utils/Locales";
import RepositoryStore from "../../stores... | JavaScript | 0 | @@ -921,16 +921,24 @@
rLocale(
+repoId,
bcp47Tag
@@ -941,17 +941,16 @@
7Tag) %7B%0A
-%0A
@@ -1068,27 +1068,16 @@
oIds%22: %5B
-this.props.
repoId%5D,
@@ -1599,16 +1599,47 @@
nd(this,
+ this.props.drop.repository.id,
tk.loca
|
98fc3572e70ad2a7907cbc6812e49caeb4329f92 | Add FObject.addReaction(). | src/com/google/flow/ReactiveDetailView.js | src/com/google/flow/ReactiveDetailView.js | /**
* @license
* Copyright 2016 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 requir... | JavaScript | 0 | @@ -1043,32 +1043,204 @@
%5D,%0A methods: %5B%0A
+ function addReaction(name, formula) %7B%0A // TODO: stop any previous reaction%0A this.reactions_%5Bname%5D = formula;%0A this.startReaction_(name, formula);%0A %7D,%0A
function sta
|
42836bf54c9088515faa39faad0b22592dbd4851 | Fix file extensions not always detected with cloudinary (#9138) | packages/strapi-provider-upload-cloudinary/lib/index.js | packages/strapi-provider-upload-cloudinary/lib/index.js | 'use strict';
/**
* Module dependencies
*/
// Public node modules.
const cloudinary = require('cloudinary').v2;
const intoStream = require('into-stream');
const { errors } = require('strapi-plugin-upload');
module.exports = {
init(config) {
cloudinary.config(config);
return {
upload(file, customCo... | JavaScript | 0 | @@ -372,24 +372,230 @@
eject) =%3E %7B%0A
+ const config = %7B%0A resource_type: 'auto',%0A public_id: file.hash,%0A %7D;%0A%0A if (file.ext) %7B%0A config.filename = %60$%7Bfile.hash%7D$%7Bfile.ext%7D%60;%0A %7D%0A%0A
co
@@ -667,51 +667,1... |
e779390f15fefc9ea40ec3689c27946f53d74b38 | Remove useless console.log. | src/common/field/mixin/value-behaviour.js | src/common/field/mixin/value-behaviour.js | var {isObject, isFunction} = require('lodash/lang');
var valueBehaviourMixin = {
/** @inheritdoc */
getDefaultProps: function getDefaultValueBehaviourProps(){
return {
error: undefined,
value: undefined
};
},
/** @inheritdoc */
getInitialState: function getFieldInitialState(){
return ... | JavaScript | 0 | @@ -1101,49 +1101,8 @@
%7D%0A
- console.log(this.props.name, value);%0A
|
305862ccd0aed3d5748e5b0847d9293e9bcce810 | remove margin for gallery links | src/components/Portfolio/PortfolioLink.js | src/components/Portfolio/PortfolioLink.js | import React from 'react'
import styled from 'react-emotion'
import { Link } from 'gatsby'
import Img from 'gatsby-image'
const ProjectLink = styled(Link)`
text-decoration: none;
padding: 0;
margin: 0;
@media screen and (min-width: ${props => props.theme.responsive.medium}) {
transition: all 0.5s;
disp... | JavaScript | 0 | @@ -1150,16 +1150,29 @@
ercase;%0A
+ margin: 0;%0A
paddin
|
975726463befd76f6173cecdac0f3e91f93f188b | Change third review text | src/components/Reviews/Reviews.stories.js | src/components/Reviews/Reviews.stories.js | //@flow
import React from 'react'
import {storiesOf} from '@storybook/react'
import {Reviews} from './Reviews'
storiesOf('Reviews', module)
.add('one review', () => (
<Reviews
reviews={[
{
text:
'Suspendisse suscipit, tortor sed tincidunt molestie, justo arcu consequat lorem, ... | JavaScript | 0.001349 | @@ -3085,918 +3085,483 @@
'
-Vestibulum erat ex, dictum et dapibus sed, tempor sit amet mi. Sed rutrum enim eget feugiat posuere. Donec at sodales erat. Quisque ultricies posuere tortor, non laoreet metus dignissim vel. Suspendisse placerat consequat metus, dignissim vehicula velit. Integer vulputate nisl a tellus ... |
1b382f3a2607f25e64cb2d0dc1cb63a7bf0317c3 | Add update to Requisition Item schema | src/database/DataTypes/RequisitionItem.js | src/database/DataTypes/RequisitionItem.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import Realm from 'realm';
import { Requisition } from './Requisition';
import { parsePositiveInteger } from '../../utilities';
export class RequisitionItem extends Realm.Object {
get itemId() {
return this.item ? this.item.id : '';
}
get i... | JavaScript | 0 | @@ -2462,16 +2462,64 @@
true %7D,%0A
+ option: %7B type: 'Option', optional: true %7D,%0A
%7D,%0A%7D;%0A
|
0e60677dde1f09d27534e1a367d7e8790f5c6de3 | Update refetch accounts handler in account create legacy. | assets/js/modules/analytics/common/account-create-legacy.js | assets/js/modules/analytics/common/account-create-legacy.js | /**
* WordPress dependencies
*/
import { useSelect, useRegistry } from '@wordpress/data';
import { Fragment, useCallback } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import Button from '../../../components/button';
import Link from '../../../components/link';
im... | JavaScript | 0 | @@ -46,16 +46,29 @@
eSelect,
+ useDispatch,
useRegi
@@ -98,16 +98,16 @@
/data';%0A
-
import %7B
@@ -596,16 +596,33 @@
ccounts(
+ %7B force: true %7D
) ) %7C%7C %5B
@@ -811,24 +811,59 @@
ounts() );%0A%0A
+%09const %7B stores %7D = useRegistry();%0A
%09const %7B inv
@@ -904,45 +904,28 @@
%7D =
-useRegistry( (... |
21e595f5b576c3935b63b1d7c6699b947dd90123 | Use SectionView | src/foam/u2/detail/SectionedDetailView.js | src/foam/u2/detail/SectionedDetailView.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.detail',
name: 'SectionedDetailView',
extends: 'foam.u2.detail.AbstractSectionedDetailView',
requires: [
'foam.u2.detail.SectionedDetailPropertyView',
... | JavaScript | 0 | @@ -293,31 +293,15 @@
tion
-edDetailProperty
View',%0A
+
@@ -429,86 +429,8 @@
: %60%0A
- .section-header %7B%0A font-weight: bold;%0A font-size: 1.5em;%0A %7D%0A%0A
@@ -1035,24 +1035,20 @@
.start(
-self.Row
+'h1'
).add(s.
@@ -1059,35 +1059,8 @@
e$).
-addClass('section-header').
end(
... |
7c0585b3846e6b2c31deb59b7c13c44e73d9e4da | Remove unused imports | Realization/frontend/czechidm-example/src/content/ExampleContent.js | Realization/frontend/czechidm-example/src/content/ExampleContent.js | import React from 'react';
import Helmet from 'react-helmet';
//
import { Basic } from 'czechidm-core';
import { ExampleManager } from '../redux';
const manager = new ExampleManager();
/**
* Example content (~page).
*
* @author Radek Tomiška
*/
export default class ExampleContent extends Basic.AbstractContent {
... | JavaScript | 0.000001 | @@ -24,43 +24,8 @@
t';%0A
-import Helmet from 'react-helmet';%0A
//%0Ai
|
924e043a5ea3751be11488c8e64916705fc81782 | Update About.js | RequireJsNet.ProjectTemplate/Scripts/Controllers/Root/Home/About.js | RequireJsNet.ProjectTemplate/Scripts/Controllers/Root/Home/About.js | require([
'bootstrap'
], function ($) {
var ctrl = function (args) {
this.options = $.extend(true, {}, args);
this.init();
};
ctrl.prototype.init = function () {
};
//create object on DOM ready
$(function () {
var entryScript = new ctrl();
});
}); | JavaScript | 0 | @@ -3,16 +3,25 @@
equire(%5B
+'jquery',
%0A
@@ -316,8 +316,9 @@
%7D);%0A%7D);
+%0A
|
06cf1a183fe1d657ca9cb958e1d5c6d49e57aead | Reset message input after sending a message. | src/js/components/components.messenger.js | src/js/components/components.messenger.js | import React from 'react';
import { connect } from 'react-redux';
import config from '../config'
import actions from '../actions';
class Messenger extends React.Component {
sendMessage() {
const message = this.messageInput.value;
this.props.sendMessage(this.props.chatId, message);
}
render() {
let... | JavaScript | 0.000001 | @@ -288,16 +288,50 @@
ssage);%0A
+ this.messageInput.value = '';%0A
%7D%0A%0A r
|
61300be403a25163ed0d3fe107093f806f3bb5d4 | use each() instead of for loop | src/js/frontend/src/components/d3Chart.js | src/js/frontend/src/components/d3Chart.js | // Obtain a list of meetings attended by a given individual or a given
// organisation / department, and then visualise who they met with as
// bubbles, where the size of the bubble is how often they met with
// them.
// FIXME: make this constant configurable
let RADIUS_SCALE = 25;
let d3 = require('d3');
let meeting... | JavaScript | 0.000008 | @@ -956,45 +956,27 @@
-for (let i = 0; i %3C data.length; i++)
+data.each((item) =%3E
%7B%0A
@@ -980,23 +980,20 @@
%7B%0A
-data%5Bi%5D
+item
.radius
@@ -1004,23 +1004,20 @@
th.sqrt(
-data%5Bi%5D
+item
.meeting
@@ -1045,23 +1045,20 @@
;%0A
-data%5Bi%5D
+item
.x = Mat
@@ -1096,15 +1096,12 @@
... |
ff61622c89856c749272f164f4e4eb1460325b94 | Fix test text | src/main/webapp/jasmine/spec/form.test.js | src/main/webapp/jasmine/spec/form.test.js | describe('form tests', function() {
var templateHtml;
beforeEach(module('FormApp'));
beforeEach(inject(function($templateCache) {
templateHtml = $templateCache.get('form.html');
if (!templateHtml) {
templateHtml = $.ajax('/jetty-guice-jpa/form.html', {
async : false
}).responseText;
$templateCache... | JavaScript | 0.999886 | @@ -1258,32 +1258,36 @@
n name input is
+not
empty', function
|
3ad85b841398be6dd3924c62ba62de8cc3b521cc | Update firebase middleware | src/middlewares/firebase/actionHandler.js | src/middlewares/firebase/actionHandler.js | export default (firebaseApp, handlers = []) => {
const firebase = firebaseApp;
const actions = handlers.reduce((acc, handler) => {
const handlerActions = handler.mapActionsToApi();
return { ...acc, ...handlerActions };
}, {});
return (action, next) => {
const { type } = action;
return actions[... | JavaScript | 0 | @@ -74,17 +74,16 @@
aseApp;%0A
-%0A
const
@@ -234,17 +234,16 @@
%7D, %7B%7D);%0A
-%0A
return
|
517f56c10c4b9647ca28422f95b5d234f66bf70f | tidy up fast wear/use | src/modules/profile/backpack/fastEvent.js | src/modules/profile/backpack/fastEvent.js | import equipItem from '../../ajax/equipItem';
import hasClass from '../../common/hasClass';
import partial from '../../common/partial';
import { sendEvent } from '../../support/fshGa';
import setInnerHtml from '../../dom/setInnerHtml';
import setText from '../../dom/setText';
import useItem from '../../ajax/useItem';
... | JavaScript | 0 | @@ -1020,16 +1020,33 @@
arget);%0A
+ target.blur();%0A
target
@@ -1070,16 +1070,22 @@
tAction
+fshBl
fshSpinn
|
3f85afa447ca721e30ec5de5f8414a5cc09030d0 | Fix spec flakiness | spec/support/assets/javascripts/ajax_caller.js | spec/support/assets/javascripts/ajax_caller.js | $(function() {
$.get('/test/ajax_flash');
$('<span>Page loaded</span>').appendTo('body');
});
| JavaScript | 0.000001 | @@ -34,19 +34,33 @@
x_flash'
-);%0A
+, function() %7B%0A
$('%3Csp
@@ -101,12 +101,18 @@
body');%0A
+ %7D);%0A
%7D);%0A
|
5b85c0a689216319d7e6a70625c8d64dbdf0854c | add empty-option test check | specs/unit/patterns/behavioral/command.spec.js | specs/unit/patterns/behavioral/command.spec.js | /* globals expect, beforeEach, it, describe, jasmine */
import commandBuilder from '../../../../src/patterns/behavioral/command.js';
describe('command', function() {
var someMethodSpy;
var Command;
var command;
beforeEach(function() {
someMethodSpy = jasmine.createSpy('someMethod');
Command = commandBu... | JavaScript | 0.000002 | @@ -474,16 +474,271 @@
;%0A %7D);%0A
+ it('should allow empty options', function() %7B%0A var emptyOptions = undefined;%0A var Command = commandBuilder(emptyOptions).build();%0A var command = new Command();%0A var result = command.execute('test');%0A expect(result).toBeUndefined();%0A %7D);%0A
it(... |
924b1062c176a93a228ac6711607d47728520b23 | implement get user by name | src/rest/employees/employeesController.js | src/rest/employees/employeesController.js | 'use strict';
/*
* Controller to handle all Employees related calls
*/
// ** global includes
var log = require('nodelog')();
var errorHandler = require('../errorHandler.js');
var endpoints = require('./endpoints.js');
// ** connection to persistence and database
var employeeDB = require('./../../persistence/employ... | JavaScript | 0.000006 | @@ -643,32 +643,33 @@
().then(function
+
(employees) %7B%0A
@@ -774,32 +774,33 @@
forEach(function
+
(employee) %7B%0A
@@ -923,32 +923,33 @@
).catch(function
+
(dbError) %7B%0A
@@ -1270,20 +1270,27 @@
Employee
+s
By
-Id
+UserName
(req, re
@@ -1296,32 +1296,159 @@
es) %7B%0A try %7B%0A
+ ... |
496c7b3c552a712d4d0a7ea3d0b60f3e603e7c0b | handle the error from communication with LINE server | src/service/LINE/middleware/replyAgent.js | src/service/LINE/middleware/replyAgent.js | module.exports = () => {
return async (ctx, next) => {
await next()
const events = ctx.state.outgoingEvents
const client = ctx.clients.LINE
const results = await Promise.all(
events.map(async e => {
if (e.event === 'whoami') {
const userProfile = await client.getProfile(e.use... | JavaScript | 0 | @@ -584,30 +584,681 @@
-switch (e.type) %7B%0A
+return replyUserAgent(client, e)%0A %7D)%0A )%0A%0A ctx.state.serviceResponses = results%0A ctx.body = %7B%7D%0A %7D%0A%7D%0A%0A/**%0A * To handle the communication with LINE Message API server%0A * @param %7BClient%7D client - Client object of LI... |
72daede1c889c551640aa81517cb0efc513705fb | Handle invalid directories hash | lib/utils/load-package-defaults.js | lib/utils/load-package-defaults.js |
module.exports = loadPackageDefaults
var path = require("path")
, log = require("./log")
, find = require("./find")
, asyncMap = require("./async-map")
, npm = require("../../npm")
, fs = require("./graceful-fs")
function loadPackageDefaults (pkg, pkgDir, cb) {
if (!pkg) return cb(new Error("no package t... | JavaScript | 0.000041 | @@ -2162,24 +2162,232 @@
(pkg, cb) %7B%0A
+ if (pkg.directories && typeof pkg.directories !== %22object%22%0A %7C%7C Array.isArray(pkg.directories)) %7B%0A log.warn(pkg.directories, pkg._id + %22: invalid 'directories' field%22)%0A delete pkg.directories%0A %7D%0A
var dirs =
|
88b52e9c01733e43c17a0c5d2e112c0283a11096 | Correct capitalization | src/utilities/__tests__/buildASTSchema.js | src/utilities/__tests__/buildASTSchema.js | /**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import { expe... | JavaScript | 0.000233 | @@ -685,19 +685,19 @@
schema
-ast
+AST
%0A * into
|
d38b87d46fe854328238b58cf0380acc7a0944a5 | Return to linear when parsing. | src/client/app/services/RequirementsService.js | src/client/app/services/RequirementsService.js | /*globals angular, console */
/**
* Created by pmeijer on 10/6/2014.
*/
angular.module('RequirementsApp').service('RequirementsService', function ($q, $http, constants) {
'use strict';
var self = this,
baseUrl = constants.baseUrl;
console.log('RequirementsService');
// Requirement functions
... | JavaScript | 0.000154 | @@ -7233,32 +7233,105 @@
%7D%0A %7D%0A
+ if (key === 'function') %7B%0A return 'Linear';%0A %7D%0A
return v
|
1debe98fa3f195b5f9a9df5b1e89c44745e47010 | set focus back to last element | client-vendor/after-body/jquery.floatbox/jquery.floatbox.js | client-vendor/after-body/jquery.floatbox/jquery.floatbox.js | /*
* Author: CM
*/
(function($) {
var ieMobile = /IEMobile/.test(navigator.userAgent);
var defaults = {
closable: true,
fullscreen: false,
ieMobile: ieMobile
};
$.floatbox = function(options) {
this.options = $.extend({}, defaults, options || {});
};
var $viewport = null;
var backupScrollTop = null;... | JavaScript | 0.000001 | @@ -313,16 +313,48 @@
= null;
+%0A%09var lastFocusedElement = null;
%0A%0A%09$(doc
@@ -1167,16 +1167,30 @@
iewport%22
+ tabindex=%22-1%22
/%3E');%0A%09%09
@@ -1550,24 +1550,72 @@
-body%22/%3E');%0A
+%09%09%09lastFocusedElement = document.activeElement;%0A
%09%09%09if (this.
@@ -2973,24 +2973,55 @@
('active');%0... |
2dc8e42e285d0e8971e2448c2abec141fa5ff0de | Add bootstrap classes to typeahead input | src/components/Tickets/ToggleProjects/index.js | src/components/Tickets/ToggleProjects/index.js | import * as UserActions from '../../../actions/user';
import * as TicketsActions from '../../../actions/tickets';
import Projects from './Projects';
import React, { Component } from 'react';
import classnames from 'classnames';
import sortBy from 'sort-by';
import { connect } from 'react-redux';
class ToggleProjects e... | JavaScript | 0.000001 | @@ -2202,32 +2202,73 @@
o' %7D%7D%0A %3E%0A
+ %3Cdiv className=%22form-group%22%3E%0A
%3Cinput
@@ -2268,16 +2268,18 @@
%3Cinput%0A
+
@@ -2297,29 +2297,24 @@
me=%22
-column-filter-input%22%0A
+form-control%22%0A
@@ -2333,16 +2333,18 @@
=%22text%22%0A
+
@@... |
795bb62bc4ed13f9d37bd575295b0d3518f1010a | Add templates to props | src/components/Tos/ViewTos/ViewTosContainer.js | src/components/Tos/ViewTos/ViewTosContainer.js | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { push } from 'react-router-redux';
import { displayMessage } from '../../../utils/helpers';
import { setNavigationVisibility } from '../../Navigation/reducer';
import {
changeStatus,
clearTOS,
editMetaData,
fetchTOS,
... | JavaScript | 0 | @@ -2619,16 +2619,51 @@
ectedTOS
+,%0A templates: state.ui.templates
%0A %7D;%0A%7D;
|
5b4db728ecfdaddfb93f1a2dd4830b058b6b45a7 | Fix bug which stopped users from submitting decimal values in number fields | src/components/elements/inputs/number-input.js | src/components/elements/inputs/number-input.js | import React from 'react'
import styles from './input-styles'
export default ({ className, errors, onChange, onCommit, property, value }) => (
<input
className={`${className} ${styles.input} ct-number-input`}
data-tip={errors}
disabled={property.disabled}
id={property.id}
onBlur={() => onCommit()... | JavaScript | 0.000001 | @@ -361,16 +361,8 @@
alue
-AsNumber
)%7D%0A
|
fa88185dee6cc18f74bc84dad4a5e4dae0eb7c62 | Include the current power level in the selector | src/components/views/elements/PowerSelector.js | src/components/views/elements/PowerSelector.js | /*
Copyright 2015, 2016 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, sof... | JavaScript | 0 | @@ -2362,16 +2362,39 @@
maxValue
+ %7C%7C l == newProps.value
;%0A
@@ -4421,32 +4421,39 @@
value=%7B
+String(
this.state.custo
@@ -4454,24 +4454,25 @@
.customValue
+)
%7D disabled=%7B
@@ -5326,16 +5326,23 @@
value=%7B
+String(
this.sta
@@ -5355,16 +5355,17 @@
ectValue
+)
%7D disabl
|
baf889583b4fd353b50be146e827123f1af1aa13 | requests query 1 | src/main/resources/public/world/worldScript.js | src/main/resources/public/world/worldScript.js |
var wwd = new WorldWind.WorldWindow("canvasOne");
wwd.addLayer(new WorldWind.BMNGOneImageLayer());
wwd.addLayer(new WorldWind.BingAerialLayer());
wwd.addLayer(new WorldWind.CompassLayer());
wwd.addLayer(new WorldWind.CoordinatesDisplayLayer(wwd));
wwd.addLayer(new WorldWind.ViewControlsLayer(wwd));
<!--ad... | JavaScript | 0.999995 | @@ -4696,16 +4696,40 @@
ons()%7B%0D%0A
+%09polygonLayer.clear();%0D%0A
%09const A
|
62e8b935e59b88c5e8bb764e2707c0e6aa9de9c7 | Add key to react components | src/main/webapp/components/BuilderDataTable.js | src/main/webapp/components/BuilderDataTable.js | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0.000001 | @@ -1531,16 +1531,17 @@
eps.map(
+(
datapoin
@@ -1541,20 +1541,25 @@
atapoint
+, idx)
=%3E
-
%0A
@@ -1564,16 +1564,26 @@
%3Ctr
+ key=%7Bidx%7D
%3E%0A
|
e5487535c756c23eabe3745d7d81556dd857aab8 | Include subsection articles in Articlefeed. | src/modules/articles/components/ArticleFeed.js | src/modules/articles/components/ArticleFeed.js | import React, { PureComponent } from "react";
import { graphql } from "react-apollo";
import gql from "graphql-tag";
import injectSheet from "react-jss";
import ArticleList from "./ArticleList";
import { ARTICLES_PER_PAGE } from "../constants";
const ArticleFeedQuery = gql`
query ArticleFeedQuery($section_id: ID, $... | JavaScript | 0 | @@ -415,16 +415,43 @@
: $limit
+, include_subsections: true
) %7B%0A
|
209889210b86bcd6b610657f13fe17c5e8db7251 | Remove unnececessary and wrong null check | src/skins/vector/views/organisms/MemberList.js | src/skins/vector/views/organisms/MemberList.js | /*
Copyright 2015 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.000007 | @@ -1062,76 +1062,8 @@
);%0A%0A
- if (!self.memberDict) %7B%0A return null;%0A %7D%0A%0A
|
2ae921a5e79df78612ffbc304e84f93046ef4a0b | fix nullable email | migrations/20151009115505_create_users.js | migrations/20151009115505_create_users.js | exports.up = function(knex, Promise) {
return knex.schema.createTable('users', function(t) {
t.increments('id').unsigned().primary();
t.dateTime('createdAt').notNull();
t.dateTime('updatedAt').nullable();
t.dateTime('deletedAt').nullable();
t.string('firstName').nullable();
t.string('lastName').nullable()... | JavaScript | 0.999997 | @@ -336,19 +336,16 @@
mail').n
-otN
ullable(
|
c0b184d05d842d4c62a441452a1e464c2c70f8ee | add spacing below the progress bar | src/pat/passwordstrength/passwordstrength.js | src/pat/passwordstrength/passwordstrength.js | import Base from "@patternslib/patternslib/src/core/base";
function loadScript(src) {
var s,
i,
head,
scripts = document.getElementsByTagName("script");
// Check script element doesn't already exist
for (i = 0; i < scripts.length; i++) {
if (scripts[i].src.indexOf(src) !== ... | JavaScript | 0.000001 | @@ -1252,17 +1252,17 @@
ogress m
-t
+y
-3%22%3E%3Cdiv
|
cf24b3efe180028684e871a85404d585c12a792a | Update defaults.js | cfg/defaults.js | cfg/defaults.js | /**
* Function that returns default values.
* Used because Object.assign does a shallow instead of a deep copy.
* Using [].push will add to the base array, so a require will alter
* the base array output.
*/
'use strict';
const path = require('path');
const srcPath = path.join(__dirname, '/../src');
const dfltPor... | JavaScript | 0.000001 | @@ -1427,17 +1427,16 @@
cPath: '
-.
/assets/
|
c1decadfef0cb13c3c53e357a738c3d692b3def9 | add "edit task" unordered list to index look up | client/index.js | client/index.js |
//Look up index for HTMLElements
var index = {
'folderList': '.row > .col-md-6:first-child > ul',
'taskList': '.row > .col-md-6:nth-child(2) > ul'
}
$(document).ready(function() {
$('#folderSave').on('click', function() {
//When clicking on 'Save Changes' in the new 'Folder' modal
$('#folderSave').on('clic... | JavaScript | 0 | @@ -144,16 +144,125 @@
2) %3E ul'
+,%0A 'editTaskBody': '#editTaskModal %3E .modal-dialog %3E .modal-content %3E .container-fluid %3E .row %3E .modal-body'
%0A%7D%0A%0A$(do
|
8ea6a9dd58e270624d456f7f3dd97e51318eb06c | Enable radar. | public/src/js/main.js | public/src/js/main.js | yepnope({
test: config.development,
yep: [
'./lib/mapbox.js/mapbox.uncompressed.css'
],
nope: [
'https://api.tiles.mapbox.com/mapbox.js/v2.1.1/mapbox.css'
]
});
yepnope({
test: config.development,
yep: [
'./lib/mapbox.js/mapbox.uncompressed.js',
'./lib/leafl... | JavaScript | 0.000002 | @@ -2856,24 +2856,25 @@
irective.js'
+,
%0A //'
@@ -2870,18 +2870,16 @@
-//
'./src/j
|
8326c5760aac986063790f7d30be5ec0291c9614 | converts boardCard to SFC | src/shared/components/boardCard/boardCard.js | src/shared/components/boardCard/boardCard.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './boardCard.css';
class BoardCard extends Component {
render() {
return (
<div className={styles.boardCard}>
<img className={styles.img} src={this.props.src} alt={this.props.alt} />
<span class... | JavaScript | 0.999999 | @@ -9,23 +9,8 @@
eact
-, %7B Component %7D
fro
@@ -20,16 +20,16 @@
react';%0A
+
import P
@@ -96,20 +96,20 @@
css';%0A%0Ac
-lass
+onst
BoardCa
@@ -115,58 +115,50 @@
ard
-extends Component %7B%0A render() %7B%0A return (%0A
+= (%7B%0A alt,%0A name,%0A role,%0A src%0A%7D) =%3E (%0A
%3Cd
@@ -190,20... |
bb6c3e9ba0ecfb8e7ee629251b908559f63aca04 | Update trigger-example.js | examples/trigger-example.js | examples/trigger-example.js | 'use strict'
const ROOT_DIR = __dirname + '/../'
const Sonus = require(ROOT_DIR + 'index.js')
const speech = require('@google-cloud/speech')({
projectId: 'streaming-speech-sample',
keyFilename: ROOT_DIR + 'keyfile.json'
})
const hotwords = [{ file: ROOT_DIR + 'resources/sonus.pmdl', hotword: 'sonus' }]
const lang... | JavaScript | 0.000001 | @@ -364,16 +364,26 @@
otwords,
+ language:
languag
@@ -1129,8 +1129,9 @@
otword%22)
+%0A
|
9ffe74e77c8ea4d41ebc003fd44fc7aa56528b9a | fix for new structure of tile.json and world.json | public/wetty/wetty.js | public/wetty/wetty.js | var term;
var socket = io(location.origin, {path: '/wetty/socket.io'})
var buf = '';
function Wetty(argv) {
this.argv_ = argv;
this.io = null;
this.pid_ = -1;
}
Wetty.prototype.run = function() {
this.io = this.argv_.io.push();
this.io.onVTKeystroke = this.sendString_.bind(this);
this.io.send... | JavaScript | 0.000002 | @@ -1782,19 +1782,22 @@
+ this.t
-ype
+errain
);%0A f
@@ -1955,19 +1955,22 @@
+ this.t
-ype
+errain
);%0A%7D%0A%0Afu
@@ -2098,18 +2098,19 @@
ata.size
-_x
+%5B0%5D
;%0A th
@@ -2130,18 +2130,19 @@
ata.size
-_y
+%5B1%5D
;%0A fo
@@ -2721,16 +2721,26 @@
/(%5Cd+)%5C/
+tile.json$
/;%0A v
|
097342d32ae7e45185d5f3b71d7e7d2bc437097b | update router | imports/startup/client/routes.js | imports/startup/client/routes.js | import React from 'react';
import {
Router,
Route,
IndexRoute,
browserHistory
} from 'react-router';
import { render } from 'react-dom';
import App from '../../ui/components/App.jsx';
import Join from '../../ui/components/Join.jsx';
import Login from '../../ui/components/Login.jsx';
import Dash... | JavaScript | 0.000001 | @@ -313,71 +313,14 @@
ort
-Dashboard from '../../ui/components/Dashboard.jsx';%0Aimport User
+NewPet
fro
@@ -346,13 +346,14 @@
nts/
-Users
+NewPet
.jsx
@@ -357,35 +357,39 @@
jsx';%0Aimport New
-Pet
+Vaccine
from '../../ui/
@@ -398,27 +398,31 @@
mponents/New
-Pet
+Vaccine
.jsx';%0A%0AMete
@@ -554,16 +554,17 @... |
d05d25d98c0b0d2d0a201e48b25c36a415ba168a | fix equality test | purelyjs/js/purely.js | purelyjs/js/purely.js | var purely = {
throwAssertionError: function(msg) {
// throws TypeError as there isn't a built-in assertion error type
throw TypeError('AssertionError: ' + msg);
/*
// Safer alternative?
throw {
name: 'TypeError',
message: 'AssertionEr... | JavaScript | 0.00011 | @@ -496,16 +496,17 @@
rr%5Bi%5D ==
+=
item) %7B
|
8d1c7db01fd14dca46cd60f972bf63f6ea82abb4 | remove unnecessary returns and callbacks | test/acceptance/js/helpers/DocstoreClient.js | test/acceptance/js/helpers/DocstoreClient.js | /* eslint-disable
camelcase,
handle-callback-err,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of... | JavaScript | 0.000001 | @@ -30,400 +30,8 @@
se,%0A
- handle-callback-err,%0A no-unused-vars,%0A*/%0A// TODO: This file was created by bulk-decaffeinate.%0A// Fix any style issues and re-enable lint.%0A/*%0A * decaffeinate suggestions:%0A * DS102: Remove unnecessary code created because of implicit returns%0A * DS207: Consider shorter v... |
d2be55c45ef79c310bcadf698e2933bd852d07a7 | move demo backend to fly.io | docs/demo-src/main.js | docs/demo-src/main.js | var open = false
var websocketUrl = ''
if (location.protocol === 'https:') {
websocketUrl = 'wss://'
} else {
websocketUrl = 'ws://'
}
websocketUrl += 'asciidots-demo-backend.herokuapp.com'
const socket = new WebSocket(websocketUrl)
var hasSend = false
socket.onopen = function () {
open = true
setInterval... | JavaScript | 0 | @@ -35,128 +35,14 @@
= '
-'%0Aif (location.protocol === 'https:') %7B%0A websocketUrl = 'wss://'%0A%7D else %7B%0A websocketUrl = 'ws://'%0A%7D%0A%0AwebsocketUrl += '
+wss://
asci
@@ -51,21 +51,16 @@
ots-
-demo-
backend.
hero
@@ -59,21 +59,23 @@
end.
-herokuapp.com
+ajanse.me:10083
'%0A%0Ac
@@ -1692,117 +1692... |
0b67dc1afe8286e63cbbe8662a64abe81d179462 | Bring versions back | docs/gatsby-config.js | docs/gatsby-config.js | module.exports = {
pathPrefix: '/docs/apollo-server',
__experimentalThemes: [
{
resolve: 'gatsby-theme-apollo-docs',
options: {
root: __dirname,
subtitle: 'Apollo Server',
description: 'A guide to using Apollo Server',
githubRepo: 'apollographql/apollo-server',
... | JavaScript | 0 | @@ -314,19 +314,16 @@
%0A
- //
default
@@ -341,19 +341,16 @@
%0A
- //
version
@@ -361,19 +361,16 @@
%0A
- //
1: 'v
@@ -391,19 +391,16 @@
%0A
- //
%7D,%0A
|
d1c996a47449b3ae385c7c8867ffe7894dd87fc8 | Update search.min.js | docs/js/search.min.js | docs/js/search.min.js | /*!
* MyMoney - search.min.js v.1.1
* Copyright (C) 2017 MING-CHIEN LEE
*
* This program 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
* a... | JavaScript | 0.000001 | @@ -1,13 +1,10 @@
/*
-!
+*
%0A *
-
MyM
@@ -32,19 +32,16 @@
v.1.1%0A *
-
Copyrig
@@ -48,15 +48,15 @@
ht (
-C
+c
) 201
-7
+8
MIN
@@ -73,819 +73,134 @@
E%0A *
-
%0A *
-
This
-program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Publi... |
8823f7d522d11136f292c8b2e278089613a551c0 | update eln-plugin | eln/libs/elnPlugin.js | eln/libs/elnPlugin.js | export {
default
} from 'https://www.lactame.com/lib/eln-plugin/0.4.0/eln-plugin.min.js';
| JavaScript | 0 | @@ -65,9 +65,9 @@
n/0.
-4
+6
.0/e
|
8efb7a4e1bef73f89305663d2ada7c88d8d72101 | Update picker sample to stop propagation of onSetupItem event for better performance. | samples/PickerSample.js | samples/PickerSample.js | enyo.kind({
name: "onyx.sample.PickerSample",
kind: "FittableRows",
classes: "onyx onyx-sample",
handlers: {
onSelect: "itemSelected"
},
components: [
{content: "Default Picker", classes:"onyx-sample-divider"},
{kind: "onyx.PickerDecorator", components: [
{},
{kind: "onyx.Picker", components: [
{c... | JavaScript | 0 | @@ -3043,16 +3043,31 @@
index);%0A
+%09%09return true;%0A
%09%7D,%0A%09ite
|
82f0fe2e617b325bb23bc4dc12b2c540a2a9e053 | delete hits per page, and misc | assets/js/1995.js | assets/js/1995.js | const search = instantsearch({
indexName: 'index',
routing: true,
searchParameters: {
hitsPerPage: 6,
distinct: true,
},
searchClient: algoliasearch('IA90805VYI', '9e30d633e7ae5597b0ddb7744f621017'),
});
search.addWidget(
instantsearch.widgets.searchBox({
container: '#se... | JavaScript | 0 | @@ -28,130 +28,8 @@
h(%7B%0A
- indexName: 'index',%0A routing: true,%0A searchParameters: %7B%0A hitsPerPage: 6,%0A distinct: true,%0A %7D,%0A
@@ -107,16 +107,40 @@
1017'),%0A
+ indexName: 'index',%0A
%7D);%0A%0Asea
@@ -359,32 +359,414 @@
%7D,%0A %7D)%0A);%0A%0A
+/*%0Asearch.... |
121db4473265edbaf357d966b922b01a9f396483 | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
<<<<<<< HEAD
var AuthLogin = function(username, password, logintoken){
=======
var AuthDetails = function(username){
var authDetails ... | JavaScript | 0 | @@ -174,21 +174,8 @@
)%0A%7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
@@ -236,558 +236,8 @@
n)%7B%0A
-=======%0A var AuthDetails = function(username)%7B%0A%09%09var authDetails = new $.rest('Superdesk/User');%0A%09%09authDetails.resetData().xfilter('Name,Id,EMail').select(%7B name: username %7D).done(function(users... |
5119bf23f1fad098a298f6aff240e92cdd8d121e | Fix ajax submission. | assets/js/ajax.js | assets/js/ajax.js | uwdoem.ajax = (function() {
var defaultSuccessCallback = function() {};
var call = function(url, postVars, successCallback, doneFunction) {
var defaultPostVars = [];
var defaultDoneFunction = function(msg) {
try {
msg = JSON.parse(msg);
uwdoem.al... | JavaScript | 0 | @@ -1143,420 +1143,8 @@
%7D;%0A%0A
- //var AjaxSubmit = function (form, successCallback) %7B%0A //%0A // var formVars = $(form).serializeArray();%0A //%0A // var newVars = %7B%7D;%0A // for (var i = 0; i %3C formVars.length; i++) %7B%0A // newVars%5BformVars%5Bi%5D.name%5D = formVa... |
b92ac9903d93cf910144380958120e20e132dbcd | fix digit version in JS | quickapi/static/js/jquery/quickapi/2.0/jquery.quickapi.js | quickapi/static/js/jquery/quickapi/2.0/jquery.quickapi.js | /**
* jQuery QuickAPI plugin 0.1
*
* @author Grigory Kramaranko, 2014
* @license GNU General Public License 3 <http://www.gnu.org/licenses/>
*
*/
(function ($) {
/* Общая функция для работы с django-quickapi */
$.quickAPI = function(options) {
var options = options || new Object();
... | JavaScript | 0.000303 | @@ -27,11 +27,11 @@
gin
-0.1
+2.0
%0A *%0A
|
389184e745b5165aff566e9b2c1071117efde522 | update main.js | assets/js/main.js | assets/js/main.js | $(document).ready(function() {
$('.menubutton').click(function() {
$('nav.moblemenu').toggleClass('showmenu');
});
$('ul#navlist li a').click(function() {
$('nav.moblemenu').toggleClass('showmenu');
return false;
});
//init
$('#loadPage').load('pages/index... | JavaScript | 0.000001 | @@ -633,32 +633,79 @@
%7D);%0A %7D);%0A
+ document.title = pages + 'Gordon-tek';%0A
return f
|
a8c1e98ca66284b4512f644a7f0341083046bc93 | fix null | assets/js/main.js | assets/js/main.js |
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent... | JavaScript | 0.002248 | @@ -389,17 +389,34 @@
e('q');%0A
-%0A
+if(comment) %7B%0A
document
@@ -485,12 +485,14 @@
(comment));%0A
+%7D%0A
|
3a2bec787546ba8be91b1e1551ed42951de62c99 | add position | assets/js/main.js | assets/js/main.js | jQuery.expr[":"].Contains = jQuery.expr.createPseudo(function(arg) { //making case insensitive selector
return function( elem ) {
return jQuery(elem).text().indexOf(arg) >= 0;
};
});
var $container = $('#cardTable');
$container.masonry({
columnWidth: '.card',
itemSelector: '.card',
"gutter": 10
})... | JavaScript | 0.000206 | @@ -556,16 +556,83 @@
500,%0A
+position: %7B my: %22left+2%22, at: %22left bottom%22, collision: %22none%22 %7D,%0A
select
@@ -818,24 +818,21 @@
;%0A%09%09var
-position
+coord
= $(%22di
@@ -890,18 +890,16 @@
op - 75;
-%09%09
%0A%09%09body.
@@ -922,24 +922,21 @@
ollTop:
-position
+coord
%0A%09%09%7D);%0... |
04039eca0898a996092ea0562fa1b92ae29743b7 | Update message.js | events/message.js | events/message.js | const prefix = "/"
const version = require('../package.json').version;
const moment = require('moment-timezone');
module.exports = message => {
var d = new Date();
if (!message.content.startsWith(prefix)) return;
if (message.author.bot) return;
const client = message.client;
let args = message.content.spli... | JavaScript | 0.000001 | @@ -435,16 +435,119 @@
%22);%0D%0A%09%0D%0A
+if (client.user.presence%5B'status'%5D == 'dnd' && message.author.id !== '179443176279375872') return;%0D%0A%09%0D%0A
if (!com
@@ -719,29 +719,8 @@
(%60%0D%0A
- %3EMessage Event%3C%0D%0A
Comm
|
322c1985e83968feb0bf627b6e54d745b575a363 | Add end sentence mark | module1/scripts/01-prototype-inheritance.js | module1/scripts/01-prototype-inheritance.js | "use strict";
// Person has a name and can say something
// No reuse construction
(function() {
console.log('-------------------------Example on no reuse-------------------------');
// The speak function is written twice
var jack = {
name: 'Jack',
speak: function() {
console.l... | JavaScript | 1 | @@ -337,35 +337,41 @@
is ' + this.name
+ + '.'
);%0A
-
%7D%0A %7D;
@@ -483,32 +483,38 @@
is ' + this.name
+ + '.'
);%0A %7D%0A
@@ -917,32 +917,38 @@
is ' + this.name
+ + '.'
);%0A %7D%0A var
@@ -1478,32 +1478,38 @@
is ' + this.name
+ + '.'
);%0A %7D%0A
@@ -2011,32 +2011,38 ... |
82e84923e7afcd494d9c1f72ffb7a991fe1c6f68 | Disable fetching profile for now | app/components/app.js | app/components/app.js | import React from 'react';
import { connect } from 'react-redux';
import { clearNotices } from 'lib/actions/general';
import { doAuthWithPassword, parseAuthToken, getProfile } from 'lib/actions/auth';
import Layout from 'components/layout';
import LogInBox from 'components/log-in-box';
class App extends React.Compone... | JavaScript | 0 | @@ -724,16 +724,79 @@
%7B%0A
+ // FIXME: the token is always invalid for some reason%0A //
props.g
|
c8765b2cd4237051b4ca748e5802d6120a5f4ee6 | Add keys, fix `separator` prop name | src/rsg-components/Props/PropsRenderer.js | src/rsg-components/Props/PropsRenderer.js | import React, { PropTypes } from 'react';
import Code from 'rsg-components/Code';
import Markdown from 'rsg-components/Markdown';
import Group from 'react-group';
import { unquote, getType, showSpaces } from './util';
import s from './Props.css';
function renderRows(props) {
let rows = [];
for (let name in props) {... | JavaScript | 0 | @@ -1913,35 +1913,38 @@
lue%7D%3C/span%3E;%0A%09%7D%0A
-%09le
+%0A%09cons
t values = getTy
@@ -1982,24 +1982,36 @@
=%3E (%0A%09%09%3CCode
+ key=%7Bvalue%7D
%3E%7BshowSpaces
@@ -2032,33 +2032,32 @@
))%7D%3C/Code%3E%0A%09));%0A
-%0A
%09return (%0A%09%09%3Cspa
@@ -2247,19 +2247,22 @@
an%3E;%0A%09%7D%0A
-%09le
+%0A%... |
78275a646745a5f0b2450c162883f174c052d961 | update random/fingerprint-browser add comments. prep for deprecation | src/random/fingerprint-browser.js | src/random/fingerprint-browser.js | 'use strict'
const pad = (str, size) => (new Array(size + 1).join('0') + str).slice(-size)
const globalCount = (() => {
let count = 0
const window = window || global
for (let i in window) {
count++
}
return count
}())
const navi = navigator.mimeTypes.length + navigator.userAgent.length
const fingerp... | JavaScript | 0.00001 | @@ -1,8 +1,166 @@
+// https://github.com/therealklanni/browser-fingerprint (MIT)%0A// this module will be deprecated in this library. use actual module%0A// for use in the browser%0A%0A
'use str
@@ -264,17 +264,16 @@
Count =
-(
() =%3E %7B%0A
@@ -386,11 +386,295 @@
nt%0A%7D
-())
+%0A%0A// for testing purposes only... |
0be2f38403f902b2e118b444502971477e661518 | Make sure the kibana hawtio plugin is not disrupted by other plugins | insight/insight-kibana3/src/main/webapp/js/kibana3Plugin.js | insight/insight-kibana3/src/main/webapp/js/kibana3Plugin.js | var modules = [
'kibana.services',
'kibana.controllers',
'kibana.filters',
'kibana.directives',
'elasticjs.service',
'$strap.directives',
'kibana.panels',
'ngSanitize'
];
var pluginName = 'kibana3';
var kibana3TopLevel = "/kibana3";
_.each(config.modules, function(v) {
var script = "panels/" + v + "... | JavaScript | 0 | @@ -185,71 +185,8 @@
%5D;%0A%0A
-var pluginName = 'kibana3';%0Avar kibana3TopLevel = %22/kibana3%22;%0A%0A
_.ea
@@ -313,26 +313,25 @@
.module(
-pluginName
+'kibana3'
, module
@@ -1087,26 +1087,25 @@
egistry%5B
-pluginName
+'kibana3'
%5D = layo
@@ -1816,18 +1816,17 @@
ule(
-pluginName
+'kibana3'
);%0Am
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.