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 |
|---|---|---|---|---|---|---|---|
ecfbcd30a29cdd551775d3346b183ddd80371433 | Fix dataset button test | src/dataset/datasetselector.test.js | src/dataset/datasetselector.test.js | 'use strict';
/* global vl:true */
describe.skip('Directive: datasetSelector', function() {
// load the directive's module
beforeEach(module('vlui', function($provide) {
$provide.constant('Drop', function() {});
}));
var element,
scope;
beforeEach(module('vlui', function($provide) {
var mockDa... | JavaScript | 0.000008 | @@ -41,13 +41,8 @@
ribe
-.skip
('Di
@@ -977,266 +977,39 @@
ent.
-find('option').length).to.eql(3);%0A expect(element.find('option:first').attr('label')).to.eql(undefined);%0A expect(element.find('option:nth-child(2)').attr('label')).to.eql('foo');%0A expect(element.find('option:nth-child(3)').attr('label'))... |
0944be7b2818580bfb1a6e9f3d2d8959b9e3f515 | Fix comment, no functional change | lib/OpenLayers/Lang.js | lib/OpenLayers/Lang.js | /* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/BaseTypes.js
* @requires OpenLayers/Cons... | JavaScript | 0 | @@ -1423,17 +1423,17 @@
rameters
--
+:
%0A *
|
ec80d377e1b3a6934f0d8414e5673398d11e6770 | add M/R calculation of click graph measures | code/graph/clicks/measures.js | code/graph/clicks/measures.js | load('graph/measures.js')
buildMeasures(db.click_graph_nodes, db.click_graph_edges);
| JavaScript | 0 | @@ -1,86 +1,628 @@
-load('graph/measures.js')%0A%0AbuildMeasures(db.click_graph_nodes, db.click_graph_edges
+var map = function() %7B%0A%0A var sourceOccs = this.value.s_occs;%0A var targetOccs = this.value.t_occs;%0A var edgeOccs = this.value.occs;%0A%0A emit(new ObjectId, %7B%0A s: this._id.s,%0A ... |
f927a7ffddae15fbc8aaba9075b027cd855ef82a | Load fonts with class remove | pemFioi/fontsLoader-1.0.js | pemFioi/fontsLoader-1.0.js | (function () {
var importableFonts = function () {
var mp = window.modulesPath ? window.modulesPath : '../../modules';
return {
'fontawesome': {
check: '900 12px "Font Awesome 5 Free"',
src: mp+"/fonts/fontAwesome/css/all.css",
embed: mp+"/fonts/embed-fontawesome.c... | JavaScript | 0 | @@ -1252,16 +1252,31 @@
ath + '%22
+ class=%22remove%22
%3E');%0A%7D%0A%0A
|
2172779a30844a325995e266246226d74e61e28a | Add highlight to the hovered dropzone. | assets/src/edit-story/components/dropzone/index.js | assets/src/edit-story/components/dropzone/index.js | /**
* External dependencies
*/
import PropTypes from 'prop-types';
import styled from 'styled-components';
/**
* WordPress dependencies
*/
import { useRef, useLayoutEffect } from '@wordpress/element';
/**
* Internal dependencies
*/
import useDropZone from './useDropZone';
// @todo Adjust the style, currently a... | JavaScript | 0 | @@ -279,63 +279,8 @@
';%0A%0A
-// @todo Adjust the style, currently adding extra 4px.%0A
cons
@@ -332,16 +332,37 @@
nherit;%0A
+%09position: relative;%0A
%09$%7B ( %7B
@@ -382,16 +382,32 @@
n, theme
+, highlightWidth
%7D ) =%3E
@@ -432,71 +432,221 @@
%60%0A%09%09
-border-$%7B borderPosition %7D: 4px solid $%7... |
5c02b2dafecc5c9ac9af992dd1b708798b9ce2a1 | Remove route resolves from login/logout routes | awx/ui/client/src/shared/stateExtender.provider.js | awx/ui/client/src/shared/stateExtender.provider.js | export default function($stateProvider) {
this.$get = function() {
return {
getResolves: function(state){
var resolve = state.resolve || {},
routes = ["login", "logout", "socket"];
if(_.indexOf(routes, state.name)>-1){
return;
... | JavaScript | 0 | @@ -205,32 +205,24 @@
= %5B%22
-login%22, %22logout%22, %22socke
+signIn%22, %22signOu
t%22%5D;
|
ee70460ad0b4cc505a5f4b5fb26bbe4d3d4ce494 | fix webpack output publicPath | webpack.config.js | webpack.config.js | var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: './dist/',
filename: 'build.js'
},
module: {
rules: [{
test: /\.vue$/,
loader: 'vue-loader',
options: {
... | JavaScript | 0.000586 | @@ -173,18 +173,16 @@
cPath: '
-./
dist/',%0A
|
fbdcf4956d2081eacff9e816d286fdbbf4986191 | Enable sideEffects for css and less | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const sourceDirectory = path.resolve(__dirname, 'examples/src');
const ... | JavaScript | 0 | @@ -1631,16 +1631,43 @@
ader'%5D,%0A
+ sideEffects: true,%0A
%7D,
|
e0180d9947252b8d6b935fd36361c0f4845d1a85 | Rename the button | assets/src/edit-story/components/header/buttons.js | assets/src/edit-story/components/header/buttons.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 ... | JavaScript | 0.000014 | @@ -4211,16 +4211,23 @@
%7B__('
+Save &
Preview'
|
f3da278401f97e3fdc838f55a81a0e25f36fe643 | Add compatibility option to svg loader | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
var plugins = [];
var rules = [
{
test: /\.svg$/,
loader: 'svg-sprite-loader',
exclude: /fonts/,
}, {
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=600000&m... | JavaScript | 0 | @@ -137,19 +137,16 @@
ules = %5B
-%0A
%7B%0A te
@@ -184,32 +184,80 @@
sprite-loader',%0A
+ options: %7B%0A runtimeCompat: true%0A %7D,%0A
exclude: /fo
|
82cea6f028c088372bdcfea4ea52dea3dbf01cf0 | Modify webpack config for heroku | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
main: ['babel-polyfill', './lib/index.js'],
test: ['babel-polyfill', 'mocha!./test/index.js'],
},
output: {
path: path.join(__dirname, 'lib'),
filename: 'bundle.js',
publicPath: '/lib/'
},
module... | JavaScript | 0 | @@ -106,86 +106,13 @@
: %5B'
-babel-polyfill', './lib/index.js'%5D,%0A test: %5B'babel-polyfill', 'mocha!./test
+./lib
/ind
|
4b5248abeac6bddaeb83ce53bfff21b2e6df9072 | Add proxy | webpack.config.js | webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
module.exports = {
entry: {
vendor: './src/vendor/index.js',
mb: ['./src/mb/index.jsx', './src/mb/index.html']
},
output: {
filename: 'assets/js/[name].js',
chunkFi... | JavaScript | 0.000001 | @@ -608,16 +608,169 @@
: false%0A
+ %7D,%0A proxy: %7B%0A '/api': %7B%0A target: 'http://api.douban.com/v2',%0A pathRewrite: %7B'%5E/api' : ''%7D,%0A changeOrigin: true,%0A %7D%0A
%7D%0A
|
9979eaffa83898a35fe316e891577c3c95c8653a | Add ESLint config into Webpack to fail on syntax error | webpack.config.js | webpack.config.js | const ENV = process.env.NODE_ENV || 'development'
const TARGET = process.env.npm_lifecycle_event
require('dotenv').config({path: `.env.${ENV}`}) // Load .env
const webpack = require('webpack')
const path = require('path')
const merge = require('webpack-merge')
const HtmlwebpackPlugin = require('html-webpack-plugin')
c... | JavaScript | 0 | @@ -2245,16 +2245,81 @@
',%0A %7D,%0A
+ eslint: %7B%0A failOnWarning: true,%0A failOnError: true,%0A %7D,%0A
%7D%0A%0Alet w
@@ -2480,32 +2480,48 @@
merge(common, %7B%0A
+ bail: true,%0A
devtool: 'so
|
c32a794f5bf4a46e5a7ed4866584dfcb14fa263f | Use state | src/javascript/binary_japan/trade_japan/portfolio.js | src/javascript/binary_japan/trade_japan/portfolio.js | var PortfolioWS = require('../../binary/websocket_pages/user/account/portfolio/portfolio.init').PortfolioWS;
var JapanPortfolio = (function() {
var $portfolio;
var isPortfolioActive = false;
function init() {
if (isActive()) {
$('#tab_portfolio').removeClass('invisible');
}
var $container =... | JavaScript | 0.000003 | @@ -1,12 +1,68 @@
+var State = require('../../binary/base/storage').State;%0A
var Portfoli
@@ -1116,68 +1116,63 @@
urn
-/(jp%7Cmulti_barriers)_trading/i.test(window.location.pathname
+State.get('is_jp_trading') %7C%7C State.get('is_mb_trading'
);%0A
|
5bed369e383c31948b6dca574effa5d9f5682556 | change toolbar when calling | actor-sdk/sdk-web/src/components/Toolbar.react.js | actor-sdk/sdk-web/src/components/Toolbar.react.js | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component, PropTypes } from 'react';
import { Container } from 'flux/utils';
import classnames from 'classnames';
import { FormattedMessage } from 'react-intl';
import { escapeWithEmoji } from '../utils/EmojiUtils';
import ActivityActionC... | JavaScript | 0.000001 | @@ -289,16 +289,60 @@
iUtils';
+%0Aimport PeerUtils from '../utils/PeerUtils';
%0A%0Aimport
@@ -1062,25 +1062,24 @@
rentPeer();%0A
-%0A
return %7B
@@ -1288,16 +1288,128 @@
,%0A
+call: ToolbarSection.calculateCallState(thisPeer)%0A %7D;%0A %7D%0A%0A static calculateCallState(thisPeer) %7B%0A const... |
44d5ba2926d31694f4777a297690e7cbb46fabe3 | remove unnecessary code | src/js/popup/components/BookmarkTree/BookmarkTree.js | src/js/popup/components/BookmarkTree/BookmarkTree.js | // @flow
// @jsx createElement
import '../../../../css/popup/bookmark-tree.css'
import {PureComponent, createElement} from 'react'
import List from 'react-virtualized/dist/es/List'
import * as CST from '../../constants'
import type {BookmarkInfo, BookmarkTree as BookmarkTreeType} from '../../types'
import Mask from ... | JavaScript | 0.00013 | @@ -1871,85 +1871,52 @@
-// search-box and tree-header-box height%0A const listContainerElOffsetTop =
+const maxListHeight =%0A CST.MAX_HEIGHT -
thi
@@ -2118,77 +2118,8 @@
)%0A%0A
- const maxListHeight = CST.MAX_HEIGHT - listContainerElOffsetTop%0A%0A
|
00f0ab009c5b575585b584f75ed1534855c91b3b | add the polyfill to the entry point so that it gets built with webpack | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const merge = require('webpack-merge');
module.exports = (env) => {
const isDevBuild = !(env && env.prod);
const sharedConfig = () => ({
stats: { modules: false },
... | JavaScript | 0 | @@ -1016,16 +1016,34 @@
te.less'
+, 'babel-polyfill'
%5D %7D,%0A
|
a2e2582f75bdd8bbe9976c259a56c6f7e1d6844c | Fix bug when one score is 0 and model change event is not triggered | public/js/app.js | public/js/app.js | _.templateSettings = {
interpolate: /\{\{\=(.+?)\}\}/g,
evaluate: /\{\{(.+?)\}\}/g
};
var AnyGood = {};
AnyGood.Router = Backbone.Router.extend({
routes: {
"movies/:year/:name" : "showMovie",
"search/:term" : "searchMovie"
},
showMovie: function(year, name) {
var movieName = name.split('_').join... | JavaScript | 0 | @@ -992,24 +992,66 @@
ndefined) %7B%0A
+ if (ratings%5Bi%5D.score !== 0.0) %7B%0A
scor
@@ -1084,24 +1084,34 @@
%5Bi%5D.score);%0A
+ %7D%0A
%7D%0A
@@ -1515,16 +1515,44 @@
ating);%0A
+ this.trigger('change');%0A
%7D,%0A%0A
|
040ffd18f99a2a1f04dbaf00a44c46a46a58016b | fix bug | webpack.config.js | webpack.config.js | var vue = require('vue-loader')
var webpack = require("webpack")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
var cssLoader = ExtractTextPlugin.extract("style-loader", "css-loader")
module.exports = {
entry: {
app: './src/app.js'
},
output: {
path: './build',
publicPath: '/build/',... | JavaScript | 0.000003 | @@ -885,17 +885,16 @@
loader%22)
-/
%0A %7D
|
503275bbba3125c442a1fcd67192042d6da6cf04 | update webpack root to be more flexible | webpack.config.js | webpack.config.js | var path = require('path');
var webpack = require('webpack');
var EXAMPLES_DIR = path.resolve(process.cwd(), 'examples');
var WebpackErrorNotificationPlugin = require('webpack-error-notification');
module.exports = {
entry: {
basic: '/Users/matt/Programming/fancy-input/examples/basic/app'
},
output: {
f... | JavaScript | 0 | @@ -239,44 +239,8 @@
c: '
-/Users/matt/Programming/fancy-input/
exam
@@ -253,23 +253,74 @@
asic/app
+.js
'%0A %7D,%0A
+ resolve: %7B%0A root: path.join(__dirname),%0A%7D,%0A
output
|
e644f6fc722880d86897a8224f7cafccbe6f0703 | set inline source maps on dev | webpack.config.js | webpack.config.js | const path = require('path');
module.exports = {
entry: {
main: './src/js/chrome-options.js',
styles: './src/css/chrome-options.css'
},
output: {
filename: '[name].min.js',
path: path.resolve(__dirname, './dist')
},
devtool: 'inline-source-map',
module: {
rules: [
{
test: ... | JavaScript | 0.000001 | @@ -41,16 +41,32 @@
ports =
+(env, argv) =%3E (
%7B%0A entr
@@ -260,16 +260,53 @@
devtool:
+ %60$%7Bargv.mode === 'production' ? '' :
'inline
@@ -306,16 +306,18 @@
'inline-
+'%7D
source-m
@@ -318,17 +318,17 @@
urce-map
-'
+%60
,%0A modu
@@ -664,10 +664,11 @@
%5D%0A %7D%0A%7D
+)
;%0A
|
0d136d22f7fa435c631125491524a506b05c4fd2 | update dependencies | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
__dirname + '/public/js/jquery-3.1.0.js',
__dirname + '/public/js/jquery.ui.widget.js',
__dirname + '/public/js/jquery.knob.js',
__dirname + '/public/js/jquery.iframe-transport.js',
... | JavaScript | 0.000001 | @@ -406,24 +406,71 @@
tr.min.js',%0A
+ __dirname + '/public/js/socket.io.js',%0A
__di
@@ -581,24 +581,67 @@
upload.js',%0A
+ __dirname + '/public/js/remote.js'%0A
%5D,%0A%0A
|
8b6d3592866cc56f3fa5d8b9fa886a58d60cc01f | Use eval-source-maps for dev package. | webpack.config.js | webpack.config.js | const path = require('path');
const packagejson = require('./package.json');
const dashLibraryName = packagejson.name.replace(/-/g, '_');
module.exports = {
entry: {main: './src/index.js'},
output: {
path: path.resolve(__dirname, dashLibraryName),
filename: 'bundle.js',
library: dashLi... | JavaScript | 0 | @@ -150,16 +150,32 @@
ports =
+(env, argv) =%3E (
%7B%0A en
@@ -727,11 +727,88 @@
%0A %7D,%0A
-%7D
+ devtool: argv.mode === 'development' ? %22eval-source-map%22 : 'source-map'%0A%7D)
;%0A
|
89921711005d08d1b350a74f7fda924cf147d71b | Change build banner | webpack.config.js | webpack.config.js | 'use strict';
const webpack = require('webpack');
const pkg = require('./package.json');
const year = new Date().getFullYear();
const author = pkg.author.match(/[A-Za-z]+\s[A-Za-z]+/);
const banner = `${pkg.name} ${pkg.version} Copyright ${year} ${author}, ${pkg.license}`;
module.exports = {
entry: pkg.main,
tar... | JavaScript | 0 | @@ -208,16 +208,17 @@
g.name%7D
+v
$%7Bpkg.ve
@@ -223,17 +223,17 @@
version%7D
-
+%0A
Copyrigh
@@ -251,17 +251,56 @@
%7Bauthor%7D
-,
+ (github.com/JosephDavis)%0ALicensed under
$%7Bpkg.l
|
f266a337a26728f2ef9c341f8ea89a4c3ef73bca | fix circle CI error when using webpack | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const buildName = 'keen-explorer';
const minExt = (process.env.NODE_ENV === 'production' ? 'min.' : '');
const devModule = {
entry: {
'app': ['./client/js/app/app.js', './client/styles/base.less']
},
outpu... | JavaScript | 0.000001 | @@ -332,19 +332,16 @@
lename:
-%60$%7B
buildNam
@@ -345,22 +345,31 @@
Name
-%7D.$%7B
+ + '.' +
minExt
-%7Djs%60
+ + '.js'
,%0A
@@ -741,33 +741,33 @@
tPlugin.extract(
-%22
+'
style-loader%22, %22
@@ -758,36 +758,36 @@
style-loader
-%22, %22
+', '
css!less
%22)%0A %7D%0A
@@ -766,33 +766,33 @@
ader', ... |
9450fa77deb5899c8a77d5d48f2fb7b217c0c5da | Update publicPath again... | webpack.config.js | webpack.config.js | /* eslint-disable import/no-commonjs */
const fs = require('fs');
const path = require('path');
const process = require('process');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
cons... | JavaScript | 0 | @@ -1439,14 +1439,8 @@
ath:
- '/' +
dis
|
736900801c10c3025cf6fbbf45accf53f0332397 | update babel-loader config | webpack.config.js | webpack.config.js | var path = require("path");
var srcPath = path.resolve(__dirname, "./public/assets/zdr");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: {
index: path.resolve(srcPath, "./index"),
error_404: path.resolve(srcPath, "./common/error_404")
},
... | JavaScript | 0 | @@ -1013,16 +1013,113 @@
-loader%22
+,%0D%0A query: %7B%0D%0A presets: %5B%22react%22, %22es2015%22%5D,%0D%0A %7D
%0D%0A
|
8c5d701d9f88e4927e42a0143035e58587cd859f | Revert "Resolve src/ folder too" | webpack.config.js | webpack.config.js | const fs = require('fs');
const path = require('path');
// eslint-disable-next-line import/no-extraneous-dependencies
const webpack = require('webpack');
const nodeModules = {};
// This is to filter out node_modules as we don't want them
// to be made part of any bundles.
fs.readdirSync('node_modules')
.filter((x)... | JavaScript | 0 | @@ -1213,67 +1213,8 @@
- path.join(__dirname, 'src'),%0A path.resolve(__dirname,
'no
@@ -1224,17 +1224,16 @@
modules'
-)
,%0A %5D,
|
9be3bca2c890e752b0290ad55865e91f42dd9028 | fix webpack config did not work with the less files in the client js code | webpack.config.js | webpack.config.js | var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var node_modules_dir = __dirname + '/node_modules';
const PORT = 3000;
const SERVER_URL = 'http://localhost:' + PORT;
module.exports = {
devtool: '#eval-source-map',
entry: [
... | JavaScript | 0 | @@ -1384,16 +1384,40 @@
%7B
+%0A
fallbac
@@ -1438,46 +1438,41 @@
er',
- use: %5B'css-loader', 'less-loader'%5D %7D%0A
+%0A use: %5B%0A
@@ -1491,28 +1491,26 @@
-// %22style-
+ %7B
loader
-%22, %22
+: '
css-
@@ -1519,135 +1519,255 @@
ader
-?s... |
c3e617774b773bac1c8787fccb87861fb9c966e3 | Update config | webpack.config.js | webpack.config.js | var path = require('path')
var webpack = require('webpack')
var env = process.env.NODE_ENV
var baseConfig = {
entry: [
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/dist/'
},
plugins: [
new webpack.DefinePlugin({
__DEV__: env !==... | JavaScript | 0.000001 | @@ -343,16 +343,67 @@
ODE_ENV:
+ JSON.stringify(env),%0A 'process.env.NODE_ENV':
JSON.st
|
1bf488fd527011cdbe65bc24e0313fb0f9624f78 | Add devtool: 'eval' in webpack.config.js | webpack.config.js | webpack.config.js | const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const BUILD_DIR = path.resolve(__dirname, 'www');
const APP_DIR = path.resolve(__dirname, 'src');
const extractCSS = new ExtractTextPlugin('styles.css');
const con... | JavaScript | 0.000026 | @@ -1156,16 +1156,37 @@
%0A %5D,%0A
+ devtool: 'eval',%0A
%7D;%0A%0Amodu
|
8029527002e4fcc5182da6a25a688532e62ef991 | configure webpack for production | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: './client/index.html',
filename: 'index.html',
inject: '... | JavaScript | 0.000001 | @@ -731,302 +731,79 @@
ol:
-'inline-source-map',%0A // devServer: %7B%0A // historyApiFallback: true,%0A // hot: true,%0A // inline: true,%0A // port: 5000,%0A // proxy: %7B%0A // '/api/*': %7B%0A // target: 'http://localhost:8888',%0A // secure: false,%0A // changeOrigin: tr... |
aa21e7ffb03ee8d1bc82845b13a265f2019ee2c2 | update pagination | addon/components/ds-table-pagination/component.js | addon/components/ds-table-pagination/component.js | import Ember from 'ember';
import layout from './template';
const { Component, computed, observer } = Ember;
export default Component.extend({
layout,
count: 0,
currentPageNumber: 1,
skip: 0,
limit: 10,
gotoBackEnabled: computed.gt('currentPageNumber', 1),
gotoForwardEnabled: computed('skip'... | JavaScript | 0.000001 | @@ -1063,78 +1063,250 @@
-this.set('currentPageNumber', 1);%0A %7D,%0A%0A gotoPrevPage() %7B
+if (!this.get('gotoBackEnabled')) %7B%0A return;%0A %7D%0A%0A this.set('currentPageNumber', 1);%0A %7D,%0A%0A gotoPrevPage() %7B%0A if (!this.get... |
b0e247665ed52cb7eecd239febd86af55f30c48f | Fix bug. | web/src/js/components/Widget/Widgets/Notes/NotesWidgetComponent.js | web/src/js/components/Widget/Widgets/Notes/NotesWidgetComponent.js | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import WidgetSharedSpace from 'general/WidgetSharedSpace'
import EmptyWidgetMsg from '../../EmptyWidgetMsg'
import {List} from 'general/List'
import Note from './Note'
import AddNoteForm from './AddNoteForm'
import UpdateWidgetDa... | JavaScript | 0 | @@ -1832,16 +1832,12 @@
ate.
-bookmark
+note
s)%0A
|
30930d29f1f653d725e58ba89b5fcf091af6b61d | Add 'resolve' to webpack.config.js. | webpack.config.js | webpack.config.js | "use strict";
const webpack = require("webpack");
const path = require("path");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
context: path.resolve("./src"),
entry: {
vendor: [ "jquery" ],
nm: [ "./nm/index.js", "./nm/resource/index.less" ]
},
o... | JavaScript | 0 | @@ -1130,16 +1130,147 @@
%5D,%0A%0A
+ resolve: %7B%0A root: path.resolve(%22./src/%22),%0A alias: %7B%0A nju: path.resolve(%22./src/nju%22)%0A %7D%0A %7D,%0A%0A
devS
|
3c786cb4386e34eb6a8e9d04a6b71ed1e194cffd | Correct plugin order | webpack.config.js | webpack.config.js | const {resolve} = require('path');
const {
optimize: {ModuleConcatenationPlugin},
DefinePlugin,
HotModuleReplacementPlugin,
NamedModulesPlugin,
NoEmitOnErrorsPlugin,
} = require('webpack');
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
const CleanPlugin = require('clean-webpack-plugin');
... | JavaScript | 0.000001 | @@ -95,36 +95,28 @@
ugin,%0A
-Hot
+Named
Module
-Replacement
+s
Plugin,%0A
@@ -113,36 +113,44 @@
esPlugin,%0A
-Named
+Hot
Module
-s
+Replacement
Plugin,%0A No
@@ -2792,36 +2792,28 @@
new
-Hot
+Named
Module
-Replacement
+s
Plugin()
@@ -2824,36 +2824,44 @@
new
-Named
+Hot
Module
-s
+Replacem... |
14dfadfb652d621e9ef401715a88ffac60e5fe46 | fix running with mock data due to tideline's new need for global __DEV__ variable | webpack.config.js | webpack.config.js | var path = require('path');
var entry = (process.env.MOCK === 'true') ? './app/main.mock.js' : './app/main.js';
module.exports = {
entry: entry,
output: {
path: path.join(__dirname, '/dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{test: /\.js$/, loader: 'jsx-loader!envify-loader'},
... | JavaScript | 0.000005 | @@ -20,16 +20,50 @@
'path');
+%0Avar webpack = require('webpack');
%0A%0Avar en
@@ -1083,12 +1083,144 @@
%5D%0A %7D
+,%0A // tideline DEV env variable only needs to be true in tideline local dev%0A plugins: %5Bnew webpack.DefinePlugin(%7B__DEV__: false%7D)%5D
%0A%7D;%0A
|
ba6522f267fe9084974f85d16223ac5012e8326c | exit if there is no comments on page | pikabu_comment_scroll.user.js | pikabu_comment_scroll.user.js | // ==UserScript==
// @name pikabuScroll
// @description userscript for comment navigation
// @author Interface
// @license MIT
// @version 1.0
// @include *pikabu.ru*
// ==/UserScript==
(function (window, undefined) {
var w;
if (typeof unsafeWindow != undefined) {
w = unsafeWindow
} else {
... | JavaScript | 0.000001 | @@ -1744,24 +1744,74 @@
mentsDiv');%0A
+ if (!commentsDiv)%7B%0A return;%0A %7D;%0A
var cdOf
|
ce8864756613a758300950e70d521bf711e6d290 | Remove manifest.offline_enabled for Firefox, https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/offline_enabled#Browser_compatibility | webpack.config.js | webpack.config.js | const webpack = require('webpack')
const path = require('path')
const fileSystem = require('fs')
const env = require('./utils/env')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const Write... | JavaScript | 0.000015 | @@ -4479,32 +4479,148 @@
s%0A %7D%0A
+ if (process.env.TARGET_BROWSER === 'firefox') %7B%0A delete json.offline_enabled%0A %7D%0A
if (
|
61388160a6aaf0af55d43a414899cdba27fbdd22 | add stats to build | webpack.config.js | webpack.config.js | const { resolve } = require('path')
const webpack = require('webpack')
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
'babel-polyfill',
'./index.js'
],
output: {
filename: 'bundle.js',
path: resol... | JavaScript | 0.000003 | @@ -575,16 +575,166 @@
t:3000'%0A
+ %7D,%0A stats: %7B%0A assets: true,%0A assetsSort: %22field%22,%0A cached: true,%0A children: true,%0A chunks: false,%0A colors: true,%0A
%7D%0A
|
c38c563da6bf833a9ffdfae2c9e2f83a3f591c43 | Add define plugin | webpack.config.js | webpack.config.js | var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var dirApp = path.join(__dirname, 'app');
var dirAssets = path.join(__dirname, 'assets');
// Is the current build a development build
var IS_DEV = (process.env.NODE_ENV === 'dev');
module.exports = {... | JavaScript | 0.000001 | @@ -581,24 +581,99 @@
plugins: %5B%0A
+ new webpack.DefinePlugin(%7B%0A IS_DEV: IS_DEV%0A %7D),%0A%0A
new
|
ff9ffdab9b1b12c95472a7f517a742fc46af0c4f | Add `fadeTo` function to wrap `jquery.fadeTo`. | plotly/widgets/graphWidget.js | plotly/widgets/graphWidget.js | window.genUID = function() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return v.toString(16);
});
};
var IPYTHON_VERSION = '3';
require(["widgets/js/widget", "widgets/js/manager"], function (widget, ... | JavaScript | 0 | @@ -6234,16 +6234,331 @@
(this);%0A
+ %7D,%0A%0A /**%0A * Wrapper for jquery's %60fadeTo%60 function.%0A *%0A * @param message Contains the id we need to find the element.%0A */%0A fadeTo: function (message) %7B%0A var plot = $('#' + message.graphId);%0A ... |
7608ec04c4acf7655e1cd459565549988535abcb | refactor css | agir/events/components/EventSettings/GroupItem.js | agir/events/components/EventSettings/GroupItem.js | import PropTypes from "prop-types";
import React from "react";
import styled from "styled-components";
import style from "@agir/front/genericComponents/_variables.scss";
import Avatar from "@agir/front/genericComponents/Avatar";
import { RawFeatherIcon } from "@agir/front/genericComponents/FeatherIcon";
import Button ... | JavaScript | 0.997578 | @@ -971,34 +971,8 @@
rem;
-%0A margin-right: 0.5rem;
%0A%0A
|
cb690b7551fbe6760e2d8a8100644102d2f65970 | Resolve overlapping infoZone text bug | source/components/InfoZone.js | source/components/InfoZone.js | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
export default ({
showAdvanced, toggleAdvancedSection,
inputTouched, inputChanged,
infoAlternance, themeColours: {textColourOnWhite}
}) =>
<section className="info-zone">
{ !showAdvanced &&
<ReactCSSTransitionGroup
... | JavaScript | 0.000001 | @@ -489,24 +489,41 @@
utTouched &&
+ !inputChanged &&
%0A%09%09%09%09%3Cdiv ke
|
99b46f98048c8721f4d720039e6d2671bede1ee5 | fix larger button size | agir/front/components/allPages/TopBar/UserMenu.js | agir/front/components/allPages/TopBar/UserMenu.js | import PropTypes from "prop-types";
import React from "react";
import styled from "styled-components";
import style from "@agir/front/genericComponents/_variables.scss";
import Link from "@agir/front/app/Link";
import Avatar from "@agir/front/genericComponents/Avatar";
import BottomSheet from "@agir/front/genericCom... | JavaScript | 0.000007 | @@ -2131,16 +2131,100 @@
%7D%0A%60;%0A%0A
+const StyledButton = styled(Button)%60%0A width: 230px;%0A justify-content: center;%0A%60;%0A%0A
export c
@@ -2879,32 +2879,38 @@
%3C/p%3E%0A %3C
+Styled
Button%0A
@@ -3077,32 +3077,38 @@
res%0A %3C/
+Styled
Button%3E%0A
@@ -3102,32... |
5c94497e9bd58dac8a3b9471bcf74a81d4f76e46 | Refactor IE11 image label fix | app/assets/javascripts/modules/IE11ImageLabelFix.js | app/assets/javascripts/modules/IE11ImageLabelFix.js | define(["module"], function (module) {
"use strict";
function getInternetExplorerVersion() {
var rv = -1;
if (navigator.appName == "Microsoft Internet Explorer") {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})");
if (re.exec(ua) != null) rv = parseFloat(R... | JavaScript | 0 | @@ -99,282 +99,248 @@
-var rv = -1;%0A if (navigator.appName == %22Microsoft I
+// https://stackoverflow.com/questions/21825157/i
nternet
- E
+-e
xplorer
-%22) %7B
+-11-detection
%0A
-
var
-ua = navigator.userAgent;%0A var re = new RegExp(%22MSIE (%5B0-9%5D%7B1,%7D%5B%5C%5C.0-9%5D%7B0,%7D)%22);... |
e15a0b6180f2bb05d42ed06cb1d95c70aec149ba | fix categories sorting bug | src/factories/kkb/financeBarChar.js | src/factories/kkb/financeBarChar.js | /**
* Bar chart class factory
*/
(function() {
'use strict';
function FinanceBarChartFact(BarChartKKB, Utils) {
function FinanceBarChartKKB($scope) {
BarChartKKB.apply(this, [$scope]);
var _this = this;
var oldParse = _this.parseData;
_this.parseData... | JavaScript | 0 | @@ -360,24 +360,47 @@
seData(d) %7B%0A
+ var i;%0A
@@ -483,16 +483,52 @@
return;
+%0A%0A // Calculate total
%0A
@@ -564,36 +564,32 @@
for (
-var
i = 0; i %3C $scop
@@ -718,32 +718,154 @@
es%5B0%5D.data%5Bi%5D.y;
+%0A%0A // Sort date in... |
87a097b0e120bef4f8d16e7eadb941ff8af8a841 | Fix markup | app/assets/javascripts/dashboard/current_tasks.js | app/assets/javascripts/dashboard/current_tasks.js | /* global dropdownSelector I18n animateSpinner PerfectSb InfiniteScroll */
/* eslint-disable no-param-reassign */
var DasboardCurrentTasksWidget = (function() {
var sortFilter = '.curent-tasks-filters .sort-filter';
var viewFilter = '.curent-tasks-filters .view-filter';
var projectFilter = '.curent-tasks-filters... | JavaScript | 0.000174 | @@ -2434,35 +2434,32 @@
xperimentFilter)
- %7C%7C
%0A drop
@@ -2445,32 +2445,35 @@
lter)%0A
+ %7C%7C
dropdownSelecto
@@ -2502,12 +2502,10 @@
ter)
- %7C%7C
%0A
+
@@ -2502,32 +2502,34 @@
ter)%0A
+%7C%7C
dropdownSelecto
@@ -2569,16 +2569,17 @@
mpleted'
+;
%0A %7D%0A%0A
... |
982e09e7a6d52af64b9a93ef17f1b4fae286cdad | Update eval inspect depth | commands/eval.js | commands/eval.js | const config = require('../userconfig/config.json'); // Import configuration
const util = require('util'); // For turning objects etc to strings
exports.main = function(selfbot, msg, msgArray, chalk) { // Export command function
var command = "eval";
if(!config.eval) {msg.edit('Eval has been disabled in the co... | JavaScript | 0 | @@ -1417,16 +1417,28 @@
nspect(o
+, %7Bdepth: 0%7D
); // Tu
@@ -2538,16 +2538,17 @@
eholder%0A
+%0A
if(m
@@ -3070,24 +3070,29 @@
ually%0A %7D%0A
+ %0A
const cb
@@ -3239,16 +3239,28 @@
t(output
+, %7Bdepth: 0%7D
); // In
|
11c40fc0bda040b0ff33a5d68ea241d891f4926b | Remove test author value in module generator | commands/make.js | commands/make.js | /* global __dirname */
(function() {
'use strict';
module.exports = function(config) {
var fs = require('fs-extra'),
path = require('path'),
glob = require('glob');
require('../script/wee.view');
var error = false,
message = false,
templatePath = __dirname + '/../templates/',
sourcePath = pat... | JavaScript | 0 | @@ -1544,20 +1544,16 @@
uthor: '
-test
',%0A%09%09%09%09%09
|
4681b941631f762af9b5947f605596350511b23c | add mkdir -f | pluginManager/pluginLoader.js | pluginManager/pluginLoader.js | var fs = require('fs');
var async = require('async');
(function() {
'use strict';
var pluginManager = {};
var root = this;
var PLUGINDIR = process.env.HOME + '/.friday/plugins';
//var PLUGINDIR = process.env.HOME ;
pluginManager.upgrade = function() {};
pluginManager.load = function() {
... | JavaScript | 0.000006 | @@ -319,592 +319,507 @@
- fs.exists(PLUGINDIR, function(exists) %7B%0A if (exists) %7B%0A async.waterfall(%5B
+%7D;%0A%0A pluginManager.validate = function() %7B%7D;%0A%0A // Node.js%0A if (typeof module !== 'undefined' && module.exports) %7B%0A module.exports = plugin... |
c93216bf98dc39313dcc32566dc91eab08639eb7 | Remove verbose | commands/tmdb.js | commands/tmdb.js | const Command = require('../structures/command.js');
const utils = require('../utils.js');
const request = require('request');
const search_urlbase = 'https://api.themoviedb.org/3/search/multi?api_key={0}&language={1}&query={2}&page=1&include_adult={3}';
const more_urlbase = 'https://www.themoviedb.org/{4}/{2}';
co... | JavaScript | 0.999999 | @@ -1696,45 +1696,8 @@
y);%0A
- console.log(json);%0A
|
e0cc54c3d79944a7bdeb6909cccc0e9c7f3c7869 | fix regression on kafka:wait waiting status | commands/wait.js | commands/wait.js | var cli = require('heroku-cli-util');
var co = require('co');
var sleep = require('co-sleep');
var HerokuKafkaClusters = require('./clusters.js').HerokuKafkaClusters;
var Spinner = require('node-spinner');
function* kafkaWait (context, heroku) {
var finished = false;
var s = Spinner();
while (!finished) {
va... | JavaScript | 0.000001 | @@ -465,16 +465,17 @@
'waiting
+?
'%5D) %7B%0A
|
ef589d1d8abbbcd5cd122828f897c203d883c233 | Expand sample to 10,000 items | frameworks/desktop/tests/views/list/ui_outline.js | frameworks/desktop/tests/views/list/ui_outline.js | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// portions copyright @2009 Apple, Inc.
// License: Licened under MIT license (see license.js)
// =======... | JavaScript | 0.999997 | @@ -617,17 +617,18 @@
length:
-2
+10
,%0A %0A t
|
2205a87085fe2bb4b074294cb9dc001edc314733 | Update choprifier.js | production_site/choprifier.js | production_site/choprifier.js | var Data = {
starts : [
"Experiential truth ",
"Coffee ",
"Absinthe ",
"The physical world ",
"Non-judgment ",
"Parsimony ",
"Clarity ",
"Heterodoxity ",
"Erudition ",
"Primacy ",
"Apostasy ",
"Infinity ",
"Calamity ",
"Honesty ",
"Cosmology ",
"Apertur... | JavaScript | 0 | @@ -58,24 +58,41 @@
%22Coffee %22,%0A
+ %22Espresso %22,%0A
%22Absinth
|
91391c4fd15cbbaf36132414359c4d2dcfb2edc3 | Remove messages prop from Wrapper | packages/fyndiq-component-message/src/message-wrapper.js | packages/fyndiq-component-message/src/message-wrapper.js | import React from 'react'
import PropTypes from 'prop-types'
import MessagePortal from './message-portal'
import styles from '../message.css'
class MessageWrapper extends React.Component {
static propTypes = {
messages: PropTypes.arrayOf(PropTypes.element),
}
static defaultProps = {
messages: [],
}
... | JavaScript | 0 | @@ -22,43 +22,8 @@
act'
-%0Aimport PropTypes from 'prop-types'
%0A%0Aim
@@ -153,137 +153,8 @@
t %7B%0A
- static propTypes = %7B%0A messages: PropTypes.arrayOf(PropTypes.element),%0A %7D%0A%0A static defaultProps = %7B%0A messages: %5B%5D,%0A %7D%0A%0A
//
@@ -493,27 +493,10 @@
es:
-this.props.messages
... |
a0b8c0ef841d9a8ab4aeec2f628d5e2eb9fd16e8 | Remove ___node from input names (#929) | packages/gatsby/lib/schema/infer-graphql-input-fields.js | packages/gatsby/lib/schema/infer-graphql-input-fields.js | // @flow
const {
GraphQLInputObjectType,
GraphQLBoolean,
GraphQLString,
GraphQLFloat,
GraphQLInt,
GraphQLList,
GraphQLEnumType,
GraphQLNonNull,
} = require(`graphql`)
const _ = require(`lodash`)
const typeOf = require(`type-of`)
const createTypeName = require(`./create-type-name`)
const {
extractFiel... | JavaScript | 0.000017 | @@ -1145,24 +1145,26 @@
ase %60array%60:
+ %7B
%0A const
@@ -2287,32 +2287,38 @@
%7D),%0A %7D%0A
+ %7D%0A
case %60boolea
@@ -2312,32 +2312,34 @@
case %60boolean%60:
+ %7B
%0A return %7B%0A
@@ -2543,32 +2543,38 @@
%7D),%0A %7D%0A
+ %7D%0A
case %60string
@@ -2567,32 +256... |
5d227ca048ac0a791cb35ae5eeda2b01105ea762 | check for same porigin as well | common/navbar.js | common/navbar.js | (function() {
function hasClass(ele, className) {
var className = " " + className + " ";
if ((" " + ele.className + " ").replace(/[\n\t]/g, " ").indexOf(className) > -1) {
return true;
}
return false;
}
function getNextSibling(elem, selector) {
var sibling = elem.nextE... | JavaScript | 0 | @@ -3270,32 +3270,252 @@
%7D
+%0A path = $window.location.host + path;%0A%0A // parses the url into a location object%0A var eleUrl = document.createElement('a');%0A eleUrl.href = url;
%0A%0A
@@ -3736,19 +3736,27 ... |
9d41a410a38549f9d07e550b8cda7460b423cb6b | Fix uninformative error message when uploading unsupported image files | app/javascript/flavours/glitch/util/resize_image.js | app/javascript/flavours/glitch/util/resize_image.js | import EXIF from 'exif-js';
const MAX_IMAGE_PIXELS = 1638400; // 1280x1280px
const _browser_quirks = {};
// Some browsers will automatically draw images respecting their EXIF orientation
// while others won't, and the safest way to detect that is to examine how it
// is done on a known image.
// See https://github.c... | JavaScript | 0 | @@ -4589,32 +4589,24 @@
ise((resolve
-, reject
) =%3E %7B%0A if
@@ -4955,29 +4955,47 @@
e));%0A %7D).catch(
-reject
+() =%3E resolve(inputFile)
);%0A%7D);%0A
|
20c9c47697ec5727e052d9a4429bdee4828eef2e | change in where the slash is | lib/fckeditor_tiki/plugins/tikilink/fckplugin.js | lib/fckeditor_tiki/plugins/tikilink/fckplugin.js | /*
* FCKPlugin.js
* ------------
* This is a generic file which is needed for plugins that are developed
* for FCKEditor. With the below statements that toolbar is created and
* several options are being activated.
*
* See the online documentation for more information:
* http://wiki.fckeditor.n... | JavaScript | 0.000249 | @@ -703,17 +703,16 @@
Root + '
-/
pics/ico
|
49afc39e9d4523a637fac258de02f3cd2887a06d | Fix if it is an empty string, put null to city. #260 | app/scripts/Widget/plugins/PressureWidget/Widget.js | app/scripts/Widget/plugins/PressureWidget/Widget.js | import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import classnames from 'classnames'
import * as Paths from '../../../Paths'
import { OverlayWidget } from '../../components'
import { PressureForm, TargetList, PressureCount } from './components'
import { TellAFriend } from '../.... | JavaScript | 0.999999 | @@ -1198,16 +1198,18 @@
city:
+!!
data.cit
@@ -1209,16 +1209,35 @@
ata.city
+ ? data.city : null
%0A %7D
|
c75036fbb1174b2e9d75db6dd6d978c288d7e5a1 | Write script with correct name | src/js/builtins/postprocess_disk.js | src/js/builtins/postprocess_disk.js | // -*- indent-tabs-mode: nil; tab-width: 2; -*-
// Copyright (C) 2014 Colin Walters <walters@verbum.org>
//
// This library 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 2 of the L... | JavaScript | 0.000001 | @@ -3833,27 +3833,29 @@
sr/sbin/' +
-uni
+scrip
t);%0A
|
70dc4b4a6b99bbdf2cf6f61e276468bd7a47f4b2 | change error to bad request | src/services/helpers/scopePermissions/hooks/index.js | src/services/helpers/scopePermissions/hooks/index.js | const { Forbidden, BadRequest } = require('@feathersjs/errors');
const resolveScope = (context) => {
try {
const scopeName = context.path.match(/^\/?(\w+)\//)[1];
const { scopeId } = context.params.route;
return { scopeName, scopeId };
} catch (e) {
throw new Error('scope route do not match scope Requiments... | JavaScript | 0 | @@ -269,13 +269,18 @@
new
-Error
+BadRequest
('sc
|
3fc13c51e1c341392c879076f36d4a59ec74b919 | fix stub authenticator | frontend/app/authenticators/stub-authenticator.js | frontend/app/authenticators/stub-authenticator.js | import Ember from 'ember';
import Base from 'ember-simple-auth/authenticators/base';
export default Base.extend({
restore(data) {
return Ember.RSVP.resolve(data);
},
authenticate(options) {
return new Ember.RSVP.Promise((resolve) => {
const idToken = window.stubbedJwt;
const state = options.a... | JavaScript | 0.000001 | @@ -183,16 +183,19 @@
nticate(
+_,
options)
@@ -323,10 +323,9 @@
auth
-.p
+P
aram
|
3e922462d57d24d98e5146504a37f1c7a6cc4d08 | Set showArraySize to false by default | extension/src/json-viewer/options/defaults.js | extension/src/json-viewer/options/defaults.js | module.exports = {
theme: "default",
addons: {
prependHeader: true,
maxJsonSize: 400,
alwaysFold: false,
alwaysRenderAllContent: false,
sortKeys: false,
clickableUrls: true,
openLinksInNewWindow: true,
autoHighlight: true
},
structure: {
readOnly: true,
lineNumbers: true,... | JavaScript | 0.000001 | @@ -419,19 +419,21 @@
raySize:
-tru
+ fals
e%0A %7D,%0A
|
910be8a2c69c461f1a8ef1be91e23b7c7d5964a4 | Update choprifier.js | production_site/choprifier.js | production_site/choprifier.js | var Data = {
starts : [
"Experiential truth ",
"Coffee ",
"Geopolitics ",
"Javascript ",
"Glory ",
"Espresso ",
"Heuristic thought ",
"Absinthe ",
"Surrogate birth ",
"Rishathra ",
"Irradiation ",
"Megalomania ",
"Solar radiation ",
"Autosomy ",
"Practical ... | JavaScript | 0 | @@ -171,24 +171,50 @@
Absinthe %22,%0A
+ %22Autonomous solace %22,%0A
%22Surroga
|
2907e26b88806d235031a08fb366aaef2edf89b2 | add inject annotation to url resolver service | app/scripts/superdesk/api/url-resolver-service.js | app/scripts/superdesk/api/url-resolver-service.js | define([], function() {
'use strict';
function URLResolver($http, $q, config) {
var links;
this.get = function(title) {
return getResourceLinks().then(function() {
return links[title] ? links[title] : $q.reject(title);
});
};
/**
... | JavaScript | 0.000001 | @@ -36,16 +36,69 @@
rict';%0A%0A
+ URLResolver.$inject = %5B'$http', '$q', 'config'%5D;%0A
func
|
0be80997f11951985797e767c150545e3180f761 | fix breakpoints `enabled` detection | src/components/core/breakpoints/setBreakpoint.js | src/components/core/breakpoints/setBreakpoint.js | import { extend } from '../../../utils/utils';
export default function setBreakpoint() {
const swiper = this;
const { activeIndex, initialized, loopedSlides = 0, params, $el } = swiper;
const breakpoints = params.breakpoints;
if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0)) return;
... | JavaScript | 0 | @@ -1499,54 +1499,8 @@
led;
-%0A const isEnabled = breakpointParams.enabled;
%0A%0A
@@ -2328,16 +2328,60 @@
rams);%0A%0A
+ const isEnabled = swiper.params.enabled;%0A%0A
extend
|
761233c473efef1259e6c8c5c969d4d609877024 | add public switch | src/components/views/dialogs/CreateRoomDialog.js | src/components/views/dialogs/CreateRoomDialog.js | /*
Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
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... | JavaScript | 0.000001 | @@ -1097,16 +1097,45 @@
eturn %7B%0A
+ isPublic: false,%0A
@@ -1144,24 +1144,24 @@
name: %22%22,%0A
-
@@ -1382,16 +1382,254 @@
e.name;%0A
+ if (this.state.isPublic) %7B%0A createOpts.visibility = %22public%22;%0A createOpts.preset = %22public_chat%22;... |
06a54f24695c88a6aa302280f6385056d4c99cea | Fix delete and cut crashing on multi-cell separators. | public/app/select_gesture.js | public/app/select_gesture.js | class SelectGesture extends Gesture {
constructor() {
super();
this.selectedCells_ = new Set();
this.hoveredCell_ = null;
this.anchorCell_ = null;
}
startHover(cell) {
this.hoveredCell_ = cell;
}
startGesture() {
this.clearSelection();
if (this.anchorCell_) {
// Clicking an... | JavaScript | 0 | @@ -1932,47 +1932,67 @@
-cell.getPrimary
+this.forEachCellWithStart
Cell
-sInSquareTo(en
+_(layer, cell, affecte
dCell
-)
+ =%3E
%0A
@@ -2005,33 +2005,8 @@
- .forEach(affectedCell =%3E
aff
@@ -2184,163 +2184,72 @@
-const endCell = state.theMap.cells.get(%0A startCell.getLayerConte... |
567cd4dd9f6c2b4475192eb4277e5291fd432fb9 | Fix example | lib/node_modules/@stdlib/array/ones/lib/index.js | lib/node_modules/@stdlib/array/ones/lib/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.998536 | @@ -912,17 +912,16 @@
s' );%0A*%0A
-*
* var ar
|
0d5c0a70d00de0dec90ea6c606da0488d6ecb0c3 | Update namespace | lib/node_modules/@stdlib/repl/lib/namespace/h.js | lib/node_modules/@stdlib/repl/lib/namespace/h.js | 'use strict';
/*
* When adding names to the namespace, ensure that they are added in alphabetical order according to alias (namespace key).
*/
var ns = [];
ns.push({
'alias': 'hasClassSupport',
'path': '@stdlib/utils/detect-class-support',
'value': require( '@stdlib/utils/detect-class-support' ),
'type': 'Functi... | JavaScript | 0.000001 | @@ -2461,32 +2461,486 @@
tmpdir'%0A%09%5D%0A%7D);%0A%0A
+ns.push(%7B%0A%09'alias': 'HOURS_IN_DAY',%0A%09'path': '@stdlib/time/constants/hours-in-day',%0A%09'value': require( '@stdlib/time/constants/hours-in-day' ),%0A%09'type': 'number',%0A%09'related': %5B%0A%09%09'@stdlib/time/constants/hours-in-week'%0A%09%5D%0A%7D... |
4ae25029fe45eb034003c24b7f48a0964889d68f | remove unused property | addon/components/frost-toggle.js | addon/components/frost-toggle.js | import Ember from 'ember'
const {Component, ViewUtils} = Ember
import computed from 'ember-computed-decorators'
import {PropTypes} from 'ember-prop-types'
import layout from '../templates/components/frost-toggle'
import FrostEventsProxy from '../mixins/frost-events-proxy'
export default Component.extend(FrostEventsPro... | JavaScript | 0.000001 | @@ -428,16 +428,27 @@
%5B%0A '
+_isToggled:
toggled'
@@ -583,26 +583,8 @@
um',
-%0A toggled: false,
%0A%0A
|
ddb1a25cf53babe604efeb274d7ff8e4f1a0ac81 | fix error in slack-invite ajaxOptions() | addon/components/slack-invite.js | addon/components/slack-invite.js | import Ember from 'ember';
import layout from '../templates/components/slack-invite';
import ajax from 'ic-ajax';
const { Component } = Ember;
export default Component.extend({
layout: layout,
ajaxError: null,
ajaxOptions: null,
apiToken: null,
apiUrl: null,
email: null,
ajaxOptions()... | JavaScript | 0 | @@ -311,24 +311,39 @@
xOptions()%7B%0A
+ return %7B%0A
url: 'ht
@@ -408,16 +408,18 @@
+
+
form: %7B%0A
@@ -410,24 +410,26 @@
form: %7B%0A
+
email:
@@ -459,16 +459,18 @@
,%0A
+
+
token:
@@ -501,16 +501,18 @@
,%0A
+
set_acti
@@ -520,16 +520,24 @@
e: true%0A
+... |
de588a727196aac1f91c888108c4cdf1d12412a5 | Revert the orange frame workaround we did for Firefox (#1821) | lib/video/screenRecording/setOrangeBackground.js | lib/video/screenRecording/setOrangeBackground.js | 'use strict';
const log = require('intel').getLogger('browsertime.video');
const { until, By } = require('selenium-webdriver');
module.exports = async function (driver, options) {
log.debug('Add orange color');
// We tried other ways for Android (access an orange page)
// That works fine ... but break scripts
... | JavaScript | 0.000018 | @@ -165,21 +165,12 @@
iver
-, options
) %7B%0A
+
lo
@@ -365,1746 +365,15 @@
802%0A
-%0A let orangeScript = '';%0A%0A if (options.android && options.browser === 'firefox') %7B%0A orangeScript = %60%0A (function() %7B%0A // Adding this extra layer of white frame fixes%0A // https://bug... |
337545ac2c62aa30838d72a76ff0f37a5363c038 | Add comment. | addon/serializers/contributor.js | addon/serializers/contributor.js | import OsfSerializer from './osf-serializer';
export default OsfSerializer.extend({
serialize: function(snapshot, options) {
// Restore relationships to serialized data
var serialized = this._super(snapshot, options);
serialized.data.relationships = {
users: {
da... | JavaScript | 0 | @@ -232,16 +232,99 @@
tions);%0A
+ // APIv2 expects contributor information to be nested under relationships.%0A
|
d17793237264f8eaef6d3432a7f1969858e20b01 | update fabric-evm scenario test for the new migrations system (scenarios/migrations/fabric-evm) | packages/truffle/test/scenarios/migrations/fabric-evm.js | packages/truffle/test/scenarios/migrations/fabric-evm.js | const MemoryLogger = require("../memorylogger");
const { promisify } = require("util");
const RunCommand = promisify(require("../commandrunner").run);
const path = require("path");
const assert = require("assert");
const Reporter = require("../reporter");
const sandbox = require("../sandbox");
const Web3 = require("web... | JavaScript | 0 | @@ -370,26 +370,21 @@
rface%22,
-function()
+() =%3E
%7B%0A if
@@ -595,18 +595,13 @@
ync
-function()
+() =%3E
%7B%0A
@@ -1315,46 +1315,138 @@
es(%22
-Saving successful migration to network
+2_migrations_sync.js%22));%0A assert(output.includes(%22Deploying 'UsesExample'%22));%0A assert(output.includes(... |
e1c8fcafbcb8ff51e4066797adc12b34576f6e98 | add an missing id attribute to floatBox | public/javascripts/dialog.js | public/javascripts/dialog.js | /**
* IG.dialog for igeey.com
* Based on Lee dilaog 1.0 http://www.xij.cn/blog/?p=68
*/
(function($) {
var $w = $(window), $d = $(document),
IE6 = !window.XMLHttpRequest,
toInt = function(num) { return parseInt(num, 10) };
function Dialog() {
this.tmpl = [
'<div class="{{name}}">',
... | JavaScript | 0.000001 | @@ -276,32 +276,46 @@
= %5B%0A '%3Cdiv
+ id=%22%7B%7Bname%7D%7D%22
class=%22%7B%7Bname%7D%7D
|
247b8086e02c6510b525704387980f22a2c21923 | Set page title on render for games | public/js/views/view.game.js | public/js/views/view.game.js | (function (window){
requirejs([
'jquery',
'underscore',
'backbone',
'dust',
'BB'
], function($, _, Backbone, dust, BB) {
BB.view_definitions.game = Backbone.View.extend({
id: 'game-detail',
title: function(){
return this.mo... | JavaScript | 0 | @@ -833,24 +833,78 @@
%7D);%0A
+ window.document.title = this.title();%0A
|
dd16cd07722f37e3f07b01bf7942116f16bd85bd | include Target and Runtime domains (#14101) | lighthouse-core/gather/gatherers/devtools-log.js | lighthouse-core/gather/gatherers/devtools-log.js | /**
* @license Copyright 2021 The Lighthouse Authors. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... | JavaScript | 0 | @@ -1416,16 +1416,31 @@
%7CNetwork
+%7CTarget%7CRuntime
)%5C./);%0A%0A
|
239653481ee4e50d426b3a6a68e056fe4aced493 | Print error message for 404 (not found) error code on document open. | apps/dg/utilities/storage/codap_common_storage.js | apps/dg/utilities/storage/codap_common_storage.js | // ==========================================================================
// DG.CODAPCommonStorage
//
// Copyright (c) 2015 by The Concord Consortium, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in co... | JavaScript | 0 | @@ -2447,16 +2447,80 @@
sions';%0A
+ %7D else if (status === 404) %7B%0A return 'error.notFound';%0A
%7D el
|
a128b6c9363b076b0bad5f3fab84c7435ff395ca | Add more text to homepage | app/containers/HomePage/index.js | app/containers/HomePage/index.js | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... | JavaScript | 0 | @@ -1114,32 +1114,154 @@
%3C/div%3E%0A
+ %3Cdiv className=%22panel-body%22%3E%0A %3CFormattedMessage %7B...messages.header%7D /%3E%0A %3C/div%3E%0A
%3C/di
|
30bad815f5f1d2fb525c9be2ac3709b86d8391e3 | Add media queries to make list item stliyng nicer on mobiles | app/containers/ListItem/index.js | app/containers/ListItem/index.js | /*
*
* ListItem
*
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { babyNameInEditState } from 'containers/EditBabyName/actions';
import { selectMenu } from 'containers/Menu/actions';
import messages from './messages';
clas... | JavaScript | 0 | @@ -147,16 +147,56 @@
-intl';%0A
+import styled from 'styled-components';%0A
import %7B
@@ -349,16 +349,300 @@
ages';%0A%0A
+const ListItemStyling = styled.li%60%0A flex: 1; %0A border-radius: 2px;%0A margin: 10px;%0A padding: 10px;%0A display: inline-block;%0A flex-basis: 25%25;%0A%0A @media screen and (max-... |
b0962535db7efa116fbccc8f2e61f42684c4e5a8 | Use simpler toggleProperty() method | app/controllers/crate/version.js | app/controllers/crate/version.js | import Ember from 'ember';
import DS from 'ember-data';
import ajax from 'ic-ajax';
import moment from 'moment';
const NUM_VERSIONS = 5;
const { computed } = Ember;
export default Ember.Controller.extend({
isDownloading: false,
extraDownloads: Ember.computed('downloads.meta.extra_downloads', function() {
... | JavaScript | 0 | @@ -3257,34 +3257,22 @@
his.
-set('following', !this.get
+toggleProperty
('fo
@@ -3280,17 +3280,16 @@
lowing')
-)
;%0A
|
3d419a6cae8e2bbaf795bb99572f6bf8d7f4a608 | fix editor content update | javascripts/components/NoteContentEditor.react.js | javascripts/components/NoteContentEditor.react.js | import React from "react";
import ReactDOM from "react-dom";
import MediumEditor from "medium-editor";
class NoteContentEditor extends React.Component {
constructor(props) {
super(props);
this.state = {
note: this.props.note,
};
}
componentWillReceiveProps(nextProps) {
this.setState({
... | JavaScript | 0.000001 | @@ -252,109 +252,8 @@
%7D%0A%0A
- componentWillReceiveProps(nextProps) %7B%0A this.setState(%7B%0A note: nextProps.note%0A %7D);%0A %7D%0A%0A
cr
@@ -269,24 +269,24 @@
mConfig() %7B%0A
+
return %7B
@@ -450,134 +450,8 @@
));%0A
- this.medium.onHideToolbar = function() %7B%0A this.setState... |
3d6acc7d7e7e5bae46c00169029c64f87b251f4c | add students to list | js/jsrapport/editstudentlistrapportenViewModel.js | js/jsrapport/editstudentlistrapportenViewModel.js | // View model for the courses page
function pageViewModel(gvm) {
gvm.userId = -1;
gvm.studentlistName = ko.observable('Name');
gvm.listId = -1
// Page specific i18n bindings
gvm.title = ko.computed(function(){i18n.setLocale(gvm.lang()); return gvm.app() + ' - ' + i18n.__("AccountTitle");}, gvm);
... | JavaScript | 0 | @@ -4042,364 +4042,37 @@
er=%22
-E-mail%22 name=%22username%22%3E %5C%0A %3C/div%3E %5C%0A %3Cdiv class=%22form-group%22%3E %5C%0A %3Cinput type=%22text%22 class=%22form-control input-lg%22 placeholder=%22First Name%22 name=%22firstname%22%3E %5C%0A %3C/div%3E %5C%0A ... |
4e504d9291724e6a9af70c71fdc4c2dd1c407380 | add students to list | js/jsrapport/editstudentlistrapportenViewModel.js | js/jsrapport/editstudentlistrapportenViewModel.js | // View model for the courses page
function pageViewModel(gvm) {
gvm.userId = -1;
gvm.studentlistName = ko.observable('Name');
gvm.listId = -1
// Page specific i18n bindings
gvm.title = ko.computed(function(){i18n.setLocale(gvm.lang()); return gvm.app() + ' - ' + i18n.__("AccountTitle");}, gvm);
... | JavaScript | 0 | @@ -6291,24 +6291,56 @@
%5D;%0A %0A
+$('#fruitlist').slider();%0A //
$('#fruitlis
|
1beac6d07b1d4fb6521fe22414ffecd8569e5f1c | Drop API call timeout to 5sec | app/pages/frontApi/lukkariApi.js | app/pages/frontApi/lukkariApi.js | import axios from 'axios'
import {serverAddr} from '../../utils'
const lukkariApi = axios.create({
timeout: 10000 //10sec
})
const checkStatus = (response) => {
if (response.status >= 200 && response.status < 300) {
return response.data
} else {
return response
}
}
export const searchCourses = (cours... | JavaScript | 0 | @@ -108,18 +108,16 @@
ut:
-10
+5
000 //
-10
+5
sec%0A
|
ef965b91fb879335726c39ce266c8087c8b14578 | Use `querySelector()` | app/plugins/Wallet/js/buttons.js | app/plugins/Wallet/js/buttons.js | 'use strict';
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Address Creation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Address creation
eID('create-address').onclick = function() {
tooltip('Creating...', this);
var call = {
url: '/wallet/address',
type: 'GET',
};
IPC.sendToHost('api-call', call, 'new-address');
};
// Filt address... | JavaScript | 0 | @@ -609,32 +609,24 @@
try.
-getElementsByClassName
+querySelector
('
+.
addr
@@ -630,19 +630,16 @@
ddress')
-%5B0%5D
.innerHT
|
97cf359f6465d4770620894f918fb40e02106220 | Fix typo and jshint. | app/scripts/controllers/order.js | app/scripts/controllers/order.js | app.controller('OrderCtrl', function($rootScope, $scope, $routeParams, $location, $timeout, $q, data) {
'use strict';
var model = $scope.model || {};
model.order = model.order || {};
model.shipping = {};
model.order.card = {
number: '',
exp: '',
csc: '',
type: ''
};
model.countries = [... | JavaScript | 0.000003 | @@ -6842,16 +6842,17 @@
urn 'You
+r
order i
@@ -6931,16 +6931,17 @@
page. '
+;
%0A %7D%0A
|
ee3a8a894120a956c9fea421eb7a5a5dc722d116 | make sure we use toggled numbers as ints | app/scripts/controllers/thing.js | app/scripts/controllers/thing.js | // vi:si:et:sw=2:sts=2:ts=2
//
/**
* @ngdoc controller
* @name mushin.controller:ThingController
*
* @description
* A controller to show and edit a single thing
*/
angular.module('mushin').controller(
'ThingController',
function (things, Thing, $scope, $state, hoodie, $rootScope) {
var lastType;
var... | JavaScript | 0 | @@ -1743,16 +1743,54 @@
umber);%0A
+ /* name comes in as a string */%0A
if
@@ -1801,21 +1801,31 @@
mber ==
+parseInt(
name)
+)
%7B%0A
@@ -1936,20 +1936,30 @@
type%5D =
+parseInt(
name
+)
;%0A
|
08de70a467cb564822d22ea6c6aa06ef26bcd7d2 | Update endpoint.js | app/scripts/services/endpoint.js | app/scripts/services/endpoint.js | 'use strict';
var client = angular.module('oauth.endpoint', []);
client.factory('Endpoint', ['AccessToken', '$location',
function(AccessToken, $location) {
var service = {};
var params;
var url;
/*
* Defines the authorization URL
*/
service.set = function(scope) {
var state = scope.state || ... | JavaScript | 0.000001 | @@ -178,22 +178,8 @@
%7B%7D;%0A
- var params;%0A
va
|
eed7799e7a3ab14545adc30c1b5cc131657a5710 | Fix view class for comparison module on server | app/server/modules/comparison.js | app/server/modules/comparison.js | var requirejs = require('requirejs');
var ModuleController = require('../controllers/module');
var ComparisonController = requirejs('common/modules/comparison');
module.exports = ModuleController.extend(ComparisonController); | JavaScript | 0 | @@ -157,16 +157,76 @@
son');%0A%0A
+var View = require('../views/modules/grouped_timeseries');%0A%0A
module.e
@@ -279,9 +279,50 @@
troller)
+.extend(%7B%0A%0A visualisationClass: View%0A%0A%7D)
;
|
746880181bb4116a0aa696436c49dc6ce0cc7461 | Use distinct list of agents when querying units | app/services/agent-api-client.js | app/services/agent-api-client.js | /*******************************************************************************
* Copyright (C) 2012 eBay 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.apache.org/lic... | JavaScript | 0 | @@ -2003,18 +2003,9 @@
%09%09%7D%0A
-%09%09else %7B%0A%09
+%0A
%09%09_.
@@ -2039,17 +2039,16 @@
gent) %7B%0A
-%09
%09%09%09if (_
@@ -2117,17 +2117,16 @@
) %7B%0A%09%09%09%09
-%09
agent.gr
@@ -2135,17 +2135,16 @@
p = '';%0A
-%09
%09%09%09%09dist
@@ -2174,20 +2174,17 @@
%0A%09%09%09
-%09
%7D%0A
-%09
%09%09%7D)... |
6735540f48c54e08451264722ae12e87b800c444 | remove registerViewHelper and specs for coffee, js and require statement for test-setup-browser | app/templates/seed/js/helpers.js | app/templates/seed/js/helpers.js | define(['handlebars', 'handlebones'], function (Handlebars) {
/**
* Register a normal handlebars helper
*
* Use in any .hbs file via: {{greeting}}
*
* View test/helpers/helpers.spec for testing best practices
*
*/
Handlebars.registerHelper('greeting', function () {
return new Handlebars.Sa... | JavaScript | 0 | @@ -17,23 +17,8 @@
ars'
-, 'handlebones'
%5D, f
@@ -332,847 +332,8 @@
%7D);
-%0A%0A /**%0A * Register a new block helper that will create and embed a HelperView%0A * instance with its template set to the captured block.%0A * A helper view is different than a child view. It's context will be that of%0A * te... |
8a0831f96175d0eb9585d354fd4896480607b723 | Add info log for URLs that open in default container | src/containers.js | src/containers.js | import Storage from './Storage/HostStorage';
import ContextualIdentity, {NO_CONTAINER} from './ContextualIdentity';
import Tabs from './Tabs';
import PreferenceStorage from './Storage/PreferenceStorage';
import {filterByKey} from './utils';
import {buildDefaultContainer} from './defaultContainer';
const createTab = (u... | JavaScript | 0 | @@ -1657,24 +1657,86 @@
eStoreId) %7B%0A
+ console.info('Opening', url, 'in default container');%0A
retu
|
1e455672e9c47df2877631ede7bb9655b143e533 | update to latest urigo:static-html-compiler | atmosphere-packages/angular2-compilers/package.js | atmosphere-packages/angular2-compilers/package.js | Package.describe({
name: 'angular2-compilers',
version: '0.6.0',
summary: 'Angular 2 Templates, HTML and TypeScript compilers for Meteor',
git: 'https://github.com/Urigo/angular2-meteor/',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'Angular2 Compilers',
sources: [
'plugin/regi... | JavaScript | 0 | @@ -457,17 +457,17 @@
ler@0.1.
-4
+8
',%0A '
|
2eb0b3ff9f195b9f49c32ef821fbe4fcc71a72fd | Fix for extra zooming in mapsearch | app/views/mapsearch/SearchMap.js | app/views/mapsearch/SearchMap.js | import React, { PropTypes } from 'react';
import {
StyleSheet,
} from 'react-native';
import MapView from 'react-native-maps';
import Icon from 'react-native-vector-icons/FontAwesome';
// NOTE: For some reason MapView-onCalloutPress only works for Android and
// TouchableHighlight-onPress only works for iOS...which i... | JavaScript | 0 | @@ -498,19 +498,159 @@
!= null
-) %7B
+&& this._lastResult !== selectedResult) %7B%0A%09%09%09%09this._lastResult = selectedResult; // Make sure not to re-zoom if already did so for this result%0A
%0A%09%09%09%09//
|
02dfdffc4f7e2ef9e4485e67d5990c27f12071f7 | Fix failing test due to newly added assumption | test/components/structures/auth/Registration-test.js | test/components/structures/auth/Registration-test.js | /*
Copyright 2019 New Vector 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.000001 | @@ -2314,16 +2314,18 @@
flows: %5B
+%7B%7D
%5D,%0A
|
c2b7d3a62cf8854ab67237af8bb6c77c4daa0d7e | move const values to export root | src/core/index.js | src/core/index.js | /**
* @file Main export of the PIXI core library
* @author Mat Groves <mat@goodboydigital.com>
* @copyright 2013-2015 GoodBoyDigital
* @license {@link https://github.com/GoodBoyDigital/pixi.js/blob/master/LICENSE|MIT License}
*/
/**
* @namespace PIXI
*/
var core = module.exports = {
CONST:... | JavaScript | 0.000001 | @@ -307,40 +307,8 @@
= %7B%0A
- CONST: require('./const'),%0A%0A
@@ -5207,10 +5207,118 @@
%7D%0A%7D;%0A%0A
+// add constants to export%0Avar CONST = require('./const');%0A%0Afor (var c in CONST) %7B%0A core%5Bc%5D = CONST%5Bc%5D;%0A%7D
%0A%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.