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
c09ad45b78d1c59731b57be67ea3afe5bdeaea48
Update image path for flower
spark/components/promo/react/SprkPromo.stories.js
spark/components/promo/react/SprkPromo.stories.js
import React from 'react'; import SprkPromo from './SprkPromo'; export default { title: 'Components|Promo', component: SprkPromo, }; export const defaultStory = () => ( <SprkPromo title="Title" subtitle="Subtitle" additionalClasses="sprk-o-Stack--split@s" cta="button" ctaText="Learn More" ...
JavaScript
0
@@ -1682,46 +1682,27 @@ park -designsystem.com/assets/toolkit/images +-assets.netlify.com /flo @@ -2442,46 +2442,27 @@ park -designsystem.com/assets/toolkit/images +-assets.netlify.com /flo
0557eeee34dc43063d33e2915e0626011868f0ef
add 14th rendering layer #core (cherry picked from commit 0995014)
www/js/highfivejs/render/intern/draw/Renderer.js
www/js/highfivejs/render/intern/draw/Renderer.js
H5.Renderer = (function (Object, Math, getFunctionName, SubImage, renderAtlas, TextWrapper, renderText, Rectangle, renderRectangle, DrawableLine, renderLine, Circle, renderCircle, ImageWrapper, renderImage, EquilateralTriangle, renderEqTriangle, Quadrilateral, renderQuadrilateral, ABLine, renderABLine) { "u...
JavaScript
0
@@ -597,16 +597,20 @@ %7B%7D, %7B%7D, + %7B%7D, %7B%7D%5D;%0A
e9a20a91362a9668fd1085fd361845499c39d9c8
update test
plugin/miHome/index.js
plugin/miHome/index.js
var miio = require('./lib'); const crypto = require('crypto'); // var vacuum = python.import('mirobot/protocol'); class MiHome { constructor (name, ip, port, token, model) { this.ip = ip; this.port = port this.token = token; this.name = name this.model = model this.device...
JavaScript
0.000001
@@ -5479,19 +5479,22 @@ utf8', ' -hex +binary ');%0D%0A @@ -5519,19 +5519,22 @@ .final(' -hex +binary ');%0D%0A
59abe5c1df94e46659be7f7e9bbb652c1152bae4
update task planr/reporters/util/duration correct location for colorz
task/planr/reporters/util/duration.js
task/planr/reporters/util/duration.js
'use strict'; const util = require('util'); const chalk = require('../../../../util/colorz'); const colors = { slow: 'red', medium: 'yellow', fast: 'grey', }; function duration(step, template) { const color = colors[step.info.speed]; template = template || '%s'; return chalk[color](util.for...
JavaScript
0
@@ -73,16 +73,20 @@ ./../../ +src/ util/col
fb252ae6e2aa7f33b23723faadc727554eb24b1f
Use stream.url() instead of stream.url
public/javascript/pump/socket.js
public/javascript/pump/socket.js
// pump/socket.js // // Socket module for the pump.io client UI // // Copyright 2011-2012, E14N https://e14n.com/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apac...
JavaScript
0.000007
@@ -1459,16 +1459,18 @@ ream.url +() == url; @@ -1583,16 +1583,22 @@ target. +items. unshift( @@ -3936,16 +3936,18 @@ ream.url +() %7D));%0A
c0789f1b8f8b98927892aacca044ca8564c918f0
Clean output
scripts/jira_tickets/release_servers_dashboard.js
scripts/jira_tickets/release_servers_dashboard.js
// fetch ticket status from REST API var endpoint_ticket_list = 'https://www.ebi.ac.uk/panda/jira/rest/api/2/search/?jql=project=ENSCOMPARASW+AND+Server+=+mysql-ens-compara-prod-__SERVER__+AND+resolution+IS+NULL+ORDER+BY+created+ASC,id+ASC&maxResults=500'; var endpoint_ticket_query = 'https://www.ebi.ac.uk/panda/jira/...
JavaScript
0.999999
@@ -2637,24 +2637,26 @@ /g, j);%0A +// console.log(
976c3b68cec33afdf87cc834a6b066e5d4394106
remove debug on BaseZF Helper Class
public/js/BaseZF/Class/Helper.js
public/js/BaseZF/Class/Helper.js
/** * Helper.js * * * @category Bahu * @package Bahu.JS_Core * @copyright Copyright (c) 2008 Bahu * @author Harold Thétiot (hthetiot) */ if (typeof BaseZF == "undefined") var BaseZF = {}; if (typeof BaseZF.Class == "undefined") BaseZF.Class = {}; if (typeof BaseZF.Helper == "undefined") BaseZF.Helper...
JavaScript
0
@@ -2315,45 +2315,8 @@ %7B%0A%0A - console.info(name);%0A%0A
ac61b4a394892e29b357a3736c7037bffe847b63
update have a question email to work with both Keystone wrapped objects as well as POJOs
routes/middleware/emails_have-a-question.js
routes/middleware/emails_have-a-question.js
const keystone = require( 'keystone' ), utilitiesMiddleware = require( './utilities' ); exports.sendNewQuestionNotificationEmailToMARE = ( question, staffEmailContact ) => { return new Promise( ( resolve, reject ) => { const staffEmail = staffEmailContact.staffEmailContact.get( 'email' ); // if sendi...
JavaScript
0
@@ -285,22 +285,13 @@ act. -get( ' email -' ) ;%0A%09%09
baabab2f49bed804c6e830a90272bccc9be40063
append "?update" to the script URL when checking for updates
toolkit/update_notifier.js
toolkit/update_notifier.js
var checkUserscriptUpdate = (function(){ // return a no-op function if this is not Greasemonkey // (in other browsers we don't have cross-domain permissions) if (typeof GM_xmlhttpRequest != "function") return (function() {}) var update = { get available() { return getValue('updateAvailable', false) }, ...
JavaScript
0.000054
@@ -1134,16 +1134,23 @@ .user.js +?update ')%0A%0A
bdc925b9132b89cc9d2d54b4f7677195d854b87e
Use capture groups properly
public/js/simpleStrings-0.0.1.js
public/js/simpleStrings-0.0.1.js
/* Example usage: var translations = { en: { 'greeting': 'Hello there!', 'farewell': 'Goodbye.' }, fr: { 'greeting': 'Bonjour!', 'farewell': 'Au revoir.'}, es: { 'greeting': 'Hola!', 'farewell': 'Adios amigo.' } }; $(document).read...
JavaScript
0.000001
@@ -772,51 +772,119 @@ ens + = -text.split(/%7B%7B(%5B%5E%7D%5D+)%7D%7D/).filter(Boolean) +%5B%5D;%0A var pattern = /%7B%7B(%5B%5E%7D%5D+)%7D%7D/g%0A while (item = pattern.exec(text)) %7B tokens.push(item%5B1%5D ) %7D ;%0A%0A
35e863912d9cc4330cd11f18769df0615093d279
Update example
lib/node_modules/@stdlib/math/base/random/arcsine/lib/factory.js
lib/node_modules/@stdlib/math/base/random/arcsine/lib/factory.js
'use strict'; // MODULES // var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); var isObject = require( '@stdlib/utils/is-plain-object' ); var randu = require( '@stdlib/math/base/random/randu' ).factory; var isnan = require( '@stdlib/math/base/utils/is-nan' ); var validate = require( './validate.j...
JavaScript
0.000001
@@ -1155,24 +1155,24 @@ returns -%3Cnumber%3E +~-2.4827 %0A*/%0Afunc
2be216d26d1954b486ff6af8542aa7b1b66d4b8a
Add singleton logic to UIDatabase
src/database/UIDatabase.js
src/database/UIDatabase.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import RNFS from 'react-native-fs'; import { SETTINGS_KEYS } from '../settings'; import { formatDate, requestPermission, backupValidation } from '../utilities'; const { THIS_STORE_NAME_ID } = SETTINGS_KEYS; const translateToCoreDatabaseType = type =>...
JavaScript
0.000002
@@ -1,12 +1,59 @@ +/* eslint-disable import/no-mutable-exports */%0A /**%0A * mSupp @@ -717,23 +717,16 @@ %7D%0A%7D;%0A%0A -export class UI @@ -5498,16 +5498,209 @@ %0A %7D%0A%7D%0A%0A +let UIDatabaseInstance;%0A%0Aexport const getUIDatabaseInstance = database =%3E %7B%0A if (!UIDatabaseInstance) %7B%0A UID...
dd2834cfc10a525c53aae32c3a9c1f1f268e5258
enable debugging
coopr-e2e/test/protractor-conf.js
coopr-e2e/test/protractor-conf.js
var config = { allScriptsTimeout: 11000, specs: [ 'e2e/**/*.js' ], capabilities: { 'browserstack.user': process.env.BROWSER_STACK_USERNAME, 'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY, 'browserstack.local': 'true', 'browserstack.tunnel': 'true', 'os' : 'OS X', 'os_vers...
JavaScript
0.000001
@@ -243,24 +243,58 @@ l': 'true',%0A + 'browserstack.debug': 'true',%0A 'browser
c26dfeac477827d5640b05540445a806cc96d64c
Fix bug for Navigation
src/common/components/utils/Navigation.js
src/common/components/utils/Navigation.js
import React, { Component } from 'react'; import { Link } from 'react-router'; import Grid from 'react-bootstrap/lib/Grid'; import Roles from '../../constants/Roles'; import { updateLocale } from '../../actions/intlActions'; import { pushErrors } from '../../actions/errorActions'; import Navbar from './BsNavbar'; impor...
JavaScript
0
@@ -35,16 +35,55 @@ react';%0A +import %7B connect %7D from 'react-redux';%0A import %7B @@ -765,32 +765,22 @@ t %7B -cookies: %7B token +isAuth , user %7D %7D = @@ -775,26 +775,24 @@ , user %7D - %7D = this. context. @@ -787,103 +787,13 @@ his. -context.store.getState();%0A let isAuth = !!token;%0A u...
b09731da79567c5cb1f3f4bf1bc98533e4b45f8b
Add example module
src/Watchers/watch.js
src/Watchers/watch.js
/** * © Alexander Buzin, 2014-2015 * Site: http://alexbuzin.me/ * Email: alexbuzin88@gmail.com */ WHS.Watch = function (queue) { 'use strict'; this._queue = Array.isArray(queue) ? queue.slice() : []; return this; } WHS.Watch.prototype.add = function (element) { 'use strict'; this._queue.push(elemen...
JavaScript
0.000002
@@ -99,29 +99,35 @@ */%0A%0A -WHS.Watch = function +class Watch %7B%0A constructor (que @@ -132,34 +132,18 @@ ueue) %7B%0A -%0A -'use strict';%0A%0A this._ @@ -197,63 +197,20 @@ %5B%5D;%0A -%0A -return this;%0A%0A%7D%0A%0AWHS.Watch.prototype.add = function +%7D%0A %0A add (ele @@ -217,34 +217,18 @@...
adf5a9d52f506c2411f59b1033c19ac889940b4a
Update javascript to not duplicate the price div on load
shoop/themes/classic_gray/static_src/js/custom.js
shoop/themes/classic_gray/static_src/js/custom.js
function showPreview(productId) { var modal_select = "#product-" + productId + "-modal"; var product_modal = $(modal_select); if (product_modal.length) { product_modal.modal("show"); return; } $.ajax({ url: "/xtheme/product_preview", method: "GET", data: { ...
JavaScript
0
@@ -2430,20 +2430,27 @@ e-div%22). -html +replaceWith ($conten
8cdb6bffaa5c71f4b4c0d271bcb3510a119ea6e1
Update animate.js
src/addons/animate.js
src/addons/animate.js
/* Mag.JS Animate v0.1 (c) Michael Glazer https://github.com/magnumjs/mag.js */ mag.anime = {} mag.anime.fadeIn =function ( elem, ms ) { if( ! elem ) return; elem.style.opacity = 0; elem.style.filter = "alpha(opacity=0)"; elem.style.display = "inline-block"; elem.style.visibility = "visible"; if( ms...
JavaScript
0.000001
@@ -74,16 +74,37 @@ .js%0A*/%0A%0A +var mag = mag %7C%7C %7B%7D%0A%0A mag.anim
ddff22c0d37bc3708628161008858f1de7b488f4
Revert "Make the chunk name a bit pretty." (#2792)
server/build/babel/plugins/handle-import.js
server/build/babel/plugins/handle-import.js
// Based on https://github.com/airbnb/babel-plugin-dynamic-import-webpack // We've added support for SSR with this version import template from 'babel-template' import syntax from 'babel-plugin-syntax-dynamic-import' import { dirname, resolve, sep } from 'path' import Crypto from 'crypto' const TYPE_IMPORT = 'Import' ...
JavaScript
0
@@ -239,13 +239,8 @@ olve -, sep %7D f @@ -2110,19 +2110,16 @@ replace( -%60$%7B process. @@ -2127,16 +2127,8 @@ wd() -%7D$%7Bsep%7D%60 , ''
2b923b327d7d3923d643aca5f888a39c5aceddf7
Update test, change to be consistent with new default values for rotate function
test/distribution-functions/rotate.js
test/distribution-functions/rotate.js
const rotate = require('../../src/distribution-functions/rotate'); describe('Rotate function', ()=>{'use strict'; it('should create an array with one value', ()=>{ let result = rotate(); expect(result.length).toBe(1); expect(result[0]).toBe(0); }); it('should create an array with 4 values', ()=>{ ...
JavaScript
0
@@ -496,16 +496,17 @@ toBe(0.6 +5 );%0A e @@ -534,23 +534,22 @@ (0.1 -000000000000000 +49999999999999 9); @@ -569,16 +569,17 @@ d be 0.1 +5 but thi
d909558868396036851e3cae4ded992d607d5c35
add selection metaKey support for macOS (#1948)
src/components/MediaList/BaseMediaList.js
src/components/MediaList/BaseMediaList.js
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { FixedSizeList } from 'react-window'; import InfiniteLoader from 'react-window-infinite-loader'; import AutoSizer from 'react-virtualized-auto-sizer'; import itemSelection from 'item-selection/immutable'; import useDirection f...
JavaScript
0
@@ -2191,32 +2191,115 @@ Toggle(index));%0A + %7D else if (event.metaKey) %7B%0A setSelection(selection.selectToggle(index));%0A %7D else %7B%0A
a0907f635636dcccaa992f3d943e46ed2bb8585d
add output to inform that `--skip-history` flag exists (#3315)
packages/@sanity/core/src/commands/dataset/copyDatasetCommand.js
packages/@sanity/core/src/commands/dataset/copyDatasetCommand.js
import EventSource from '@sanity/eventsource' import {Observable} from 'rxjs' import chalk from 'chalk' import promptForDatasetName from '../../actions/dataset/datasetNamePrompt' import validateDatasetName from '../../actions/dataset/validateDatasetName' import debug from '../../debug' const helpText = ` Options --d...
JavaScript
0
@@ -4783,16 +4783,212 @@ )%0A +%0A if (!shouldSkipHistory) %7B%0A output.print(%0A %60Note: You can run this command with flag '--skip-history'. The flag will reduce copy time in larger datasets.%60%0A )%0A %7D%0A%0A ou
07d86b4ce4253ebc3196579e89481f11d1bb1398
update for flag
packages/strapi-admin/admin/src/containers/LocaleToggle/index.js
packages/strapi-admin/admin/src/containers/LocaleToggle/index.js
/* * * LanguageToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { bindActionCreators } from 'redux'; import cn from 'classnames'; import { ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle }...
JavaScript
0
@@ -1276,24 +1276,135 @@ x3/kr.svg';%0A + case 'ja':%0A return 'https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.1.0/flags/4x3/jp.svg';%0A defaul
7396bc21bd0a16a2ad17fa507c36435ca1f5971c
Fix force 404
packages/strapi/lib/configuration/hooks/core/responses/policy.js
packages/strapi/lib/configuration/hooks/core/responses/policy.js
'use strict'; /** * Module dependencies */ // Public node modules. const _ = require('lodash'); const Boom = require('boom'); const delegate = require('delegates'); // Local utilities. const responses = require('./responses/index'); // Custom function to avoid ctx.body repeat const createResponses = ctx => { re...
JavaScript
0.002429
@@ -1168,24 +1168,61 @@ sage);%0A %7D%0A%0A + console.log(ctx.body, ctx.status);%0A // Empty b @@ -1329,23 +1329,16 @@ ) %7B%0A -return ctx.notF
6a946ed9f63d79a965e83f2081e002f03ec70062
Support snippets from .md files
addon/components/docs-demo/x-live-example/component.js
addon/components/docs-demo/x-live-example/component.js
import Ember from 'ember'; import layout from './template'; import snippets from 'dummy/snippets'; export default Ember.Component.extend({ layout, init() { this._super(...arguments); // Set initial template from snippet let name = this.get('name'); let rawTemplate = snippets[`${name}.hbs`]; t...
JavaScript
0
@@ -260,16 +260,63 @@ 'name'); +%0A%0A // We support either .hbs snippets or .md %0A let @@ -353,17 +353,44 @@ e%7D.hbs%60%5D -; + %7C%7C snippets%5B%60$%7Bname%7D.md%60%5D;%0A %0A thi
321224224c390a42b9b124fb7b9576bc32187027
Make episode start date limits HTML-friendly
public_html/digital-logsheets/js/validation/episodeValidation.js
public_html/digital-logsheets/js/validation/episodeValidation.js
/* * digital-logsheets: A web-based application for tracking the playback of audio segments on a community radio station. * Copyright (C) 2015 Mike Dean * Copyright (C) 2015-2016 Evan Vassallo * Copyright (C) 2016 James Wang * * This program is free software: you can redistribute it and/or modify * it under t...
JavaScript
0.000004
@@ -2227,24 +2227,134 @@ datetime');%0A + var earlyLimitWithT = earlyLimit.replace(' ', 'T');%0A var lateLimitWithT = lateLimit.replace(' ', 'T');%0A startDat @@ -2377,24 +2377,29 @@ , earlyLimit +WithT );%0A start @@ -2424,24 +2424,29 @@ ', lateLimit +WithT );%0A%7D%0A%0Afuncti
9b44bd206d4b95e2fa5f12b9301443fa03430b05
fix icon/screenshot previews in Nightly (bug 812162)
media/js/common/upload-image.js
media/js/common/upload-image.js
/* To use this, upload_field must have a parent form that contains a csrf token. Additionally, the field must have the attribute data-upload-url. It will upload the files (note: multiple files are supported; they are uploaded separately and each event is triggered separately), and clear the upload field. ...
JavaScript
0
@@ -1786,18 +1786,22 @@ URL +! == ' -object +undefined ') %7B
cb67c0a8fb48d00815e13399656231d98c903db8
Add external link to steem board
src/external_links_menu.js
src/external_links_menu.js
(function(){ var menuClass = 'smi-external-links-menu'; var externalLinks = [{ title: 'Steemd.com', href: function(username) { return 'https://steemd.com/@' + username; } }, { title: 'SteemDB.com', href: function(username) { return 'https://steemdb.com/@' + username; }...
JavaScript
0
@@ -1111,32 +1111,173 @@ e;%0A %7D%0A %7D, %7B%0A + title: 'Steemit Board',%0A href: function(username) %7B %0A return 'http://steemitboard.com/board.html?user=' + username;%0A %7D%0A %7D, %7B%0A title: 'Stee
4a994ee2c610d1313d22e53d073c434d6e8e8929
Fix error parsing data in ChartData when people array is empty
src/fruitsApp/ChartData.js
src/fruitsApp/ChartData.js
import _ from 'lodash'; import { createRandomColor } from './colorFactory'; export default class ChartData { constructor(people) { this._people = people; } _chartFruits = (() => { let orderedFruits = []; let totalCount = 0; const calcBarWidths = () => { if (!totalCount) return; const...
JavaScript
0.000012
@@ -611,16 +611,43 @@ return %7B + calcBarWidths: () =%3E (%7B%7D), ordered @@ -660,23 +660,8 @@ : %5B%5D -, totalCount: 0 %7D;%0A
2a70bb4f1b579946e74ff495916f956c4c3bd434
Change spacing on plan selected check (closes #1908)
react/components/RegistrationForm/components/PlanSelect/index.js
react/components/RegistrationForm/components/PlanSelect/index.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { buttonBorderWidth, BUTTON_BORDER_RADIUS } from 'react/components/UI/GenericButton'; import ButtonGroup from 'react/components/UI/ButtonGroup'; import Box from 'react/components/UI/Box'; impor...
JavaScript
0
@@ -1192,35 +1192,69 @@ om: -0.25em;%0A right: 0.25em +$%7Bprops.theme.space%5B4%5D%7D;%0A right: $%7Bprops.theme.space%5B5%5D%7D ;%0A
97a735aecdeddca95b9efc34ff41e9256bd517f8
add payload in event
lib/client/cordova.js
lib/client/cordova.js
var coldstart = true; Push.setBadge = function(count) { // Helper var pushNotification = window.plugins.pushNotification; // If the set application badge is available if (typeof pushNotification.setApplicationIconBadgeNumber == 'function') { // Set the badge pushNotification.setApplicationIconBadgeNum...
JavaScript
0.000003
@@ -490,16 +490,208 @@ %7D%0A%7D;%0A%0A +_stripPayload = function(payload) %7B%0A // Strip data already used in message%0A return _.omit(payload, 'title', 'sound', 'badge', 'alert', 'message', 'msgcnt', 'foreground', 'messageFrom');%0A%7D;%0A%0A onNotifi @@ -1596,16 +1596,46 @@ rdova',%0A + payload: _stripPay...
2d99dc1571c797ce30ee9c50ee51f67cd05ab445
Make ISPC default to SSE2 if no target is specified
lib/compilers/ispc.js
lib/compilers/ispc.js
var Compile = require('../base-compiler'); function compileISPC(info, env) { var compiler = new Compile(info, env); compiler.optionsForFilter = function (filters, outputFilename) { return ['--emit-asm', '-g', '-o', this.filename(outputFilename)]; }; return compiler.initialise(); } module.expor...
JavaScript
0.000001
@@ -199,16 +199,39 @@ return %5B +'--target=sse2-i32x4', '--emit-
2d4039fb82c250bf32af39ae0a930cf73384fdfc
fix tests
lib/config-watcher.js
lib/config-watcher.js
/* * Helpers to manage action on configuration changes. */ var fs = require('fs-extra'); var nodeHelpers = require('./node-helpers'); var configWatcher = function (path){ var pW = { mainWatcher: null, watchers: [], trigger: function () { pW.watchers.forEach(nodeHelpers.invoke); }, o...
JavaScript
0.000001
@@ -836,16 +836,76 @@ ger%0A ); +%0A console.error(%22 ------------------%3E %22+pW.watchers.length) %0A%0A retu
7e05c0f97a1c36738d9fc4ea34bee195af6d0c7d
Correct attribute for flow thanks
modules/ext.thanks.flowthank.js
modules/ext.thanks.flowthank.js
( function () { 'use strict'; var $thankedLabel = $( '<span>' ).addClass( 'mw-thanks-flow-thanked mw-ui-quiet' ); var attrName = 'data-flow-id'; var cookieName = 'flow-thanked'; function findPostAuthorFromThankLink( $thankLink ) { // We can't use 'closest' directly because .flow-author is a cousin // of $th...
JavaScript
0.000037
@@ -1208,34 +1208,16 @@ ).attr( -mw.thanks.thanked. attrName
33a419b490daf9d603f27ef5835c9847eaacfe95
Revert "fix: Stop exposing includes in getEntries response"
lib/entities/entry.js
lib/entities/entry.js
import {cloneDeep} from 'lodash/lang' import {uniq} from 'lodash/array' import mixinToPlainObject from '../mixins/to-plain-object' import mixinLinkGetters from '../mixins/link-getters' import mixinStringifySafe from '../mixins/stringify-safe' /** * @memberof Entities * @typedef Entry * @prop {Entities.Sys} sys - St...
JavaScript
0
@@ -2318,40 +2318,8 @@ es)%0A - delete wrappedData.includes%0A %7D%0A
fa14f9b6df7173476546052e5ba3e926f3c88755
Remove _score from index meta for bulk processing
lib/es-export-bulk.js
lib/es-export-bulk.js
#!/usr/bin/env node 'use strict'; var helpers = require('./helpers'); var fs = require('fs'); var vm = require('vm'); var program = require('commander'); var elasticsearch = require('elasticsearch'); var appInfo = require('../package.json'); var ProgressBar = require('progress'); var bar, key; var esOptions = { inde...
JavaScript
0
@@ -5352,16 +5352,117 @@ %7D);%0A%09%09%7D%0A +%09%09delete meta.index._score // Remove the score, causes errors in ES 2.3 (maybe earlier versions too)%0A %09%09conten
f72e89e310a334ccccccce6ad3e9512c861c0bf6
add complete notes, thisYear attribute on output object
src/helpers/day-counter.js
src/helpers/day-counter.js
const countDays = (startDate, endDate) => { const yearInDays = [] let currentDate = startDate // let currentDate = new Date() while (currentDate <= endDate) { currentDate = new Date(currentDate) yearInDays.push(currentDate.getDay()) currentDate = currentDate.setDate(currentDate.getDate() + 1)...
JavaScript
0
@@ -1,12 +1,167 @@ +const now = new Date()%0D%0Aconst thisYear = now.getFullYear()%0D%0Aconst %5BstartDate, endDate%5D = %5Bnew Date(%6001/01/$%7BthisYear%7D%60), new Date(%6012/31/$%7BthisYear%7D%60)%5D%0D%0A%0D%0A const countD @@ -613,168 +613,122 @@ %7D, %7B -%7D)%0D%0A%7D%0D%0A%0D%0Aconst now = new Date()%0D%0Aco...
606d2e1ddd67b343c6249f589f1b22c9c5edea7d
Clear memcache session on flagging
lib/handlers/admin.js
lib/handlers/admin.js
'use strict'; var mysql = require('../db/mysql'); var config = require('../config'); var store = new mysql(config.store.mysql); var models = require('../models'); var admin = module.exports = { name: 'admin' }; admin.renderAdmin = function renderAdmin (req, res) { var root = req.app.locals.url('', true, req.secur...
JavaScript
0
@@ -155,16 +155,214 @@ odels'); +%0Avar memcached = require('memcached');%0Avar memcache = null;%0A%0Aif (config.session.memcached && config.session.memcached.connection) %7B%0A memcache = new memcached(config.session.memcached.connection);%0A%7D %0A%0Avar ad @@ -1835,32 +1835,166 @@ err);%0A %7D%0A + ...
72caa8681edebcd8baf57b7be9fd607e49cbfce0
Use Github Flavoured Markdown instead of Commonmark as the default
src/document/DocumentMarkdownConverter.js
src/document/DocumentMarkdownConverter.js
const fs = require('fs') const tmp = require('tmp') const ComponentConverter = require('../component/ComponentConverter') const pandoc = require('../helpers/pandoc') /** * Markdown converter for the `Document` class * * Uses Pandoc to convert to/from the Commonmark (http://commonmark.org/) * specification of Mark...
JavaScript
0
@@ -253,76 +253,91 @@ rom -the Commonmark (http://commonmark.org/)%0A * specification of Markdown +Markdown. Currently, Github Flavored Markdown%0A * is assumed for loading and dumping .%0A * @@ -835,36 +835,8 @@ md': - 'commonmark',%0A 'gfmd': 'ma @@ -882,16 +882,24 @@ %7D%5Bformat + %7C%7C 'md' %5D %7C%7...
664cf382b80659d1cd77e465a34694c8612b5518
Remove unused backlog.
prolific.consolidator/synchronous.js
prolific.consolidator/synchronous.js
var Collector = require('prolific.collector') var cadence = require('cadence') var Staccato = require('staccato') function Synchronous (selectConsumer) { this._selectConsumer = selectConsumer var consumers = this._consumers = {} var backlog = this._backlog = { _chunks: [], consume: function...
JavaScript
0
@@ -197,24 +197,8 @@ %0A - var consumers = thi @@ -219,474 +219,8 @@ %7B%7D%0A - var backlog = this._backlog = %7B%0A _chunks: %5B%5D,%0A consume: function (chunk) %7B%0A this._chunks.push(chunk)%0A %7D,%0A empty: function (id, consumer) %7B%0A this._chunks =...
e4ba7a9a0c8731f96984b5cee918850e99a1f32c
update pointable for tick handler performance best practices
reaction_components/pointable.js
reaction_components/pointable.js
/* global AFRAME, THREE */ const physicsCore = require('./physics-grab.js'); AFRAME.registerComponent('pointable', AFRAME.utils.extendDeep({ schema: { maxGrabbers: {type: 'int', default: NaN} }, init: function () { this.GRABBED_STATE = 'grabbed'; this.GRAB_EVENT = 'grab-start'; this.UNGRAB_EVENT =...
JavaScript
0
@@ -973,24 +973,69 @@ .Vector3();%0A + const destPosition = %7Bx: 0, y: 0, z: 0%7D;%0A return f @@ -1710,32 +1710,49 @@ ion');%0A + destPosition.x = entityPosition. @@ -1754,17 +1754,16 @@ tion.x - -= deltaPo @@ -1773,32 +1773,49 @@ ion.x;%0A + destPosition.y = entityPosition. @@ -18...
1950e1cf73fe6a2c111faab8faa2528da77555e7
Remove ember-cli dependency
blueprints/resource/index.js
blueprints/resource/index.js
/*jshint node:true*/ var Blueprint = require('ember-cli/lib/models/blueprint'); var Promise = require('rsvp').Promise; var merge = require('lodash/object/merge'); var inflection = require('inflection'); module.exports = { description: 'Generates a model and route.', install: function(options) { retu...
JavaScript
0
@@ -19,68 +19,8 @@ */%0A%0A -var Blueprint = require('ember-cli/lib/models/blueprint');%0A var @@ -57,16 +57,16 @@ romise;%0A + var merg @@ -488,16 +488,38 @@ t(name); +%0A%0A var that = this; %0A ret @@ -905,20 +905,102 @@ -if ( +var Blueprint = that._findBlueprintBaseClass(testBlueprint);%0A ...
ad60e528a616f4575b2c4aa2adb9c73019a50aaf
Remove undocumented element template parsing
public/assets/wee/script/wee.data.js
public/assets/wee/script/wee.data.js
// Wee 2.0.3 (weepower.com) // Licensed under Apache 2 (http://www.apache.org/licenses/LICENSE-2.0) // DO NOT MODIFY THIS FILE Wee.fn.make('data', { // Make Ajax request based on specified options request: function(opt) { var conf = Wee.$extend({ args: [], data: {} }, opt), x = new XMLHttpRequest(); ...
JavaScript
0.000001
@@ -1858,322 +1858,8 @@ %7D;%0A%0A -%09%09// Make data-parse replacements%0A%09%09var div = Wee._doc.createElement('div'),%0A%09%09%09scope = this;%0A%0A%09%09div.innerHTML = str;%0A%0A%09%09Wee.$each('%5Bdata-parse%5D', function(el) %7B%0A%09%09%09var key = Wee.$data(el, 'parse');%0A%0A%09%09%09el.innerHTML = scope.$...
dc11905f7f6f33df2700b31329f4ad270404b456
add action to public export; using short import syntax
src/app-decorators.js
src/app-decorators.js
import Bootstrap from './bootstrap'; // Decorators export { component } from './decorators/component'; export { view } from './decorators/view'; export { style } from './decorators/style'; export { on } from './decorators/on'; export { model } from './decorators/model'; export { modelpool } from './decorators/modelpoo...
JavaScript
0
@@ -4,23 +4,8 @@ ort -Bootstrap from './b @@ -206,16 +206,62 @@ rs/on';%0A +export %7B action %7D from './decorators/action';%0A export %7B
1418960588e9ed20b7330d1fa61b704b698e34ce
Update format-data.js
mods/ruv2/format-data.js
mods/ruv2/format-data.js
exports.BattleFormatsData = { luxray: { inherit: true, tier: 'RU' }, jynx: { inherit: true, tier: 'NU' }, gothitelle: { inherit: true, tier: 'OU' }, archeops: { inherit: true, tier: 'OU' }, weavile: { inherit: true, tier: 'OU' }, politoed: { inherit: true, tier: 'UU' }, ninetales: {...
JavaScript
0.000001
@@ -628,13 +628,12 @@ 'UU'%0A%09%7D -, %0A%7D;%0A
8685ae57654f00379f9c04735a72e3cea042baf9
Update twitch.js
modules/stream/twitch.js
modules/stream/twitch.js
const request = require('request') const Discord = require("discord.js"); const config = require('../../config.json'); const twitchkey = config.twitch_api_key; module.exports = (bot) => { bot.addTraditionalCommand('twitch', message => { message.delete(1000) var suffix = message.content.split(" ").slice(1).join...
JavaScript
0.000001
@@ -195,19 +195,8 @@ .add -Traditional Comm @@ -209,23 +209,25 @@ witch', -message +(payload) =%3E %7B%0A%09%09 @@ -231,28 +231,37 @@ %0A%09%09%09 +var message -.delete(1000) + = payload.message %0A%09%09%09
fca3d6d0bf529b8c44b8e5c64f5a99c27a144443
update single quotes to double quotes for consistency
test/unit/exception/Inspector.spec.js
test/unit/exception/Inspector.spec.js
/** * Inspector.spec.js * * @author: Harish Anchu <harishanchu@gmail.com> * @copyright 2015, Harish Anchu. All rights reserved. * @license Licensed under MIT (https://github.com/quorrajs/Ouch/blob/master/LICENSE) */ var Inspector = require("../../../exception/Inspector"); describe("Inspector", function(){ d...
JavaScript
0
@@ -468,25 +468,25 @@ -' +%22 getFileName' @@ -480,25 +480,25 @@ %22getFileName -' +%22 ,%0A @@ -499,17 +499,17 @@ -' +%22 getLineN @@ -509,25 +509,25 @@ etLineNumber -' +%22 ,%0A @@ -528,17 +528,17 @@ -' +%22 getFunct @@ -540,25 +540,25 @@ FunctionName -' +...
0ce2a17e0d188f10d3cc3a3122225aac3bf8206f
fix getters tests
test/unit/specs/store/getters.spec.js
test/unit/specs/store/getters.spec.js
import cloneDeep from 'lodash/cloneDeep' import stateOptions from '@/store/state' import gettersOptions from '@/store/getters' const getters = cloneDeep(gettersOptions) describe('Getters', () => { let state beforeEach(() => { state = cloneDeep(stateOptions) }) it('orderedNotes: consecutive', () => { ...
JavaScript
0.000001
@@ -1,12 +1,15 @@ +// import clone @@ -37,16 +37,19 @@ neDeep'%0A +// import s @@ -88,30 +88,28 @@ %0Aimport +* as getters -Options from '@ @@ -129,154 +129,35 @@ s'%0A%0A -const getters = cloneDeep(gettersOptions)%0A%0Adescribe('Getters', () =%3E %7B%0A let state%0A%0A beforeEach(() =%3E %7B%0A state ...
41a38e2fe9da2de6f6bccbb12aeb15ea0a128b37
Convert RadioButtonGroup story to hooks (#3400)
src/js/components/RadioButtonGroup/radiobuttongroup.stories.js
src/js/components/RadioButtonGroup/radiobuttongroup.stories.js
import React, { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { Box, Grommet, RadioButtonGroup } from 'grommet'; import { grommet } from 'grommet/themes'; class SimpleRadioButtonGroup extends Component { constructor(props) { super(props); this.state = { value: props.value };...
JavaScript
0.000428
@@ -9,25 +9,24 @@ eact, %7B -Component +useState %7D from @@ -187,12 +187,12 @@ ;%0A%0Ac -lass +onst Sim @@ -215,233 +215,104 @@ oup -extends Component %7B%0A constructor(props) %7B%0A super(props);%0A this.state = %7B value: props.value %7D;%0A %7D%0A += (%7B value: initialValue, ...props %7D) =%3E %...
f971e87d3d70bc0ac6b4f7113b21149dbb59be9c
Update 01_ArrayPagingStoreTest.js
01_ArrayPagingStoreTest.js
01_ArrayPagingStoreTest.js
StartTest({ alsoPreload: [ '../../../../extjs-4.1.1/ux/data/PagingStore.js' ] }, function(t) { Ext.define('Artist', { extend: 'Ext.data.Model', fields: [ {name: 'name', type: 'string'}, {name: 'genre', type: 'string'} ] }); var myData = [ ['Miles ...
JavaScript
0
@@ -4,16 +4,17 @@ rtTest(%7B + %0A alsoP @@ -3981,8 +3981,9 @@ 0);%0A%0A%7D); +%0A
aaaece9f252547db67ada5035f19a96b2b38c877
refactor modal component (split to modal-header, modal-footer, modal-body) to make it more reusable
source/_patterns/01-molecules/forms/form-group.js
source/_patterns/01-molecules/forms/form-group.js
import React, {PropTypes} from "react"; import cx from "classnames"; import styles from "./form-group.scss"; import Tooltip from "../tooltip/tooltip"; function FormGroup({className, htmlFor, label, validationFeedback, children, validationState, ...props}) { let childrenProps= children.props; props.className = ...
JavaScript
0.000001
@@ -105,50 +105,8 @@ ss%22; -%0Aimport Tooltip from %22../tooltip/tooltip%22; %0A%0Afu @@ -153,28 +153,8 @@ bel, - validationFeedback, chi @@ -181,144 +181,208 @@ te, -...props%7D) %7B%0A let childrenProps= children.props;%0A props.className = cx(styles%5B%22form-group%22%5D, className);%0A%0A if (valid...
53a1f88dd35a085675e06363adccfdd619669693
Add changes
app/js/components/simpletable/simpletable-resizable.js
app/js/components/simpletable/simpletable-resizable.js
'use strict'; var SimpleTableResizable = function(scope, element, attrs, $log){ this.scope = scope; this.element = element; this.attrs = attrs; this.$log = $log; this.parentCtrl = null; this.initComplete = false; this.isMouseDown = false; this.startX = 0; this.reg...
JavaScript
0.000002
@@ -1027,198 +1027,8 @@ tX;%0A - //element.on('mousemove', function(event)%7Bthis.onMouseMoveHandler(event, scope, element);%7D);%0A //element.on('mouseup', function(event)%7Bthis.onMouseUpHandler(event, scope, element);%7D);%0A %7D;%0A%0A @@ -1484,200 +1484,8 @@ se;%0A - //element.off('mousemove', function...
81ecd763f6617e15393b4af35e78655a67062ae1
Fix exports
src/interfaces/thenable.js
src/interfaces/thenable.js
/** * @file IThenable interface * @since 0.2.2 */ /*#ifndef(UMD)*/ "use strict"; /*global _gpfDefineInterface*/ // Internal interface definition helper /*global _gpfSyncReadSourceJSON*/ // Reads a source json file (only in source mode) /*exported _gpfIThenable*/ // gpf.interfaces.IThenable /*exported _gpfPromisy*/ /...
JavaScript
0.000004
@@ -308,16 +308,18 @@ pfPromis +if y*/ // C @@ -372,16 +372,18 @@ pfPromis +if yDefined
f2d380d6d5a51fc0dd009c025523bd3a41bdbb0d
fix html parsing in write
src/js/controller/write.js
src/js/controller/write.js
define(function(require) { 'use strict'; var angular = require('angular'), appController = require('js/app-controller'), aes = require('cryptoLib/aes-cbc'), util = require('cryptoLib/util'), str = require('js/app-config').string, emailDao; // // Controller /...
JavaScript
0.000242
@@ -3768,32 +3768,129 @@ -1);%0A %7D%0A + while (has('%3Cdiv%3E%3Cbr%3E')) %7B%0A body = body.replace('%3Cdiv%3E%3Cbr%3E', '%5Cn');%0A %7D%0A while (h
137b66d916f1b887301a16cf1f9e7ccfbed7f217
Add timeout time for tutorial in ThreadPage
src/js/pages/ThreadPage.js
src/js/pages/ThreadPage.js
import React, { PropTypes, Component } from 'react'; import ThreadList from '../components/threads/ThreadList'; import TopNavBar from '../components/ui/TopNavBar'; import QuestionsBanner from '../components/questions/QuestionsBanner'; import EmptyMessage from '../components/ui/EmptyMessage'; import ProcessesProgress fr...
JavaScript
0
@@ -3685,16 +3685,19 @@ reads), +100 0);%0A
59f3cafc2f28090dfe300523cb363e7bc5b29b38
clean up material properties
src/js/viewer/Entrances.js
src/js/viewer/Entrances.js
import { ClusterMarkers } from './ClusterMarkers'; import { STATION_ENTRANCE, FEATURE_ENTRANCES } from '../core/constants'; import { Points, PointsMaterial, BufferGeometry, Float32BufferAttribute } from '../Three'; function Entrances ( ctx, survey ) { ClusterMarkers.call( this, ctx, survey.modelLimits, 4 ); const ...
JavaScript
0
@@ -537,27 +537,17 @@ ial( -);%0A%0A%09material.map = + %7B%0A%09%09map: ctx @@ -594,45 +594,28 @@ c' ) -;%0A%09material. +,%0A%09%09 opacity - = +: 1.0 -;%0A%09material. +,%0A%09%09 alph @@ -623,26 +623,17 @@ Test - = +: 0.8 -;%0A%09material. +,%0A%09%09 size @@ -647,28 +647,19 @@ tion - = +: false -;%0...
d85f6e4e759da19a3986302f8c7112efa24417ac
Remove duplicated log entry.
applications/default/extensions/installer/installer.js
applications/default/extensions/installer/installer.js
var fs = require('fs'); var path = require('path'); var url = require('url'); var util = require('util'); var MongoClient = require('mongodb').MongoClient; var utils = require('prana').utils; var installer = module.exports = {}; /** * The route() hook. */ installer.route = function(routes, callback) { var newRout...
JavaScript
0
@@ -2715,145 +2715,8 @@ e%5D;%0A -%0A util.log('Application %22' + application.settings.application.name + '%22 started at %22' + application.settings.hostname + '%22.');%0A%0A
98ca063d173834fdf5433475701946a0bc932de8
Update branch
docs/js/doc-page.js
docs/js/doc-page.js
import React from 'react'; import Helmet from 'react-helmet'; import { graphql } from 'gatsby'; import { MDXRenderer } from 'gatsby-plugin-mdx'; import Layout from '../../../../src/components/Layout'; import Sidebar from './Sidebar'; import DocFooter from '../../../../src/components/DocFooter'; import Link from '../....
JavaScript
0.000001
@@ -2243,14 +2243,20 @@ ch=%22 -master +release/v1.3 %22 /%3E
a93f6041b8655b26cd2c8775dbc07dbd61996ac3
resolve error trying to clear old alarms
chrome-extension/background/background.js
chrome-extension/background/background.js
const getSessionKey = entityId => `session_${entityId}`; const getCampaignDataKey = entityId => `campaignData_${entityId}`; const getEntityIdFromSession = session => session.replace('session_', ''); let serviceUrl = 'https://machete-app.com'; function checkEntityId(entityId, sendResponse) { const valid = entityId ...
JavaScript
0.000001
@@ -1776,36 +1776,68 @@ sion -); // Stop this stupid alarm +, cleared =%3E console.log(%22cleared useless alarm%22, cleared)); %0A
d321b9eb6d3b84dbe45cb3f09057942ba382ec28
use isHotkey for markdown keydown listener
src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js
src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js
import { Block, Text } from 'slate'; import { isHotkey } from 'is-hotkey'; export default onKeyDown; function onKeyDown(event, change) { const createDefaultBlock = () => { return Block.create({ type: 'paragraph', nodes: [Text.create('')], }); }; if (event.key === 'Enter') { /** * I...
JavaScript
0.000001
@@ -276,29 +276,32 @@ if ( -event.key === 'Enter' +isHotkey('Enter', event) ) %7B%0A
cdba6d3defca2d04b8009c7556cfea0e2225e9a4
fix and trigger check if hash is emty and set default. new function to triger a hash event (at page loade for example)
modules/hashController.js
modules/hashController.js
//Hash Controller - v0.1 copyright by TitanNano / Jovan Ggerodetti - http://www.titannano.de 'use strict'; $('new')({ name : 'hash', constructor : function(engine){ engine.hash= { actions : [], path : [] }; // Classes var HashEvent= function(ty...
JavaScript
0
@@ -1191,32 +1191,144 @@ e', function()%7B%0A + if(self.location.hash == %22%22)%0A var hashPath= ('#!/').split('/');%0A else%0A var @@ -3442,22 +3442,228 @@ -return +if(path instanceof Array)%0A path.forEach(function(item)%7B%0A ...
bf02bf5c16d6691ba4a3e49474f9ba6aad816a51
Resolve bug #155030819 (Gui created a undefined list in sector_model config)
src/smif/app/src/components/ConfigForm/General/PropertyList.js
src/smif/app/src/components/ConfigForm/General/PropertyList.js
import React, { Component } from 'react' import PropTypes, { string } from 'prop-types' import update from 'immutability-helper' import FaTrash from 'react-icons/lib/fa/trash' import FaPencil from 'react-icons/lib/fa/pencil' import FaExclamationTriangle from 'react-icons/lib/fa/exclamation-triangle' class PropertyLis...
JavaScript
0
@@ -489,17 +489,22 @@ const %7B -n +itemsN ame, ite @@ -818,24 +818,59 @@ 'delete') %7B%0A + items.splice(value, 1)%0A @@ -957,17 +957,22 @@ name: -n +itemsN ame,%0A @@ -1004,33 +1004,16 @@ e: items -.splice(value, 1) ,%0A
3a51a304281895198108f590f5958ea52d9acac5
fix permissions for recent accounts-sandstorm
lib/init/sandstorm.js
lib/init/sandstorm.js
import { Meteor } from 'meteor/meteor' export function isSandstorm () { if (Meteor.settings && Meteor.settings.public) { return Meteor.settings.public.sandstorm } return false } export function sandstormCheckRole (user, roles) { // Implement behavior of Roles.userIsInRole for Sandstorm. const doc = (typ...
JavaScript
0
@@ -379,17 +379,16 @@ : user%0A -%0A if (do @@ -400,68 +400,81 @@ doc. -services && doc.services.sandstorm && doc.services.sandstorm +profile && doc.profile.permissions) %7B%0A const permissions = doc.profile .per @@ -477,27 +477,24 @@ .permissions -) %7B %0A for (le @@ -506,39 +506,16 @@ 0; i %3C -do...
95c956e89dd600ad63e6e972403fbcf8a592229a
Fix problem that does not generate all tags and categories of post when json format
lib/json_generator.js
lib/json_generator.js
var pathFn = require('path'); var fs = require('fs'); module.exports = function(locals){ var config = this.config; var searchConfig = config.search; var searchfield = searchConfig.field; var posts, pages; if(searchfield.trim() != ''){ searchfield = searchfield.trim(); if(searchfie...
JavaScript
0.001205
@@ -1140,36 +1140,27 @@ var tags = -new Array() +%5B%5D; %0A @@ -1205,25 +1205,28 @@ post.tags. -e +forE ach(function @@ -1258,38 +1258,30 @@ tags -%5Btag_index%5D = +.push( tag.name ; %0A @@ -1264,34 +1264,34 @@ gs.push(tag.name +) ; - %0A @@ -1453,56 +1453,11 @@ s ...
fb858a8fc2d3e125703d485c8b29a31cddd323e3
Set event type on enter/leave events
src/eventPlugins/EnterLeaveEventPlugin.js
src/eventPlugins/EnterLeaveEventPlugin.js
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -3221,24 +3221,55 @@ vent%0A );%0A + leave.type = 'mouseleave';%0A leave.ta @@ -3421,24 +3421,55 @@ vent%0A );%0A + enter.type = 'mouseenter';%0A enter.ta
21c2d27145d71c9066c99a8cf98da98fa18ff995
Use POST method if need (eg. files.upload)
lib/lib/slack.seed.js
lib/lib/slack.seed.js
// Generated by CoffeeScript 1.8.0 var Slack, request, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; request = require("request"); Slack = (function() { function Slack(token, domain) { this.token = token; this.domain = domain; this.api = __bind(this.api, this); ...
JavaScript
0
@@ -2085,20 +2085,31 @@ od;%0A +%0A +var request -( +_arg = %7B%0A @@ -2144,48 +2144,222 @@ - method: %22GET%22, +%7D%0A if(this.is_post_api(method))%7B%0A request_arg.method = 'POST'%0A request_arg.form = options%0A %7Delse%7B%0A request_arg.method = 'GET' %0A -qs: opt...
ab16e8da7a7b46d697be1de2bf522cff3471a846
Remove console logs and changed how evaluation works
lib/listeners/eval.js
lib/listeners/eval.js
var vm = require('vm'); var _ = require('lodash'); module.exports = function(bot, message) { try { var code = ''; if (message.text.trim().split('\n').length > 1) { code = message.text.trim().split('\n').slice(1).join(''); } else { code = message.text.split(' ').slice(1).join(' '); } c...
JavaScript
0.000001
@@ -166,36 +166,44 @@ th %3E 1) %7B%0A -code +var unparsed = message.text. @@ -236,24 +236,67 @@ ).join('');%0A + code = unparsed.replace(/%60%60%60/g, '');%0A %7D else %7B @@ -357,37 +357,14 @@ ');%0A + %7D%0A - console.log(code);%0A @@ -828,17 +828,16 @@ d + '%60%60%60 -%60 '));%0...
10313ecda359383e1788060f40287da1bf4fe13c
Change the built-in server ip config to localhost
lib/loaders/config.js
lib/loaders/config.js
var path = require('path'), fs = require('graceful-fs'), async = require('async'), _ = require('lodash'), HexoError = require('../error'), util = require('../util'), file = util.file2; var defaults = { // Site title: 'Hexo', subtitle: '', description: '', author: 'John Doe', email: '', langua...
JavaScript
0
@@ -1112,15 +1112,17 @@ p: ' -0.0.0.0 +localhost ',%0A @@ -4095,12 +4095,13 @@ ();%0A %7D);%0A%7D; +%0A
ee89bff2663890e35e71e63548b22ec9732f681e
Fix bug with PackResource PackResources correctly load child resources so progress bar and initialization work correctly@
src/framework/resources/resources_pack.js
src/framework/resources/resources_pack.js
pc.extend(pc.resources, function () { /** * @name pc.resources.PackResourceHandler * @class Handle requests for Pack resources */ var PackResourceHandler = function (registry, depot) { this._registry = registry this._depot = depot; }; PackResourceHandler = PackResourc...
JavaScript
0
@@ -1031,16 +1031,25 @@ ity(data +, options );%0A%0A
40296d01c57cb9dc401294b57e0e7a749a4da6b6
fix history
lib/models/history.js
lib/models/history.js
'use strict'; /** * @file Exports the History class. A history is a daily roundup of price data for a logic group of articles for a specific timeframe. */ const knex = require('../db'); const moment = require('moment'); class History { /** * @function Builds a history for the given article called `name` and ...
JavaScript
0.002284
@@ -3262,16 +3262,43 @@ te %3C= ?' +,%0A 'ORDER BY date ASC' %0A %5D.j
230a183707ae084f3b08df2a87334f075532647a
Update webpack configuration to allow @importing scss
build/webpack.config.base.js
build/webpack.config.base.js
var webpack = require('webpack') var pathUtil = require('./path-util.js') var ExtractTextPlugin = require("extract-text-webpack-plugin") var autoprefixer = require('autoprefixer') module.exports = { output: { path: pathUtil.getPathFromRoot('dist') }, resolve: { extensions: ['.js', '.vue'], alias: { ...
JavaScript
0
@@ -1060,17 +1060,17 @@ oader', -' +%60 sass-loa @@ -1072,17 +1072,74 @@ s-loader -' +?includePaths%5B%5D=$%7BpathUtil.getPathFromRoot('src/styles')%7D%60 %5D%0A
91433332ac1f420aa5e64e8af8eb18551cfd9f38
Fix insert 2 time a flash object unblock it
content_script.js
content_script.js
/** * StopFlash * * https://github.com/JWhile/StopFlash * * content_script.js */ // class FlashCollection function FlashCollection() { this.flashElements = []; } // function add(NodeList elements) FlashCollection.prototype.add = function(elements) { for(var i = 0, e; i < elements.length; ++i) { ...
JavaScript
0
@@ -735,21 +735,31 @@ ush(f);%0A -%0A + %7D%0A%0A @@ -773,30 +773,16 @@ lock();%0A - %7D%0A
a029ae72f2265e96ca598d80a56b037817414f80
Add examples for Matrix Stats Aggregation
src/aggregations/matrix-aggregations/matrix-stats-aggregation.js
src/aggregations/matrix-aggregations/matrix-stats-aggregation.js
'use strict'; const isNil = require('lodash.isnil'); const { Aggregation, util: { checkType } } = require('../../core'); /** * The `matrix_stats` aggregation is a numeric aggregation that computes * statistics over a set of document fields * * @param {string} name A valid aggregation name * @param {Array=} fiel...
JavaScript
0
@@ -237,24 +237,267 @@ t fields%0A *%0A + * %5BElasticsearch reference%5D(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-matrix-stats-aggregation.html)%0A *%0A * @example%0A * const agg = bob.matrixStatsAggregation('matrixstats', %5B'poverty', 'income'%5D);%0A *%0A * @param %7Bs ...
46fbb60fb6b336c0aaa55da0d5f2410db305ed28
disable theme bar
client/src/app/parts/theme/themeModule.js
client/src/app/parts/theme/themeModule.js
import { observable } from "mobx"; export default function(context) { const ThemeView = require("./ThemeView").default(context); let stores; function Stores() { const sideBarStore = observable({ open: true, toogle(){ this.open = !this.open } }); return { sideBar: sid...
JavaScript
0.000001
@@ -217,11 +217,12 @@ en: -tru +fals e,%0A
23c7da4c1399f0eeb04e0d084ccf22f4611e7f8b
change reset conform text
client/src/js/components/viewAssistant.js
client/src/js/components/viewAssistant.js
import {section, header, main, nav, div, button, img, p, input} from '@cycle/dom' function render(screen) { const {level, changes} = screen.settings const resetReq = screen.resetReq return div('.screen', [ header('.title', {dataset: {action: 'speak'}}, 'Change user options'), main('.main', [ sectio...
JavaScript
0.000001
@@ -887,14 +887,12 @@ ? ' -Really +Yes, Res
ec343998c8d722a495d02ac813d54664ddb901fd
fix apiServerBaseAddress
BasicSetup/src/AureliaAspNetApp/src/authConfig.js
BasicSetup/src/AureliaAspNetApp/src/authConfig.js
var configForDevelopment = { apiServerBaseAddress: 'http://localhost', profileUrl: 'http://localhost:22530/connect/userinfo', //profileUrl: 'http://localhost:63381/connect/userinfo', providers: { identSrv : { name: 'identSrv', url: 'Token/Exchange', authoriz...
JavaScript
0.000001
@@ -1997,16 +1997,23 @@ dress: ' +http:// docker-p
65199d16e93cc7279ac4723484060cfd068a7a3c
Call done when test is pending
spec/BuilderSpec.js
spec/BuilderSpec.js
/* @flow */ import 'babel-polyfill' import path from 'path' import fs from 'fs-promise' import childProcess from 'mz/child_process' import yaml from 'js-yaml' import { Builder } from '../src/main' import { cloneFixtures, customMatchers } from './helpers' const ASYNC_TIMEOUT = 40000 describe('Builder', () => { let...
JavaScript
0
@@ -1902,16 +1902,35 @@ iled.%60)%0A + done()%0A
acf5ed9b3d3f7ff05b607f731f920343bd8b2a29
fix issue with error state not resetting on cancel
src/lwc/gePaymentGatewayManagement/gePaymentGatewayManagement.js
src/lwc/gePaymentGatewayManagement/gePaymentGatewayManagement.js
/* * Copyright (c) 2020 Salesforce.org * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, ...
JavaScript
0.000001
@@ -2609,16 +2609,31 @@ emAdmin; +%0A hasAccess; %0A%0A CU @@ -2904,16 +2904,96 @@ tomer(); +%0A%0A this.hasAccess = !!(this.isElevateCustomer && this.isSystemAdmin); %0A @@ -3560,98 +3560,8 @@ %7D%0A%0A - get hasAccess() %7B%0A return this.isElevateCustomer && this.isSystemAdmin...
2656b66a47de8adf76bd3c955e627d435353ddae
fix stringify.js for 'circular' objects
lib/node/stringify.js
lib/node/stringify.js
var Transform = require('../common/transform.js'); function Stringify() {} Transform.mixin(Stringify); Stringify.prototype.write = function(name, level, args) { var result = []; if(name) result.push(name); if(level) result.push(level); result = result.concat(args); for(var i = 0; i < result.length; i++) { ...
JavaScript
0.000439
@@ -540,24 +540,40 @@ %7D else %7B%0A + try %7B%0A resu @@ -607,16 +607,221 @@ lt%5Bi%5D);%0A + %7D catch(stringifyError) %7B%0A // happens when an object has a circular structure%0A // do not throw an error, when printing, the toString() method of the object will be used...
fc84b19d3da2fdfdb728f629d7cbe2a8a35b4819
Update MeshWebGLRenderer.js
src/gameobjects/mesh/MeshWebGLRenderer.js
src/gameobjects/mesh/MeshWebGLRenderer.js
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCalcMatrix = require('../GetCalcMatrix'); /** * Renders this Game Object with the WebGL Renderer to the given Camera. * The object wil...
JavaScript
0
@@ -1518,32 +1518,46 @@ ount * pipeline. +currentShader. vertexComponentC
9a15a4416c0f7e5b3b73ebba57032bb7bc51a1c2
Fix open url route
project/src/js/main.js
project/src/js/main.js
/* application entry point */ // require mithril globally for convenience window.m = require('mithril'); // for moment a global object makes loading locales easier window.moment = require('moment'); var utils = require('./utils'); var session = require('./session'); var i18n = require('./i18n'); var xhr = require('./...
JavaScript
0.000461
@@ -862,16 +862,17 @@ oute = ' +/ game/' +
03eea2cf606d978282dd9c33e72d247e6ddabf2f
Update BreadcrumbsDirective.js
src/js/directives/BreadcrumbsDirective.js
src/js/directives/BreadcrumbsDirective.js
angular.module('JiNGle.directives').directive('jibreadcrumbs', function() { 'use strict'; return { restrict: 'AE', replace: 'true', templateUrl: JiNGle.viewPath + 'BreadcrumbsDirective.html', scope: { nodes: '=nodes' } }; });
JavaScript
0
@@ -264,16 +264,251 @@ =nodes'%0A + %7D,%0A %0A link: function($scope) %7B%0A $scope.isActive = function(node) %7B%0A return typeof node.active !== %22undefined%22 && node.active %7C%7C node === $scope.nodes%5B$scope.nodes - 1%5D%0A %7D; %0A @@ -51...
8b5a3dcbd073c7126e5f44f8df66da25e5b41c36
Fix a couple of bugs in Autoscaling postProcessing
lib/postProcessing.js
lib/postProcessing.js
/* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O...
JavaScript
0
@@ -3076,32 +3076,47 @@ anceId%5D;%0A + container.id = container.id.re @@ -3278,26 +3278,28 @@ edBys = _.fi -nd +lter (containers,
6b8c81c58d30b144a02913701f1b3fe863133353
Fix issues when multiple connections try to reload the index
lib/project/Server.js
lib/project/Server.js
// Dependencies --------------------------------------------------------------- var fs = require('fs.extra'), http = require('http'), url = require('url'), EventEmitter = require('events').EventEmitter, crypto = require('crypto'), send = require('send'), util = require('../util'); // Web Serv...
JavaScript
0
@@ -516,23 +516,25 @@ Response - = null +List = %5B%5D ;%0A%0A / @@ -1760,14 +1760,22 @@ onse - = +List.push( res +) ;%0A%0A @@ -2483,16 +2483,20 @@ Response +List ) %7B%0A @@ -2561,16 +2561,64 @@ Response +List.forEach(function(res) %7B%0A res .statusC @@ -2640,36 +2640,23 @@ ...
d3337f48eee8b8db45fca40b610dfc835e55c14e
Update re-re-re-react.js
lib/re-re-re-react.js
lib/re-re-re-react.js
'use babel'; import ReReReReactView from './re-re-re-react-view'; import { CompositeDisposable } from 'atom'; export default { reReReReactView: null, modalPanel: null, subscriptions: null, activate(state) { // replace the example argument 'linter-ruby' with the name of this Atom package require('ato...
JavaScript
0.000001
@@ -339,27 +339,25 @@ nstall(' -linter-ruby +docblockr ')%0A
112becf7ffa79d2519777300be0beff568114fe6
use spaces rather than tabs when formatting errors
lib/reporters/base.js
lib/reporters/base.js
var util = require('util'); var helper = require('../helper'); var BaseReporter = function(formatError, reportSlow, adapter) { this.adapters = [adapter || process.stdout.write.bind(process.stdout)]; this.onRunStart = function() { this._browsers = []; }; this.onBrowserStart = function(browser) { thi...
JavaScript
0.000001
@@ -1627,18 +1627,18 @@ error, ' -%5Ct + '));%0A %7D
c428a6b0f88a2a06f4adda786006033b55bb2ad0
fix #7 incorrect client schema on client page
lib/router/clients.js
lib/router/clients.js
/** * Created by udit on 01/08/16. */ import { PendingClients } from '/imports/api/pending-clients/pending-clients'; import { Clients } from '/imports/api/clients/clients'; import { RecentClients } from '/imports/api/recent-clients'; Router.onBeforeAction( function clientAction() { const that = this; con...
JavaScript
0
@@ -1517,86 +1517,34 @@ ._id -),%0A // Meteor.subscribe('eligibleClient', Router.current().params._id +, this.params.query.schema ),%0A
da15889f2d131bf943bc80c3e65c31fb999add6f
update scripts create doc to reflect returned status code for displaying created script data
lib/scripts/create.js
lib/scripts/create.js
'use strict'; var method = require('./../method'); var assign = require('lodash.assign'); /** * @memberof scripts * @method create * @description Creates a new startup script. Optionally specify a machine to use this startup script. * Note: currently only Linux based machines support startup scripts. Also, note...
JavaScript
0
@@ -1113,16 +1113,77 @@ unction%0A + * @returns %7Bobject%7D script - The created script JSON object%0A * @exam @@ -1670,82 +1670,82 @@ ript -Text %22services start nginx%22 %5C%0A * --scriptDescription %22A startup script +Description %22A startup script%22 %5C%0A * --scriptText %22services start nginx %2...
034f621e7038ee6eecf0bac140cb196249daf661
Add comments.
lib/text/frequency.js
lib/text/frequency.js
/* * GET users listing. */ var _ = require('underscore') , mongodb = require('mongodb') , async = require('async') , extend = require('../extend') ; // https://github.com/mongodb/node-mongodb-native/pull/1165 exports.frequency_map = function (collection, keyword, callback) { if (collection == null) { ...
JavaScript
0
@@ -3,26 +3,28 @@ %0A * -GET users listing. +Frequency Collection %0A */
0d739b0985d37199fcb9f1d2edce8602dd6694d3
fix missing var
lib/uploadToSentry.js
lib/uploadToSentry.js
var path = require('path'); var url = require('url'); var superagent = require('superagent'); var HEADERS = { Authorization: 'Bearer ' + process.env.SENTRY_KEY }; var BASE_URL = process.env.SENTRY_RELEASE_BASE_URL; function makeUrl(project, org) { return BASE_URL + '/api/0/projects/' + org + '/' + project + '/relea...
JavaScript
0.000766
@@ -2124,17 +2124,21 @@ ded ' + -n +fileN ame);%0A @@ -2299,17 +2299,21 @@ ) - ' + -n +fileN ame +%0A
cccd3439eb0cf20b9809ffdc98ce99a0cc693862
Replace momentjs dependency with date-fns.
lib/util/mailables.js
lib/util/mailables.js
import blobStream from 'blob-stream' import moment from 'moment' import PDFDocument from './PDFDocumentWithTables' /** * Fields use to construct PDF letter. The nested arrays * correspond to rows of inputs in the form layout. */ export const LETTER_FIELDS = [ [ { fieldName: 'firstname', placeholder: 'First n...
JavaScript
0
@@ -1,12 +1,46 @@ +import %7B format %7D from 'date-fns'%0A import blobS @@ -66,36 +66,8 @@ ream -'%0Aimport moment from 'moment '%0A%0Ai @@ -2504,17 +2504,17 @@ )%0A%0A // -c +C urrent d @@ -2520,49 +2520,136 @@ date -%0A doc.text(moment().format( + in the user's time zone (no need to use the config's homeTim...
8aee24d59fc06260a05b9cf868be80022d006fd0
add copy function
lib/utils/fs-utils.js
lib/utils/fs-utils.js
var fs = require('fs'); var RSVP = require('rsvp') var denodeify = RSVP.denodeify var fsReadFile = denodeify(fs.readFile) var fsWriteFile = denodeify(fs.writeFile); var fsMkdir = denodeify(fs.mkdir); var fsAppend = denodeify(fs.appendFile); module.exports = { re...
JavaScript
0.000001
@@ -288,16 +288,58 @@ ndFile); +%0Avar fsCopy = denodeify(fs.copy); %0A%0Amodule @@ -801,14 +801,222 @@ ments);%0A + %7D,%0A%0A copy: function(source, destination) %7B%0A return this.read(source, %7Bencoding: 'utf8'%7D).then(function(contents) %7B%0A return this.write(destination, contents, %7Benc...
8d7075a63d8a9f7fc66b2fb0e6b304396fc59af9
build the reverse sequence
lib/utils/sequence.js
lib/utils/sequence.js
//Sequence object var Sequence = {}; //Complementary bases Sequence.bases = { 'N': 'N', 'n': 'n', 'A': 'T', 'a': 't', 'T': 'A', 't': 'a', 'C': 'G', 'c': 'g', 'G': 'C', 'g': 'c' }; //Function to get the complementary base Sequence.getCBase = function(b){ return Sequence.bases[b]; }, //Build the reverse comp...
JavaScript
0.999239
@@ -1,73 +1,44 @@ // -Sequence object%0Avar Sequence = %7B%7D;%0A%0A//Complementary bases%0ASequence. +Complementary bases%0Avar complementary_ base @@ -162,26 +162,62 @@ %0A%0A// -Function to get th +Sequence object%0Avar Sequence = %7B%7D;%0A%0A//Build the revers e co @@ -228,19 +228,23 @@ mentary -bas +sequenc...
c7e0da9140e5624afcebd619b33f92e3a3166806
use shared json function and reduce detach distance
DomainContent/AvatarStore/attachmentItemScript.js
DomainContent/AvatarStore/attachmentItemScript.js
// // attachmentItemScript.js // // This script is a simplified version of the original attachmentItemScript.js // Copyright 2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // (function() { ...
JavaScript
0
@@ -731,17 +731,17 @@ NCE = 0. -5 +4 ;%0A va @@ -997,804 +997,8 @@ d;%0A%0A - var isHandOrArm = false;%0A%0A /**%0A * %0A * @param %7BObject%7D entityProperties %0A * @param %7BtouchJSONUserDataCallback%7D touchCallback %0A */%0A var touchJSONUserData = function(entityProperties, touchCal...
5757739be3dd8e3fd6406e2c06e40c50f81851d3
split lint staged rules
lint-staged.config.js
lint-staged.config.js
module.exports = { '*': ['prettier --check --ignore-unknown --write', 'git add'], '*.{ts,tsx}': () => 'tsc --project tsconfig.json --noEmit', '*.md': [ 'remark --frail --use validate-links --use remark-lint-no-dead-urls --use remark-lint-no-url-trailing-slash', ], '*.{js,jsx,ts,tsx,md,mdx}': [ 'eslint...
JavaScript
0.000023
@@ -19,17 +19,16 @@ %0A '*': -%5B 'prettie @@ -67,94 +67,29 @@ te', - 'git add'%5D,%0A '*.%7Bts,tsx%7D': () =%3E 'tsc --project tsconfig.json --noEmit',%0A '* +%0A '!(CHANGELOG) .md': - %5B %0A @@ -201,17 +201,130 @@ ash',%0A -%5D +'*.%7Bmd,mdx%7D': 'eslint --ext md,mdx --max-warnings 0',%0A '*.%7Bts,t...
6131ecdd967adc7d98949f50fe253f4185cecdc0
input city
src/ReactWeather.js
src/ReactWeather.js
'use strict'; //Copyright (c) 2016 Александр Смит (https://github.com/DarkScorpion) import React from 'react'; import style from './styles.styl'; import jQuery from '../modules/jquery-ajax.js'; //Props: //start - starting location; //notSet - how display unknown data; //appID - key for access (!) class Re...
JavaScript
0.99999
@@ -500,24 +500,46 @@ t: notSet,%0D%0A + inputCity: '',%0D%0A curren @@ -2372,26 +2372,24 @@ ', query);%0D%0A -%0D%0A $.ajax(%7B @@ -3954,26 +3954,29 @@ %7D%0D%0A%0D%0A -add +input CityHan +d ler(even @@ -3993,56 +3993,160 @@ var -input = document.getElementById(%22addCity%22).value +value = ...
0949cbeb6f5c2d5305cf5c4b332e23b14bebbac2
Update circlecontroller.js with local stage object.
TolerableBear/app/controllers/circlecontroller.js
TolerableBear/app/controllers/circlecontroller.js
angular.module('MyModule') .controller('circlecontroller', function ($scope, $timeout, KineticService, UtilityService, AgentService) { 'use strict'; init(); function init() { $scope.pageName = "CIRCLES"; AgentService.createAgent('circle1'); } var up = true; ...
JavaScript
0
@@ -167,24 +167,98 @@ init();%0A%0A + var stage = KineticService.createStage('container', 640, 480);%0A%0A funct
35bdaf8069a93c0f8ab17e60cf3ef237de41e213
Use v2 search endpoint for operator dashboard (bug 1136460)
src/media/js/routes_api.js
src/media/js/routes_api.js
define('routes_api', [], function() { // List API routes here. // E.g.: // { // "route": "/foo/bar/{0}", // "another_route": "/foo/bar/{0}/asdf" // } return { 'fxa-login': '/api/v2/account/fxa-login/', 'login': '/api/v2/account/login/', 'logout': '/api/v2/acco...
JavaScript
0.000003
@@ -352,17 +352,17 @@ '/api/v -1 +2 /apps/se
627615f46edc6fd4c8f74c22ecf675d9db960f26
Improve browser compatibility of pat-modal.
src/pat/modal.js
src/pat/modal.js
define([ "jquery", "../core/parser", "../registry", "./inject" ], function($, Parser, registry, inject) { var parser = new Parser("modal"); parser.add_argument("class"); var modal = { name: "modal", jquery_plugin: true, // div's are turned into modals // lin...
JavaScript
0
@@ -2338,32 +2338,180 @@ n: function() %7B%0A + // bail if repositioning already in progress%0A if ($('#pat-modal-clone').length %3E 0) %7B%0A return;%0A %7D%0A%0A var @@ -2764,134 +2764,768 @@ -// set max-height first, then measure and change if nece...
be224d8185ab9eb3eb503b5cfb0a89d56e59f97a
Clean code
src/store/modules/common/readOldSchema.js
src/store/modules/common/readOldSchema.js
// Function that reads in the old data schema object and returns the equivalent // in the new schema documented here: https://aida.gitbook.io/docs/api-reference // Export export default readOldSchema function readOldSchema(oldData) { let newData = {} // ----- // Translate annotation data // Don't worry about...
JavaScript
0.000003
@@ -217,16 +217,17 @@ ldSchema + (oldData @@ -1219,8 +1219,9 @@ ewData%0A%7D +%0A
adfdf2b1072c91aaf170de946c1d1a7d4e10a8bf
Make video card a link
src/components/videos/VideoPreviewCard.js
src/components/videos/VideoPreviewCard.js
import * as _ from 'lodash' import React from 'react' import {connect} from 'react-redux' import {compose} from 'recompose' import {withDatabaseSubscribe} from '../hocs' import {refreshVideo} from '../../actions/videos' const mapStateToProps = ({videos}) => ({ videos }) const enhance = compose( connect(mapState...
JavaScript
0.998673
@@ -91,23 +91,20 @@ import %7B -compose +Link %7D from ' @@ -109,63 +109,58 @@ 're -compose'%0A%0Aimport %7BwithDatabaseSubscribe%7D from '../hocs' +act-router-dom'%0Aimport %7Bcompose%7D from 'recompose'%0A %0Aimp @@ -206,16 +206,62 @@ videos'%0A +import %7BwithDatabaseSubscribe%7D from '../hocs'%0A %0A%0Aconst...