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
daf79feff3db9b0d41f167c6ab01a2cfce94ff85
Add missing `space-before-keywords` rule
packages/eslint-config-airbnb/rules/style.js
packages/eslint-config-airbnb/rules/style.js
module.exports = { 'rules': { // enforce spacing inside array brackets 'array-bracket-spacing': 0, // enforce one true brace style 'brace-style': [2, '1tbs', {'allowSingleLine': true }], // require camel case names 'camelcase': [2, {'properties': 'never'}], // enforce spacing before and af...
JavaScript
0.000633
@@ -3942,24 +3942,115 @@ t-vars': 0,%0A + // require a space before certain keywords%0A 'space-before-keywords': %5B2, 'always'%5D,%0A // requi @@ -4107,25 +4107,37 @@ -keywords': -2 +%5B2, 'always'%5D ,%0A // req
0df6d048503fcc5edbb6423d87166773c1f853a9
Enable path optimization in visual tests
packages/gerber-to-svg/test-visual/server.js
packages/gerber-to-svg/test-visual/server.js
// visual test server 'use strict' var fs = require('fs') var path = require('path') var glob = require('glob') var hapi = require('hapi') var inert = require('inert') var async = require('async') var partial = require('lodash.partial') var template = require('lodash.template') var groupBy = require('lodash.groupby') ...
JavaScript
0
@@ -725,16 +725,106 @@ done) %7B%0A + var renderOptions = %7B%0A id: path.basename(gerberFile),%0A optimizePaths: true%0A %7D%0A %0A gerber @@ -866,33 +866,21 @@ e), -path.basename(gerberFile) +renderOptions , do
fbe246767fdc99f077ec23e79c7287c07b07a9f7
Fix for username variable
server.js
server.js
'use strict'; const _ = require('lodash'); const Koa = require('koa'); const app = new Koa(); const bodyParser = require('koa-bodyparser'); // x-response-time app.use(async function (ctx, next) { const start = new Date(); await next(); const ms = new Date() - start; ctx.set('X-Response-Time', `${ms}m...
JavaScript
0.00004
@@ -851,16 +851,17 @@ ody.user +_ name');%0A
5854c0ce4eef78ca75c83379fdfa50aa670056b8
Fix things.
server.js
server.js
'use strict'; var redis = require('redis'); var request = require('request'); var socketIO = require('socket.io'); var socketIORedis = require('socket.io-redis'); var io = socketIO(); var config = require('./config'); // enable 'debug' mode for the IO redis.debug_mode = process.env.NODE_ENV !=...
JavaScript
0.000024
@@ -1316,16 +1316,112 @@ r);%0A%7D);%0A +%0Aprocess.on('uncaughtException', function(err) %7B%0A%09console.log('Caught exception: ' + err);%0A%7D);%0A%0A io.adapt
baaba9e4ccff719fcbb52f3c005229bb4c133b01
removing amazon
server.js
server.js
var express = require('express'); var bodyParser = require('body-parser'); var browserify = require('browserify-middleware'); var reactify = require('reactify'); var nunjucks = require('nunjucks'); var config = require('./client/config'); var authRouter = require('./server/auth-routes'); var OperationHelper = require('...
JavaScript
0.999
@@ -932,16 +932,18 @@ ;%0A%7D);%0A%0A%0A +/* var opHe @@ -1119,18 +1119,22 @@ 8-01'%7D); -%0A%0A +*/%0A%0A// var Amaz @@ -1218,16 +1218,18 @@ = %22%22;%0A%0A +/* var amaz @@ -1548,24 +1548,26 @@ t();%0A %7D);%0A%7D +*/ %0A%0Avar walmar @@ -2496,27 +2496,8 @@ ', %5B -amazonGeneralQuery, walm @@ -2608,18 +260...
040310780f381136f19d0b50bf6dbd827986ffe6
change port
server.js
server.js
// modules ================================================= var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var mongoose = require('mongoose'); var server = require('http').Server(app); ...
JavaScript
0.000001
@@ -717,18 +717,20 @@ PORT %7C%7C -80 +9999 ;%0A%0A// co
3d6663c02ceedb677f0083542ccfeba161008116
Test for group with undefined attributes
tests/commands/sgaTests.js
tests/commands/sgaTests.js
var sga = require("__buttercup/classes/commands/command.sga.js"); var fakeGroup; module.exports = { setUp: function(cb) { this.command = new sga(); (cb)(); }, errors: { groupNotFoundForId: function(test) { var fakeSearching = { findGroupByID: function(a, b) { return false; ...
JavaScript
0
@@ -1747,32 +1747,1286 @@ tributeValue);%0A%0A + test.strictEqual(fakeGroup.attributes%5BattributeName%5D, attributeValue, 'Attribute value is correctly set. (%5B' + attributeName + '%5D = ' + attributeValue + ')');%0A test.done();%0A %7D%0A %7D,%0A%0A setAttributeOnGroupWithoutAttributes: %7B%0A set...
72089338d2040b65bcb524bc568e5a602dc0f91a
Support dropping privileges
server.js
server.js
// smtp network server var util = require('util'); var net = require('net'); var logger = require('./logger'); var config = require('./config'); var conn = require('./connection'); var os = require('os'); var multi; try { multi = require('./multi-node') } catch (err) { logger.log("no multi-node available, r...
JavaScript
0
@@ -285,16 +285,21 @@ gger.log +debug (%22no mul @@ -343,16 +343,16 @@ cess%22);%0A - %7D%0A%0Avar S @@ -936,17 +936,21 @@ .main);%0A + %0A - var @@ -982,179 +982,8 @@ ();%0A - server.on('connection', function(client) %7B%0A client.setTimeout((config_data.main.inactivity_time %7C%7C 300) * 10...
420e08ba8fd56ba55f62c6df6b4d8fa4501def52
remove log
server.js
server.js
#! /usr/bin/env node 'use strict'; // Make sure that you enable unsecure localhost in chrome! const https = require('https'); const fs = require('fs'); const express = require('express'); const cors = require('cors'); const app = express(); app.use(cors()); const webpack = require('webpack'); const webpackConfig = req...
JavaScript
0.000001
@@ -1034,40 +1034,8 @@ ue;%0A - console.log(%22stats%22, stats)%0A %7D%0A
453c3195d84f0eca5107baf4d7d3297158a43c0d
update Person test
test/Person.spec.js
test/Person.spec.js
'use strict'; var Person = require('../index').Person; var PhoneNumber = require('../index').PhoneNumber; var PostalAddress = require('../index').PostalAddress; var _ = require('lodash'); var chai = require('chai'); var expect = chai.expect; /* global describe, it, beforeEach, fail */ var log4js = require('log4js'),...
JavaScript
0.000479
@@ -1836,27 +1836,20 @@ Method(' -PhoneNumber +work ', aPhon @@ -1894,38 +1894,213 @@ er(' -PhoneNumber');%0A%0A%09%09expect(phone +work');%0A%0A%09%09expect(phone.getNumber()).to.equal('5555060593');%0A%0A%09%09// Phone numbers array%0A%09%09var phoneNumbers = person.phoneNumbers();%0A%0A%09%09expect(phoneNumbers%5...
d72c48e5ee3b915d4b6bc152ee7eb9cc792a3c13
update server.js
server.js
server.js
JavaScript
0.000001
@@ -0,0 +1,775 @@ +var express=require(%22express%22);%0Avar app=express();%0Avar server=require(%22http%22).createServer(app);%0Avar io=require(%22socket.io%22).listen(server);%0Aapp.use('/',express.static(__dirname));%0Aserver.listen(80);%0Aconsole.log(%22server started%22);%0A%0Afunction Player(name)%7B%0A%09this.na...
4a72c32705b04ad12e4c6c4c9e06c3c781f26c78
refactor uri route
server.js
server.js
/** * Module dependencies. */ var express = require('express'); var routes = require('./routes'); var user = require('./routes/user'); var parser = require('./routes/parser'); var http = require('http'); var path = require('path'); var fs = require('fs'); // var request = require('superagent'); var token = process....
JavaScript
0.000066
@@ -1466,21 +1466,8 @@ );%0A%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A app. @@ -1729,120 +1729,8 @@ y);%0A -=======%0Aapp.post('/uri', function(req, res)%7B%0A console.log(%22post received%22,req.body);%0A%3E%3E%3E%3E%3E%3E%3E post request route %0A p
a78b76d84f14a512b07e9c0b3ec5395e724928f3
Use the right API url
server.js
server.js
#!/usr/bin/env node "use strict"; require("amd-loader"); try { require("heapdump"); } catch(e) {} var path = require("path"); var architect = require("architect"); var optimist = require("optimist"); var async = require("async"); var os = require("os"); var urls = require("c9/urls"); var child_process = require("...
JavaScript
0.00001
@@ -1353,16 +1353,58 @@ %228282%22,%0A + %22--api_url%22, %22http://127.0.0.1:8281%22,%0A %22--d
adab710a7fc5e212399f8c5da553e8583e711b14
Update server to work with mongolab
server.js
server.js
'use strict'; /** * Module dependencies. */ var init = require('./config/init')(), config = require('./config/config'), mongoose = require('mongoose'), chalk = require('chalk'); /** * Main application entry file. * Please note that the order of loading is important. */ // Bootstrap db connection var db = mong...
JavaScript
0
@@ -326,16 +326,44 @@ connect( +process.env.MONGOLAB_URI %7C%7C config.d
cff017f79d8fb5f071d6d4396ff439f8ffb017dd
Remove CLI strict mode due to integration problems with pm2
server.js
server.js
#!/usr/bin/env node 'use strict'; const yargs = require('yargs'); const assert = require('assert'); const config = require('config'); const argv = yargs .strict() .wrap(Math.min(120, yargs.terminalWidth())) .version().alias('version', 'v') .help('help').alias('help', 'h') .command('[options]') .usage('Usage: $0 [opt...
JavaScript
0
@@ -153,18 +153,8 @@ rgs%0A -.strict()%0A .wra
19de0e75fc39863e33b1bbefa464215d4be04178
Remove hello
server.js
server.js
// server.js // BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); // Our models var...
JavaScript
0.999443
@@ -772,204 +772,9 @@ %0A// -test route to make sure everything is working (accessed at GET http://localhost:8080/api)%0Arouter.get('/', function(req, res) %7B%0A%09res.json(%7B message: 'hooray! welcome to our api!' %7D);%0A%7D);%0A%0A// more r +R oute
1f45b3c9fd3a78fd811914376d6807b683c7dd47
Update factory-spec.js
tests/spec/factory-spec.js
tests/spec/factory-spec.js
var Factory = require( __core + 'entities/factory' ); describe( 'a factory', function() { var factory; beforeEach( function() { factory = new Factory( { name: 'Toy Factory' } ); factoryNoOptions = new Factory(); } ); it( 'has a name', function() { expect( factory.name ).toBeDefine...
JavaScript
0.000001
@@ -375,18 +375,16 @@ %0A %7D );%0A - %0A it( '
0ae469cada2379ca6bb4806a1146f721188a1e68
corrected the callback url
server.js
server.js
/*eslint-env node */ /** *Created:...................11/07/2016 *Author:....................Emmanuel Henley *Author Contact:............ehenl001@fiu.edu *Last Edited:...............11/11/2016 *Last Edited by:............same as author *Last Edited by contact:....same as author * * *Server for the HenleyLunn E...
JavaScript
0.997946
@@ -2088,16 +2088,17 @@ k_url = +' /patient @@ -2108,25 +2108,18 @@ mination +' ; - %0A%0Avar Op @@ -2844,16 +2844,17 @@ %09%7D) +; %0A%7D); %0A%0Ap @@ -3168,25 +3168,26 @@ t('/ -auth/sso/callback +patientExamination ',fu
34afb05286bb099cf6f8e43675f04b7a7c79640d
Improve logging (add fractional ms)
server.js
server.js
var fs = require('fs') ,Q = require('q') ,http = require('http') ,less = require('less') ,port = 8000 l = console.log; var parser = new less.Parser(); http.createServer(function (req, res) { var time = Date.now(); l("Start request"); readEntireBody(req) .then(parseLess) .then(outputCs...
JavaScript
0
@@ -400,22 +400,20 @@ request -: %22 + +(%22+( Math.rou @@ -423,11 +423,33 @@ time -,3) +*10)/10)+%22ms):%22 + req.url );%0A
32180801c07b2819217823d8807556ca8124fa44
implement alternative parser
plugins/filters/app_sonus/filter_app_sonuslog.js
plugins/filters/app_sonus/filter_app_sonuslog.js
/* Custom, Unoptimized Sonus Log to SIP/HEP3 Parser w/ reassembly of rows (C) 2020 QXIP BV */ var base_filter = require('@pastash/pastash').base_filter, util = require('util'), logger = require('@pastash/pastash').logger; var moment = require('moment'); function FilterAppSonusLog() { base_filter.BaseFilt...
JavaScript
0.001421
@@ -413,16 +413,23 @@ ion_hdr' +,'type' %5D,%0A d @@ -475,16 +475,33 @@ ': false +,%0A 'type': 0 %0A %7D,%0A @@ -2084,32 +2084,235 @@ PDU:#012(.*)/g;%0A +%09 if this.type == 1 regex = /.*%3C147%3E %5B0-9%5D (%5Cd%7B4%7D-%5Cd%5Cd-%5Cd%5CdT%5Cd%5Cd:%5Cd%5Cd:%5Cd%5Cd?%5C.%5Cd+?%5B+-%5D%5Cd%5Cd:%5Cd%5Cd%7...
3fe2d8d7e8c0c752a08985c2cbfea32defb868a6
Remove unnecessary server ref.
server.js
server.js
var cluster = require('cluster'), hn = require('./lib/hn'), util = require('util'); cluster('./lib/app.js') .set('socket path', './tmp') .in('development') .set('workers', 4) .listen(8000) .in('production') .set('workers', 4) .listen(80);
JavaScript
0
@@ -31,38 +31,8 @@ '),%0A - hn = require('./lib/hn'),%0A
df6d58ba187f2e78dbf96148f3b92330df4e1456
Fix warn->warning
tests/test-st2bot-setup.js
tests/test-st2bot-setup.js
/* Licensed to the StackStorm, Inc ('StackStorm') under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this...
JavaScript
0.000147
@@ -1649,16 +1649,19 @@ ger.warn +ing = contr
2b2b997dafdd20801ee9cc76acc8cb924858e00b
correct redis authing
pages/dependencies.js
pages/dependencies.js
'use strict'; var GitHulk = require('githulk') , Dynamis = require('dynamis') , Page = require('../base').Page , Registry = require('npm-registry') , config = require('../config'); // // Get configurations. // var couchdb = config.get('couchdb') , redisConf = config.get('redis'); // // Initialize the cache...
JavaScript
0.00045
@@ -520,17 +520,17 @@ %7B -pass_auth +auth_pass : re @@ -548,24 +548,86 @@ h %7D%0A );%0A%0A +redis.on('error', function (err) %7B%0A console.error(err);%0A%7D);%0A%0A //%0A// Initia
6601731db8f6cb873385dc40529766c4e69c35fc
update demo test
demo/test/simple_storage_spec.js
demo/test/simple_storage_spec.js
var assert = require('assert'); var Embark = require('embark-framework'); var EmbarkSpec = Embark.initTests(); var web3 = EmbarkSpec.web3; describe("SimpleStorage", function() { before(function(done) { var contractsConfig = { "SimpleStorage": { args: [100, '0x123'] } }; EmbarkSpec.dep...
JavaScript
0
@@ -273,17 +273,8 @@ %5B100 -, '0x123' %5D%0A
876a0b6d6a855058fec78ab55da6810d26139d34
Fix pacakge name of PersonCompleter.
js/foam/apps/quickbug/model/PersonCompleter.js
js/foam/apps/quickbug/model/PersonCompleter.js
/** * @license * Copyright 2014 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0.000001
@@ -688,16 +688,22 @@ quickbug +.model ',%0A pro
7412103c1d8a92cbf59473d35244570e60cf4fef
change map box bounds parameters names
js/modules/main/src/services/leafletService.js
js/modules/main/src/services/leafletService.js
angular.module('main') .factory('leaflet', ['$q', '$http', 'apiClient', function ($q, $http, apiClient) { var deferred = $q.defer(); return { get_geo_places: function (bounds) { return $http.get(apiClient.urls.geojson, {params: {'southWestLat': bo...
JavaScript
0
@@ -297,25 +297,19 @@ %7B's -outhWestL +w_l at': bou @@ -348,19 +348,14 @@ + 's -outhWestL +w_l ng': @@ -394,27 +394,22 @@ + 'n -orthEastL +e_l at': bou @@ -451,17 +451,11 @@ 'n -orthEastL +e_l ng':
901ce77c5b30989615571751c0d7ea3870da62e9
Update User.js
clean_server/resources/app/models/User.js
clean_server/resources/app/models/User.js
var Sequelize = require('sequelize') //establish connection to User table with sequelize connection var attributes = { username: { type: Sequelize.STRING, allowNull: false, unique: true, validate: { is: /^[a-z0-9\_\-]+$/i, } }, email: { //defines email as a string value type: Seq...
JavaScript
0.000001
@@ -36,68 +36,49 @@ )%0A// -establish connection to User table with sequelize connection +Sequelize needed for sequelize strings%0A// %0Avar
5a6fab8a44e7bfdfb66e64b611801cbc269a79ef
Update "Changes will apply after restarting the app" in settings
desktop/src/Settings/Settings.js
desktop/src/Settings/Settings.js
import React, { PureComponent } from 'react'; import { List, ListItem } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; import Divider from 'material-ui/Divider'; import CalendarSystemDialog from './CalendarSystemDialog'; import FirstDayOfWeekDialog from './FirstDayOfWeekDialog'; import './Settin...
JavaScript
0
@@ -2392,28 +2392,80 @@ mode - (Needs app restart) +%22%0A secondaryText=%22Changes will apply after restarting the app %22%0A
add547ffdf0e31a39fa7fbe342e0d68641b5cad3
add test -o not writing to stdout
test/integration.js
test/integration.js
'use strict'; describe('The CLI called', function () { var run = require('../src/run'); var args; this.timeout(10000); // chai require('chai').should(); // std-mocks var stdMocks = require('std-mocks'); function stdout() { return stdMocks.flush().stdout.join(''); } ...
JavaScript
0.000001
@@ -3085,28 +3085,283 @@ t);%0A %7D);%0A + it('should not write to stdout', function () %7B%0A var file = tmp.fileSync();%0A args.o = file.name;%0A%0A run(args);%0A stdin.send(gv);%0A stdin.end();%0A%0A stdout().should.equal('');%0A ...
990252707bef6c1725dc0c3585d813c164052792
remove inutile test from no baseline suite
test/no-baseline.js
test/no-baseline.js
var chai = require('chai'); var sinon = require('sinon'); var expect = chai.expect; var Mugshot = require('../lib/mugshot.js'); var path = require('path'); chai.use(require('sinon-chai')); describe('No baseline', function() { var noSelector = {name: 'path'}, screenshot = new Buffer('ZmxvcmVudGlu'), erro...
JavaScript
0
@@ -1013,204 +1013,18 @@ uld -verify that a baseline doesn%5C't exist', function() %7B%0A mugshot.test(noSelector, callback);%0A%0A expect(FS.exists).to.have.been.calledWith(baselinePath, sinon.match.func);%0A %7D);%0A%0A it('should not +not try to rea
ef7ed8fa561289a32e7b8463737b5e843f6ef26a
Update spoiler.part.js
parts/spoiler.part.js
parts/spoiler.part.js
msuParts["spoiler"] = function (ScratchUserscript) { var settingsDlg = $("<div></div>"); ScratchUserscript.registerPart("Forum Spoilers", "Put [color=spoiler] Hello! [/color] in a forum post to make a spoiler!", settingsDlg); var isEnabled = ScratchUserscript.isPartEnabled("spoiler"); if (!isEnabled) return; ...
JavaScript
0.000001
@@ -290,17 +290,16 @@ ;%0A%0A%09if ( -! isEnable @@ -304,20 +304,12 @@ led) + %7B %0A%09 -%09return;%0A%0A %09// @@ -322,16 +322,17 @@ script%0A +%09 %09$(docum @@ -355,16 +355,17 @@ ion() %7B%0A +%09 %09%09$('.po @@ -405,16 +405,17 @@ x) %7B%0A%09%09%09 +%09 if($(thi @@ -448,24 +448,25 @@ spoiler') %7B%0...
f698098f4a802c68f75c4c4d6992a57f07306158
update test code
test/test.docker.js
test/test.docker.js
/* * Copyright (c) 2017. tom@axisj.com * - github.com/thomasjang * - www.axisj.com */ /* test.calendar.js TODO event test */ /* ax5.calendar.setConfig */ describe('ax5.docker TEST', function () { var myDocker; var tmpl = '<div data-ax5docker="docker1" style="height: 500px;background: #eee;padding: 5px...
JavaScript
0.000001
@@ -2792,32 +2792,748 @@ one();%0A %7D);%0A%0A + it('docker addModule', function (done) %7B%0A done(typeof myDocker.addModule(%7B%0A %22content%22: %7B%0A init: function (container, state) %7B%0A container%5B%22$element%22%5D.html(JSON.stringify(state));%0A ...
4044c1ec543f72b7662ddc5efee4d93bfbadc8d4
update testAdapter.js
test/testAdapter.js
test/testAdapter.js
/* jshint -W097 */// jshint strict:false /*jslint node: true */ var expect = require('chai').expect; var setup = require(__dirname + '/lib/setup'); var objects = null; var states = null; var onStateChanged = null; var onObjectChanged = null; var sendToID = 1; var adapterShortName = setup.adapterName.substring(setup...
JavaScript
0.000001
@@ -2297,32 +2297,38 @@ setupController( +async function () %7B%0A @@ -2550,32 +2550,38 @@ ';%0A%0A +await setup.setAdapter
474411fc530a088e5ce7b515861b29c68a4a28f1
Fix to emit proper
helpers/SHAStream.js
helpers/SHAStream.js
'use strict'; var crypto = require('crypto') var Transform = require('stream').PassThrough var util = require('util') /** * Constructor * @constructor * @param {string} hash type defaults to sha1 * @param {object} options */ var SHAStream = function(hashType,options){ var that = this that.hashType = hashTyp...
JavaScript
0.000003
@@ -470,31 +470,21 @@ that -%5Bthat.hashType%5D +.hash = that. @@ -513,22 +513,22 @@ that -.emit( +%5Bthat. hashType ,tha @@ -515,32 +515,68 @@ at%5Bthat.hashType +%5D = that.hash%0A that.emit('digest' ,that%5Bthat.hashT
9b70faffcd6009f7ec9e104935eac10a7dc3986c
add setter/getter for direction.
medea/medea.light.js
medea/medea.light.js
/* medea.js - Open Source, High-Performance 3D Engine based on WebGL. * * (c) 2011-2013, Alexander C. Gessler * https://github.com/acgessler/medea.js * * Made available under the terms and conditions of a 3-clause BSD license. * */ medealib.define('light', ['entity'],function(medealib, undefined) { "use stric...
JavaScript
0
@@ -1501,24 +1501,162 @@ s.dir);%0A%09%09%7D, +%0A%0A%09%09Direction : function(dir) %7B%0A%09%09%09if (dir === undefined) %7B%0A%09%09%09%09return this.dir;%0A%09%09%09%7D%0A%09%09%09this.dir = dir;%0A%09%09%09vec3.normalize(this.dir);%0A%09%09%7D, %0A%09%7D);%0A%0A%0A%09med
305b63170cc7e4a2f8c7c2d31a10eafad11d0c13
add height to main window to avoid windows scrollbars
pi_finder/src/main.js
pi_finder/src/main.js
var app = require('app'), ipc = require('ipc'), SSH = require('./ssh.js'), BrowserWindow = require('browser-window'), Finder = require('./finder.js'), main, terminal; // quit app on close app.on('window-all-closed', function() { app.quit(); }); app.on('ready', function() { main = new BrowserW...
JavaScript
0
@@ -881,33 +881,33 @@ n.setSize(500, 5 -0 +3 0);%0A termin @@ -2154,17 +2154,17 @@ e(500, 5 -0 +3 0);%0A
aa2a07ef6ea4b7ea0661b497ae79a89e1b66fc98
Make sure hoisted imports are handled by findUndefinedIdentifiers
lib/__tests__/findUndefinedIdentifiers-test.js
lib/__tests__/findUndefinedIdentifiers-test.js
import findUndefinedIdentifiers from '../findUndefinedIdentifiers'; import parse from '../parse'; it('finds all undefined identifiers', () => { expect( findUndefinedIdentifiers( parse( ` const foo = 'foo'; foo(); bar(); `, ), ), ).toEqual(new Set(['bar'])); }); it('recogn...
JavaScript
0.001661
@@ -4102,16 +4102,41 @@ Class(); +%0A hoistedImport.bar(); %0A%0A fu @@ -4232,24 +4232,71 @@ tedClass %7B%7D%0A + import hoistedImport from 'hoisterImport';%0A %60,%0A
d8d0de1581c121d8f4eca61049b736ed84de22d8
fix tc
tests/index-spec.js
tests/index-spec.js
/** @jsx React.DOM */ var expect = require('expect.js'); var Tabs = require('../index'); var TabPane = Tabs.TabPane; var React = require('react/addons'); // var sinon = require('sinon'); var TestUtils = React.addons.TestUtils; var Simulate = TestUtils.Simulate; var node = document.createElement('div'); document.body....
JavaScript
0.000011
@@ -1113,95 +1113,8 @@ ');%0A - console.log(TestUtils.scryRenderedDOMComponentsWithClass(tabs, 'rc-tabs-tab')%5B1%5D);%0A
8eb64be25e50bee0c85a039dc41a041cae0a4404
Revert "Decrease high timeout in ci"
tests/karma.conf.js
tests/karma.conf.js
var path = require('path'); var webpack = require('./webpack.config'); process.env.CHROME_BIN = require('puppeteer').executablePath(); module.exports = function (config) { config.set({ basePath: '.', frameworks: ['mocha'], reporters: ['mocha'], client: { captureConsole: true, }, files:...
JavaScript
0.000005
@@ -292,24 +292,160 @@ sole: true,%0A + mocha: %7B%0A timeout : 10000, // 10 seconds - upped from 2 seconds%0A retries: 3 // Allow for slow server on CI.%0A %7D%0A %7D,%0A f @@ -865,24 +865,208 @@ nly'%0A %7D,%0A + browserNoActivityTimeout: 31000, // 31 seconds - upped from 10 se...
727d73e328f7dfe4cef2552dac0aeef2cdbfb19c
allow displaying components without controller asigned
mirrorgate-dashboard/src/js/components/Tile.js
mirrorgate-dashboard/src/js/components/Tile.js
/* * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A. * * 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 ap...
JavaScript
0
@@ -2388,24 +2388,70 @@ tConfig());%0A + this.setAttribute('enabled', 'true');%0A %7D%0A
0ef7ee4f338f627866c106c085f361d7891f6770
Fix failure in Post API tests.
core/test/integration/api/api_posts_spec.js
core/test/integration/api/api_posts_spec.js
/*globals describe, before, beforeEach, afterEach, it */ /*jshint expr:true*/ var testUtils = require('../../utils'), should = require('should'), // Stuff we are testing PostAPI = require('../../../server/api/posts'); describe('Post API', function () { // Keep the DB clean befo...
JavaScript
0
@@ -155,16 +155,55 @@ hould'), +%0A _ = require('lodash'), %0A%0A // @@ -497,16 +497,107 @@ it'));%0A%0A + function extractFirstPost(posts) %7B%0A return _.filter(posts, %7B id: 1 %7D)%5B0%5D;%0A %7D%0A %0A sho @@ -1280,16 +1280,33 @@ tPost = +extractFirstPost( results. @@ -1310...
2056d436192a05567a91a82eb9e0d037c6ef7fcc
remove more lodash stuff from check-students
modules/web/redux/middleware/check-students.js
modules/web/redux/middleware/check-students.js
// @flow import * as studentConstants from '../students/constants' import * as areaConstants from '../areas/constants' import * as courseConstants from '../courses/constants' import filter from 'lodash/filter' import includes from 'lodash/includes' import map from 'lodash/map' import toArray from 'lodash/toArray' imp...
JavaScript
0
@@ -173,111 +173,8 @@ s'%0A%0A -import filter from 'lodash/filter'%0Aimport includes from 'lodash/includes'%0Aimport map from 'lodash/map'%0A impo @@ -206,16 +206,16 @@ oArray'%0A + %0Aimport @@ -291,16 +291,24 @@ elist = +new Set( %5B%0A st @@ -1252,16 +1252,17 @@ URSES,%0A%5D +) %0Afunctio @@ -1326,17 +1...
4546b5375a861fec76c49d26e7f8de473b768d33
Clean up demo
demo.js
demo.js
var videostream = require('./videostream'); var WebTorrent = require('webtorrent'); var client = new WebTorrent(); // var infoHash = '08cb0bb4adbe99973906352e11fd07daddc2ce22'; var infoHash = '5d3aaec17026f780af3224d98e47de9694029173'; client.add({ infoHash: infoHash, announce: 'wss://tracker.webtorrent.io/' }, fu...
JavaScript
0
@@ -1,13 +1,12 @@ -%0A var videostr @@ -82,157 +82,259 @@ );%0A%0A -var client = new WebTorrent();%0A// var infoHash = '08cb0bb4adbe99973906352e11fd07daddc2ce22';%0Avar infoHash = '5d3aaec17026f780af3224d98e47de9694029173 +// This demo uses WebTorrent (https://github.com/feross/webtorrent)%0Avar client = new WebTorre...
2caf9b5fbcbb72414e2cad019d1240406ed5d467
Migrate TableRow to react-testing-library (#23105)
packages/material-ui/test/integration/TableRow.test.js
packages/material-ui/test/integration/TableRow.test.js
import * as React from 'react'; import { expect } from 'chai'; import { getClasses, createMount } from 'test/utils'; import TableFooter from '@material-ui/core/TableFooter'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; describe('<TableRow> integration', () => ...
JavaScript
0
@@ -83,21 +83,28 @@ , create -Mount +ClientRender %7D from @@ -345,21 +345,22 @@ const -mount +render = creat @@ -364,13 +364,20 @@ eate -Mount +ClientRender ();%0A @@ -533,39 +533,46 @@ %7B%0A const -wrapper = mount +%7B getByRole %7D = render (%0A %3Ctab @@ -677,101 +677,93 @@ ect( -wrapper.fi...
aed9fe10f8b30087028964822a5672f32db2e92d
remove className from DataController
packages/native/src/components/basic/DataController.js
packages/native/src/components/basic/DataController.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { addComponent, removeComponent, updateQuery } from '@appbaseio/reactivecore/lib/actions'; import { isEqual, checkValueChange } from '@appbaseio/reactivecore/lib/utils/helper'; import types fro...
JavaScript
0.000006
@@ -1893,41 +1893,8 @@ yle%7D - className=%7Bthis.props.className%7D %3E%0A%09%09 @@ -2006,26 +2006,8 @@ %7B%7D,%0A -%09className: null,%0A %7D;%0A%0A @@ -2564,34 +2564,8 @@ le,%0A -%09className: types.string,%0A %7D;%0A%0A
de2c1f058e866772a280a962b6772b22153c0624
change detect on all paths
diff.js
diff.js
var is = require('./is') function diff(Interface, doc) { var d = {} var same = true for (var prop in Interface) { var actual = doc[prop] var expected = Interface[prop] var test = is(expected) if (!test) { // expecting an object if (!actual) { // and it's mising d[pr...
JavaScript
0
@@ -301,16 +301,37 @@ mising%0A + same = false%0A
e11bf42ceac5bb5ef0d7c98d0d075048c94352dd
Check for Suspense boundary in a root Container (#16673)
packages/react-dom/src/client/ReactDOMComponentTree.js
packages/react-dom/src/client/ReactDOMComponentTree.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {HostComponent, HostText} from 'shared/ReactWorkTags'; import invariant from 'shared/invariant'; import {getParentSuspense...
JavaScript
0.000002
@@ -2257,71 +2257,70 @@ -targetInst = parentNode%5BinternalContainerI +// If it's not a container, we check if it's an i nstance -Key%5D; +. %0A -if ( targ @@ -2329,105 +2329,66 @@ Inst -) %7B + = %0A -// If so, we return the HostRoot Fiber.%0A return targetInst;%0A %7D%0A targetInst = +...
219b52898c3ca98f13264a27b3bc32ace34907db
Update dist.js
dist.js
dist.js
a=message.suffix.split(',') sys1=a[0].trim() sys2=a[1].trim() unirest.get('http://www.edsm.net/api-v1/system?sysname='+encodeURIComponent(sys1)+'&coords=1') .end(function (r1) { if('coords' in r1.body) { unirest.get('http://www.edsm.net/api-v1/system?sysname='+encodeURIComponent(sys2)+'&coords=1') .end(func...
JavaScript
0.000001
@@ -713,18 +713,18 @@ %22+dist+ - %22 + ly%22%0A
2133e5b3d2d086acef79f576aef4706c190f8f84
Update directive.js
directive/templates/directive.js
directive/templates/directive.js
angular.module('<%= appname %>').directive('<%= _.classify(name) %>', function() { return { restrict: 'E', replace: true, scope: { }, templateUrl: 'directives/<%= name %>/<%= name %>.html', link: function(scope, element, attrs, fn) { } }; });
JavaScript
0.000002
@@ -162,17 +162,16 @@ irective -s /%3C%25= nam
8b811f20d801af0f3e9b018b6ea0373bc8134527
fix condition for start
plugin/streammanager.js
plugin/streammanager.js
/** * Created by Nicolas on 6/27/15. */ (function (StreamManager) { 'use strict'; // Twitch API, Christopher Gamble: // Current recommended practice is to poll the API to check if streams are online. var _ = require('lodash'), database = require('./database'), logger =...
JavaScript
0
@@ -3526,17 +3526,16 @@ length %3E -= 0) %7B%0A
7c1da930104b9a1b66a2ea06d441b00e1d48b710
enforce array for continue key
plugins/jspsych-text.js
plugins/jspsych-text.js
/* jspsych-text.js * Josh de Leeuw * * This plugin displays text (including HTML formatted strings) during the experiment. * Use it to show instructions, provide performance feedback, etc... * * documentation: https://github.com/jodeleeuw/jsPsych/wiki/jspsych-text * * */ (function($) { jsPsych.text = (fu...
JavaScript
0.000002
@@ -481,16 +481,28 @@ ','data' +, 'cont_key' %5D);%0A
8f36405380258926e19ad7004bd2b37de7f67f0b
Update TouchableWithoutFeedback.js
Libraries/Components/Touchable/TouchableWithoutFeedback.js
Libraries/Components/Touchable/TouchableWithoutFeedback.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0.000001
@@ -1951,35 +1951,278 @@ -onPressIn: PropTypes.func,%0A +/**%0A * Called as soon as the touchable element is pressed and invoked even before onPress.%0A * This can be useful when making network requests.%0A */%0A onPressIn: PropTypes.func,%0A /**%0A * Called as soon as the touch is released even...
27e46bd033b9b8c6df897dc367c28fd3f0681880
Update core.client.routes.js
public/modules/core/config/core.client.routes.js
public/modules/core/config/core.client.routes.js
'use strict'; // Setting up route angular.module('core').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { // Redirect to home view when route not found $urlRouterProvider.otherwise('/'); // Home state routing $stateProvider. state('home', { url: '/', temp...
JavaScript
0.000002
@@ -749,32 +749,315 @@ lient.view.html' +,%0A%09%09%09resolve: %7B%0A%09%09%09loadPlugin: function ($ocLazyLoad) %7B%0A%09%09%09return $ocLazyLoad.load(%5B%0A %7B%0A files: %5B'modules/core/css/plugins/steps/jquery.steps.css'%5D%0A %7D%0A ...
e034b1afd40d9ee9c8468cbf89de74bcda980238
fix block
blocks/TextInput/index.js
blocks/TextInput/index.js
import React from 'react'; import Control from '../Control'; class TextInput extends Control { constructor(props) { super(props); this.state.value = props.value; this.onClearClick = this.onClearClick.bind(this); this.onInputChange = this.onInputChange.bind(this); } render...
JavaScript
0.998519
@@ -159,16 +159,58 @@ tate -. + = %7B%0A ...this.state,%0A value - = +: pro @@ -217,16 +217,26 @@ ps.value +%0A %7D ;%0A%0A @@ -363,74 +363,246 @@ -render() %7B%0A var type = this.props.type %7C%7C 'text';%0A%0A +componentWillReceiveProps(nextProps) %7B%0A ...
7dda82c19a2dc6694e282449092b3114963c6462
Fix model blueprint
blueprints/model/index.js
blueprints/model/index.js
/*jshint node:true*/ var inflection = require('inflection'); var stringUtils = require('ember-cli-string-utils'); var EOL = require('os').EOL; module.exports = { description: 'Generates an ember-data model.', anonymousOptions: [ 'name', 'attr:type' ], locals: function(options) { var att...
JavaScript
0.000001
@@ -1,158 +1,4 @@ -/*jshint node:true*/%0A%0Avar inflection = require('inflection');%0Avar stringUtils = require('ember-cli-string-utils');%0Avar EOL = require('os').EOL;%0A%0A modu @@ -137,23 +137,16 @@ unction( -options ) %7B%0A @@ -153,1511 +153,110 @@ var -attrs = %5B%5D;%0A var needs = %5B%5D;...
53f675fbe01ec11f5d6b01273f7d297ade7fd2de
Remove unnecessary check.
react/features/toolbox/components/ToolbarButton.web.js
react/features/toolbox/components/ToolbarButton.web.js
/* @flow */ import React from 'react'; import { translate } from '../../base/i18n'; import { setTooltip, setTooltipText } from '../../../../modules/UI/util/Tooltip'; import AbstractToolbarButton from './AbstractToolbarButton'; import { getButtonAttributesByProps, isButtonEnabled } from '../functions...
JavaScript
0
@@ -240,20 +240,16 @@ import %7B -%0A getButt @@ -271,30 +271,9 @@ rops -,%0A isButtonEnabled%0A + %7D fr @@ -4949,91 +4949,9 @@ ps;%0A - const name = button.buttonName;%0A%0A if (isButtonEnabled(name)) %7B%0A%0A +%0A @@ -4985,36 +4985,32 @@ ) %7B%0A - if (button.t...
bd2d419f2e02022fef91b279ea00438b952d53ea
Allow API config to be specified in user configuration
packages/@sanity/cli/src/util/clientWrapper.js
packages/@sanity/cli/src/util/clientWrapper.js
import client from '@sanity/client-next' import getUserConfig from './getUserConfig' /** * Creates a wrapper/getter function to retrieve a Sanity API client. * Instead of spreading the error checking logic around the project, * we call it here when (and only when) a command needs to use the API */ const defaults =...
JavaScript
0.000001
@@ -531,21 +531,26 @@ const -token +userConfig = getUs @@ -559,16 +559,91 @@ Config() +%0A const userApiConf = userConfig.get('api')%0A const token = userConfig .get('au @@ -710,16 +710,31 @@ .api) %7C%7C + userApiConf %7C%7C %7B%7D%0A%0A
3acde03078c8112986135b7087170f4491382bc6
Fix typo (close #868)
docs/src/pages/examples/disabled.js
docs/src/pages/examples/disabled.js
import React from 'react'; import Link from 'gatsby-link'; import ExamplePage from '../../containers/ExamplePage'; import CodeSample from '../../ui/CodeSample'; export default () => ( <ExamplePage title="Display days as disabled"> <p> Use the <code>disasbledDays</code> prop to display days with a ”disable...
JavaScript
0.000199
@@ -252,33 +252,32 @@ e the %3Ccode%3Edisa -s bledDays%3C/code%3E @@ -479,17 +479,16 @@ ode%3Edisa -s bledDays
64127168d988d66d93c845877b0dea8bd95ce51d
allow for index
_includes/chat.js
_includes/chat.js
n = 0 showmessage = function () { var p = $('#content > ul > li').eq(n) if (!p.length) { // end of chat... var c = $('#content'), u = $('#content>ul') c.append('<p>The chat has ended.</p>', remarks) if (remarks.length) setTimeout(function () { remarks.show() showbase() }, 2000) showbase() ...
JavaScript
0.000003
@@ -3316,39 +3316,158 @@ $('# -send').on('click', sendmessage) +content').show()%0D%0A%09if (document.body.className == 'index') return%0D%0A%09%0D%0A%09$('#send').on('click', sendmessage)%0D%0A%09$('#content').on('change', radioclick)%0D%0A%09 %0D%0A%09r @@ -3603,70 +3603,8 @@ ()%0D%0A -%09$('#content').on('change'...
ef7aee8e5fac73591a90769c67fd8b682229c8cc
update comment (#907)
config/spec-bundle.js
config/spec-bundle.js
/** * @author: @AngularClass */ /* * When testing with webpack and ES6, we have to do some extra * things to get testing to work right. Because we are gonna write tests * in ES6 too, we have to compile those as well. That's handled in * karma.conf.js with the karma-webpack plugin. This is the entry * file for w...
JavaScript
0
@@ -1209,20 +1209,16 @@ use the -the context @@ -1364,17 +1364,16 @@ ill be a -n functio @@ -1409,17 +1409,17 @@ eys.%0A * -u +U sing tha @@ -1452,28 +1452,14 @@ in +. ./src -/app and ./test the @@ -1497,17 +1497,17 @@ th spec. -j +t s and ge
075c1b109d18f775436e69aaa8ef7b30d679e6a2
Update webpack.dev.js
config/webpack.dev.js
config/webpack.dev.js
const helpers = require('./helpers'); const webpack = require('webpack'); const webpackMerge = require('webpack-merge'); const commonConfig = require('./webpack.common.js'); const ENV = process.env.ENV = process.env.NODE_ENV = 'development'; module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-sou...
JavaScript
0.000003
@@ -932,25 +932,23 @@ host: ' -localhost +0.0.0.0 ',%0A @@ -1362,8 +1362,9 @@ %7D%0A%7D); +%0A
8cc42f260dd7bb00853160728c7369930c8c4316
Add notify on Add Summoner
pages/add-summoner.js
pages/add-summoner.js
'use strict' import { Component } from 'react' import withRedux from 'next-redux-wrapper' import PropTypes from 'prop-types' import Router from 'next/router' import { isLogged } from './../services/auth' import Page from './../layouts/page' import { UiButton, UiLink, TextInput, Row } from './../components/ui' import ...
JavaScript
0
@@ -151,16 +151,50 @@ /router' +%0Aimport Alert from 'react-s-alert' %0A%0Aimport @@ -311,16 +311,24 @@ put, Row +, Notify %7D from @@ -1201,29 +1201,20 @@ urn -console.log('E +Alert.e rror -', +( erro @@ -2100,16 +2100,16 @@ UiLink%3E%0A - @@ -2117,16 +2117,38 @@ %3C/form%3E +%0A%0A %3...
52f3ec543f873c0fa9d96f498219dc2bdf718a44
Remove redundant `console.log()`
bin/optipng.js
bin/optipng.js
#!/usr/bin/env node 'use strict'; var binPath = require('../lib/optipng').path; var spawn = require('child_process').spawn; console.log(binPath); spawn(binPath, process.argv.slice(2), { stdio: 'inherit' }) .on('exit', process.exit);
JavaScript
0.003455
@@ -123,31 +123,8 @@ n;%0A%0A -console.log(binPath);%0A%0A spaw
7e9fb7ac37015c3a034ce848139825bc9fe33e7c
disable import/extensions for typescript
packages/eslint-config/lib/rules/typescript.js
packages/eslint-config/lib/rules/typescript.js
'use strict'; const { INDENT } = require('./constants'); const jsRules = require('./javascript'); module.exports = Object.assign({}, jsRules, { // typescript preferences '@typescript-eslint/prefer-interface': 'off', '@typescript-eslint/no-object-literal-type-assertion': 'off', '@typescript-eslint/no-e...
JavaScript
0
@@ -2434,32 +2434,64 @@ solved': 'off',%0A + 'import/extensions': 'off',%0A 'no-unused-v
3511d534b2e5377465f81cd9ea5a2efb559030b0
Use reduce
ui/components/Container.js
ui/components/Container.js
/* jslint ignore:start */ // code here //require("./app.css"); import _ from 'lodash'; import React, {PropTypes} from 'react'; import {bindActionCreators} from 'redux'; import {Provider, connect} from 'react-redux'; import {Grid, Row, Col, Input} from 'react-bootstrap'; import {DragDropContext} from 'react-dnd'; impor...
JavaScript
0.000001
@@ -620,17 +620,16 @@ false;%0A -%0A const @@ -634,17 +634,16 @@ t cards - = state. @@ -656,30 +656,49 @@ %0A . -map( +reduce((cards, id +) =%3E %7B%0A +%0A -return +const card = sta @@ -722,52 +722,23 @@ %5Bid%5D +; %0A -%7D)%0A .filter(card =%3E card)%0A .map + if (card - =%3E +) %7...
52cec476108a0c2e5bb46173753325b084269850
Remove ghostly s which came from nowhere and destroyed everything
resources/assets/js/plugins/http/Interceptors.js
resources/assets/js/plugins/http/Interceptors.js
import Vue from 'vue'; import { win, isIframe } from 'classes/helpers'; /* global Promise, console */ /* eslint-disable no-console */ // we want to share some bits between the top window and iframe let shared = isIframe ? win.top.astroInterceptorShared : (win.astroInterceptorShared = { unauthorizedPromise: null, vu...
JavaScript
0
@@ -946,17 +946,16 @@ uthToken -s (request
a050b1f367ccc9b8cd00960e057d3720bd969033
cli tips
bin/whistle.js
bin/whistle.js
#! /usr/bin/env node /*eslint no-console: "off"*/ var program = require('starting'); var path = require('path'); var config = require('../lib/config'); var useRules = require('./use'); var showStatus = require('./status'); var util = require('./util'); var showUsage = util.showUsage; var error = util.error; var warn =...
JavaScript
0.999951
@@ -243,24 +243,66 @@ './util');%0A%0A +var isWin = process.platform === 'win32';%0A var showUsag @@ -2151,32 +2151,70 @@ to run command +' + (isWin ? 'as an administrator' : ' with %60sudo%60');%0A @@ -2210,16 +2210,17 @@ %60sudo%60') +) ;%0A
9ddcff831747998d6bba376d0e102c49c5d55da9
Change loader browser checking
site/src/loader.js
site/src/loader.js
(function() { "use strict"; { var supported = true; try { class Test {} } catch (e) { supported = false; } if (typeof fetch === "undefined") supported = false; if (!supported) { alert('Your browser does not support Ukahoot!\nMake sure you are using the latest version of Chrome.'); return...
JavaScript
0
@@ -29,20 +29,63 @@ t%22;%0A -%7B%0A%09%09 +// Check if browser supports ES6 and fetch%0A var supp @@ -102,19 +102,26 @@ ue;%0A -%09%09 + try %7B%0A -%09%09%09 + clas @@ -130,18 +130,20 @@ Test %7B%7D%0A -%09%09 + %7D catch @@ -148,19 +148,24 @@ h (e) %7B%0A -%09%09%09 + suppor...
0bc2edd191ba38946b79bd92a96d3adcd11d26c8
add docs JS to activate popover demos; fixes #13937
docs/assets/js/_src/application.js
docs/assets/js/_src/application.js
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S ALL JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * JavaScript for Bootstrap's docs (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, ...
JavaScript
0
@@ -2121,32 +2121,139 @@ r: 'body'%0A %7D) +%0A $('.popover-demo').popover(%7B%0A selector: '%5Bdata-toggle=%22popover%22%5D',%0A container: 'body'%0A %7D) %0A%0A // Demos w @@ -2347,16 +2347,30 @@ Default +& dismissible popover @@ -2369,24 +2369,25 @@ popover demo +s %0A $('.bs- @@ -2...
386a247bc58baf12fb3db279dc1063feb35dd09b
Add tooltip to theme selector
docs/assets/plugins/theme/theme.js
docs/assets/plugins/theme/theme.js
(() => { if (!window.$docsify) { throw new Error('Docsify must be loaded before installing this plugin.'); } window.$docsify.plugins.push((hook, vm) => { hook.mounted(function () { let isDark = localStorage.getItem('theme') === 'sl-theme-dark'; const sidebarToggle = document.querySelector('.s...
JavaScript
0.000001
@@ -471,24 +471,173 @@ '%0A %7D);%0A + const tooltip = Object.assign(document.createElement('sl-tooltip'), %7B%0A content: 'Toggle dark mode',%0A placement: 'left'%0A %7D);%0A const @@ -1491,24 +1491,59 @@ %0A %7D);%0A%0A + tooltip.appendChild(toggle);%0A sideba @...
e22902cdc5fecdc49e1e1cb7736ea95901b8e6bd
Add getMentor and getMentors functions
server/public/scripts/controllers/search.controller.js
server/public/scripts/controllers/search.controller.js
app.controller('SearchController', ['$http', '$mdDialog', function($http, $mdDialog) { console.log('SearchController running'); var self = this; self.mentors = []; self.newSearch = { first_name: null, last_name: null, email: null, company: null, job_title: null, zip: null, race: nu...
JavaScript
0
@@ -50,16 +50,30 @@ Dialog', + 'BioFactory', functio @@ -90,16 +90,28 @@ mdDialog +, BioFactory ) %7B%0A co @@ -190,10 +190,26 @@ s = -%5B%5D +BioFactory.mentors ;%0A%0A @@ -580,17 +580,16 @@ etMentor -s = funct @@ -584,34 +584,41 @@ ntor = function( +mentorId ) - %7B%0A console.lo @@ -623,466 +623,...
1709036764f7d04b9a57777263f308ff91c3ad85
fix jasmine unhappiness I introduced with #3088
spec/javascripts/app/views/comment_stream_view_spec.js
spec/javascripts/app/views/comment_stream_view_spec.js
describe("app.views.CommentStream", function(){ beforeEach(function(){ this.view = new app.views.CommentStream({model : factory.post()}) loginAs({}) }) describe("binds", function() { it("re-renders on a commentsExpanded trigger", function(){ spyOn(this.view, "render"); this.view.setupBind...
JavaScript
0.000001
@@ -1091,24 +1091,225 @@ function()%7B%0A + var comment = %7B%0A %22id%22: 1234,%0A %22text%22: %22hey%22,%0A %22author%22: %22not_null%22%0A %7D;%0A spyOn($, %22ajax%22).andCallFake(function(params) %7B%0A params.success(comment);%0A %7D);%0A%0A $(this @@ -1371,2...
6a11a1d224c3806cb9f8e2d9b5ac969b78e5dccf
Extend warning
configs/standalone.js
configs/standalone.js
module.exports = function(config, optimist) { var path = require("path"); if (!optimist.local) { optimist .boolean("t") .describe("t", "Start in test mode") .describe("k", "Kill tmux server in test mode") .default("b", false) .describ...
JavaScript
0.000002
@@ -3493,17 +3493,18 @@ calhost. - +%5Cn Please u @@ -3518,16 +3518,56 @@ ser:pass + or --listen localhost to listen locally .%22);%0A
45e496eb22902a17bd9b52d54682ced252914db6
Fix stemming of words like key and day
src/main/resources/content/search/stemmers/en_stemmer.js
src/main/resources/content/search/stemmers/en_stemmer.js
// Porter stemmer in Javascript. Few comments, but it's easy to follow against the rules in the original // paper, in // // Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, // no. 3, pp 130-137, // // see also http://www.tartarus.org/~martin/PorterStemmer // Release 1 be 'andargor', Jul 2004 // Rel...
JavaScript
0.99999
@@ -2488,16 +2488,19 @@ e = /%5E(. +... +?)y$/;%0A
858b1dd194927810eea98e4a75ef212e67388f53
add remove functionality to the backbone view
core/app/assets/javascripts/backbone/views/subchannel_item_view.js
core/app/assets/javascripts/backbone/views/subchannel_item_view.js
window.SubchannelItemView = Backbone.View.extend({ tagName: "li", events: { "click" : "clickHandler" }, initialize: function() { this.useTemplate("subchannels", "_subchannel_item"); this.model.bind('change', this.render, this); this.model.bind('destroy', this.remove, this); this.model.bin...
JavaScript
0
@@ -102,21 +102,270 @@ Handler%22 -%0A %7D, +,%0A %22click .close%22: %22destroySubchannel%22%0A %7D,%0A%0A destroySubchannel: function (e) %7B%0A if ( confirm(%22Are you sure you want to remove this channel from your channel?%22) ) %7B%0A this.model.destroy();%0A %7D%0A e.stopPropagation();%0A ...
2feba413a130d7991497da9fc2cca86939dc9148
Use reduce instead of map
scripts/components/tree/tests/tree-utils-test.js
scripts/components/tree/tests/tree-utils-test.js
'use strict' const test = require('tape') const Immutable = require('immutable') const InitialState = require('../../../initial-state') const TreeUtils = require('../tree-utils') const getTestState = () => { let state = InitialState const array = [ { path: '/{11111111-1111-1111-1111-111111111111}/[A]' }, ...
JavaScript
0.000001
@@ -209,36 +209,8 @@ %3E %7B%0A - let state = InitialState%0A%0A co @@ -776,44 +776,52 @@ %5D%0A -array.map((v) =%3E %7B%0A state = state +return array.reduce((p, c) =%3E %7B%0A return p .set @@ -832,17 +832,17 @@ 'tree', -v +c .path%5D, @@ -862,31 +862,30 @@ mJS( -v +c ))%0A %7D -)%0A return s +...
0309b8415c88f0a928a1235321bd2fe9fe3c359e
fix ipad support
Scripts/MobilePane.js
Scripts/MobilePane.js
/* global $ */ /* global Framework7 */ /* global URI */ // Check mobile platform $(document).ready(function () { // Temporary hack for oddball Outlook for iOS user agent var ios = window.navigator.userAgent.match(/(Outlook-iOS)/); if (ios) Framework7.prototype.device.ios = true; if (Framework7.prototy...
JavaScript
0.000001
@@ -234,16 +234,218 @@ iOS)/);%0A +%0A // iPad OS no longer includes iOS, so we detect it differently%0A if (window.navigator.userAgent.match(/(Mac OS X)/)) %7B%0A Framework7.prototype.device.iPad = true;%0A ios = true;%0A %7D%0A%0A if (
697081002d3e417b0f05461bb151b6543b5f816c
fix transform-origin glitch issue
src/react-animachine-enhancer/create-animation-source.js
src/react-animachine-enhancer/create-animation-source.js
import createEaser from './createEaser' import find from 'lodash/collection/find' import pluck from 'lodash/collection/pluck' import uniq from 'lodash/array/uniq' import flatten from 'lodash/array/flatten' import startsWith from 'lodash/string/startsWith' const sortKeys = (a, b) => a.time - b.time const mergeTransfor...
JavaScript
0.000001
@@ -1783,16 +1783,167 @@ an svg%0A + const transformOriginParam = find(params, %7Bname: 'transformOrigin'%7D)%0A if (!transformOriginParam %7C%7C !find(transformOriginParam.keys, %7Btime: 0%7D)) %7B%0A tlRoot @@ -1988,16 +1988,20 @@ 0%25'%7D, 0) +%0A %7D %0A%0A next
5b1455cebf9e3fc208a2d339c49f874fadffcf16
revert previous fix for #600
src/render/DomFragment/Element/initialise/_initialise.js
src/render/DomFragment/Element/initialise/_initialise.js
define([ 'global/runloop', 'config/types', 'config/namespaces', 'utils/create', 'utils/defineProperty', 'utils/warn', 'utils/createElement', 'shared/getInnerContext', 'render/DomFragment/Element/initialise/getElementNamespace', 'render/DomFragment/Element/initialise/createElementAttribute', 'render/DomFragme...
JavaScript
0
@@ -1540,35 +1540,8 @@ ment - %7C%7C parentFragment.pElement ;%0A%0A%09
d0c37add7a484fc06f20254988e4bbfc5264d56f
make class abstract
src/sap.ui.core/src/sap/ui/core/search/SearchProvider.js
src/sap.ui.core/src/sap/ui/core/search/SearchProvider.js
/*! * ${copyright} */ // Provides control sap.ui.core.search.SearchProvider. sap.ui.define(['sap/ui/core/Element', 'sap/ui/core/library', "sap/base/Log"], function(Element, library, Log) { "use strict"; /** * Constructor for a new search/SearchProvider. * * @param {string} [sId] id for the new control, g...
JavaScript
0.0056
@@ -423,24 +423,38 @@ control%0A%09 *%0A +%09 * @abstract%0A %09 * @class%0A%09 @@ -1004,16 +1004,36 @@ ta : %7B%0A%0A +%09%09%22abstract%22: true,%0A %09%09librar
56384f364069a43b3700272adf7b6f388ba2437a
Add another QOTD
src/containers/FlightDirector/Welcome/QuoteOfTheDay.js
src/containers/FlightDirector/Welcome/QuoteOfTheDay.js
import React, {useRef} from "react"; const quotes = [ "Not all who wander are lost", "If you don’t know where your destination is, you don’t know how long you have to wander", "Its origin and purpose are still a total mystery...", "For everything, there is a first time", "I like to believe that there are alw...
JavaScript
0.000001
@@ -3255,16 +3255,117 @@ only.%22,%0A + /* Back to regularly scheduled programming */%0A %22Nobody knows what their story is until the end.%22,%0A %5D;%0A%0Acons
dc65ba720e4ee853316de6039a5721b7f79b9313
add '%' to end of prefix for query
src/ui/components/containers/ChatSuggestionsContainer.js
src/ui/components/containers/ChatSuggestionsContainer.js
/* @flow */ import React, { Component, PropTypes } from 'react'; import shallowEqual from 'shallowequal'; import Connect from '../../../modules/store/Connect'; import ChatSuggestions from '../views/ChatSuggestions'; type Props = { user: string; prefix: string; } type State = { prefix: string; } export default cl...
JavaScript
0.000002
@@ -1018,22 +1018,28 @@ id_mts: +%60$%7B prefix +%7D%25%60 ,%0A%09%09%09%09%09%09
56c87dc6577b58e01125b9a35c04e430900cc386
fix specs
test/unit/controllers/couriers/orders-controller.spec.js
test/unit/controllers/couriers/orders-controller.spec.js
(function () { 'use strict'; /*jshint camelcase:false */ describe('OrdersController', function () { var ctrl, $translate, $controller, $rootScope, $scope, dependencies, deferCreateProvider, deferStateGo, deferTranslate, orders; beforeEach(module('port...
JavaScript
0.000001
@@ -117,26 +117,8 @@ rl,%0A - $translate,%0A @@ -255,22 +255,8 @@ late -,%0A orders ;%0A%0A @@ -643,80 +643,19 @@ -$translate = sinon.stub().returns(deferTranslate.promise);%0A order +dependencie s = @@ -670,26 +670,25 @@ shipping -_r +R equests: %5B%5D%0A @@ -702,103 +702,8 @@ ...
fedb97f72f344d149aa06161a663f079c45f9b52
resolve ember-modified deprecations
addon/modifier.js
addon/modifier.js
import { next, cancel } from '@ember/runloop'; import Modifier from 'ember-modifier'; import { closest, documentOrBodyContains, ios } from './utils'; export default class ClickOutsideModifier extends Modifier { action = null; capture = null; eventHandler = null; eventType = 'click'; exceptSelector = null; ...
JavaScript
0.000024
@@ -40,16 +40,73 @@ nloop';%0A +import %7B registerDestructor %7D from '@ember/destroyable';%0A import M @@ -263,16 +263,36 @@ ifier %7B%0A + didSetup = false;%0A action @@ -434,42 +434,196 @@ %0A%0A -didInstall() %7B%0A this._init();%0A%0A +constructor() %7B%0A super(...arguments);%0A registerDestru...
61007e8f38bd0ff1fce1ee862cca1becdcfa5aa9
Test escaping
util/string/string_test.js
util/string/string_test.js
steal('funcunit/qunit', './string', function(qunit, can){ module("can/util/string") test("can.sub", function(){ equals(can.sub("a{b}",{b: "c"}),"ac") var foo = {b: "c"}; equals(can.sub("a{b}",foo,true),"ac"); ok(!foo.b,"b's value was removed") }); test("can.sub double", function(){ equals(can.sub("{b} {d}"...
JavaScript
0.000001
@@ -51,17 +51,16 @@ , can)%7B%0A -%09 %0Amodule( @@ -146,17 +146,16 @@ ),%22ac%22)%0A -%09 %0A%09var fo @@ -168,17 +168,16 @@ : %22c%22%7D;%0A -%09 %0A%09equals @@ -533,25 +533,24 @@ : 'bar'%7D%5D);%0A -%09 %0A%09equals(obj @@ -568,19 +568,17 @@ t bar')%0A -%09%0A%09 +%0A %0A%09// tes @@ -589,17 +589,16 @@ l...
9905dcfcc3fae82c5455d06e0f76e0479ebab484
Add height and width to full bikeshed loader
utils/get-full-bikeshed.js
utils/get-full-bikeshed.js
const assert = require('assert') const _ = require('lodash') /** * Get bikeshed with votes * @param {Object} params * @param {Object} params.models Models * @param {number} params.BikeshedId Bikeshed ID * @param {Object} params.user Current user instance * @returns {Promise<Object>} */ module.exports = async fu...
JavaScript
0
@@ -786,16 +786,51 @@ 'type' +,%0A 'width',%0A 'height' %0A %5D
ca405dafe8be2b6683e8eafb424119eaecfc0ff5
Update binary_search.js
search/binary_search/javascript/binary_search.js
search/binary_search/javascript/binary_search.js
(function(){ 'use strict' const assert = function assert(condition, message) { if (!condition) { message = message || "Assertion failed"; if (typeof Error !== "undefined") { throw new Error(message); } throw message; // Fallback } } const binary_search = function(ar...
JavaScript
0.000003
@@ -43,23 +43,16 @@ function - assert (conditi
338cb9d63734dc8c85f61ef5fd7bbf23bdea7a32
Update Wheels Within Wheels (#1050)
server/game/cards/plots/06/wheelswithinwheels.js
server/game/cards/plots/06/wheelswithinwheels.js
const _ = require('underscore'); const PlotCard = require('../../../plotcard.js'); class WheelsWithinWheels extends PlotCard { setupCardAbilities() { this.whenRevealed({ handler: () => { this.game.promptForDeckSearch(this.controller, { numCards: 10, ...
JavaScript
0
@@ -403,20 +403,21 @@ mber of -card +event s to rev @@ -812,32 +812,34 @@ player. +re moveCard (card, 'disc @@ -830,29 +830,21 @@ Card -(card, 'discard pile' +FromPile(card );%0A @@ -1490,11 +1490,11 @@ -var +let but @@ -2028,34 +2028,38 @@ x, 1);%0A%0A -if +_.each (this.cards.leng @@ -2...
5a09963b8a6aaafac1d7dd3ac1c55169ff7ed76c
'.'s in location string should be all replaced by '_'s.
imports/api/builds.js
imports/api/builds.js
import { Mongo } from 'meteor/mongo'; export const Builds = new Mongo.Collection('builds'); function addBuild(id, text) { console.log(id); let obj = { id: id, desc: text, revision: id.substr(id.length - 40), owner: id.substr(0, id.length - 41), location: 'Necko:Try-' + id.replace('.', '_'), ...
JavaScript
1
@@ -297,21 +297,24 @@ id. -replace('.', +split('.').join( '_')
14d4a51e6ccfcc6624ed0ab675d76d4a6d6634ca
Use object literal property value shorthand consistently
examples/async/actions/index.js
examples/async/actions/index.js
import fetch from 'isomorphic-fetch' export const REQUEST_POSTS = 'REQUEST_POSTS' export const RECEIVE_POSTS = 'RECEIVE_POSTS' export const SELECT_REDDIT = 'SELECT_REDDIT' export const INVALIDATE_REDDIT = 'INVALIDATE_REDDIT' export function selectReddit(reddit) { return { type: SELECT_REDDIT, reddit } } ...
JavaScript
0
@@ -581,16 +581,8 @@ %0A - reddit: red
e3f92f5baf1b51282a68d9dd0e8a97b9c58e21da
Remove lodash-inflection
middlewares/Router.js
middlewares/Router.js
var _ = require('lodash'); require('lodash-inflection'); var routeMapper = require('./../config/routeMapper.js'); var router = global.application.express.Router(); logger.info('Loading routes...'); routeMapper.routes.forEach(function(route) { var controller = route.controller(); var action = route.actio...
JavaScript
0.000365
@@ -28,38 +28,8 @@ h'); -%0Arequire('lodash-inflection'); %0A%0Ava
a548ace022321a13fd616b4805aab14d8aa8216a
test -mac
dva/wd/src/routes/User/SafePage.js
dva/wd/src/routes/User/SafePage.js
import React from 'react'; import { connect } from 'dva'; import { List, WhiteSpace, WingBlank } from 'antd-mobile' import { formatPhone } from '../../services/ct' import MissData from '../../components/Error/MissData.js' import styles from './SafePage.css'; import routeLoading from '../../components/HighComponent/rout...
JavaScript
0
@@ -1388,17 +1388,16 @@ %7B user %7D -; %0A%7D%0A%0Aexpo
90c5f7891417e7e21b6f9fc9e7b42ea971efe3c1
Use the Protractor D&D API
e2e/basic-example/basic-example.js
e2e/basic-example/basic-example.js
describe('the Basic example page', function () { var basicExamplePage = require('./page.js'); beforeEach(function () { basicExamplePage.get(); }); describe('rendering of the tree data', function () { it('should render a tree with 3 root nodes', function () { basicExamplePage .getRootNod...
JavaScript
0
@@ -1653,32 +1653,141 @@ actions()%0A + .dragAndDrop(nodeToDrag.getHandle(), %7Bx: 2, y: 80%7D)%0A .perform();%0A%0A //browser.actions()%0A // .mouseMove(nod @@ -1819,32 +1819,34 @@ 0, y: 0%7D)%0A +// .mouseDown()%0A @@ -1842,32 +1842,34 @@ useDown()%0A +// .mouseMove(no...
1dfb554983fd7a1ac621a9109c767704e2d3d25b
fix broken sequential creation of test wallets
features/support/helpers/wallets-helpers.js
features/support/helpers/wallets-helpers.js
import { expect } from 'chai'; export const getNameOfActiveWalletInSidebar = async function () { await this.client.waitForVisible('.SidebarWalletMenuItem_active'); return this.client.getText('.SidebarWalletMenuItem_active .SidebarWalletMenuItem_title'); }; export const expectActiveWallet = async function (walletN...
JavaScript
0
@@ -3455,51 +3455,68 @@ s = -await wallets.map(async (walletData) =%3E%0A +%5B%5D;%0A for (const walletData of wallets) %7B%0A const result = awa @@ -4127,13 +4127,49 @@ ata) +; %0A -); + context.wallets = result.value;%0A %7D %0A%7D;%0A @@ -4230,16 +4230,21 @@ options + = %7B%7D ) =%3E %7B%0A @@ ...
5b5220ae8dce5bdff6638962fd2db2d823c41c56
Add NextLink to FAButton 'Editar questão'
frontend/src/components/Question/Details.js
frontend/src/components/Question/Details.js
import React from 'react'; import PropTypes from 'prop-types'; import Error from 'next/error'; import QuestionDetailsConnector from './DetailsConnector'; import { Typography, withStyles } from '@material-ui/core'; import ChoicesBox from './ChoicesBox'; import FAButton from '../FAButton'; import EditIcon from '@material...
JavaScript
0
@@ -329,16 +329,50 @@ s/Edit'; +%0Aimport NextLink from 'next/link'; %0A%0Aconst @@ -816,24 +816,24 @@ %3C -FAButton +NextLink href=%7B%60 @@ -873,16 +873,41 @@ on.id%7D%60%7D +%3E%0A %3CFAButton aria-la @@ -942,16 +942,18 @@ + %3CEditIco @@ -953,24 +953,26 @@ EditIcon /%3E%0A...
483c14d6fda94f58fced0baafb60ffdee083f78c
Fix docs build :)
packages/bpk-docs/src/constants/routes.js
packages/bpk-docs/src/constants/routes.js
/* * Backpack - Skyscanner's Design System * * Copyright 2017 Skyscanner Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
JavaScript
0
@@ -1046,50 +1046,8 @@ ds/%0A -export const BONDS = '/components/bonds';%0A expo
d6fe682be05d3f64369efe386be58e9f921509cf
Replace require with imports
packages/lingui-cli/src/lingui-extract.js
packages/lingui-cli/src/lingui-extract.js
const fs = require('fs') const path = require('path') const chalk = require('chalk') const Table = require('cli-table') const emojify = require('node-emoji').emojify const program = require('commander') const transformFileSync = require('babel-core').transformFileSync const getConfig = require('lingui-conf').default c...
JavaScript
0.000021
@@ -1,12 +1,258 @@ +import linguiTransformJs from 'babel-plugin-lingui-transform-js'%0Aimport linguiTransformReact from 'babel-plugin-lingui-transform-react'%0Aimport linguiExtractMessages from 'babel-plugin-lingui-extract-messages'%0Aimport getConfig from 'lingui-conf'%0A%0A const fs = r @@ -511,57 +511,8 @@ Sync -%...
ba5d28854dc682086c24c4766d86ab78f588c83a
fix htmlAttributes ignoring '0' value
packages/mjml-core/src/createComponent.js
packages/mjml-core/src/createComponent.js
import { get, forEach, identity, reduce, kebabCase } from 'lodash' import MJMLParser from 'mjml-parser-xml' import shorthandParser from './helpers/shorthandParser' import jsonToXML from './helpers/jsonToXML' import components, { initComponent } from './components' class Component { static getTagName() { retur...
JavaScript
0.00011
@@ -2034,32 +2034,47 @@ if (value + %7C%7C value === 0 ) %7B%0A re
d65c123dcd969a2f8c717eed1e5c64f0cc482ab0
update js
examples/js/lines/LineSegments2.js
examples/js/lines/LineSegments2.js
console.warn( "THREE.LineSegments2: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/#manual/en/introduction/Installation." ); ...
JavaScript
0
@@ -2461,24 +2461,151 @@ ' );%0A%0A%09%09%09%7D%0A%0A +%09%09%09var threshold = 0;%0A%09%09%09if ( 'Line2' in raycaster.params ) %7B%0A%0A%09%09%09%09threshold = raycaster.params.Line2.threshold %7C%7C 0.0;%0A%0A%09%09%09%7D%0A%0A %09%09%09var ray = @@ -2850,16 +2850,28 @@ inewidth + + threshold ;%0A%0A%09%09%09va
da7a68340c969953cbb242c9737b53ab7384a6fe
Allow for nested elements within elision; add comments.
app/assets/javascripts/lib/ui/content/annotations/elide.js
app/assets/javascripts/lib/ui/content/annotations/elide.js
import {html} from 'es6-string-html-template'; import {post, rest_delete} from 'lib/requests'; import throttle from 'lodash.throttle'; import Component from 'lib/ui/component' import delegate from 'delegate'; // Respond to click, spacebar, or enter, like a real html button would delegate(document, '.annotate.elide', '...
JavaScript
0
@@ -1295,16 +1295,482 @@ pan%3E%60);%0A + for (let el of toggledContentNodes) %7B%0A el.classList.add('revealed');%0A try %7B%0A // attempt to toggle on any enclosing wrappers, like blockquote tags%0A el.parentElement.classList.add('revealed');%0A // attempt to toggle off paragraph nu...