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
7be2f73b2254250416031d0dc0704ee212f40a5f
Change ci alias to point to travisMatrix:v4
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-mocha-cov'); grunt.loadNpmTasks('grunt-exec'); grunt.loadTasks('tasks'); grunt.initConfig({ jshint: { all: ['tasks/*.js'], options: { repo...
JavaScript
0
@@ -1803,16 +1803,25 @@ 'travis +Matrix:v4 '%5D);%0A%7D;%0A
7948975cd76f7deaf676124376ab6736a424426a
fix use strict statement
Gruntfile.js
Gruntfile.js
'use strict;' module.exports = function(grunt) { grunt.loadNpmTasks("grunt-contrib-jshint"); grunt.loadNpmTasks("grunt-jscs"); var srcFiles = ["app/**/*.js", "lib/**/*.js", "server.js"]; grunt.initConfig({ jshint: { files: srcFiles, options: { globalstrict: true, quotmark: fal...
JavaScript
0.000043
@@ -8,10 +8,10 @@ rict -; ' +; %0A%0Amo
3c128d36edd761bcd354e98e61f2e8d646cb738d
remove console.log statement
src/jquery.viafauto.js
src/jquery.viafauto.js
/* * A jQuery UI widget for getting VIAF identifiers via autosuggest * h/t to Matthew Hailwood http://jquery.webspirited.com/author/Hailwood/ for his * most excellent jquery UI widget framework at * http://jquery.webspirited.com/2011/03/jquery-ui-widget-development-skeleton/#more-109 */ /* * Depends on jQuery UI ve...
JavaScript
0.000035
@@ -1655,45 +1655,8 @@ e %7B%0A - console.log(me);%0A
cdeb1e77e4e9944605f2e77edaf773aaadd30cec
fix location for hogan.js
configured-tasks.js
configured-tasks.js
var wrap = require('gulp-wrap-amd'); var dest = require('gulp-dest'); var rename = require('gulp-rename'); module.exports = {}; module.exports.bootstrap = function(builder) { var srcPath; try { srcPath = require('path').resolve(builder.resolveModule('bootstrap'), '..', '..', 'js'); } catch (exc) { srcP...
JavaScript
0.000006
@@ -2856,16 +2856,19 @@ .js')+'/ +../ web/buil
515e5c22f26c2a7bf514f8045478342822521ced
Add support to an onDestroy event callback
src/js/base/Context.js
src/js/base/Context.js
define([ 'jquery', 'summernote/base/core/func', 'summernote/base/core/list', 'summernote/base/core/dom' ], function ($, func, list, dom) { /** * @param {jQuery} $note * @param {Object} options * @return {Context} */ var Context = function ($note, options) { var self = this; var ui = $.s...
JavaScript
0.000001
@@ -2049,32 +2049,117 @@ key);%0A %7D);%0A + // trigger custom onDestroy callback%0A this.triggerEvent('destroy', this);%0A %7D;%0A%0A this
4f7fe3fb0c101ecc4e0f4b64fcda05e58c446a6b
Add more zipup tasks for further testing
Gruntfile.js
Gruntfile.js
/* * Copyright (c) 2013, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-clean'...
JavaScript
0
@@ -2195,24 +2195,561 @@ ir: 'build'%0A + %7D,%0A%0A commit_id: %7B%0A appName: 'commit-id',%0A version: '0.3.0',%0A addGitCommitId: true,%0A files: %5B%0A %7B src: 'test/fixtures/specific-files/**', expand: true %7D%0A %5D,%0A outDir: 'build'%0A %7D,%0...
618e572a701d298a99cce65c119d39dd948029c8
Edit Gruntfile paths
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: ';' }, dist: { src: ['src/**/*.js'], dest: 'js/<%= pkg.name %>.js' } }, uglify: { options: { banner: '/*! <%= p...
JavaScript
0.000001
@@ -188,19 +188,18 @@ src: %5B' +j s -rc /**/*.js @@ -376,24 +376,131 @@ n'%0A %7D,%0A + dist: %7B%0A src: 'js/%3C%25= pkg.name %25%3E.js',%0A dest: 'js/%3C%25= pkg.name %25%3E.min.js'%0A %7D,%0A build: @@ -619,125 +619,8 @@ %7D%0A - %7D,%0A dist: %7B%0A ...
7ff1f1649ea7e081d5ef0b67b486f60787500f95
fix modal/offcanvas style scope support
src/js/mixins/modal.js
src/js/mixins/modal.js
import { on, offAll } from 'src/js/util/index' const doc = document.documentElement const body = document.body let active let activeCount on(doc, 'click', e => { if (active && !active.$refs.panel.contains(e.target)) { active.$emit('click-out', e) } }) on(doc, 'keyup', e => { if (e.keyCode === 27 && active...
JavaScript
0
@@ -590,83 +590,8 @@ %7D),%0A - mounted () %7B%0A // move dom to body%0A body.appendChild(this.$el)%0A %7D,%0A me
7f45819cb75fe7ac9b784162b287d9c6c9708ec8
use bowser package
src/js/utils/common.js
src/js/utils/common.js
import * as constants from '../services/constants'; import {detect} from "detect-browser" export function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(u...
JavaScript
0
@@ -56,38 +56,33 @@ ort -%7Bdetect%7D from %22detect-br +* as bowser from 'b owser -%22 +' %0A%0Aex @@ -1697,33 +1697,8 @@ %7D;%0A%0A -const browser = detect()%0A expo @@ -1768,50 +1768,24 @@ urn +!! b -r owser. -name && browser.name === %22 firefox -%22 %0A @@ -1834,49 +1834,23 @@ urn -browser.name &&...
dca1e42c3fec66e4a6a8b8dfee7b70fc7acbfec6
Add back testrunner.html test javascript file
Gruntfile.js
Gruntfile.js
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('package.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>...
JavaScript
0.000001
@@ -2760,32 +2760,244 @@ %0A %7D,%0A + tests: %7B%0A src: %5B%0A '!tests/all-rules.js',%0A 'tests/**/*.js'%0A %5D,%0A dest: 'build/%3C%25= pkg.name %25%3E-tests.js'%0A %7D,%0A work
5f0a555a9ed760c32a72a33cf115f7f529ed114b
Remove box prefix from config
config/default.js
config/default.js
/* * Things Gateway Default Configuration. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict'; module.exports = { // Expose CLI cli: true, ...
JavaScript
0.000002
@@ -1167,12 +1167,8 @@ n: ' -box. mozi
caa58d79bb4838030e4b710564f1ffe528a73240
Correct includePaths
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.initConfig({ // Builds Sass sass: { dev: { files: { 'public/stylesheets/main.css': 'public/sass/main.scss', 'public/stylesheets/main-ie6.css': 'public/sass/main-ie6.scss', 'public/stylesheets/main-ie7.css': 'public/sass/ma...
JavaScript
0
@@ -884,16 +884,29 @@ Paths: %5B +%0A 'govuk_m @@ -916,20 +916,117 @@ les/ -public/sass' +govuk_template/assets/stylesheets',%0A 'govuk_modules/govuk_frontend_toolkit/stylesheets'%0A %5D,%0A
1c4e23ae08d84354574112131d5cbc19871cef57
Add more NPM release commands.
Gruntfile.js
Gruntfile.js
// Generated on 2014-07-07 using generator-nodejs 2.0.0 module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { all: [ 'Gruntfile.js', 'test/**/*.js' ], options: { j...
JavaScript
0
@@ -4061,16 +4061,36 @@ test-ci' +, 'clean:sourceMaps' %5D);%0A @@ -4216,11 +4216,79 @@ ase'%5D);%0A + grunt.registerTask('prerelease', %5B'ci', 'release:prerelease'%5D);%0A %7D;%0A
39642ee9e2708081e4984355bab4ba43c983a38d
Declare Media namespace
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: '/*!\n' + ' * peeracle v<%= pkg.version %> (<%= pkg.homepage %>)\n' + ' * Copyright 2015\n' + ' * Licensed under <%= pkg.license %>\n' + ' */\n...
JavaScript
0.000094
@@ -521,19 +521,42 @@ e = -Peeracle %7C%7C +%7B%7D;%5Cn' +%0A 'Peeracle.Media = %7B%7D; @@ -586,16 +586,17 @@ function + (src, fi
3c72c4f7ea241e14450f9ecdc9d3f1650fabbe56
Add target to grunt.
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), strip: { util: { src: ['src/util/core.js', 'src/util/dom.js'], dest: 'dest/util', }, sites: { src: ['src/sites/*/*.js'], dest: 'dest/sites', ...
JavaScript
0
@@ -46,16 +46,117 @@ rict';%0A%0A + var wintersmith = require('wintersmith');%0A var os = require('os');%0A var path = require('path');%0A%0A grunt. @@ -168,16 +168,16 @@ onfig(%7B%0A - pkg: @@ -1250,16 +1250,245 @@ %0A %7D,%0A + pages: %7B%0A options: %7B%0A config: 'pages/config.json',...
762cce454f45578a458f90d06154f73479e2eab7
fix grunt ngtemplates
Gruntfile.js
Gruntfile.js
module.exports = function(grunt){ grunt.initConfig({ uglify: { options: { banner: '/*\n evid\n Copyright (C) 2015 Christoph Kappestein\n License: MIT\n*/\n', mangle: false }, dist: { files: { './build/evid-app.min.js': [ './app/components/definition...
JavaScript
0.000001
@@ -2241,18 +2241,34 @@ -src +cwd : 'app -/ +',%0A src: ' part
b44065d29dd13b61bbc346b7831dea4d718fbe47
add changelog.options.repository
Gruntfile.js
Gruntfile.js
var cp = require('child_process'); var buildConfig = require('./config/build'); module.exports = function(grunt) { grunt.initConfig({ concat: { options: { separator: ';\n' }, dist: { src: buildConfig.ionicFiles, dest: 'dist/js/ionic.js' }, distangular: { ...
JavaScript
0.000002
@@ -1432,24 +1432,130 @@ %7D%0A %7D,%0A%0A + changelog: %7B%0A options: %7B%0A repository: 'https://github.com/driftyco/ionic'%0A %7D%0A %7D,%0A%0A version:
2229196f64c66f5fe2d109b6089a895a016b9ed8
Update to Gruntfile.js
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Load grunt tasks automatically require('load-grunt-tasks')(grunt); var config = {}; config.compile = { "dummy": { wrap: 'obogo', // this is your global namespace name: "app", filename: 'dummy', build: 'dist', scripts: { src: ['src...
JavaScript
0.000001
@@ -4374,16 +4374,23 @@ ile' +%5D); // , 'copy' %5D);%0A @@ -4385,19 +4385,16 @@ , 'copy' -%5D); %0A grunt
1a2be1217f45e718c48d5f476c662839f7c25048
Introduce `grunt rebuild`
Gruntfile.js
Gruntfile.js
var os = require("os"); var now = new Date().toISOString(); function shallowCopy(obj) { var result = {}; Object.keys(obj).forEach(function(key) { result[key] = obj[key]; }); return result; } function getBuildVersion(version) { var buildVersion = version !== undefined ? version : process.env["BUILD_NUMBER"]; ...
JavaScript
0
@@ -5947,24 +5947,80 @@ , %22lint%22%5D);%0A +%09grunt.registerTask(%22rebuild%22, %5B%22clean%22, %22ts:devlib%22%5D);%0A %09grunt.regis
a24eb6364ba9e8b0eaa4d560bcf65161011bbfef
Fix quotes
Gruntfile.js
Gruntfile.js
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { version: '<%= pkg.version %>', banner: '// Backbone.Minionette\n' + '// -------------...
JavaScript
0.000002
@@ -1874,14 +1874,14 @@ pe: -%22 +' lcov -%22 +' ,%0A @@ -1903,17 +1903,17 @@ dir: -%22 +' coverage @@ -1913,17 +1913,17 @@ overage/ -%22 +' %0A
461cc0d117f051eecefd4ae0c209ab0c3c71de13
Remove commented code
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.initConfig({ paths: { src: { app: { ...
JavaScript
0
@@ -4892,19 +4892,16 @@ - // test_cl @@ -4919,19 +4919,16 @@ - // src @@ -4973,11 +4973,8 @@ - // %7D,%0A
20249e60e98a2bc3665d33ac53b4040586b0425e
rename index file to bloxed
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ 'copy': { dev: { files: [ { expand: true, src: './images/*', dest: './gh-pages/' }, { src: './index.html', dest: './gh-pages/index.html' }, ...
JavaScript
0.000003
@@ -273,21 +273,22 @@ h-pages/ -index +bloxed .html'
b00a65d842ef0bb9358016bf940a39bb3e262a68
Add test task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ nodeunit: { files: ['test/node/*_test.js'] }, qunit: { files: ['test/qunit/*.html'] }, jshint: { options: { jshintrc: '.jshintrc' }, gruntfile: { src: '...
JavaScript
0.999992
@@ -1127,13 +1127,66 @@ unit'%5D); +%0A grunt.registerTask('test', %5B'qunit', 'nodeunit'%5D); %0A%0A%7D;%0A
d0391d5efabccdf331bb98d890142c5df421f84d
ADD dynamic file matching for sass files
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { [ 'grunt-contrib-clean', 'grunt-contrib-copy', 'grunt-contrib-jshint', 'grunt-contrib-sass' ].forEach(grunt.loadNpmTasks); // put your sass files (not partials!) here // remember that you can import files from sass with @import var sassFiles ...
JavaScript
0
@@ -194,252 +194,158 @@ %0A%0A -// put you +va r sass - f +F iles -(not partials!) here%0A // remember that you can import files from sass with @import%0A var sassFiles = %5B%0A //'sample.sass',%0A 'main.sass'%0A %5D.reduce(function (result, item) %7B%0A var src = 'app/styles/'; += %5B%7B%0A expand...
091af6b353e4b4c83422ea09e85e4850f1e12962
Update Gulpfile
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: [ '/*!', ' * <%= pkg.name %> v<%= pkg.version %> (<%= pkg.homepage %>)', ' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>', ' * Licensed ...
JavaScript
0.000001
@@ -763,16 +763,40 @@ nner %25%3E' +,%0A report: 'none' %0A %7D
c7d5b561b8ae90f581998c1f0ce86ccaa9b8b6d2
fix indentation
Gruntfile.js
Gruntfile.js
'use strict'; var fs = require('fs'); var path = require('path'); var glob = require('glob'); var through = require('through'); module.exports = function(grunt) { require('load-grunt-tasks')(grunt); require('time-grunt')(grunt); function globalJQ(rules) { return function(file) { var filename = file.r...
JavaScript
0.000358
@@ -2815,32 +2815,34 @@ s': %5B%0A + 'src/styles/main @@ -2937,32 +2937,34 @@ es/main.css': %5B%0A + 'src/s
5302782c0842b26a151fd382b3bc9ba679c8a232
Drop removed amd task from watch list
Gruntfile.js
Gruntfile.js
/* eslint-disable no-process-env */ module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), eslint: { options: { }, files: [ '*.js', 'bench/**/*.js', 'tasks/**/*.js', 'lib/**/!(*.min|parser).js', 'spec/**/!(*.a...
JavaScript
0
@@ -4332,15 +4332,8 @@ ld', - 'amd', 'te
63bdd1fed813c864eed8220e4194f0ea781d462d
Revert "update: compiled the dropdown directive"
Gruntfile.js
Gruntfile.js
'use strict'; var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; module.exports = function (grunt) { // load all grunt tasks require('load-grunt-tasks')(grunt); // configurable pat...
JavaScript
0
@@ -4113,17 +4113,8 @@ tils -,dropdown %7D.js
2d8a6ce56f8773051d45449bae38209ccdd5aa36
remove bower_components from getting copied into dist via htmlmin in grunt production command
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-express-server'); grunt.loadNpmTasks('grunt-contrib-uglify'); g...
JavaScript
0
@@ -2457,32 +2457,48 @@ src: %5B'* +.html', 'views/* */*.html'%5D,%0A
dc7d99eac25e6f5ce4cb3e0ab0a6e3e1a95559ff
Remove whitespace
Gruntfile.js
Gruntfile.js
/*global module:false*/ module.exports = function(grunt) { var tilde = require('tilde-expansion'), s3Credentials; tilde('~/.gallery-css-s3-credentials', function ( path ) { s3Credentials = grunt.file.readJSON( path ); }), // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON(...
JavaScript
0.999999
@@ -94,17 +94,16 @@ nsion'), - %0A s @@ -2052,22 +2052,16 @@ %0A %7D - %0A %7D,%0A
12feeeb25c1559b03b024847c31964001a076f89
disable key spacing for gruntfile
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.option('stack', true); require('time-grunt')(grunt); require('jit-grunt')(grunt, { simplemocha: 'grunt-simple-mocha', express: 'grunt-express-server' }); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), project: { ...
JavaScript
0
@@ -6,16 +6,48 @@ strict'; +%0A/*eslint-disable key-spacing */ %0A%0Amodule
3b5e95808544ad73b28d0515d4697b67a7cdb1c6
Use url from config
src/light/when-done.js
src/light/when-done.js
import runtime from '../core/runtime.js' import poll from '../utils/poll.js' import fetch from '../utils/io/fetch.js' import urlUtils from '../utils/url.js' // main export default function getBakeResult (processingId) { return poll(function(resolve, reject, next){ var url = 'https://storage-nocdn.3d.io/' + pr...
JavaScript
0.000001
@@ -149,16 +149,57 @@ /url.js' +%0Aimport configs from '../core/configs.js' %0A%0A// mai @@ -238,17 +238,16 @@ keResult - (process @@ -255,17 +255,16 @@ ngId) %7B%0A -%0A return @@ -300,18 +300,18 @@ t, next) + %7B -%0A %0A var @@ -330,27 +330,42 @@ s:// -storage-nocdn.3d.io +' + configs.storageDomainN...
8db35f7035c43f98f40b2ed8925f7e854e3d7c0a
change task
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; // Project configuration grunt.initConfig({ app: { scripts: [ "lib/world/items/item.js", "lib/**/*.js" ], testScripts: [ "test/scripts/**/*.js" ]...
JavaScript
0.999964
@@ -150,123 +150,8 @@ : %5B%0A - %22lib/world/items/item.js%22,%0A %22lib/**/*.js%22%0A %5D,%0A testScripts: %5B%0A @@ -2312,19 +2312,20 @@ epath: %22 -lib +dist /%22,%0A
3b83c4a8b59637f262c279269f6d15d644a3b810
Remove unused grunt-release-component dependency
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ bump : { options: { files : ['package.json', 'noty.jquery.json', 'js/noty/jquery.noty.js'], updateConfigs : [], commit : false, commitMessage : '...
JavaScript
0.000001
@@ -2076,59 +2076,8 @@ ');%0A - grunt.loadNpmTasks('grunt-release-component');%0A
d566c1acfadd73caaacd6bfdf1270fbcc4922fed
update grunt-karma config
Gruntfile.js
Gruntfile.js
/* * grunt-image-preload * https://github.com/lexich/grunt-image-preload * * Copyright (c) 2013 Efremov Alexey (lexich) * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Before generating any new files, remove any ...
JavaScript
0
@@ -766,24 +766,26 @@ conf.js' +,%0A %0A %7D @@ -772,24 +772,98 @@ s',%0A +runnerPort: 9999,%0A singleRun: true,%0A browsers: %5B'PhantomJS'%5D %0A %7D%0A
541205549e27df19f9ce71d8087da77e13084a49
Add grunt clean task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-conventional-changelog'); ...
JavaScript
0.006179
@@ -518,16 +518,64 @@ ngdoc',%0A + clean: %7B%0A dist: %5B'%3C%25= dist %25%3E'%5D%0A %7D,%0A jshi @@ -1875,16 +1875,30 @@ uild', %5B +'clean:dist', 'concat:
69f65671b286dde8895e1e777a14b352fd3c65ac
Update Gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: '/*!\n' + ' * Jedo version <%= pkg.version %>\n' + ' * Copyright 2014-Preset <%= pkg.author %>\n' + ' * Licensed under <%= pkg.license %>\n' + ...
JavaScript
0.000001
@@ -226,16 +226,45 @@ 4-Preset +%5Cn' +%0A ' * Author: %3C%25= pkg @@ -271,32 +271,32 @@ .author %25%3E%5Cn' +%0A - ' * @@ -326,32 +326,32 @@ license %25%3E%5Cn' +%0A + ' */ @@ -359,397 +359,8 @@ n',%0A - banner_dist: '%5Cn/*!' +%0A ' Underscore.js templat...
7e41cd0d3262614f2838bfc10d250e49727c7b80
Increase mocha timeout slightly.
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*'] }, simplemocha: { options: { ...
JavaScript
0
@@ -332,16 +332,49 @@ : 'spec' +,%0A timeout: '5000' %0A
4e4609bfd06dd21ac852182b817013d2809962cb
fix ios cubemaps after the mipmap change
src/resources/cubemap.js
src/resources/cubemap.js
pc.extend(pc, function () { var CubemapHandler = function (device, assets, loader) { this._device = device; this._assets = assets; this._loader = loader; }; CubemapHandler.prototype = { load: function (url, callback) { }, open: function (url, data) { }, pat...
JavaScript
0
@@ -2307,95 +2307,8 @@ ue;%0A - assetCubeMap._dds.mipmaps = this._device.useTexCubeLod ? false : true;%0A
c84e09198ab583a24cf1d48d5f09eaea9d8677d2
Tweak saucelabs settings
Gruntfile.js
Gruntfile.js
/* global module: false */ module.exports = function(grunt) { "use strict"; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), typescript: { base: { src: ['src/**/*.ts'], dest: 'build/private/gobo.js', ...
JavaScript
0
@@ -3234,16 +3234,173 @@ ublic%22,%0A + pollInterval: 5,%0A statusCheckAttempts: 18,%0A 'max-duration': 90,%0A maxRetries: 1,%0A
6d40ccb04a8402c94879388cd734ac3c6a3f66b7
Add remaining missing 'console.log' (#1098)
src/providers/sh/commands/domains/buy.js
src/providers/sh/commands/domains/buy.js
// Packages const { italic, bold } = require('chalk') // Utilities const error = require('../../../../util/output/error') const wait = require('../../../../util/output/wait') const cmd = require('../../../../util/output/cmd') const param = require('../../../../util/output/param') const info = require('../../../../util...
JavaScript
0.000001
@@ -1788,24 +1788,36 @@ ) %7B%0A +console.log( info(%0A @@ -1915,16 +1915,17 @@ ) +) %0A @@ -1925,16 +1925,28 @@ +console.log( info(%60Yo @@ -1985,16 +1985,17 @@ harged%60) +) %0A%0A @@ -3015,16 +3015,28 @@ return +console.log( info('Ab @@ -3042,16 +3042,17 @@ bor...
190714b15a12a472c382a67cf2b78b7ce6634f6b
Add doc to method and make attributes of LOVModal configurable
src/public-assets/js/components/modal.js
src/public-assets/js/components/modal.js
App.extend({ Components: {} }); App.Components.Modal = (function ($, document) { var pub = { name: 'App.Components.Modal', depends: ['App.Components.Form'], /** Form's assignFormValue method used in populateModal */ events: ['click'], submitFormButtonSelector: '[data-submit-mod...
JavaScript
0
@@ -1798,13 +1798,11 @@ * -Remov +Hid e op @@ -2464,24 +2464,70 @@ me + %22%5D'%5D%22); +%0A%0A // show all dropdown options %0A @@ -2562,16 +2562,85 @@ .show(); +%0A%0A // get option with value correlating to field value %0A @@ -2660,21 +2660,18 @@ optionTo -Ex...
6869d0ec93a9d6cd4ca373efd73f3f843b92d421
Update serve-static path
Gruntfile.js
Gruntfile.js
'use strict'; var serveStatic = require('serve-static'); module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('package.json'), // Task configuration....
JavaScript
0
@@ -821,16 +821,40 @@ eStatic( +require('path').resolve( options. @@ -861,16 +861,17 @@ base%5B0%5D) +) %0A
1690c9d11e54e16bde9adac1c318d3fa3ec4ac34
Update base directory
Gruntfile.js
Gruntfile.js
/*global require:true, module:false*/ module.exports = function (grunt) { 'use strict'; // For livereload var path = require('path'); var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; var folderMount = function folderMount(connect, point) { return connect['static'](path.re...
JavaScript
0.000001
@@ -850,25 +850,9 @@ e: ' -src/node_modules/ +. ',%0A
1a4b5e5a8d1903997166004725f2184e6d86da15
Remove build-contrib task
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, all: [ 'Gruntfile.js', 'tasks/**/*.js', '<%= nodeunit.tests %>' ] }, clean: { test: [ 'test/tmp', '.sass-cache' ...
JavaScript
0.000001
@@ -1571,25 +1571,8 @@ est' -, 'build-contrib' %5D);%0A
49fccfe867c2798a25537798290996ee90ca6c0b
Add forgotten comma in folder name array
Gruntfile.js
Gruntfile.js
/* * Copyright (c) 2014-2021 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ 'use strict' module.exports = function (grunt) { const os = grunt.option('os') || process.env.PCKG_OS_NAME || '' const platform = grunt.option('platform') || process.env.PCKG_CPU_ARCH || '' const node = grunt.option('node') || p...
JavaScript
0.000001
@@ -1528,24 +1528,25 @@ frontend/**' +, %0A
7200a74e13b02d27f5eee295f229c15ccc47f404
version 1.2.0 - Added Signature Pad field type.
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), ngtemplates: { 'formly.onsenui': { src: 'src/fields/**.html', dest: 'src/fields/<%= pkg.name %>.templates.js', options: { url: function(url) { return url.replace('src/f...
JavaScript
0
@@ -690,16 +690,22 @@ src: %5B +%0A%09%09%09%09%09 'src/mod @@ -725,24 +725,30 @@ name %25%3E.js', +%0A%09%09%09%09%09 'src/modules @@ -775,16 +775,60 @@ fig.js', +%0A%09%09%09%09%09'src/directives/*.directive.js',%0A%09%09%09%09%09 'src/fie @@ -860,16 +860,21 @@ ates.js' +%0A%09%09%09%09 %5D,%0A @@ -129...
b3123ad7ca7ad8d1da656a55fe669d28b7ee348f
Remove uneeded variable
Gruntfile.js
Gruntfile.js
/*! * Bootstrap Grid Flexbox Gruntfile * https://github.com/ngengs/bootstrap-grid-flexbox * Copyright 2016 Rizky Kharisma. * Licensed under MIT (https://github.com/ngengs/bootstrap-grid-flexbox/blob/master/LICENSE) */ module.exports = function (grunt) { 'use strict'; // Force use of Unix newlines grunt.uti...
JavaScript
0.000001
@@ -337,39 +337,8 @@ ';%0A%0A - var path = require('path');%0A%0A //
03587aea113ea6a088d3af2ca920668898576fbf
Add cached getByPersonId method to participants store
src/store/courses/SectionParticipants.js
src/store/courses/SectionParticipants.js
Ext.define('Slate.store.courses.SectionParticipants', { extend: 'Ext.data.Store', model: 'Slate.model.course.SectionParticipant', config: { section: null, cohort: null, role: null, pageSize: 0, remoteSort: false, sorters: [ { pr...
JavaScript
0
@@ -508,24 +508,47 @@ %5D%0A %7D,%0A%0A%0A + // model lifecycle%0A construc @@ -557,32 +557,32 @@ r: function() %7B%0A - this.cal @@ -628,32 +628,520 @@ = true;%0A %7D,%0A%0A + loadRecords: function() %7B%0A var me = this,%0A personIdMap = %7B%7D,%0A count, ind...
1ad9fbd90447947578f4fa5b6ae4e5627d75acf1
change default lambda runtime to nodejs14.x
src/config/constants.js
src/config/constants.js
// dummy placeholder url for the WHATWG URL constructor // https://github.com/nodejs/node/issues/12682 export const BASE_URL_PLACEHOLDER = 'http://example' export const CUSTOM_OPTION = 'serverless-offline' export const DEFAULT_LAMBDA_RUNTIME = 'nodejs12.x' // https://docs.aws.amazon.com/lambda/latest/dg/limits.html ...
JavaScript
0.000005
@@ -247,17 +247,17 @@ 'nodejs1 -2 +4 .x'%0A%0A//
5889cc8baee933594fb162e88e0aea194da0dfd3
fix error in Lobby
src/containers/Lobby.js
src/containers/Lobby.js
import React, { PureComponent } from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import withUserMedia from '../hocs/withUserMedia' import withSandbox from '../hocs/withSandbox' import integrateLobby from '../hocs/integrateLobby' import withChallenges from '../hocs/withChallenges' ...
JavaScript
0.000001
@@ -3804,246 +3804,8 @@ ion%3E -%0A %3Cdiv className=%22test-suite%22%3E%0A %3CTestTable%0A tests=%7Btests%7D%0A sandboxResult=%7BsandboxResult %7C%7C %5B%5D%7D /%3E%0A %3Cdiv style=%7Bthis.evalMessageStyle%7D%3E%7Bthis.evalMessage%7D%3C/div%3E%0A ...
4b5d603ff97b2cd44b4188cb88f8591282ae31a0
Add hooks to our new JSON-RPC methods to the JS API class.
static/js/api.js
static/js/api.js
Namespace("ryepdx.openerp.quickship").ApiFactory = function (instance) { return new (instance.web.Class.extend({ init: function(options){ options = options || {}; this.connection = new instance.web.JsonRPC(); this.connection.setup(options.url || 'http://localhost:8069');...
JavaScript
0
@@ -198,26 +198,19 @@ this. -connection +rpc = new i @@ -249,26 +249,19 @@ this. -connection +rpc .setup(o @@ -321,54 +321,264 @@ his. -model = new instance.web.Model('stock.packages +packages = new instance.web.Model('stock.packages');%0A this.users = new instance.web.Model('res.users');%0A ...
cfbbcca161e189020f8793580c07286acea7701b
update export interface
entries.js
entries.js
/** * @file entries.js * @author Y3G * @fileoverview * 接口文件 */ 'use strict'; var check = require('./src/check'); var makePolicy = require('./policy'); var exportModule = check.check; exportModule.Checker = check.Checker; exportModule.NotChecker = check.NotChecker; exportModule.policy = makePoli...
JavaScript
0
@@ -151,16 +151,20 @@ uire('./ +src/ policy')
f9d4ec32ffa36353fc97b5f47c60de8e81f70c43
add webpack notifier
src/ui/axis-chart/demo/webpack.config.js
src/ui/axis-chart/demo/webpack.config.js
'use strict'; var path = require('path'); var autoprefixer = require('autoprefixer'); module.exports = { devtool: 'source-map', context: __dirname, entry: './app', output: { path: __dirname, filename: 'bundle.js' }, module: { loaders: [ { test: /\.jsx?$/, exclude: 'node-m...
JavaScript
0.000001
@@ -79,16 +79,73 @@ fixer'); +%0Avar WebpackNotifierPlugin = require('webpack-notifier'); %0A%0Amodule @@ -286,16 +286,86 @@ s'%0A %7D,%0A + plugins: %5B%0A new WebpackNotifierPlugin(%7BalwaysNotify: true%7D)%0A %5D,%0A module
802d9741358d48cc20eab3d03e150943f92d823c
Update lib.js
static/js/lib.js
static/js/lib.js
/** * JSON config file * TODO(cripplet): move to external defaults.json file */ var name = "Minke Zhang"; var email = "minke.zhang@gmail.com"; var username = "cripplet-db"; var password = "6f920f50f5c81308ee0" + "aad463a40ac83b4cd5b16"; var repo = "db"; var getEndpoint = function(path) { return "https://api.git...
JavaScript
0.000001
@@ -1601,24 +1601,63 @@ ify(resp));%0A + el_data.text(resp.content.name);%0A %7D,%0A e
c9ede0ddca46ffc213ba35ea9870b11d59d8f88d
Update master
example.js
example.js
document.addEventListener("DOMContentLoaded", function() { var header = document.create("h1").addClass(["first", "head"]).plaintext("Header text"); var paraElem = document.create("p").attr({"id" : "para", "align" : "center"}).data("id", "smth").css("marginTop", "12px"); document.body.append([header, paraElem]); }, ...
JavaScript
0
@@ -52,17 +52,20 @@ ion() %7B%0A -%09 + var head @@ -145,17 +145,20 @@ text%22);%0A -%09 + var para @@ -274,12 +274,46 @@ px%22) -;%0A%0A%09 +.html(%22%3Cspan%3Esome text%3C/span%3E%22);%0A%0A docu
fd350c428f1475be73a944bd2bf9537843228d76
remove sockjs calls
ui/config/webpackDevServer.config.js
ui/config/webpackDevServer.config.js
/* eslint-disable */ const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware'); const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware'); const path = require('path'); const config = require('./webpack.config.dev'); const paths = require('./paths'); const proto...
JavaScript
0.000001
@@ -5068,33 +5068,8 @@ %7D,%0A - public: allowedHost,%0A
1a50bf32f64a3677d46d58308e0489c9c40f5299
Clean up statsd config a bit; increase flush rate for more fun in dev
statsd/config.js
statsd/config.js
(function () { "use strict"; return { "debug": true, "backends": ["./backends/repeater", "./backends/console"], "repeater": [ { "host": "statsd-sink", "port": 8125 } ], //"repeaterProtocol": "tcp" // Default: "udp4" "repeaterProtocol": "upd4" }; })();
JavaScript
0
@@ -39,16 +39,171 @@ eturn %7B%0A + // Production configuration%0A //%22backends%22: %5B%22./backends/repeater%22%5D,%0A //%22flushInterval%22: 10000,%0A%0A // Development configuration%0A @@ -280,24 +280,56 @@ /console%22%5D,%0A + %22flushInterval%22: 1000,%0A%0A ...
388b0492640fd0e5176de14d4575ff1ac6386975
Fix pledge override not used for refresh rates
src/structs/db/Patron.js
src/structs/db/Patron.js
const path = require('path') const Base = require('./Base.js') const PatronModel = require('../../models/Patron.js') const getConfig = require('../../config.js').get class Patron extends Base { constructor (data, _saved) { super(data, _saved) // _id is patron member ID if (!this._id) { throw new T...
JavaScript
0
@@ -728,181 +728,8 @@ %7D%0A%0A - /**%0A * @type %7Bnumber%7D%0A */%0A this.pledge = this.getField('pledge')%0A if (this.pledge === undefined) %7B%0A throw new TypeError('pledge is undefined')%0A %7D%0A%0A @@ -1111,24 +1111,220 @@ Override')%0A%0A + /**%0A * @type %7Bnumber%7D%0...
3ae6daf894e65ea261aeb8e46bc41c7e7cc83162
make font size responsive
src/templates/default.js
src/templates/default.js
import React from 'react'; import PageSection from '~/components/page-section'; import Typography from '~/components/typography'; import Heading from '~/components/heading'; import { Box, Flex } from 'rebass'; import { Navigation, NavigationItem, NavigationLink } from '~/components/navigation'; import styled from 'sty...
JavaScript
0.000001
@@ -1023,16 +1023,67 @@ ht:10vw; +%0A $%7B responsiveStyle('font-size', 'fontSize') %7D; %0A%0A &: @@ -2125,16 +2125,60 @@ 2, 1/4%5D%7D + fontSize=%7B%5B%221em%22, %221em%22, %221.3em%22, %221.5em%22%5D%7D %3E%0A
defaed8e8f5ed4ace2cdc8e87c9011219ac93b6e
Update DEV.js
config/env/DEV.js
config/env/DEV.js
let oxygen = { WWW_PORT: process.env.OXYGEN_WWW_PORT || process.env.PORT || 8080, SEARCHER_MQ_NAME: 'searcher', CRAWLER_MQ_NAME: 'crawler', PARSER_MQ_NAME: 'parser' } let mongo = { host: process.env.MONGO_HOST || '127.0.0.1', port: process.env.MONGO_PORT || 27017, usr: process.env.MONGO_USR || 'mong...
JavaScript
0.000001
@@ -807,16 +807,16 @@ %7C%7C ' -Pappu14. +password '%0D%0A%7D
71adbe330e85041a306080d705150757beef033a
Refactor IVoiceChannel.join
lib/interfaces/IVoiceChannel.js
lib/interfaces/IVoiceChannel.js
"use strict"; const Utils = require("../core/Utils"); const User = require("../models/User"); const IChannel = require("./IChannel"); /** * @interface * @model Channel * @extends IChannel */ class IVoiceChannel extends IChannel { constructor(discordie, channelId) { super(discordie, channelId); } /** ...
JavaScript
0
@@ -1992,125 +1992,8 @@ %7D%0A%0A - const argsArray = %5B%5D.slice.call(arguments);%0A const args = %5Bthis.guild_id, this._channelId%5D.concat(argsArray);%0A @@ -2067,23 +2067,59 @@ eate -.apply(vc, args +(this.guild_id, this._channelId, selfMute, selfDeaf );%0A
cf977bb132af00a8ac7c2053d0a1d161c48d9783
Add hint for IE11 workaround.
src/extras/core/Font.js
src/extras/core/Font.js
/** * @author zz85 / http://www.lab4games.net/zz85/blog * @author mrdoob / http://mrdoob.com/ */ import { ShapePath } from './ShapePath.js'; function Font( data ) { this.type = 'Font'; this.data = data; } Object.assign( Font.prototype, { isFont: true, generateShapes: function ( text, size ) { if ( si...
JavaScript
0
@@ -692,16 +692,37 @@ '' ); // + workaround for IE11, see #13
db1f5c3985ae6410e246eb6a2c6ab44703c245e4
Make halftone default to a black background instead of a transparent one
src/filters/halftone.js
src/filters/halftone.js
// @flow import { PALETTE, RANGE, STRING, BOOL } from "constants/controlTypes"; import { nearest } from "palettes"; import { cloneCanvas, getBufferIndex, rgba } from "utils"; import type { Palette } from "types"; export const optionTypes = { size: { type: RANGE, range: [0, Infinity], default: 6 }, // diameter of i...
JavaScript
0.000098
@@ -698,19 +698,13 @@ t: %22 -transparent +black %22 %7D%0A
07fec32754cef2695a24647b21b8a12791c12b9f
Tweak standalone REPL prompt
repl_cell.js
repl_cell.js
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sou...
JavaScript
0
@@ -2681,16 +2681,17 @@ %22) + %22 + %22;%0A
c5e5fe55db486f6e7b203c58a64d6aaa4604ef8d
Use QUOTAGUARDSTATIC_URL ENV variable
resolvers.js
resolvers.js
const fetch = require('node-fetch'); const util = require('util'); const parseXML = util.promisify(require('xml2js').parseString); const {NotAuthorised, InvalidPostcode, IncorrectPostcode} = require('./errors'); const Posty = require('postcode'); var HttpsProxyAgent = require('https-proxy-agent'); let agent = null; co...
JavaScript
0
@@ -318,25 +318,36 @@ %0Aconst %7B -PROXY_URI +QUOTAGUARDSTATIC_URL %7D = proc @@ -360,25 +360,36 @@ v;%0A%0Aif ( -PROXY_URI +QUOTAGUARDSTATIC_URL ) %7B%0A ag @@ -418,17 +418,28 @@ ent( -PROXY_URI +QUOTAGUARDSTATIC_URL );%0A%7D
e1134086a32c0f491fc79a82099b6ded9b4faf6e
Apply BackgroundImage fix for FeaturedTile
src/tile/FeaturedTile.js
src/tile/FeaturedTile.js
import PropTypes from 'prop-types'; import React from 'react'; import { TouchableOpacity, Text as NativeText, View, Image, StyleSheet, Dimensions, } from 'react-native'; import Text from '../text/Text'; import Icon from '../icons/Icon'; import ViewPropTypes from '../config/ViewPropTypes'; const FeaturedTil...
JavaScript
0
@@ -119,17 +119,8 @@ ew,%0A - Image,%0A St @@ -285,16 +285,73 @@ pTypes'; +%0Aimport BackgroundImage from '../config/BackgroundImage'; %0A%0Aconst @@ -1758,16 +1758,26 @@ %0A %3C +Background Image%0A @@ -2530,16 +2530,26 @@ %3C/ +Background Image%3E%0A @@ -2701,16 +2701,26 @@ ageSrc: +Backgr...
1edc5cd07d23e51065ebfb8c780090a8ea59c2f9
remove indexChanged event registration
src/ui/SolidityLocals.js
src/ui/SolidityLocals.js
'use strict' var DropdownPanel = require('./DropdownPanel') var localDecoder = require('../solidity/localDecoder') var solidityTypeFormatter = require('./SolidityTypeFormatter') var yo = require('yo-yo') class SolidityLocals { constructor (_parent, _traceManager, internalTreeCall) { this.parent = _parent th...
JavaScript
0
@@ -819,21 +819,30 @@ gister(' -index +sourceLocation Changed' @@ -850,21 +850,30 @@ this, ( -index +sourceLocation ) =%3E %7B%0A @@ -966,253 +966,8 @@ ''%0A - if (index %3C 0) %7B%0A warningDiv.innerHTML = 'invalid step index'%0A return%0A %7D%0A%0A if (this.parent.currentStepIndex...
58dd8c6517cc44f6b12e3d0302a0ab66af33cbf3
Fix render logic bug in the default Typeahead item components (could cause undefined to be returned inappropriately)
src/ui/typeahead/core.js
src/ui/typeahead/core.js
import React from 'react' import _ from 'lodash' import API from '../../api' import {objectToQueryString} from '../../utils/query' export default class Typeahead extends React.Component { static propTypes = { code: React.PropTypes.string, disabled: React.PropTypes.bool, placeholder: ...
JavaScript
0
@@ -5505,24 +5505,25 @@ ult.name %7C%7C +( result.first @@ -5595,16 +5595,17 @@ : null +) %7C%7C resu
ff9432ad0a6654fc18103b80348a8fdd3f264e67
reset state after failure
src/util/pair-checker.js
src/util/pair-checker.js
// LICENSE : MIT "use strict"; /** * 「と」といったペアがちゃんと閉じられているかをチェックします * @param {object} context * @param {string} left * @param {string} right * @returns {object} */ import assert from "assert"; import {RuleHelper} from "textlint-rule-helper"; export function checkPair(context, { left, right }) { assert(left); ...
JavaScript
0.000001
@@ -1608,32 +1608,94 @@ %7D);%0A + // clear state%0A matchParentheses = %5B%5D;%0A %7D%0A %7D;
78ab3bb9ec8ca3fdcee673495f3e5fb1a1c25000
add check if window undefined before calculating uniqueId
src/utils/getUniqueId.js
src/utils/getUniqueId.js
/* To prevent the SVGs masks being used with the same id */ const getUniqueId = () => { const id = Math.random() .toString(36) .substring(2, 15); return id; }; export default getUniqueId;
JavaScript
0.000001
@@ -81,16 +81,62 @@ () =%3E %7B%0A +%0A if(typeof window === 'undefined') return;%0A%0A const
7b6aaecb9f438e691fcc90574318839ae3ad62d9
fix missing padding-right when overflow-y is scroll
src/utils/popup/index.js
src/utils/popup/index.js
import Vue from 'vue'; import merge from 'element-ui/src/utils/merge'; import PopupManager from 'element-ui/src/utils/popup/popup-manager'; import getScrollBarWidth from '../scrollbar-width'; let idSeed = 1; const transitions = []; const hookTransition = (transition) => { if (transitions.indexOf(transition) !== -1)...
JavaScript
0.000069
@@ -184,16 +184,51 @@ -width'; +%0Aimport %7B getStyle %7D from '../dom'; %0A%0Alet id @@ -4563,24 +4563,92 @@ rollHeight;%0A + let bodyOverflowY = getStyle(document.body, 'overflowY');%0A if @@ -4671,16 +4671,17 @@ %3E 0 && +( bodyHasO @@ -4679,32 +4679,63 @@ (bodyHasOverflow + %7C%7C bodyO...
a80b11f98dcae8adc5eaca09941cb2ac88d3fe04
remove delay
src/main/mhub/index.js
src/main/mhub/index.js
'use strict' const fs = require('fs') const ejs = require('ejs') const path = require('path') const mkdirp = require('mkdirp') const Promise = require('bluebird') const randomatic = require('randomatic') const { MClient } = require('mhub') Promise.promisifyAll(fs) Promise.promisifyAll(ejs) const mkdirpAsync = Promis...
JavaScript
0.000025
@@ -1786,27 +1786,8 @@ %7D)%0A - .delay(1000)%0A
1aa2d92e5f255dc5e795f21623c83c35b819d9a9
use DI pattern for rails asset pipeline compatibility
ngProgress.js
ngProgress.js
/* ngProgress v0.0.2 - slim, site-wide progressbar for AngularJS (C) 2013 - Victor Bjelkholm License: MIT (see LICENSE) Source: https://github.com/victorbjelkholm/ngprogress */ var module = angular.module('ngProgress', []); module.provider('progressbar', function() { //Default values for provider this.count =...
JavaScript
0
@@ -393,16 +393,41 @@ s.$get = + %5B'$document', '$window', functio @@ -5123,24 +5123,25 @@ %7D%0A %7D +%5D ;%0A%0A this. @@ -5286,8 +5286,9 @@ %7D;%0A%0A%7D); +%0A
00d126ba34dcefad8f7680999df9b95152bdc9c6
check if renderable
src/instance/methods.js
src/instance/methods.js
/* ======= Instance Methods ======= */ var hasConsole = typeof window.console !== undefined; /** * Logs a Message * @param {String} msg */ Moon.prototype.log = function(msg) { if(!config.silent && hasConsole) console.log(msg); } /** * Throws an Error * @param {String} msg */ Moon.prototype.error = function(msg) { ...
JavaScript
0.000001
@@ -1415,16 +1415,38 @@ ode.once + && vnode.shouldRender ) %7B%0A
6495eaca783e3141dccff577c0440f021894cdd5
Remove redundant default props in BottomConfirmModal
src/widgets/modals/BottomConfirmModal.js
src/widgets/modals/BottomConfirmModal.js
/* @flow weak */ /** * OfflineMobile Android * Sustainable Solutions (NZ) Ltd. 2016 */ import React from 'react'; import { Text, StyleSheet, View, } from 'react-native'; import { Button } from '../Button'; import { BottomModal } from './BottomModal'; import globalStyles, { SUSSOL_ORANGE, WARM_GREY } from '.....
JavaScript
0
@@ -1503,153 +1503,8 @@ m',%0A - swipeToClose: false, // negating the default.%0A backdropPressToClose: false, // negating the default.%0A position: 'bottom',%0A backdrop: false,%0A %7D;%0A%0A
140f0c90cfddfb8367971361f5a47bed0500e8f0
purge cache optimize
core/app/index.js
core/app/index.js
const express = require('express'); const ect = require('ect'); const path = require('path'); const random = require('random-int'); module.exports = config => { const app = express(); const themeName = 'default'; const themeDir = path.resolve( __dirname, '../../content/themes', config.theme ); const libDir...
JavaScript
0.000001
@@ -178,16 +178,47 @@ press(); +%0A%09const timestamp = Date.now(); %0A%0A%09const @@ -893,33 +893,116 @@ =%3E -file + '?_=' + Date.now() +%7B%0A%09%09%09if (config.debug) %7B%0A%09%09%09%09return file + '?_=' + Date.now();%0A%09%09%09%7D%0A%0A%09%09%09return file + '?_=' + timestamp;%0A%09%09%7D ;%0A%09%09
fae3d819b57fe69eb81612cd97fa4a1ed3e47aad
Use mime type resolving from platform utils.
webinos/common/xmpp/lib/webserver.js
webinos/common/xmpp/lib/webserver.js
/******************************************************************************* * Code contributed to the webinos project * * 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....
JavaScript
0
@@ -1701,16 +1701,166 @@ ation)); +%0A%0A var webinos = require(%22find-dependencies%22)(__dirname);%0A var content = webinos.global.require(webinos.global.util.location, %22lib/content.js%22); %0A %0A @@ -4140,352 +4140,8 @@ s;%0A%0A - var mimeTypes = %5B%5D;%0A mimeTypes%5B%22.png%22%5D = %22imag...
1d4460c237cb8fa225c70c6a90c1cab918e5a5f2
Fix an error message.
lib/transport/http-transport.js
lib/transport/http-transport.js
/** * Implementation of an HTTP/REST transport for the JSON-WS module. */ 'use strict'; const jsonrpc = require('./json-rpc'); const BaseTransport = require('./base-transport'); function param(req, name, defaultValue) { const params = req.params || {}; const body = req.body || {}; const query = req.query || {};...
JavaScript
0.000081
@@ -1812,16 +1812,44 @@ (-32000, + 'Sending response failure', err.mes
2d66c0b1e05a62cd7b8295a4d55a547b3c85eb90
fix 0.8.0 issue with verifying the kong node by case-insensitive compare
src/js/services/kong.js
src/js/services/kong.js
/** * This factory handles CRUD requests to the backend API. */ angular.module('app') .factory('Kong', ['$http', '$q', '$cookies', 'Alert', function ($http, $q, $cookies, Alert) { var config = { url : $cookies.getObject('config.url'), auth : { type : "no_auth" } }; ...
JavaScript
0
@@ -3949,14 +3949,28 @@ line +.toLowerCase() == %22 -W +w elco @@ -3975,17 +3975,17 @@ come to -K +k ong%22) %7B%0A
04e6c43da793d94c10c1e6601439a696e72b8923
fix typo in comment
src/js/utils/strings.js
src/js/utils/strings.js
// ========================================================================== // String utils // ========================================================================== import is from './is'; // Generate a random ID export function generateId(prefix) { return `${prefix}-${Math.floor(Math.random() * 10000)}`; } ...
JavaScript
0.000529
@@ -393,22 +393,16 @@ (input)) - %7B%0A return @@ -407,20 +407,16 @@ n input; -%0A %7D %0A%0A retu @@ -726,17 +726,18 @@ ll occur -a +re nces of
01ceab37ccbdc1b256154186f6140add18835a5b
删除fs.watch特性
node/_node.js
node/_node.js
var fs = require('fs'); var path = require('path'); module.exports = function (template) { var cacheStore = template.cache; var defaults = template.defaults; var rExtname; // 提供新的配置字段 defaults.base = ''; defaults.extname = '.html'; defaults.encoding = 'utf-8'; function compileFromFS(filename) { // 加载模板并编译...
JavaScript
0
@@ -691,315 +691,8 @@ me); -%0A%0A%09%09 if (fn) %7B%0A%09%09%09 var watcher = fs.watch(filename + defaults.extname);%0A%0A%09%09%09 // %E6%96%87%E4%BB%B6%E5%8F%91%E7%94%9F%E6%94%B9%E5%8F%98%EF%BC%8C%E9%87%8D%E6%96%B0%E7%94%9F%E6%88%90%E7%BC%93%E5%AD%98%0A%09%09%09 // TODO%EF%BC%9A %E8%A7%82%E5%AF%9F%E5%88...
10a4d3f66049d804e1cf7854d2e957ef1248edc8
increase range of opacity generator slightly
site/main.js
site/main.js
import Vue from 'vue' import fetch from 'unfetch' import * as hero from '../' const patterns = [] const random = (min, max) => Math.floor(Math.random() * (max - min + 1) + min) const roundTo = (increment, number) => Math.round(number / increment) * increment const genAlpha = () => { // using 102 instead of 100 for t...
JavaScript
0
@@ -382,16 +382,74 @@ rning 1%0A + // the same holds true for using 23 for the lower range%0A let nu @@ -471,17 +471,17 @@ random(2 -5 +3 , 102))%0A
d05330111ccc9d820c19e35f7b834ad98629ebde
fix throttling
src/withMousePosition.js
src/withMousePosition.js
import React from 'react' import { findDOMNode } from 'react-dom' import createHelper from 'recompose/createHelper' import createElement from 'recompose/createElement' import pick from 'lodash/pick' import identity from 'lodash/identity' import isFunction from 'lodash/isFunction' const pickedProps = [ 'pageX', 'pa...
JavaScript
0.000004
@@ -1052,28 +1052,29 @@ e = -e =%3E%0A throttle( +throttle(%0A e =%3E this @@ -1123,16 +1123,21 @@ rops) %7D) +%0A )%0A%0A o
91b21bc7964186432e82f16b60eba82f65287390
Reset relevance of F# keywords.
src/languages/fsharp.js
src/languages/fsharp.js
/* Language: F# Author: Jonas Follesø <jonas@follesoe.no> Contributors: Troy Kershaw <hello@troykershaw.com>, Henrik Feldt <henrik@haf.se> */ function(hljs) { var TYPEPARAM = { begin: '<', end: '>', contains: [ hljs.inherit(hljs.TITLE_MODE, {begin: /'[a-zA-Z0-9_]+/}) ] }; return { aliases: ...
JavaScript
0
@@ -627,19 +627,16 @@ 'fun -%7C10 functio @@ -731,19 +731,16 @@ mutable -%7C10 namespa @@ -804,11 +804,8 @@ rec -%7C10 ret
493a1e8c9a2bfc398e51de790d780354b23313f2
Set event handler on accordion header only
src/layout/Accordion.js
src/layout/Accordion.js
/* jshint undef: true, unused: true, browser: true, quotmark: single, curly: true */ /* global Ext */ Ext.define('Jarvus.touch.layout.Accordion', { extend: 'Ext.layout.Default', alias: ['layout.accordion'], config: { expandedItem: null, allowCollapse: true, scrollOnExpand: false, ...
JavaScript
0
@@ -1370,32 +1370,49 @@ accordion +, accordionHeader ;%0A%0A item. @@ -1754,16 +1754,86 @@ ccordion +Header = accordion.down('.accordion-header');%0A%0A accordionHeader .on(%7B%0A @@ -1884,32 +1884,38 @@ accordion +Header .addCls(pressedC @@ -1986,32 +1986,38 @@ accordion +He...
d8f871f851e466b611de2938141b7cb475ee3347
add missing backtick
src/mixins/ellipsis.js
src/mixins/ellipsis.js
// @flow /** * CSS to represent truncated text with an ellipsis. * * @example * // Styles as object usage * const styles = { * ...ellipsis('250px') * } * * // styled-components usage * const div = styled.div` * ${ellipsis('250px')} * * * // CSS as JS Output * * div: { * 'display': 'inline-block'...
JavaScript
0.000881
@@ -243,16 +243,18 @@ px')%7D%0A * + %60 %0A *%0A * /
e674a995916f4d3fcdda0b40a70cc43e9a005d08
remove repos
src/lib/make_sourced.js
src/lib/make_sourced.js
'use strict' var Common = require('./common') var async = require('async') var _ = require('lodash') var util = require('util') function EntityError (msg, constr) { Error.captureStackTrace(this, constr || this) this.message = msg || 'Entity Error' } util.inherits(EntityError, Error) EntityError.prototype.name =...
JavaScript
0.000001
@@ -603,121 +603,8 @@ me%0A%0A - private$.events_repo = seneca.make('events', name)%0A private$.snapshots_repo = seneca.make('snapshots', name)%0A%0A th
eb37cc10c19415b0fd1ff58d1cfcafd03f166324
set arrow element onLoad
src/modifiers/arrow.js
src/modifiers/arrow.js
// @flow import type { Modifier, ModifierArguments } from '../types'; import getBasePlacement from '../utils/getBasePlacement'; import addClientRectMargins from '../dom-utils/addClientRectMargins'; import getLayoutRect from '../dom-utils/getLayoutRect'; import getMainAxisFromPlacement from '../utils/getMainAxisFromPlac...
JavaScript
0.00016
@@ -485,17 +485,8 @@ ate, - options, nam @@ -526,521 +526,50 @@ %7B%0A -let %7B element: arrowElement = '%5Bdata-popper-arrow%5D' %7D = options;%0A%0A // CSS selector%0A if (typeof arrowElement === 'string') %7B%0A arrowElement = state.elements.popper.querySelector(arrowElement);%0A%0A if (!arrowElement) ...
b164a8617044c7767d79e1d53fac71f863d8d5ad
Fix regression in logout button position
src/mui/layout/Menu.js
src/mui/layout/Menu.js
import React, { PropTypes } from 'react'; import inflection from 'inflection'; import Paper from 'material-ui/Paper'; import { List, ListItem } from 'material-ui/List'; import { Link } from 'react-router'; import pure from 'recompose/pure'; import compose from 'recompose/compose'; import translate from '../../i18n/tran...
JavaScript
0.000025
@@ -459,32 +459,131 @@ 0.32, 1) 0ms',%0A + display: 'flex',%0A flexDirection: 'column',%0A justifyContent: 'space-between',%0A marginLe @@ -718,32 +718,131 @@ 0.32, 1) 0ms',%0A + display: 'flex',%0A flexDirection: 'column',%0A justifyContent: 'space-between',%0A ...
b5db617063ce57a28e8146e47b477f52e461ab77
Fix story mutation validation (#37)
src/mutations/story.js
src/mutations/story.js
/** * Node.js API Starter Kit (https://reactstarter.com/nodejs) * * Copyright © 2016-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* @flow */ import validator from 'validator'; im...
JavaScript
0.000001
@@ -1872,27 +1872,28 @@ ength(input. -url +text , %7B min: 20,
a0f1fed1ea90fe68cf7488207ba2097b2f0e8de6
Fix english
src/index.js
src/index.js
import React, {useEffect, useRef, useState} from 'react' import PropTypes from 'prop-types' import ReactSlidySlider from './react-slidy-slider' function noop() {} const ReactSlidy = props => { const [showSlider, setShowSlider] = useState(!props.lazyLoadSlider) const nodeEl = useRef(null) useEffect( functio...
JavaScript
0.999999
@@ -3215,21 +3215,16 @@ want to -take sanitize
86c045c39c072a1c92f802282d815331c069ca07
remove useless escaping in regex
src/index.js
src/index.js
'use strict' import arrayUnique from 'array-unique' /** * Retrieve list of Angular modules get/set in file * @throws {Error} - if fileContents is not passed * @throws {TypeError} - if fileContents is not a string * @param {String} fileContents - Angular file contents to be examined * @returns {String[]} - list of...
JavaScript
0.000002
@@ -662,17 +662,16 @@ %5Dmodule%5B -%5C (%5D?%5B%5Cs%5D* @@ -681,17 +681,16 @@ %5E'%5D*)'%5B%5E -%5C )angular @@ -692,17 +692,16 @@ gular%5D*%5B -%5C )%5D?/g%0A%0A
f86f99d172274712b6d169928d1ee6b51c0108ba
tweak logic
src/index.js
src/index.js
var Promise = require('i-promise'); var getRetryCounts = require('./get-retry-counts'); module.exports = repromise; function repromise(options, fn) { return new Promise((resolve, reject)=>{ if (arguments.length < 1) throw new Error('No arguments specified'); if (arguments.length == 1) { fn = options; ...
JavaScript
0.000001
@@ -151,46 +151,12 @@ %7B%0A -return new Promise((resolve, reject)=%3E +try %7B%0A @@ -183,22 +183,38 @@ th %3C 1) -throw +return Promise.reject( new Erro @@ -240,16 +240,17 @@ cified') +) ;%0A if @@ -360,14 +360,30 @@ n') -throw +return Promise.reject( new @@ -411,16 +411,17 @@ quired') +) ;%0A%...
441b86ad051deaaf71aede46f4281c88c2a32b4f
fix Object.keys usage
src/index.js
src/index.js
import isPlainObject from 'is-plain-object' const _encode = value => Array.isArray(value) && !value.length ? '[]' : encodeURI(value) const encodeParam = (value, key) => { if (isPlainObject(value)) { return Object.keys(value).reduce((memo, _key) => { return `${memo}${key}[${_key}]=${_encode(va...
JavaScript
0.000053
@@ -1170,11 +1170,8 @@ o, k -, v ) =%3E @@ -1232,17 +1232,29 @@ mo%5Bk%5D = -v +baseParams%5Bk%5D %0A
16b5918770542c66bd4c53c32f4fcb4c903400d1
feat(def): add def method
src/index.js
src/index.js
// @flow /** * class-component.js v13.0.0 * author: Yoshiya Hinosawa ( http://github.com/kt3k ) * license: MIT */ import './decorators.js' import { register as cc, init, ccc } from './register-and-init.js' import check, { checkClassNamesAreStringOrNull, checkComponentNameIsValid } from './assert.js' import $ from '...
JavaScript
0.999676
@@ -395,16 +395,29 @@ = init%0A%0A +cc.def = cc%0A%0A // Expos
d6516f450d26d3315e0312313c5e9beb94d52e5c
Add tslint-eslint-rules
src/index.js
src/index.js
module.exports = { rules: { // tslint (https://palantir.github.io/tslint/rules/) "align": false, "eofline": false, "import-spacing": false, "indent": false, "linebreak-style": false, "max-line-length": false, "new-parens": false, "no-consecutive-blank-lines": false, "no-irregul...
JavaScript
0
@@ -848,15 +848,318 @@ -rules)%0A + %22block-spacing%22: false,%0A %22brace-style%22: false,%0A %22no-multi-spaces%22: false,%0A %22object-curly-spacing%22: false,%0A %22space-in-parens%22: false,%0A %22ter-arrow-parens%22: false,%0A %22ter-arrow-spacing%22: false,%0A %22ter-indent%22: false,%0...
b6113c7f5ee25d2a9442f38b47ab5bfd9ed0ae67
add performJob method
src/index.js
src/index.js
var q = require('q'); /** * A tool for creating and processing background jobs * @class JobQueueService * @param {StorageService} storage an instance of le-storage-service that is used to create records * @returns {service} */ var JobQueueService = function (storage) { if (!storage) { throw new Error('Instance o...
JavaScript
0.000067
@@ -925,24 +925,710 @@ ;%0A %7D%0A /**%0A + * Stores a new job and resolve when the job is complete%0A * @function performJob%0A * @memberof JobQueueService%0A * @instance%0A * @param %7Bstring%7D type the type of the job, used to determine how it should be processed%0A * @param %7Bstring%7D data the dat...
f927d1ff8d8eed2778f98c2746d9535d12547ce1
use resolved stage value when stage is NOT passed in as options
src/index.js
src/index.js
'use strict'; class BinarySupport { constructor(serverless, options) { this.options = options || {}; this.serverless = serverless; this.mimeTypes = this.serverless.service.custom.apigwBinary.types; this.provider = this.serverless.getProvider(this.serverless.service.provider.name); this.stage = th...
JavaScript
0.000002
@@ -298,88 +298,8 @@ e);%0A - this.stage = this.options.stage %7C%7C this.serverless.service.provider.stage;%0A%0A @@ -393,16 +393,21 @@ etApiId( +stage ) %7B%0A @@ -503,16 +503,17 @@ acks', %7B + StackNam @@ -553,19 +553,15 @@ ame( -this. stage) + %7D).t @@ -905,34 +905,32 @@ swagger) %7B%0A ...
47bbda08d97240f6f33dee59654d399bd2755e5a
Remove GenerateMeshBVHWorker export
src/index.js
src/index.js
export { MeshBVH } from './core/MeshBVH.js'; export { MeshBVHVisualizer } from './objects/MeshBVHVisualizer.js'; export { CENTER, AVERAGE, SAH, NOT_INTERSECTED, INTERSECTED, CONTAINED } from './core/Constants.js'; export { getBVHExtremes, estimateMemoryInBytes, getJSONStructure, validateBounds } from './debug/Debug.js'...
JavaScript
0
@@ -635,56 +635,4 @@ s';%0A -export * from './workers/GenerateMeshBVHWorker.js';%0A