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
adb4b70238eb9a971fa9577e38dce87010018eee
add missing semicolon
lib/AsyncDependenciesBlock.js
lib/AsyncDependenciesBlock.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const DependenciesBlock = require("./DependenciesBlock"); module.exports = class AsyncDependenciesBlock extends DependenciesBlock { constructor(name, module, loc) { super(); this.chunkName = name; t...
JavaScript
0.999999
@@ -1338,9 +1338,10 @@ %09%09%7D%0A%09%7D%0A%7D +; %0A
51479b1ef8d69de06b19589d226b1852ab7bd9b0
Update videos.js
demo/demoApp/videos.js
demo/demoApp/videos.js
(function () { "use strict"; window.App.videos = [ { title: 'Mjehanik.Voskrjeshenije.2016.D.BDRip 720p.mkv', url: 'http://www.ex.ua/get/285854084', type: 'vod' }, { title: 'Gotham.S02E18', url: 'http://fs.to/get/dl/6jw...
JavaScript
0
@@ -87,49 +87,49 @@ e: ' -Mjehanik.Voskrjeshenije.2016.D.BDRip 720p +Narcos.S01E10.1080p.WEBRip.Rus.Eng.HDCLUB .mkv @@ -175,16 +175,16 @@ et/2 -85854084 +00021097 ',%0A
c4f0eed38fb43ce2c0afa18676bde430f6ccc6b9
fix small typo in cli help menu
lib/commands/set-default-argv.js
lib/commands/set-default-argv.js
var optimist = require('optimist'); var log = require('db-migrate-shared').log; module.exports = function(internals, isModule) { var rc = require('rc'); var deepExtend = require('deep-extend'); var defaultConfig = { verbose: false, table: 'migrations', 'seeds-table': 'seeds', 'force-exit': false,...
JavaScript
0.000094
@@ -2265,17 +2265,17 @@ orks onl -t +y with SQ
2991651f7c513cbd4555b5f0be33c70fa56a77e5
remove log code
evently/tasks/_init/data.js
evently/tasks/_init/data.js
function(data){ var tasks = []; for (r in data.rows) { tasks.push(data.rows[r]["value"]); } $.log(tasks); return {"tasks": tasks}; }
JavaScript
0.000006
@@ -9,16 +9,56 @@ (data)%7B%0A + // restructure data for easier access%0A var ta @@ -141,24 +141,8 @@ %7D%0A - $.log(tasks);%0A re
d612cd6ce4b267677c40fd1ceea88820b382f5e4
FIX Firefox file upload
src/block_mixins/droppable.js
src/block_mixins/droppable.js
"use strict"; /* Adds drop functionaltiy to this block */ var _ = require('../lodash'); var $ = require('jquery'); var config = require('../config'); var utils = require('../utils'); var EventBus = require('../event-bus'); module.exports = { mixinName: "Droppable", valid_drop_file_types: ['File', 'Files', 'tex...
JavaScript
0
@@ -1075,16 +1075,30 @@ types = +this._toArray( e.dataTr @@ -1109,16 +1109,17 @@ er.types +) ;%0A%0A e @@ -1523,16 +1523,278 @@ ockID);%0A + %7D,%0A %0A _toArray: function(obj) %7B%0A if (Array.isArray(obj)) return obj;%0A %0A var array = %5B%5D;%0A %0A // iterate backwards ensuring that leng...
68741e92b5afc1fd1832a9a223bd37b75126263b
improve readability of hasValue in formField
packages/app-extensions/src/formField/formField.js
packages/app-extensions/src/formField/formField.js
import React from 'react' import PropTypes from 'prop-types' import _get from 'lodash/get' import {StatedValue} from 'tocco-ui' import {consoleLogger} from 'tocco-util' import fromData from '../formData' import typeEditables from './typeEditable' const FormFieldWrapper = props => { const hasValueOverwrite = props.t...
JavaScript
0.000005
@@ -1544,24 +1544,25 @@ ndefined && +( value.length @@ -1566,13 +1566,42 @@ gth -!== 0 +=== undefined %7C%7C value.length %3E 0) %0A
58c9ea2fd1d9ab67ab19b17200002ee50a343d8f
Return promise for build
.task/tasks/build.js
.task/tasks/build.js
'use strict'; var wrench = require('wrench'); var bower = require('./bower'); var exec = require('../lib/execute'); var platforms = require('../../.setup/platform').platforms; var environments = require('../../.setup/environment').environments; var build = module.exports = Object.create(exec); build.command = './node...
JavaScript
0
@@ -713,24 +713,31 @@ ) %7B%0A +return build.run(ty
86b9d257fa0da2492f3df89a3842a653adbfbb52
add ability to override ajax async flag
backbone.nativeajax.js
backbone.nativeajax.js
// Backbone.NativeAjax.js 0.4.3 // --------------- // (c) 2015 Adam Krebs, Paul Miller, Exoskeleton Project // Backbone.NativeAjax may be freely distributed under the MIT license. // For all details and documentation: // https://github.com/akre54/Backbone.NativeAjax (function (factory) { if (typeof ...
JavaScript
0.000001
@@ -3845,11 +3845,30 @@ rl, -tru +options.async !== fals e);%0A
37ba6c54573d829ec16acd166c421df742a16d57
fix leaderboard test
server/controllers/scores.test.js
server/controllers/scores.test.js
const request = require('superagent') const expect = require('chai').expect const config = require('../config') const codes = require('../utils/codes') const SCORES_URL = `localhost:${config.PORT}/api/scores/` describe('Score API', function() { describe('Update score', function() { it('error without auth token...
JavaScript
0.000008
@@ -4131,16 +4131,97 @@ thOf(2)%0A + const testUser = resp.body.find(user =%3E (user.username = 'test_user'))%0A @@ -4229,28 +4229,71 @@ expect( -resp.body%5B1%5D +testUser).to.not.be.undefined%0A expect(testUser .quizzed @@ -4332,20 +4332,16 @@ ect( -resp.body%5B1%5D +testUser .sco
84f69eb27f646ee089901660252839cf143f6e87
Fix HTTP redirection for the extension
extensions/firefox/components/PdfStreamConverter.js
extensions/firefox/components/PdfStreamConverter.js
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; const Cu = Components.utils; const PDFJS_EVENT_ID = 'pdf.js...
JavaScript
0.000458
@@ -4492,24 +4492,16 @@ Request. -original URI;%0A @@ -4833,24 +4833,16 @@ Request. -original URI.spec
2f7860f17f89b2ec1fe518ec4fda659526338036
change config loading order
lib/core_modules/config/index.js
lib/core_modules/config/index.js
'use strict'; var Q = require('q'), fs = require('fs'), _ = require('lodash'); function mergeConfig(original, saved) { var clean = {}; for (var index in saved) { clean[index] = saved[index].value; if (original[index]) { original[index].value = saved[index].value; } else { original[...
JavaScript
0.000001
@@ -140,16 +140,127 @@ n = %7B%7D;%0A + for (var index in original) %7B%0A if (!saved%5Bindex%5D) %7B%0A clean%5Bindex%5D = original%5Bindex%5D.value;%0A %7D%0A %7D%0A for (v
89e77b68baff5391e93d141b0d57744c5d604ee6
Improve ordering
lib/get/get-full-source-space.js
lib/get/get-full-source-space.js
import Promise from 'bluebird' import Listr from 'listr' import verboseRenderer from 'listr-verbose-renderer' import sortEntries from '../utils/sort-entries' const MAX_ALLOWED_LIMIT = 1000 let pageLimit = MAX_ALLOWED_LIMIT /** * Gets all the content from a space via the management API. This includes * content in dra...
JavaScript
0
@@ -4293,16 +4293,23 @@ reatedAt +,sys.id '%0A %7D)%0A
9fff2d3941e648b4d54a8c39efa76e632c2f47f1
Reset related concepts when we run a new query. [rev: jon.soul]
find-core/src/main/public/static/js/find/app/page/search/input-view.js
find-core/src/main/public/static/js/find/app/page/search/input-view.js
define([ 'backbone', 'jquery', 'underscore', 'find/app/util/string-blank', 'i18n!find/nls/bundle', 'text!find/templates/app/page/search/input-view.html', 'typeahead' ], function(Backbone, $, _, stringBlank, i18n, template) { var html = _.template(template)({i18n: i18n}); var re...
JavaScript
0
@@ -1561,24 +1561,103 @@ et(%7B -inputText: query +%0A inputText: query,%0A relatedConcepts: %5B%5D%0A %7D);%0A @@ -3393,16 +3393,17 @@ %7D)) +; %0A
2f5b49bbf0c02225f62b950b393bdcdd99c62a95
Fix two line input on cd.
javascript/react.js
javascript/react.js
var jQuery = require('jquery'); var Terminal = require('./compiled/Terminal'); var React = require('react'); var _ = require('lodash'); jQuery(document).ready(function () { window.terminal = new Terminal(getDimensions()); jQuery(window).resize(function() { terminal.resize(getDimensions()); }); ...
JavaScript
0.000028
@@ -3715,53 +3715,169 @@ -this.props.prompt.send(event.target.innerText +// Prevent two-line input on cd.%0A var text = event.target.innerText;%0A setTimeout(function ()%7B this.props.prompt.send(text); %7D.bind(this), 0 );%0A
4b08ed872d29672d91a4cfa9625d164a8906b328
Update drag.js
javascripts/drag.js
javascripts/drag.js
var main = function(){ //To drag the pictures $(".wallpic").draggable(); $(".wallsaying").draggable(); }; $(document).ready(main);
JavaScript
0.000001
@@ -45,36 +45,8 @@ res%0A - $(%22.wallpic%22).draggable();%0A $(%22
2f704828902cf1645640c3f155a01eed808e70f8
add copyright comment
jquery.bgAnimate.js
jquery.bgAnimate.js
(function($){ jQuery.fn.bgAnimate = function(option){ if(!option) option = {}; option = $.extend({ height : null, duration : 200, frame : 5, loop : 0, autoplay : false, onPlay : function(){}, onStop : function(){}, onPause : function(){}, onComplete: function(...
JavaScript
0
@@ -1,16 +1,97 @@ +/**%0A * jquery.bgAnimate.js%0A * %0A * @author tekiton%0A * @license MIT LICENSE :)%0A */%0A (function($)%7B%0A%0A%09
c07aafeea6edf82749fd4c7bde01d7b245223f8d
fix click on modal propagation
jquery.the-modal.js
jquery.the-modal.js
/** * The Modal jQuery plugin * * @author Alexander Makarov <sam@rmcreative.ru> * @link https://github.com/samdark/the-modal * @version 1.0 */ ;(function($, window, document, undefined) { "use strict"; /*jshint smarttabs:true*/ var pluginNamespace = 'the-modal', // global defaults defaults = { overl...
JavaScript
0
@@ -1531,20 +1531,27 @@ %09%09%09%09 -return false +e.stopPropagation() ;%0A%09%09
5439fab56cc339899be705a4790f942db44a6438
make shift squared
js/app/FurShader.js
js/app/FurShader.js
'use strict'; define(['framework/BaseShader'], function(BaseShader) { class FurShader extends BaseShader { fillCode() { this.vertexShaderCode = '#version 300 es\r\n' + 'precision highp float;\r\n' + 'uniform mat4 view_proj_matrix;\r\n' + 'uniform...
JavaScript
0
@@ -1499,16 +1499,26 @@ mePi2 = +0.2 * sin( time * P @@ -1519,16 +1519,17 @@ me * PI2 +) ;%5Cr%5Cn' + @@ -1571,16 +1571,22 @@ eFinal = + 1.5 * waveSca @@ -1589,16 +1589,29 @@ eScale * + layerCoeff * layerCo
9f1a52a7a6f2b95b2931447aa78060ae4e6ac5dc
Add more doge sayings
doge_xxyy.github.io.js
doge_xxyy.github.io.js
/* Doge.js (Get your own at https://github.com/xxyy/doge.js/) Copyright (C) 2014 Philipp Nowak / xxyy (xxyy.github.io) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the Li...
JavaScript
0.000001
@@ -76,16 +76,23 @@ C) 2014 +- 2015 Philipp @@ -953,17 +953,17 @@ %22, %22%3E201 -4 +5 %22, %22such @@ -1472,16 +1472,121 @@ batman%22 +,%0A %22enter lynyx%22, %22so arch%22, %22many git%22, %22such twitr addict%22, %22very messed-up sleep schedule%22, %22amaze%22 %5D;%0Avar c
eb253fc50da7f811b7c68f2129a503160ddd126c
Exclude local-file tracks from exported configs.
js/export-config.js
js/export-config.js
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // // Dalliance Genome Explorer // (c) Thomas Down 2006-2014 // // export-config.js // if (typeof(require) !== 'undefined') { var browser = require('./cbrowser'); var Browser = browser.Browser; var utils = require('./utils'); v...
JavaScript
0
@@ -1378,24 +1378,78 @@ dasSource);%0A +%0A if (source.noPersist)%0A continue;%0A%0A sour
559354ec067c7f8c76a9e7018f1f88c27d06f76b
remove console logging
js/isomer-nimbus.js
js/isomer-nimbus.js
/** * Various changes, or additional features for Isomer * @todo back port these * */ /** * Sets the color of a path */ Isomer.Path.prototype.setColor = function (color) { this.color = color; return this; }; /** * Sets the color of a shape, by setting the color of each path */ Isomer.Shape.prototype.setCo...
JavaScript
0.000001
@@ -2521,28 +2521,8 @@ ts;%0A - console.log(args)%0A re
d7ae20f7d37fee9c5123432ee79765329308fa1e
Revert "Attach LogTracer Capitalize" (#81)
js/module/tracer.js
js/module/tracer.js
function Tracer(name) { this.module = this.constructor; this.capsule = this.tm.allocate(this); $.extend(this, this.capsule); this.setName(name); return this.new; } Tracer.prototype = { constructor: Tracer, tm: null, _setData: function () { var args = Array.prototype.slice.call(a...
JavaScript
0
@@ -1680,17 +1680,17 @@ this. -L +l ogTracer
9216ae074785228b66f973337a7e14a085f44ed9
Use standard inherit as part of phetioInherit, see https://github.com/phetsims/phet-io/issues/410
js/phetioInherit.js
js/phetioInherit.js
// Copyright 2016, University of Colorado Boulder /** * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare */ define( function( require ) { 'use strict'; // modules var extend = require( 'PHET_CORE/extend' ); var phetioNamespace = require( 'PHET_IO/phetioNamespace' ); /** * @pa...
JavaScript
0
@@ -196,22 +196,23 @@ s%0A var -extend +inherit = requi @@ -226,22 +226,23 @@ ET_CORE/ -extend +inherit ' );%0A v @@ -1330,612 +1330,53 @@ -function F() %7B%7D%0A%0A F.prototype = supertype.prototype; // so new F().__proto__ === supertype.prototype%0A%0A subtype.prototype = extend( // extend will co...
59bfb993500fe26a85c6a0265039b1651252a091
FIX #110
src/compatibility/function.js
src/compatibility/function.js
/** * @file Function methods polyfill * @since 0.1.5 */ /*#ifndef(UMD)*/ "use strict"; /*global _gpfInstallCompatibility*/ // Define and install compatible methods /*exported _gpfJsCommentsRegExp*/ // Find all JavaScript comments /*#endif*/ var _gpfArrayPrototypeSlice = Array.prototype.slice; _gpfInstallCompatibil...
JavaScript
0
@@ -166,136 +166,618 @@ s%0A/* -exported _gpfJsCommentsRegExp*/ // Find all JavaScript comments%0A/*#endif*/%0A%0Avar _gpfArrayPrototypeSlice = Array.prototype.slice; +global _gpfFunc*/ // Create a new function using the source%0A/*global _gpfBuildFunctionParameterList*/ // Builds an array of parameters%0A/*exported _...
601d9cbedd8ba38a9480049a7b498d0e1c87e055
allow disabling form validation
src/component/aurelia-form.js
src/component/aurelia-form.js
import {bindable, customElement, children, inject} from 'aurelia-framework'; import {Configuration} from 'aurelia-config'; import {resolvedView} from 'aurelia-view-manager'; import {DOM} from 'aurelia-pal'; import {logger} from '../aurelia-form'; @resolvedView('spoonx/form', 'aurelia-form') @customElement('aurelia-for...
JavaScript
0
@@ -516,16 +516,47 @@ oller;%0A%0A + @bindable validated = true;%0A%0A @binda @@ -1291,32 +1291,51 @@ dationController + %7C%7C !this.validated ) %7B%0A return @@ -1706,16 +1706,35 @@ ntroller + %7C%7C !this.validated ) %7B%0A
9b8e277c33cf1699c038f8a6cf975897d021dd07
Compute player scores by win ratio
src/components/RankingView.js
src/components/RankingView.js
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { ListView, View, Text } from 'react-native' const RankingView = React.createClass({ getInitialState() { return { ranking: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }) .cloneWith...
JavaScript
0.999994
@@ -916,16 +916,21 @@ (player, + won, scoreMa @@ -1002,123 +1002,369 @@ %5D = -0%0A %7D%0A scoreMap%5Bplayer.name%5D += player.score%0A %7D%0A let scoreMap = %7B%7D%0A for (playedGame of state.playedGames) %7B +%7B%0A played: 0,%0A won: 0%0A %7D%0A %7D%0A scoreMap%5Bplayer.name%5D...
3d2f96280a3a61e86d0649e14b65b86ef97a4bc7
Tweak to pc.BasicMaterial docs.
src/scene/scene_basicmaterial.js
src/scene/scene_basicmaterial.js
pc.extend(pc, function () { /** * @name pc.BasicMaterial * @class A Basic material is is for rendering unlit geometry, either using a constant color or a * color map modulated with a color. * @property {pc.Color} color The flat color of the material (RGBA, where each component is 0 to 1)....
JavaScript
0
@@ -458,16 +458,417 @@ perty.%0D%0A + * @example%0D%0A * // Create a new Basic material%0D%0A * var material = new pc.BasicMaterial();%0D%0A *%0D%0A * // Set the material to have a texture map that is multiplied by a red color%0D%0A * material.color.set(1, 0, 0);%0D%0A * material.colorMap =...
0686fd5426f3573eac76abef2af4a21a78b2ca5f
increase setup.py timeout to 5000
lib/manager/pip_setup/extract.js
lib/manager/pip_setup/extract.js
const { exec } = require('child-process-promise'); const fs = require('fs-extra'); const { join } = require('upath'); const { isSkipComment } = require('../../util/ignore'); const { dependencyPattern } = require('../pip_requirements/extract'); module.exports = { extractPackageFile, extractSetupFile, }; async func...
JavaScript
0.000097
@@ -1295,9 +1295,9 @@ ut: -3 +5 000, @@ -1360,16 +1360,24 @@ r.warn(%7B + stdout, stderr
323080d3cd743dda2e935530d023693c6fe23253
fix example 2 typo
examples/02-yql/app.js
examples/02-yql/app.js
require('iso-call/polyfill'); var yql = require('./yql'); var inner = function (D) { var json = JSON.stringify(D, undefined, ' '); return ` <input type="text" name="q" value="" /> <input type="submit" value="TEST" /> <hr/> <h3>Result:</h3> <textarea>${json}</textarea> `; }; var template = function (D) { ...
JavaScript
0.000748
@@ -669,12 +669,8 @@ ts.q -uery .val
d904522bbdc1ed5ada1dfdf0894c8e99703eede8
remove throw again we will require this as part of the v2baseStandard and expect it to be there.
lib/methods/v2/translatestate.js
lib/methods/v2/translatestate.js
const Promise = require('bluebird'); const State = require('../../state'); const Chain = require('../../chain'); const Migrate = require('./migrate'); const methods = { createTable: async (driver, [t], internals) => { const mod = internals.modSchema; const schema = mod.c[t]; await driver.createTable(t, s...
JavaScript
0
@@ -1333,336 +1333,8 @@ lse; -%0A const isListed = driver.udriver._meta.signalColumns.indexOf(action) !== -1;%0A%0A if (!isListed) %7B%0A throw new Error(%0A 'This driver does not support signaling for known critical' +%0A %60 functions. $%7Baction%7D can't be savely reversed without causing damage%60...
de896d6ca3bb88e91981d42aa78c0b8fff826e0d
rename all-zero-conf to none and add ETH support
lib/new-admin/config/accounts.js
lib/new-admin/config/accounts.js
const _ = require('lodash/fp') const { COINS, ALL_CRYPTOS } = require('./coins') const { BTC, BCH, DASH, ETH, LTC, ZEC } = COINS const TICKER = 'ticker' const WALLET = 'wallet' const LAYER_2 = 'layer2' const EXCHANGE = 'exchange' const SMS = 'sms' const ID_VERIFIER = 'idVerifier' const EMAIL = 'email' const ZERO_CONF...
JavaScript
0.000004
@@ -2477,21 +2477,12 @@ e: ' -all-zero-conf +none ', d @@ -2494,21 +2494,12 @@ y: ' -Always 0-conf +None ', c @@ -2553,93 +2553,10 @@ BCH -%5D %7D,%0A %7B code: 'no-zero-conf', display: 'Always 1-conf', class: ZERO_CONF, cryptos: %5B +, ETH%5D
dd242a565c232e0abafc3129364aee6603fab7f1
Update cli usage help.
lib/node_modules/sake/options.js
lib/node_modules/sake/options.js
var nomnom = require("nomnom"), FS = require("fs"), Path = require("path"), sutil = require("sake/util"), pkgFile = Path.join(__dirname, "..", "..", "..", "package.json"), pkgJson = FS.readFileSync(pkgFile, "utf8"), pkgInfo = JSON.parse(pkgJson), wordw...
JavaScript
0
@@ -4882,16 +4882,19 @@ efile%5C%22, + or %5C%22sakef @@ -4904,72 +4904,56 @@ %5C%22, -%5C%22Sakefile.js%5C%22, %22 +%0A %22%5C%22sakefile.js%5C%22, %5C%22Sakefile.coffee +with an %22 +%0A %22optional extension of %5C%22.js %5C%22, @@ -4957,24 +4957,16 @@ %22, or %5C%22 -sakefile .coffee%5C
68684d244c019cf321f7af534f74bb604c58dc4e
Add corrected logic for sync state message
src/selectors/temperatureSync.js
src/selectors/temperatureSync.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import moment from 'moment'; import { TEMPERATURE_SYNC_STATES } from '../reducers/TemperatureSyncReducer'; import { syncStrings } from '../localization'; const STATE_TO_MESSAGE = { [TEMPERATURE_SYNC_STATES.SCANNING]: syncStrings.scanning_for_sensors...
JavaScript
0.000001
@@ -2048,32 +2048,53 @@ State, syncError +, lastTemperatureSync %7D = temperature @@ -2090,32 +2090,104 @@ temperatureSync; +%0A const formattedDate = moment(lastTemperatureSync).format('D.M.YYYY'); %0A%0A return (sync @@ -2182,16 +2182,22 @@ return ( +%0A ( syncErro @@ -2201,16 +2201,19 @@ rror && +%60$%...
da29046417a9df6502a6a51673b65fd71af53b6c
Simplify code with destructuring
src/main/lib/math.js
src/main/lib/math.js
'use strict' function iterationsToEscape(x0, y0, iterations) { var x = x0 var y = y0 var i = 0 function iterate() { i++ var tempY = 2 * x * y + y0 x = x * x - y * y + x0 y = tempY } while (x * x + y * y < 4) { if (i === iterations) return -1 iterate() } return i } module.expo...
JavaScript
0.000298
@@ -135,43 +135,18 @@ -var tempY = 2 * x * y + y0%0A x +%5Bx, y%5D = +%5B x * @@ -163,22 +163,25 @@ + x0 -%0A y = tempY +, 2 * x * y + y0%5D %0A %7D
e404c8a3a64d84b7af694ceb8f647a4b93bd77ad
Fix default Intl polyfill language (#1208)
internals/templates/app.js
internals/templates/app.js
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
JavaScript
0
@@ -2887,18 +2887,18 @@ a/jsonp/ -d e +n .js'),%0A
5f24cf459d0175c5ec77d8823cfcc8fe91892536
Add animationHelper
jquery.transitionHelper.js
jquery.transitionHelper.js
/*! jQuery.transitionHelper, v0.1 | MIT */ /** * @fileOverview Micro plugin to help with CSS transitions * * @copyright Copyright (c) 2013 Urszula Ciaputa (http://urszula.ciaputa.com) * @author Urszula Ciaputa <urszula@ciaputa.com> * * @version 0.1 * @license http://www.opensource.org/licenses/mit-license.php *...
JavaScript
0
@@ -25,17 +25,17 @@ per, v0. -1 +2 %7C MIT * @@ -1475,32 +1475,304 @@ ') %5D +,%0A %0A%09%09 -%7D;%0A%0A%09$.fn.transitionH +%09animationend: %7B%0A%09%09%09%09'WebkitAnimation' : 'webkitAnimationEnd',%0A%09%09%09%09'MozAnimation' : 'animationend',%0A%09%09%09%09'OAnimation' : 'oAnimationEnd oanimationend'...
2a995f18c030a34b24c914954b8676da3363cdae
Add support of analytics.js (GA) to switcher
js/all/counters-support.js
js/all/counters-support.js
/** * This script will fix some counters to be used with Switcher.js. */ $(document).on('construct', function () { // Google Analytics //noinspection JSUnresolvedVariable if (typeof _gaq == 'object' && typeof _gaq.push == 'function') { //noinspection JSUnresolvedVariable _gaq.push(['_tr...
JavaScript
0
@@ -135,16 +135,32 @@ nalytics + (ga.js, legacy) %0A%0A // @@ -364,16 +364,263 @@ );%0A %7D +%0A %0A // Google Analytics (analytics.js)%0A %0A //noinspection JSUnresolvedVariable%0A if (typeof ga == 'function') %7B%0A //noinspection JSUnresolvedVariable%0A ga('set', 'page', switche...
8abe4d57e0832fe95f96e120be36bac41661c0b6
Fix issue with JSCS failing to report violations
gulp/tasks/jscs.js
gulp/tasks/jscs.js
'use strict'; var jscs = require('gulp-jscs'); var log = require('../utils/log'); module.exports = function(gulp, options) { var config = require('../config')[options.key || 'jscs']; return task; function task() { if (options.verbose) { log('Running JSCS'); } return gulp.src(config.src) ...
JavaScript
0
@@ -181,16 +181,44 @@ scs'%5D;%0A%0A + console.log(config.src);%0A%0A return @@ -359,21 +359,64 @@ scs( -config.rcFile +%7BconfigPath: config.rcFile%7D))%0A .pipe(jscs.reporter( ));%0A
bfec50c1819c223b5bbf78ec28d5b1339c403184
Fix `PUT /motd` validation
src/validations.js
src/validations.js
import joi from 'joi'; const objectID = joi.string().length(24); const userName = joi.string() .min(3).max(32) .regex(/^[^\s\n]+$/); const userEmail = joi.string().email(); const userPassword = joi.string().min(6); const newStylePagination = joi.object({ page: joi.object({ offset: joi.number().min(0), l...
JavaScript
0.000069
@@ -1983,38 +1983,36 @@ joi.object(%7B%0A -params +body : joi.object(%7B%0A
2c2d7ad6d5d32466f44f5763a0083ef8be5d457d
Update index.js
examples/using-router/pages/index.js
examples/using-router/pages/index.js
import React from 'react' import Header from '../components/Header' export default () => ( <div> <Header /> <p>HOME PAGE is here!</p> </div> )
JavaScript
0.000002
@@ -1,30 +1,4 @@ -import React from 'react'%0A impo
29806474973cb635f69bf134178cfed6e3f7355d
Clean up and code commenting
app/app.js
app/app.js
var express = require('express'), bodyParser = require('body-parser'), log4js = require('log4js'); fs = require('fs'); var app = express(); app.use(bodyParser.json()); log4js.configure({ appenders: [ { type: 'console' }, { type: 'file', filename: 'logs/eventgenerator.log' } ] ...
JavaScript
0
@@ -148,27 +148,92 @@ var -app = express();%0A +logger = log4js.getLogger(),%0A app = express();%0A%0A// Configure express and log4js%0A%0A app. @@ -386,50 +386,62 @@ %7D)%0A%0A -var logger = log4js.getLogger();%0Avar lock; +%0A// Endpoints to turn on and off the app randomisation %0A%0Aap @@ -691,28 +691,75 ...
399a369d45cdef5e03301cd7b136c8527fe6d307
Add comment
app/app.js
app/app.js
'use strict'; /* INJECT DEPENDENCIES */ angular.module('myApp', [ 'myApp.services', 'ui.bootstrap', 'ui.bootstrap.tpls', 'ui.router' ]) .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider .otherwise('/index'); $stateProvider .sta...
JavaScript
0
@@ -1037,16 +1037,98 @@ tPost);%0A + //----- OLDER POSTS FURTHER DOWN THE LIST NEED TO BE SCROLLED TO THEIR TOP LINE%0A $locat
fca72df1d9a5c9945fcc06f9bc591001dfa0131d
append .hex extension to output file
bin/cli.js
bin/cli.js
#!/usr/bin/env node var avrpizza = require('../avrpizza'); var boards = require('../lib/boards'); var parseArgs = require('minimist'); var path = require('path'); var fs = require('fs'); var args = (process.argv.slice(2)); var argv = parseArgs(args, {}); var userAction = argv._[0]; var help = 'Usage:\n' + ' avrpizz...
JavaScript
0.000003
@@ -993,16 +993,25 @@ filename + + '.hex' );%0A
f099aeab61f5e3a6d53b2442e00d00b2a1567168
Fix casing
bin/cli.js
bin/cli.js
#!/usr/bin/env node 'use strict'; const path = require('path'); const argv = require('argh').argv; const fsp = require('fs').promises; const rimraf = require('rimraf'); const convertFromMinimap = require('../src/from-minimap.js'); const convertToMinimap = require('../src/to-minimap.js'); const generateBoundsFromMin...
JavaScript
0.000002
@@ -1295,17 +1295,17 @@ vements, -O +o rcsoberf
53c340133f28555f27572bdf576192aac0d720c1
Fix browser version is number
karma-sauce.conf.js
karma-sauce.conf.js
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) { console.error('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.') process.exit(1) } const BROWSERS = { chrome: [null], firefox: [null] } const PLATFORMS = { Windows: [ '7', '8', '8.1', '10' ...
JavaScript
0.001148
@@ -1912,17 +1912,19 @@ lorer', -9 +'9' , 'Windo
ca4d808d1fd3fedca84296f13d2dc3dc15ad7e06
Decrease concurrency in SauceLabs
karma.conf-sauce.js
karma.conf-sauce.js
// Karma configuration module.exports = function(config) { var customLaunchers = { sl_chrome_latest: { base: 'SauceLabs', browserName: 'chrome', version: 'latest' }, sl_chrome_previous: { base: 'SauceLabs', browserName: 'chrome', version: 'latest-1' }, sl_firefox_latest: { base: 'SauceL...
JavaScript
0.00001
@@ -3636,9 +3636,9 @@ cy: -4 +2 %0A%09%7D)
7cfaa3bad404db1abdac07ec6d406d3acb46124f
Remove use of deprecated APIs.
spec/menu_panel_spec.js
spec/menu_panel_spec.js
/** Tests for MenuPanel. */ /** * Wrap the given menu in a panel * and return the panel. */ var wrapPanel = function(menu) { var panel = new Ext.form.FormPanel({ fullscreen: true, layout: 'fit', items: [ { xtype: 'fieldset', items: [menu] } ] }); ...
JavaScript
0
@@ -1100,23 +1100,23 @@ ct(menu. -getEl() +element .is('.x- @@ -1451,23 +1451,23 @@ t(panel. -getEl() +element .select( @@ -1950,39 +1950,39 @@ eft_src = panel. -getEl() +element .down('.x-menupa @@ -2042,39 +2042,39 @@ ght_src = panel. -getEl() +element .down('.x-menupa @@ -2563,39 +2563,39 @@ eft_img = panel...
2467275032b0e19eb11101eca36e2595e7a60c95
Remove value from instance input
src/components/login/index.js
src/components/login/index.js
import React, { Component } from 'react' import { translate } from 'react-i18next' import PropTypes from 'prop-types' import { getInstances } from '../../utils/instances' class Login extends Component { constructor (props) { super(props) this.handleSubmit = this.handleSubmit.bind(this) this.state = { loading...
JavaScript
0.000002
@@ -1142,22 +1142,17 @@ %09%09%3Cinput -%0A%09%09%09%09%09 + name=%22in @@ -1158,22 +1158,17 @@ nstance%22 -%0A%09%09%09%09%09 + list=%22in @@ -1179,50 +1179,9 @@ ces%22 -%0A%09%09%09%09%09value=%22https://mastodon.social%22%0A%09%09%09%09 + /%3E%0A%09
3671375c6e5a12a160dbab8572a49c1fa3f3f6ca
Remove secret param from createRouter
src/server/routes/createRouter.js
src/server/routes/createRouter.js
import express from 'express'; import registerHooks from './registerHooks'; import registerMiddleware from './registerMiddleware'; export default function createRouter(hooks, secret) { const router = express.Router(); registerMiddleware({ router, secret }); registerHooks({ router, hooks }); return rout...
JavaScript
0.000001
@@ -125,16 +125,103 @@ ware';%0A%0A +/**%0A * Creates the router%0A * @param %7BArray%7D hooks Hook entries%0A * @return %7BObject%7D%0A */%0A export d @@ -254,24 +254,16 @@ er(hooks -, secret ) %7B%0A @@ -330,16 +330,8 @@ uter -, secret %7D);
9a10c2991eb83a6f92f5b454105807196a633f82
use switch-case for performance-wise
lib/public/js/emoji_generator.js
lib/public/js/emoji_generator.js
const generateEmoji = (repoLength) => { if (repoLength >= 100) { return '💯 👍 😎 👏'; } else if (repoLength >= 75) { return '👍 😎 👏'; } else if (repoLength >= 50) { return '👍 😎'; } else if (repoLength >= 20) { return '👍'; } else if (repoLength > 0) { re...
JavaScript
0.000004
@@ -38,18 +38,22 @@ %3E %7B%0A -if +switch (repoLe @@ -60,23 +60,16 @@ ngth - %3E= 100 ) %7B%0A @@ -68,45 +68,79 @@ - return '%F0%9F%92%AF %F0%9F%91%8D %F0%9F%98%8E %F0%9F%91%8F';%0A %7D else if ( +case repoLength %3E= 100: return '%F0%9F%92%AF %F0%9F%91%8D %F0%9F%98%8E %F0%9F%91%8F';%0A ...
30d2f21ea117f69c991b90d3e3a5261d2febe6ea
Add listen to all events
src/watchfolder.js
src/watchfolder.js
const chokidar = require("chokidar"); const log = require("./services/logger.service"); const FileIndex = require("./util/fileIndex"); const FileRecognizer = require("./util/fileRecognizer"); const options = require("./util/cmdargs").parseArguments(); const Publisher = require("./amqp/publisher"); const Generator = req...
JavaScript
0
@@ -1023,59 +1023,8 @@ %3E %7B%0A - log.info('RECEIVED EVENT FOR FILE', path);%0A @@ -1150,11 +1150,11 @@ on(' -raw +all ', ( @@ -1164,25 +1164,16 @@ nt, path -, details ) =%3E %7B%0A @@ -1196,46 +1196,34 @@ og(' -Raw event info:', event, path, details +ALL: ', event, ' - ', path );%0A
ecfb942b21fb9e79e7e24fac82191b9d533cb747
call fetchPosts
src/components/posts_index.js
src/components/posts_index.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchPosts } from '../actions/index'; class PostsIndex extends Component { componentWillMount() { console.log('this would be a good time to call an action creator to fetch po...
JavaScript
0.000003
@@ -238,91 +238,30 @@ %09 - console.log('this would be a good time to call an action creator to +this.props. fetch - p +P osts -' +( );%0A @@ -336,23 +336,154 @@ %0A%7D%0A%0A -export default +function mapDispatchToProps(dispatch) %7B%0A%09return bindActionCreators(%7B fetchPosts %7D, dispatch);%0A%7D%0A%0A...
b0e2a46c8b7c27b7bed7b9099566d971cbc7f308
Fix lint errors for move-services-add-scripts
src/server/services/createUser.js
src/server/services/createUser.js
/* * 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/. */ const readline = require('readline'); const bcrypt = require('bcryptjs'); const User = require('../models/User...
JavaScript
0.000067
@@ -1225,17 +1225,18 @@ e.%0A%09 -le +cons t cmd -_a +A rgs @@ -1259,18 +1259,17 @@ %09if (cmd -_a +A rgs.leng @@ -1533,26 +1533,25 @@ %09email = cmd -_a +A rgs%5B2%5D;%0A%09%09pa @@ -1566,10 +1566,9 @@ cmd -_a +A rgs%5B
3f743bf1b9c6d3609c84ec164bdb6bcce9410ecf
return the prev page attribute
src/models/model.js
src/models/model.js
'use strict'; import { debug } from './../logger'; import { DynamoDB } from 'aws-sdk'; import Joi from 'joi'; const dynamoConfig = { region: process.env.AWS_REGION || 'us-east-1' }; const db = new DynamoDB.DocumentClient(dynamoConfig); class Model { static save(item) { debug('= Model.save', item); const...
JavaScript
0.000019
@@ -3056,16 +3056,56 @@ .Items,%0A + prevPage: options.nextPage,%0A @@ -3207,16 +3207,29 @@ esolve(%7B +%0A items: r @@ -3239,16 +3239,67 @@ lt.Items +,%0A prevPage: options.nextPage%0A %7D);%0A
b2a4c1d3e58717f9fb5972067cc03ada12551205
remove alt
src/templates/result-template.js
src/templates/result-template.js
import React, { Fragment } from 'react' import Helmet from 'react-helmet' import { ResultPage, SEO } from 'Components' const ResultTemplate = ({ data }) => { const results = data.results.edges const definitions = data.definitions.edges const { seotitle, seodescription, seokeywords, seoimage } ...
JavaScript
0.000004
@@ -1379,26 +1379,8 @@ url%0A - alt%0A
c5d07f81fb83e46ac0149a2a57a411b216e96416
Add early return
lib/publishPluginReleaseEvent.js
lib/publishPluginReleaseEvent.js
const axios = require('axios'); const Program = require('commander'); const Chalk = require('chalk'); /** * Create a release event object from a pluginInfo object. * * @param {Object} pluginInfo * @return {Object} */ function getReleaseEventInfo(pluginInfo) { return { pluginName: pluginInfo.getName(),...
JavaScript
0.000075
@@ -797,16 +797,17 @@ if ( +! Program. @@ -837,18 +837,32 @@ +return;%0A %7D%0A try %7B%0A - @@ -937,28 +937,24 @@ uginInfo));%0A - cons @@ -1011,28 +1011,24 @@ cceeded'));%0A - %7D catch @@ -1039,28 +1039,24 @@ ) %7B%0A - - console.log( @@ -1128,37 +...
184a3cd20556812dff60e04a67d050b2f89c8c70
Fix Export to Excel Fix #18
grails-app/assets/javascripts/angular/directives.js
grails-app/assets/javascripts/angular/directives.js
'use strict'; /* Directives */ angular.module('loki.directives', ["loki.services"]) /** * dummy directive */ .directive("dummyDirective", ["$injector", "$log", function($injector, $log) { return { // require: "ngModel", restrict: "A", // transclude: true, link: function(scope, element...
JavaScript
0
@@ -1257,16 +1257,71 @@ ion() %7B +this.UNEXPLICABLE_EXCEL_EPOCH = moment(%5B1899, 11, 30%5D); %7D%0A W @@ -1466,16 +1466,199 @@ t = %22n%22%0A + else if(typeof value == %22object%22) %7B%0A this%5Bref%5D.t = %22n%22;%0A this%5Bref%5D.v = value.diff(this.UNEXPLICABLE_EXCEL_EPOCH, %22days%22)%...
bffdd3255081313c0b7a4a3c271b2a5c4964185b
Use promises for flatter code
src/models/users.js
src/models/users.js
import mongoose from 'mongoose' import bcrypt from 'bcrypt' const User = new mongoose.Schema({ type: { type: String, default: 'User' }, name: { type: String }, username: { type: String, required: true, unique: true }, password: { type: String, required: true }, salt: { type: String } }) User.pre('save', fun...
JavaScript
0
@@ -318,16 +318,24 @@ function + preSave (next) %7B @@ -360,16 +360,17 @@ is%0A%0A if + (!user.i @@ -417,16 +417,55 @@ ()%0A %7D%0A%0A + new Promise((resolve, reject) =%3E %7B%0A bcrypt @@ -494,26 +494,29 @@ t) =%3E %7B%0A + if + (err) %7B retu @@ -510,35 +510,37 @@ (err) %7B return -nex +rej...
1107e690ea4f119d072e6744433280d4862235c6
Use equality test and uppercase constants
lib/node_modules/@stdlib/math/base/utils/float32-exponent/test/test.js
lib/node_modules/@stdlib/math/base/utils/float32-exponent/test/test.js
'use strict'; // MODULES // var tape = require( 'tape' ); var pinf = require( '@stdlib/math/constants/float32-pinf' ); var ninf = require( '@stdlib/math/constants/float32-ninf' ); var round = require( '@stdlib/math/base/special/round' ); var pow = require( '@stdlib/math/base/special/pow' ); var toFloat32 = require( '...
JavaScript
0.000067
@@ -57,20 +57,20 @@ );%0Avar -pinf +PINF = requi @@ -118,20 +118,20 @@ );%0Avar -ninf +NINF = requi @@ -506,16 +506,35 @@ S = 127; + // FIXME: constant %0A%0A%0A// TE @@ -627,18 +627,21 @@ e );%0A%09t. -ok +equal ( typeof @@ -653,12 +653,9 @@ nent - === +, 'fu @@ -1829,20 +1829,20 @@ ponent( -pinf +P...
5117aef37715e3995700ffcd6eabd98bcf8c6aa6
Update collection for Document Conversion GA
client/read/read.controller.js
client/read/read.controller.js
angular.module('read-and-learn').controller('readController', function ($scope, $rootScope, $http, Upload, $timeout) { $scope.documents = null; var cluster_id = 'scf9b13b48_1835_48cf_ac7f_143b7bb8712b'; var config_id = 'example-config'; var collection_id = 'example-collection3'; getAllDocuments(); $scop...
JavaScript
0
@@ -261,23 +261,34 @@ n_id = ' -example +read-and-learn-dev -collect @@ -290,17 +290,16 @@ llection -3 ';%0A%0A ge @@ -4179,35 +4179,8 @@ ) %7B%0A - console.log(metadata);%0A
eda07f87ff3310ae378957e6ac7125741934c7a7
fix de-freifunk
i18n.js
i18n.js
var translations = { 'de-freifunk': { 'tr-introduction': 'Erst mit der Freifunk-Firmware wird dein Router zu einem Teil des Freifunk-Netzes. Sie ist fertig vorkonfiguriert, um Kontakt mit benachbarten Freifunk-Knoten aufzunehmen, ein offenes und anonymes Freifunk-WLAN auszusenden und dich dabei vor der Störerhaf...
JavaScript
0.000004
@@ -5162,25 +5162,16 @@ ions%5B'de --freifunk '%5D, tran @@ -5182,13 +5182,22 @@ ions%5B'de +-freifunk '%5D);%0A
ee4bfb112e130e57fa23f92868458164d5d58797
Update debug text
lib/node_modules/@stdlib/plot/axis/lib/engines/svg/components/index.js
lib/node_modules/@stdlib/plot/axis/lib/engines/svg/components/index.js
'use strict'; // MODULES // var debug = require( 'debug' )( 'axis:engine:components:main' ); var h = require( 'virtual-dom/h' ); var domain = require( './domain.js' ); var ticks = require( './ticks.js' ); // AXIS // /** * Axis component returned as a virtual DOM tree. * * @private * @param {Object} ctx - context *...
JavaScript
0.000003
@@ -833,11 +833,13 @@ g( ' -Add +Creat ing
1e0ed7ee17a2a96919a6f3a9183fa5350c981739
Fix copy-throttling bug
lib/services/throttler-stream.js
lib/services/throttler-stream.js
'use strict'; const { Transform } = require('stream'); module.exports = class Throttler extends Transform { constructor (pgstream, ...args) { super(...args); this.pgstream = pgstream; this.sampleLength = global.settings.copy_from_maximum_slow_input_speed_interval || 15; this.mini...
JavaScript
0.000001
@@ -695,16 +695,23 @@ dHistory +.length %3E this.
bd50cde426d847b554998e78f857f9a448f6f1c4
check cache firstly for blocker,improve the performance
jqc-blocker/jqc.blocker.js
jqc-blocker/jqc.blocker.js
/* Copyright 2017 cmanlh 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,...
JavaScript
0
@@ -911,96 +911,67 @@ -if (arguments.length %3E 0) %7B%0A $.jqcBaseElement.apply(this, arguments); +var that = BLOCKER_CACHE.pop();%0A if (that) %7B %0A %7D%0A%0A @@ -970,95 +970,124 @@ - %7D%0A%0A - var that = BLOCKER_CACHE.pop();%0A if (that) %7B%0A r...
06ec07f55641de903a64ae915762064fb3016d26
Fix typo in error message
lib/solder/compressor/closure.js
lib/solder/compressor/closure.js
/*global exports: true, require: true */ /*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, newcap: true, immed: true */ var path = require('path'), compressor = require('solder/compressor'); function Closure(type, options) { this.type = type; this.options = options; this.args ...
JavaScript
0.001375
@@ -420,17 +420,16 @@ JavaScr -t ipt');%0A
01de0fca8c10b4fcf936f54395b495a736513008
Throw an error if we attempt to modify a different version of Leaflet.
public/js/patches.js
public/js/patches.js
// Modify Draggable to ignore shift key. L.Draggable.prototype._onDown = function(e) { this._moved = false; if ((e.which !== 1) && (e.button !== 1) && !e.touches) { return; } L.DomEvent.stopPropagation(e); if (L.Draggable._disabled) { return; } L.DomUtil.disableImageDrag(); L.DomUtil.disableTextSelecti...
JavaScript
0
@@ -1,8 +1,193 @@ +// Make sure we're modifying the correct version of Leaflet%0Aif (L.version !== '0.7.2') %7B%0A throw new Error('Attempting to patch Leaflet ' + L.version + '. Only 0.7.2 is supported');%0A%7D%0A%0A // Modif
fe98be609d6755f2b41135b74c138e6fa0af4020
Fix ever changing Hamburk order of menu sections
service/scrapper/lokal-hamburk.js
service/scrapper/lokal-hamburk.js
'use strict' let _ = require('lodash') let xray = require('x-ray') let moment = require('moment') let helpers = require('../helpers') module.exports = () => { let x = xray() let getItem = (lunchMenuItem) => { let item = lunchMenuItem.item.replace(lunchMenuItem.allergens, '') return _.trim(item) .re...
JavaScript
0
@@ -641,91 +641,8 @@ %5B%5D%0A%0A - // only interested in Pol%C3%A9vky (1), Hlavn%C3%AD j%C3%ADdla (4)%0A let required = %5B1, 4%5D%0A%0A @@ -661,24 +661,25 @@ 0; j %3C -required +obj.menus .length; @@ -696,25 +696,23 @@ let -lunchMenu +section = obj.m @@ -720,25 +720,137 @@ nus%5B -required%5...
8e2746d9b8f67e6f2901df6e0c88e252a0351365
fix table initial selected state
lib/table/table-column-select.js
lib/table/table-column-select.js
import Column from './column.js' import Checkbox from './checkbox' export default { name: 'VkTableColumnSelect', extends: Column, props: { headerClass: { type: String }, cellClass: { type: String }, isSelected: { type: Function, default: () => false } }, header...
JavaScript
0
@@ -371,22 +371,17 @@ const -isAllS +s elected @@ -410,16 +410,70 @@ elected) +%0A const isAllSelected = selected.length && selected .length
ae543e292ef799c5a4f9978eaf822cb36beb9ea3
add note
lib/template/scope/view/index.js
lib/template/scope/view/index.js
var protoclass = require("protoclass"); function View (node, context) { this.node = node; this.context = context; this.bindings = []; } protoclass(View, { render: function () { return this.node; }, remove: function () { }, dispose: function () { // put node back in scope } }); module....
JavaScript
0
@@ -65,16 +65,209 @@ ntext) %7B +%0A%0A // todo - check if node child length is %3E 1. If so, then%0A // create a section, otherwise don't.%0A // this.section = node.childNodes.length %3E 1 ? createSection() : singleSection(this.node); %0A this.
8366d8b03b491a24e88b63d0a1e619e97ac3ddb7
use event delegation
public/js/spoiler.js
public/js/spoiler.js
/* globals define, app, ajaxify, bootbox, socket, templates, utils */ $(document).ready(function () { 'use strict'; require([ 'translator' ], function (translator) { var elements = { MAIN : '.ns-spoiler', BUTTON : '.ns-spoiler-control a', CONTENT: '.n...
JavaScript
0.000002
@@ -507,32 +507,37 @@ %0A add +Topic Listener($(eleme @@ -533,26 +533,8 @@ ner( -$(elements.BUTTON) );%0A @@ -557,307 +557,102 @@ -$(window).on('action:posts.loaded', function (e, data) %7B%0A data.posts.forEach(function (post, index) %7B%0A addListener($('%5Bdata-pid=%22...
748108afafe212cc8d575999face311d7787a111
Fix paths for type errors in relative subdirectory (without ../), see https://github.com/phetsims/chipper/issues/1247
js/scripts/absolute-tsc.js
js/scripts/absolute-tsc.js
// Copyright 2022, University of Colorado Boulder /** * The tsc type checker outputs type errors using relative paths only, which are not hyperlinked in WebStorm and IntelliJ. * This thin wrapper uses a heuristic to convert the relative paths to absolute paths. Combined with an "output filter", * this makes the ty...
JavaScript
0.000003
@@ -539,44 +539,9 @@ all%7D - $%7Bpath to replace, like ../../../%7D %0A + * w @@ -911,16 +911,78 @@ path' ); +%0Aconst %7B resolve %7D = require( 'path' ); // eslint-disable-line %0A%0Aconst @@ -1178,19 +1178,33 @@ %60$%7B -args%5B 1 %5D%7D/ +process.cwd()%7D$%7Bpath.sep%7D chip @@ -1730,109 +1730,374 @@ ...
07cc2dd602c1ab72aa3789cd8e7e342cba5e848a
Fix drag and drop
js/vendor/lvl-drag-drop.js
js/vendor/lvl-drag-drop.js
var module = angular.module("lvl.directives.dragdrop", ['lvl.services']); module.directive('lvlDraggable', ['$rootScope', 'uuid', function ($rootScope, uuid) { return { restrict: 'A', link: function (scope, el, attrs, controller) { angular.element(el).attr("draggable", "true"); ...
JavaScript
0.000001
@@ -485,21 +485,9 @@ %7D%0A - %0A + @@ -540,32 +540,46 @@ e. +originalEvent. dataTransfer.set @@ -1404,16 +1404,30 @@ e. +originalEvent. dataTran @@ -2224,24 +2224,24 @@ %7D%0A - @@ -2257,16 +2257,30 @@ ata = e. +originalEvent. dataTran
de93aaa75ee0b58d29e70673d5b3c7010dc68c46
Add solution to Day 6b
6.js
6.js
require('./helpers').getFile(6, input => { const counts = input.split('\n').reduce((acc, line) => { line.split('').forEach((char, i) => { acc[i][char] = acc[i][char] ? acc[i][char] + 1 : 1; }); return acc; }, [{}, {}, {}, {}, {}, {}, {}, {}]); const countsArray = counts.reduce((word, letterCoun...
JavaScript
0.000011
@@ -349,16 +349,46 @@ = %5B0%5D;%0A + let countLoser = %5B99999%5D;%0A for @@ -527,24 +527,135 @@ r%5D;%0A %7D%0A + if (countLoser%5B0%5D %3E letterCounts%5Bletter%5D) %7B%0A countLoser = %5BletterCounts%5Bletter%5D, letter%5D;%0A %7D%0A %7D%0A wo @@ -657,16 +657,23 @@ word...
3a8789b4875444c0ce33d313bc82290d2c38261e
Add reporter.panic in empty catch in load-themes (#29640)
packages/gatsby/src/bootstrap/load-themes/index.js
packages/gatsby/src/bootstrap/load-themes/index.js
const { createRequireFromPath } = require(`gatsby-core-utils`) const path = require(`path`) import { mergeGatsbyConfig } from "../../utils/merge-gatsby-config" const Promise = require(`bluebird`) const _ = require(`lodash`) const debug = require(`debug`)(`gatsby:load-themes`) import { preferDefault } from "../prefer-de...
JavaScript
0
@@ -1587,43 +1587,66 @@ -// catch shouldn't be empty :shrug: +reporter.panic(%60Failed to resolve $%7BthemeName%7D%60, localErr) %0A
1b8be26ccf2c3f9d5cbb07ff5ec9288a5d0badde
Add second where k is any other value
kth-to-last-linked-list.js
kth-to-last-linked-list.js
"use strict"; // FIND KTH TO LAST ELEMENT OF SINGLY LINKED LIST // first create singly linked list // define constructor function Node(data) { this.data = data; this.next = null; } function LinkedList() { this._length = 0; // assign number of nodes in linked list this.head = null; // points to head of linked li...
JavaScript
0.000027
@@ -2902,14 +2902,215 @@ ure);%0A%09%7D +%0A%0A%09// second case: if k is any other value%0A%09while (node) %7B%0A%09%09if (i == k) %7B%0A%09%09%09kthNode = this.head;%0A%09%09%7D else if (i-k %3E 0) %7B%0A%09%09%09kthNode = kthNode.next;%0A%09%09%7D%0A%09%09i++;%0A%0A%09%09node = node.next;%0A%09%7D%0A%09return kthNo...
ead20b27ad79303f5d3a7283771e1b5e8f299ca4
Add first case where k is 0 or negative value
kth-to-last-linked-list.js
kth-to-last-linked-list.js
"use strict"; // FIND KTH TO LAST ELEMENT OF SINGLY LINKED LIST // first create singly linked list // define constructor function Node(data) { this.data = data; this.next = null; } function LinkedList() { this._length = 0; // assign number of nodes in linked list this.head = null; // points to head of linked li...
JavaScript
0.999976
@@ -2567,16 +2567,287 @@ deletedNode;%0A%7D;%0A +%0A// return kth to last%0ALinkedList.prototype.kthToLast = function(k) %7B%0A%09var node = this.head,%0A%09%09i = 1,%0A%09%09kthNode,%0A%09%09message = %7Bfailure: 'Failure: non-existent node in this list'%7D;%0A%0A%09// first case: if k is 0 or negative value%0A%09if ...
442069719ab6e7e8e0fa2d4395b364a27e9a36a5
allow exiting of multi entry mode
js/alphabetizer.js
js/alphabetizer.js
//basis of alphabetization code from //http://stackoverflow.com/a/25431980 //http://jsfiddle.net/albertmatyi/avvxuomb/ // still need to add: //clearing all items //more things var alphabetizeOn = true; var instantEntry = true; var deleteOnClick = false; var multiEntry = false; var openOptions = false; var shuffleDa...
JavaScript
0
@@ -171,16 +171,69 @@ things%0A%0A +//string logic%0A///tolowercase%0A///check for returns%0A%0A%0A var alph @@ -2696,24 +2696,360 @@ true;%0A %7D%0A + if (event.which === 27) %7B // if escape is pressed%0A $('.css-input').removeClass('multi-entry'); //de-activate multi-entry mode...
5f4613e6b54be9f4cfed1ec1916c95e6091758a8
split `_exitIfInvalidMayaProject` to `_isValidMayaProject` and it.
src-server/cli/entry.js
src-server/cli/entry.js
import fs from "fs"; import path from "path"; // Check valid maya.js project module.exports.exitIfInvalidMayaProject = function exitIfInvalidMayaProject(cwd) { try { const packageJson = require(path.join(cwd, "package.json")); const deps = packageJson.dependencies; const devDeps = packageJs...
JavaScript
0
@@ -86,25 +86,20 @@ exports. -exitIfInv +_isV alidMaya @@ -117,25 +117,20 @@ unction -exitIfInv +_isV alidMaya @@ -398,32 +398,37 @@ return + true ;%0A %7D%0A%0A @@ -512,16 +512,21 @@ return + true ;%0A @@ -522,32 +522,386 @@ rue;%0A %7D%0A%0A + return %22DEPENDENCY_N...
ca017090cb900a868b388888c32f4281b82d4615
Save commit messages between saves. Fixes #454
js/id/ui/commit.js
js/id/ui/commit.js
iD.ui.commit = function(map) { var event = d3.dispatch('cancel', 'save', 'fix'); function zipSame(d) { var c = [], n = -1; for (var i = 0; i < d.length; i++) { var desc = { name: d[i].friendlyName(), type: d[i].type, count: 1, ...
JavaScript
0
@@ -2044,16 +2044,76 @@ utions') +%0A .property('value', localStorage.comment %7C%7C '') ;%0A%0A @@ -2513,48 +2513,19 @@ -event.save(%7B%0A +var comment : d3 @@ -2520,17 +2520,18 @@ comment -: + = d3.sele @@ -2575,16 +2575,131 @@ ().value +;%0A localSto...
727eda71f291574bc1723ef4af2c460e937a0ae3
fix missing word in docblock
resources/assets/js/bootstrap.js
resources/assets/js/bootstrap.js
window._ = require('lodash'); window.Cookies = require('js-cookie'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ window.$ = window.jQ...
JavaScript
0
@@ -430,16 +430,26 @@ aScript +framework for buil @@ -483,26 +483,26 @@ aces +%0A * using -%0A * reacti -ng +ve dat @@ -543,37 +543,38 @@ Vue -'s API is clean and%0A * simple + has a simple and%0A * clean API , le
a2f7162616f7ba75c5dcfa65a645e417446fa2a9
Update landing-page.js
js/landing-page.js
js/landing-page.js
function getTimeRemaining(endtime) { var t = Date.parse(endtime) - Date.parse(new Date()); var seconds = Math.floor((t / 1000) % 60); var minutes = Math.floor((t / 1000 / 60) % 60); var hours = Math.floor((t / (1000 * 60 * 60)) % 24); var days = Math.floor(t / (1000 * 60 * 60 * 24)); return { 'to...
JavaScript
0.000001
@@ -1144,16 +1144,86 @@ ;%0D%0A%7D%0D%0A%0D%0A +moment.tz.add('America/New_York%7CEST EDT%7C50 40%7C0101%7C1Lz50 1zb0 Op0');%0D%0A var wedd @@ -1374,8 +1374,10 @@ adline); +%0D%0A
b1d919069282b27002f514fa9777e28817f58346
Fix missing 'require'
resources/js/view/information.js
resources/js/view/information.js
"use strict"; var View = VAGABOND.VIEW.View; var Information = Object.create(View); Information.init = function(entity) { this.selectedEntity = entity; return this; }; Information.setEntity = Information.init; Information.toElement = function() { var info = document.createElement("div"); info.className = ...
JavaScript
0.999994
@@ -23,26 +23,25 @@ w = -VAGABOND.VIEW.V +require(%22./v iew +%22) ;%0A%0Av
93abed4ac317316b4bce0a54efc77a9df07bc190
Update mp3Worker.js
js/enc/mp3/mp3Worker.js
js/enc/mp3/mp3Worker.js
importScripts('libmp3lame.js'); var mp3codec; var recLength = 0, recBuffers = []; //https://github.com/gypified/libmp3lame/blob/master/API self.onmessage = function(e) { switch (e.data.command) { case 'init': init(e.data.config); break; case 'encode': encode(e); break; case 'finish': finish...
JavaScript
0
@@ -1552,24 +1552,26 @@ ata.buf);%0A%0A%09 +// self.postMes @@ -1570,32 +1570,34 @@ .postMessage(%7B%0A%09 +// %09command: 'data' @@ -1591,32 +1591,34 @@ mmand: 'data',%0A%09 +// %09buf: mp3data.da @@ -1617,24 +1617,26 @@ 3data.data%0A%09 +// %7D);%0A%0A%09///con @@ -2644,12 +2644,13 @@ n result;%0A%0A%7D +%0A...
b995d860e9091264e60cf31c759eb00b579fba0c
Add classname in material
js/osg/Material.js
js/osg/Material.js
/** * Material * @class Material */ osg.Material = function () { osg.StateAttribute.call(this); this.ambient = [ 0.2, 0.2, 0.2, 1.0 ]; this.diffuse = [ 0.8, 0.8, 0.8, 1.0 ]; this.specular = [ 0.0, 0.0, 0.0, 1.0 ]; this.emission = [ 0.0, 0.0, 0.0, 1.0 ]; this.shininess = 12.5; }; /** @lends o...
JavaScript
0.000001
@@ -412,16 +412,44 @@ otype, %7B +%0A _className: 'Material', %0A%0A se
e2b219b1ae7ad882eea96f821b3712163726504d
fix tab and space regression
js/plugins/tern.js
js/plugins/tern.js
/** Copyright 2014 Gordon Williams (gw@pur3.co.uk) This Source Code is subject to the terms of the Mozilla Public License, v2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ------------------------------------------------------------------ Awesom...
JavaScript
0
@@ -1230,24 +1230,32 @@ N)%5D%7D);%0A + var k = codeMirror. @@ -1254,17 +1254,17 @@ eMirror. -s +g etOption @@ -1275,17 +1275,33 @@ traKeys%22 -, +);%0A var nk = %7B%0A @@ -1652,17 +1652,107 @@ %0A %7D -) +;%0A for (var i in nk)%0A k%5Bi%5D = nk%5Bi%5D;%0A codeMirror.setOpt...
39840d4821291a2d1c8f3cc59b0eb11c74225696
Update qalet_plugin.js
js/qalet_plugin.js
js/qalet_plugin.js
var _CALLBACK_ = function() { $(document).ready( function() { function parse(v) { var t = v.replace(/(“|”)/ig, '"'); return JSON.parse(t); } var v = $('QALET'), r={}, f=[]; for (var i = 0; i < v.length; i++) { var data = $(v[i]).html(); if (!data) data = $(v[i]).attr('data'); ...
JavaScript
0.000001
@@ -991,16 +991,20 @@ lesheet, +'.'+ o.id);%0A%09
55663382f3728079c8bb24ca19fd9999249fe853
add 'A' icon option
js/icon-setter/index.js
js/icon-setter/index.js
import React, {PureComponent} from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import LogoMenu from '../components/logo-me...
JavaScript
0.000001
@@ -814,16 +814,21 @@ '%F0%9F%92%A1', '%F0%9F%90%8D' +, 'A' %5D;%0A%0Acon
e9acf41819105c65dd39855628300f00f0c10157
Fix bugs
js/sensor-setup.js
js/sensor-setup.js
(function(exports){ $(document).ready(function(){ $('.modal-trigger').leanModal(); }); const GEOCODE_URL = 'https://maps.googleapis.com/maps/api/geocode/json?address='; const API_KEY = '&key=AIzaSyAWlJoUn2DS8XUYilLXZE8dxYEXbo6dnaE'; const TOAST_DUR = 4000; var userId = $.url().param('userId'); var s...
JavaScript
0.000004
@@ -2549,16 +2549,26 @@ $.post( +API_URL + 'project
eaa23b63f6ae126e72d39716d13b65195094b6d5
Add rank type to thSortMenu
js/jquery.thSortMenu.js
js/jquery.thSortMenu.js
// thSortMenu plugin - support for server-side table sorting ;(function($, window, undefined) { // Static variables, shared by all instances of this plugin on the page var urlData = splitURL(window.location.href); var path = urlData.path; var qryData = urlData.data; if ( qryData.sortCols !== undefin...
JavaScript
0.000001
@@ -1901,24 +1901,107 @@ mn%0A%09 if ( + col.hasClass('rank') ) %7B%0A return 'ranking';%0A %7D else if ( col.hasClas @@ -2545,24 +2545,173 @@ ons.type) %7B%0A + case 'ranking':%0A ascText = %22Sort Top to Bottom%22;%0A descText = %22Sort Bottom ...
f62b37793fd1adb0ebb0bb9c71e490b8c7a45045
Add argument to toStateObject, see https://github.com/phetsims/phet-io-wrappers/issues/349
js/types/VoidIO.js
js/types/VoidIO.js
// Copyright 2018-2020, University of Colorado Boulder /** * IO Type use to signify a function has no return value. * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare (PhET Interactive Simulations) */ import tandemNamespace from '../tandemNamespace.js'; import ObjectIO from './ObjectIO.js...
JavaScript
0
@@ -557,16 +557,24 @@ eObject( + object ) %7B%0A
d5ec59028a8fbcafbebedadb59c424fc42d72924
add loadParserSolc method to check parser, normalize solcVersion, & return parserSolc (compilerSupplier/index.js)
packages/truffle-compile/compilerSupplier/index.js
packages/truffle-compile/compilerSupplier/index.js
const path = require("path"); const fs = require("fs"); const semver = require("semver"); const { Docker, Local, Native, VersionRange } = require("./loadingStrategies"); class CompilerSupplier { constructor(_config) { _config = _config || {}; const defaultConfig = { version: "0.5.8" }; this.config = Obj...
JavaScript
0
@@ -2444,16 +2444,330 @@ );%0A %7D%0A%0A + async loadParserSolc(parser, solcVersion) %7B%0A if (parser) %7B%0A this.checkParser(parser);%0A const normalizedSolcVersion = semver.coerce(solcVersion).version;%0A return await new VersionRange(%7B version: normalizedSolcVersion %7D).load(%0A norm...
f3ea8b0f0deee30dffdaf3414fb2958e1fac6435
Add Microsoft Edge 14 to CI
build/karma.ci.js
build/karma.ci.js
const path = require('path'); const istanbul = require('rollup-plugin-istanbul'); const baseConfig = require('./karma.base'); function getBuild() { let id = `LIGHTY-PLUGIN-LEGACY - TRAVIS #${process.env.TRAVIS_BUILD_NUMBER}`; id += ` (Branch: ${process.env.TRAVIS_BRANCH}`; if (process.env.TRAVIS_PULL_REQUEST...
JavaScript
0.000013
@@ -1189,16 +1189,163 @@ sl_edge +_14: %7B%0A base: 'SauceLabs',%0A browserName: 'MicrosoftEdge',%0A version: '14.14393',%0A platform: 'Windows 10',%0A %7D,%0A%0A sl_edge_13 : %7B%0A
48c0b064ac44157936f3a2acce695b72c8176002
add missing clumn
src/components/CreateTodos.js
src/components/CreateTodos.js
import React from 'react'; export default class CreateTodos extends React.Component { render() { return ( <form> <input type="text" /> <button>Create</button> </form> ) } }
JavaScript
0.999994
@@ -200,14 +200,15 @@ m%3E%0A ) +; %0A %7D%0A%7D
5ec4d77d0eb6d56dfd5bd0ff9f98d0ca581239e1
set endpoint prop to not required
src/components/FetchSelect.js
src/components/FetchSelect.js
import React, { Component, PropTypes } from 'react' import debounce from 'lodash/debounce' import isFunction from 'lodash/isFunction' import keys from 'lodash/keys' import path from 'path' import qs from 'qs' import { DEFAULT_LANG } from '../utils/consts' import Select from './Select' import fetchJson from '../utils...
JavaScript
0
@@ -1158,27 +1158,16 @@ s.string -.isRequired ,%0A
6ef94a819245ecf3ebd9038fe964484d5c6366a2
Bring in PropTypes and and set prop type for portalTo prop
src/components/MXFocusTrap.js
src/components/MXFocusTrap.js
let traps = []; const React = require('react'); const FocusTrap = require('focus-trap-react'); /** * MXFocusTrap * * Why is this needed? * * FocusTrap does not un-pause the previous trap when the current trap is unmounted. * This ensures that the previously trapped component is un-paused. */ class MXFocusTrap ...
JavaScript
0
@@ -10,16 +10,57 @@ = %5B%5D;%0A%0A +const PropTypes = require('prop-types');%0A const Re @@ -380,16 +380,75 @@ onent %7B%0A + static propTypes = %7B%0A portalTo: PropTypes.string%0A %7D%0A%0A state
5c8d941cc20518aa61aefe75b3b726bb2d5b5e25
implement "abort"
httpinvoke-node.js
httpinvoke-node.js
var http = require('http'); var url = require('url'); var noop = function() {}; module.exports = function(uri, method, options) { if(typeof method === 'undefined') { method = 'GET'; options = {}; } else if(typeof options === 'undefined') { if(typeof method === 'string') { op...
JavaScript
0.000001
@@ -646,166 +646,8 @@ op;%0A - var deleteCallbacks = function() %7B%0A uploadProgressCb = null;%0A downloadProgressCb = null;%0A statusCb = null;%0A cb = null;%0A %7D;%0A @@ -1972,32 +1972,88 @@ ut(function() %7B%0A + if(cb === null) %7B%0A return;%0A %...
bb5ad08067bad31c299e4a99d498cdf396b1e6ce
add lyric_engine back to functions
functions/api/lyric/get/[url].js
functions/api/lyric/get/[url].js
// const engine = require('../../../../lyric_engine_js'); // eslint-disable-next-line import/prefer-default-export export async function onRequestGet({ params }) { const { url } = params; const out = { lyric: `Failed to find lyric of ${url}`, }; try { // const lyric = await engine.get_full(url); //...
JavaScript
0.000002
@@ -1,15 +1,12 @@ -// const engine @@ -258,19 +258,16 @@ ry %7B%0A - // const l @@ -304,19 +304,16 @@ rl);%0A - // out.lyr
286a892bdd63e9f8c280dd7440bf2a0d8dba7f0c
set state on storymedia component
src/components/story_media.js
src/components/story_media.js
import React from "react"; import { render } from "react-dom"; import YouTube from "react-youtube"; class StoryMedia extends React.Component { render () { return ( <div id="story-media"> {this.renderImages()} {this.renderVideo()} </div> ); } renderImages () { var images =...
JavaScript
0
@@ -277,16 +277,64 @@ );%0A %7D%0A%0A + static defaultProps = %7B%0A show: false%0A %7D;%0A%0A render @@ -490,16 +490,17 @@ edia-row + %22 + this @@ -613,26 +613,202 @@ -return images;%0A %7D + images.splice(1, 0, this.showMoreButton());%0A return images;%0A %7D%0A%0A showMoreButton () %7B%0A ...
af8e0c8f16ce604b6569aef275a3d7ac017d6f92
remove useless dependency from index to ngSanitize
share/nitweb/javascripts/index.js
share/nitweb/javascripts/index.js
/* * Copyright 2016 Alexandre Terrasa <alexandre@moz-code.org>. * * 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...
JavaScript
0
@@ -668,20 +668,8 @@ ', %5B -'ngSanitize' %5D)%0A%0A
9df1a132b27b9a6aad1d3e2025d4d857eb2c0eda
change style
static/js/index.js
static/js/index.js
/** * 页面ready方法 */ $(document).ready(function() { categoryDisplay(); generateContent(); backToTop(); }); /** * 分类展示 * 点击右侧的分类展示时 * 左侧的相关裂变展开或者收起 * @return {[type]} [description] */ function categoryDisplay() { if(location.hash){ var cate = location.hash; $('.post-list-body...
JavaScript
0.000001
@@ -285,16 +285,32 @@ ion.hash +.replace('#','') ;%0A @@ -456,20 +456,16 @@ ;%0A %7D%0A - %0A /*s