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
6c1bb22651aee794b1bbed83ffa1d8df25dbb8a1
Clean up
backbone.localStorage.js
backbone.localStorage.js
/** * Backbone localStorage Adapter (modified to add AMD registration) * * https://github.com/jeromegn/Backbone.localStorage */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define('backbone.localstorage',['un...
JavaScript
0.000002
@@ -147,21 +147,16 @@ tory) %7B%0A - if (t @@ -176,17 +176,17 @@ === -' +%22 function ' && @@ -181,17 +181,17 @@ function -' +%22 && defi @@ -200,26 +200,16 @@ .amd) %7B%0A - // @@ -247,26 +247,16 @@ module.%0A - de @@ -260,17 +260,17 @@ define( -' +%22 backbone @...
ba5ac3cd2f5933caec223bb96e12f2ba94e9c119
fix keys
react-demos/basic_demo/src/index.js
react-demos/basic_demo/src/index.js
import React, { Component } from 'react'; import Konva from 'konva'; import { render } from 'react-dom'; import { Stage, Layer, Star, Text } from 'react-konva'; class App extends Component { handleDragStart = e => { e.target.setAttrs({ shadowOffset: { x: 15, y: 15 }, scaleX: 1.1...
JavaScript
0.000002
@@ -733,17 +733,22 @@ 0)%5D.map( -i +(_, i) =%3E (%0A
55a38731b650221b3e320ba93eca298ff580b9b1
Modify the asynchronous processing
src/index.js
src/index.js
/** * @file check-version * @author xiaowu * @email fe.xiaowu@gmail.com */ 'use strict'; import request from 'request'; import config from '../config.json'; import header from '../header.json'; let rule = config.rule; let resPromise = []; rule.forEach((val) => { let defer = new Promise((resolve, reject) =...
JavaScript
0.000044
@@ -273,20 +273,8 @@ %0A - let defer = new @@ -1354,117 +1354,32 @@ %7D) -;%0A%0A resPromise.push(defer);%0A%7D);%0A%0APromise.all(resPromise).then(data =%3E %7B%0A data.forEach(val =%3E %7B%0A +.then(data =%3E %7B%0A - cons @@ -1386,19 +1386,20 @@ ole.log( -val +data .name + @@ -1407,19 +...
b4c1ce7b4336a53726a20353b32f706734da7fa1
revert half of 85d4841d to land the rest ASAP
index.js
index.js
/** * empower - Power Assert feature enhancer for assert function/object. * * https://github.com/power-assert-js/empower * * Copyright (c) 2013-2016 Takuto Wada * Licensed under the MIT license. * https://github.com/power-assert-js/empower/blob/master/MIT-LICENSE.txt */ var empowerCore = require('empower-core...
JavaScript
0.000002
@@ -1763,20 +1763,11 @@ -var poweredM +e.m essa @@ -1867,473 +1867,8 @@ t);%0A - if (e.code === 'ERR_ASSERTION') %7B%0A e = new assert.AssertionError(%7B%0A message: poweredMessage,%0A actual: e.actual,%0A exp...
388b6d3547828c52bd15ca8547558795142f2afe
set pid as null when it ends
src/functions/music/player.js
src/functions/music/player.js
const yt = require('ytdl-core'); const streamy = require("stream"); const fs = require('fs'); const request = require("request"); const spawn = require("child_process").spawn module.exports = Player; function Player(message) { var that = this; this.message = message; this.channel = message.channel; this.voicecha...
JavaScript
0.000001
@@ -2498,16 +2498,74 @@ play()); +%0A%09%09%09ffmpeg.on(%22close%22, () =%3E %7B%0A%09%09%09%09this.pid = null;%0A%09%09%09%7D); %0A%0A%09%09%7D ca
ad1f0767f42c521aff7e7ce328e3ae04d694e674
Copy CNAME to dist/
Gruntfile.js
Gruntfile.js
// Generated on 2013-03-23 using generator-webapp 0.1.5 'use strict'; var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; // # Globbing // for performance reasons we're only matching one...
JavaScript
0
@@ -8213,32 +8213,65 @@ 'styles/fonts/*' +,%0A 'CNAME' %0A
a805ce57de945346efe5df31105c5be2ca02679f
Fix infinit rendering loop
src/NativeUI/Canvas/RemoteRenderer/index.js
src/NativeUI/Canvas/RemoteRenderer/index.js
/* global document Image */ /* eslint-disable no-underscore-dangle */ import Monologue from 'monologue.js'; import MouseHandler from '../../../Interaction/Core/MouseHandler'; import VtkWebMouseListener from '../../../Interaction/Core/VtkWebMouseListener'; import SizeHelper from '../../../...
JavaScript
0
@@ -2629,24 +2629,181 @@ = false) %7B%0A + // Skip rendering if we are not visible%0A if (this.size && this.size.clientWidth === 0) %7B%0A // pretend success rendering%0A return true;%0A %7D%0A%0A if (this @@ -4452,24 +4452,144 @@ sp.stale) %7B%0A + // No force render when we are...
159a9c7af12da322d718207f8ffe473bbc2b7ea8
remove console log
src/object/Validation.js
src/object/Validation.js
import Validator from './Validator' class NonValidator { filled() { return true } } export default class Validation { validate(property) { this._resetErrors() this.validation() if (property == 'image') console.log('erras', this.attributes.errors) return( !this.attributes.errors[property] || ...
JavaScript
0.000003
@@ -188,82 +188,8 @@ n()%0A - if (property == 'image') console.log('erras', this.attributes.errors)%0A
bc073c2416ed57a24fb983d569c7340949909938
use the new generateRelatedList api
record/record.app.js
record/record.app.js
(function() { 'use strict'; /* Configuration of the Record App */ angular.module('chaise.configure-record', ['chaise.config']) .constant('appName', 'record') .run(['$rootScope', function ($rootScope) { // When the configuration module's run block emits the `configuration-done` event, attach t...
JavaScript
0.00674
@@ -5330,23 +5330,35 @@ ference. -r +generateR elated +List (tuple);
4cda8b799caff9bbe567a71250467c06e66c0ab3
refactor feed route
common/routes/routes.js
common/routes/routes.js
import React from 'react'; import { Route, IndexRoute, Router, browserHistory } from 'react-router'; import App from '../components/App'; import Login from '../components/Login'; import Home from './Home'; import NotFound from './NotFound'; import { injectAsyncReducer } from '../store'; // Should return all the route...
JavaScript
0.000003
@@ -131,16 +131,126 @@ s/App';%0A +import ArticleList from './PostList/containers/ArticleList';%0Aimport articleReducer from './PostList/reducer';%0A import L @@ -1158,279 +1158,8 @@ %3E %7B%0A - require.ensure(%5B'./PostList/containers/ArticleList', './PostList/reducer'%5D, (require) =%3E %7B%0A ...
f8165dbd6b26686da5a5be7cffbec4316eeea6f8
remove código desnecessário
lib/assets/javascripts/do-interface/select.js
lib/assets/javascripts/do-interface/select.js
$(function () { 'use strict'; // prepare onload if( $('.custom-select').length > 0 ) { init(); } }); var buildOpts = function () { var wrapper = $('.custom-select') ,select = wrapper.find('select') ,list = wrapper.find('ul.custom-select-list') ,selectOption...
JavaScript
0.999455
@@ -3881,25 +3881,24 @@ tNoSearch);%0A -%0A @@ -3982,494 +3982,35 @@ -if(foundsOptions.length %3E 0) %7B%0A foundsOptions.each(function (i, addedLi) %7B%0A if(addedLi.textContent === optText) %7B%0A $(addedLi).replaceW...
35b8e601f501e6690a8ef34b00db3a019eba80a6
Fix lint errors
generators/app/index.js
generators/app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); module.exports = yeoman.Base.extend({ constructor: function(){ yeoman.Base.apply(this, arguments); this.argument('store', { type: String, required: true }); this....
JavaScript
0.000396
@@ -53,68 +53,8 @@ ');%0A -var chalk = require('chalk');%0Avar yosay = require('yosay');%0A var @@ -138,18 +138,20 @@ function + () + %7B%0A ye @@ -212,17 +212,16 @@ tore', %7B - type: St @@ -240,17 +240,16 @@ ed: true - %7D);%0A @@ -278,25 +278,24 @@ nterfaceName - : _.capitali @@ -308,17 +308,...
2a944790fa6a4954f499a6e5993ca9240cc866a5
Reformat example with standard-format
example/app.js
example/app.js
var app = angular.module('app', ['angular-flot']); app.controller('FlotCtrl', ['$scope', function($scope) { $scope.dataset = [{ data: [], yaxis: 1, label: "sin" }]; $scope.options = { legend: { container: "#legend", show: true } }; for (var i = 0; i < 14; i += 0.5) { $scope.dataset[0]....
JavaScript
0
@@ -1,12 +1,34 @@ +/* global angular */%0A%0A var app = an @@ -64,17 +64,16 @@ -flot'%5D) -; %0A%0Aapp.co @@ -112,16 +112,17 @@ function + ($scope) @@ -177,17 +177,16 @@ el: -%22sin%22 +'sin' %7D%5D -; %0A $ @@ -238,17 +238,17 @@ er: -%22 +' #legend -%22 +' ,%0A @@ -271,17 +271,16 @@ %7D%0A %7D -...
114d3b54f3b6c9b0f32f59d17b663b96955cc072
Remove trailing space
app/common/collections/completion.js
app/common/collections/completion.js
define([ 'extensions/collections/matrix', 'extensions/collections/collection', 'extensions/models/group' ], function (MatrixCollection, Collection, Group) { var CompletionCollection = MatrixCollection.extend({ model: Group, initialize: function (models, options) { this.startMatcher= options.star...
JavaScript
0.000456
@@ -1834,18 +1834,16 @@ Matcher) - %0A
6668fab34870ed165dd7d75a84c621a18c161364
remove try/catch on bind
src/index.js
src/index.js
/** * A simple LDAP query machine */ import ldap from 'ldapjs'; import Promise from 'bluebird'; import cleanEntry from './lib/cleanEntry'; export default class SimpleLDAPSearch { constructor({ url, base, dn, password }) { this.config = { url, base, dn, password }; this.client = ldap.createClient({ url }); ...
JavaScript
0.000001
@@ -1810,20 +1810,8 @@ und%0A - try %7B%0A @@ -1834,68 +1834,8 @@ N(); -%0A %7D catch (err) %7B%0A return Promise.reject(err);%0A %7D %0A%0A
b0eef53001e520ba5521f8fddedfd38739513252
move tab to index after current tab
background.js
background.js
tabset = false; tabId = 0; function setTab(id) { tabId = id; tabset = true; chrome.browserAction.setIcon({path: {'19': 'icon19out.png', '38': 'icon38out.png'}}); } function clearSetTab() { tabset = false; chrome.browserAction.setIcon({path: {'19': 'icon19in.png', '38': 'icon38in.png'}}); } functi...
JavaScript
0
@@ -332,16 +332,23 @@ windowId +, tabid ) %7B%0A @@ -460,10 +460,13 @@ ex: --1 +tabid %7D);%0A @@ -703,16 +703,33 @@ windowId +, (tab.index + 1) );%0A %7D
8f112edf1cc1ef2da7f2cbcb6451e183758ea338
update to font-awesome-3.0
js/toggle-locked-threads.js
js/toggle-locked-threads.js
/* * toggle-locked-threads.js * * Released under the MIT license * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; * $config['additional_javascript'][] = 'js/toggle-locked-threads.js'; * */ $(document).ready(function(){...
JavaScript
0.000001
@@ -1252,32 +1252,46 @@ %5Btitle=%22Locked%22%5D +, i.fa-lock.fa ').each(function @@ -1432,32 +1432,46 @@ %5Btitle=%22Locked%22%5D +, i.fa-lock.fa ').each(function @@ -1745,16 +1745,30 @@ Locked%22%5D +, i.fa-lock.fa ').each( @@ -1838,13 +1838,276 @@ %09%7D);%0A%09%7D%0A + $(document).bind('new_post', fun...
db4714c3e150563e7256175d53bb78cbdae55ef6
create schemas to review and note
Ein_Prat/server/utils/schemas_and_connectDB.js
Ein_Prat/server/utils/schemas_and_connectDB.js
//include variables and exists libraries var mongoose = require('mongoose');// DB connections var Schema = mongoose.Schema;//to create schemas //Mongoose DB connection var connection = mongoose.createConnection('mongodb://danny:danivolp89@ds049624.mlab.com:49624/ein_prat',function (error) { console.log("Trying to...
JavaScript
0
@@ -1674,16 +1674,18 @@ niors);%0A +// var Revi @@ -1731,16 +1731,18 @@ eview);%0A +// var Note
7bb0f3484eaf6f43b54fc6f3c39ce1004bd5e7b5
fix api name
src/index.js
src/index.js
'use strict'; const fetch = require('node-fetch-custom'); const fs = require('fs'); const urlLib = require('url'); const path = require('path'); const xhrProxy = fs.readFileSync(path.resolve(__dirname, './script/xhr-proxy.js'), { encoding: 'utf8' }).replace(`'use strict';`, ''); const utils = require('./utils'); co...
JavaScript
0.000642
@@ -547,18 +547,22 @@ filter -Js +Static = empty @@ -1250,18 +1250,22 @@ , filter -Js +Static ));%0A @@ -6631,18 +6631,22 @@ , filter -Js +Static ) %7B%0A @@ -7435,10 +7435,14 @@ lter -Js +Static (js)
fdf048f73a377f0c24c1e3990f4c7d228fed0f70
set isProgressBarClosed true if there are no running tasks
priv/public/ui/app/mn_admin/mn_admin_controller.js
priv/public/ui/app/mn_admin/mn_admin_controller.js
(function () { "use strict"; angular .module('mnAdmin') .controller('mnAdminController', mnAdminController); function mnAdminController($scope, $rootScope, $state, $uibModal, mnAlertsService, poolDefault, mnSettingsNotificationsService, mnPromiseHelper, pools, mnPoller, mnEtagPoller, mnAuthService, mnTa...
JavaScript
0.000015
@@ -5298,27 +5298,131 @@ -tasks.tasks +if (!filterTasks(tasks.running).length) %7B%0A vm.isProgressBarClosed = true;%0A %7D%0A%0A tasks.running .forEach @@ -5530,51 +5530,8 @@ ion%22 - &&%0A task.status === %22running%22 ) %7B%0A @@ -5716,15 +5716,16 @@ if ( +! task -...
92a9748b3c5cae4ad9fde56bedf3db99d511e9c0
Update Depthwise_ChannelPartInfo.js
CNN/Conv/Depthwise/Depthwise_ChannelPartInfo.js
CNN/Conv/Depthwise/Depthwise_ChannelPartInfo.js
export { ChannelPartInfo }; export { FiltersBiasesPartInfo }; import * as Pool from "../../util/Pool.js"; import * as Recyclable from "../util/Recyclable.js"; /** * Half channels information. Describe channel index range of lower half or higher half. * * * @member {number} inputChannelCount * This ChannelPart ...
JavaScript
0
@@ -132,16 +132,19 @@ rom %22../ +../ util/Rec
cf4d4732df92b8ba5df10190c39dd553a29f48f4
add isValid to form instances
commonjs/kanso/forms.js
commonjs/kanso/forms.js
var fields_module = require('./fields'), Field = fields_module.Field, types = require('./types'), Type = types.Type, utils = require('./utils'); var Form = exports.Form = function (obj, doc) { this.fields = (obj instanceof Type) ? obj.fields: obj; if (doc) { this.values = doc; } };...
JavaScript
0.000001
@@ -869,24 +869,122 @@ %0A );%0A%7D;%0A%0A +Form.prototype.isValid = function () %7B%0A return (!this.errors %7C%7C this.errors.length === 0);%0A%7D;%0A%0A exports.pars
78f3ff0f90fc35cf04500bd16734ab27aabf94bd
handle gifv and galleries
src/routes/Post/actions/index.js
src/routes/Post/actions/index.js
import * as actionTypes from '../constants'; import compact from 'lodash/compact'; export function checkForImage(str) { let group; if (group = /\((.*?)\)/g.exec(str)) { return group } if (group = /(https?\:\/\/i.imgur.com\/\w+)/.exec(str)) { return group; } return null; } export function isDirectLink(str) { ...
JavaScript
0
@@ -432,13 +432,15 @@ rn / +%5C .jpg%7C +%5C .png @@ -476,23 +476,94 @@ on check -IfAlbum +ForGifV(str) %7B%0A return /%5C.gifv/.test(str);%0A%7D%0A%0Aexport function checkIfLinkable (str) %7B%0A @@ -577,16 +577,24 @@ n /%5C/a%5C/ +%7Cgallery /.test(s @@ -1000,16 +1000,29 @@ an album + or a gallery %0A i...
ecd0a09fb7eec73743d9d8be02f0b65dc6c67b79
allow keyboard configuration via URL (temporary fix)
src/game/input/index.js
src/game/input/index.js
import $ from 'jquery' import Control from './control' import R from 'ramda' function HardcodedKeyboardPlugin() { let data = { } $(window) .keydown(e => data[e.which] = 1) .keyup(e => data[e.which] = 0) return { get() { return { 'p1_1': data[83], 'p1_2': data[68], 'p1_3': d...
JavaScript
0
@@ -72,16 +72,51 @@ ramda'%0A%0A +%0Aimport query from 'bemuse/query'%0A%0A function @@ -140,24 +140,83 @@ dPlugin() %7B%0A + let kbm = (query.keyboard %7C%7C '').split(',').map(x =%3E +x)%0A let data = @@ -353,22 +353,33 @@ 'p1_1': + data%5B +kbm%5B0%5D %7C%7C 83%5D,%0A @@ -390,22 +390,33 @@ 'p1_2':...
0d1247cc5ae956badb5c0094460187c31caa1bc5
Remove whitespace
public/js/application.js
public/js/application.js
$(document).ready(function() { var loginDoneHandler = function(response) { $(".btn-login").hide(); $(".btn#signup").hide(); $(".nav").append(response); $(".janky-form").show(); }; $(".btn-login").click(function(event) { event.preventDefault(); $.ajax({ url: "/login", type: "GET" }).done(f...
JavaScript
0.999999
@@ -1412,14 +1412,13 @@ %09%09%7D);%09%0A%0A -%0A %09%7D);%0A
4e456dd5e4dc9d2e8b9ba8e6763b5908fcaee6fb
Fix for invalid map-sources being turned on.
src/gm3/reducers/mapSource.js
src/gm3/reducers/mapSource.js
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 Dan "Ducky" Little * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
JavaScript
0
@@ -1698,24 +1698,152 @@ ayers = %5B%5D;%0A + if(!state%5Baction.mapSourceName%5D) %7B%0A // no state changes if we can't find the mapsource.%0A return state;%0A %7D%0A%0A for(var
ef855f17c59091200bc3da23adba1f36c1df9a9b
update TableRow
src/_TableRow/TableRow.js
src/_TableRow/TableRow.js
/** * @file TableRow component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class TableRow extends Component { constructor(props, ...restArgs) { super(props, ...restArgs); ...
JavaScript
0
@@ -196,16 +196,78 @@ ames';%0A%0A +import PureRender from '../_vendors/PureRender';%0A%0A@PureRender%0A class Ta @@ -2759,24 +2759,66 @@ %0A%0A %7D%0A%7D;%0A%0A +process.env.NODE_ENV !== 'production' && ( TableRow.pro @@ -3053,16 +3053,17 @@ .func%0A%0A%7D +) ;%0A%0ATable
228b5f454af00317f9c03b9ab9db40f6628c0dcb
Fix points stats method
lib/collections/games.js
lib/collections/games.js
Games = new Mongo.Collection('games'); var Schemas = {}; Schemas.Games = new SimpleSchema({ player1: { type: String, label: 'User ID of player1' }, player2: { type: String, label: 'User ID of player2' }, gameDate: { type: Date, label: 'Date of the game' }, scorePlayer1: { type: Number, label: '...
JavaScript
0.000008
@@ -3485,33 +3485,33 @@ (10, (lastPoints -2 +1 - lastPoints1) @@ -3499,33 +3499,33 @@ ts1 - lastPoints -1 +2 ) / 400))));%0A%09%09%09 @@ -4040,17 +4040,17 @@ stPoints -2 +1 - lastP @@ -4054,17 +4054,17 @@ stPoints -1 +2 ) / 400)
7472a316339fa946d51c0d65aa453919a4899ebc
use module.exports.regexp in middleware
index.js
index.js
/** * Connect/Express compatible middleware for parsing raw xml body * * @license MIT */ var parseString = require('xml2js').parseString, // inlined from connect's 'utils.js' file utils = { hasBody: function (req) { var encoding = 'transfer-encoding' in req.headers, leng...
JavaScript
0.000006
@@ -993,16 +993,23 @@ eq) %7C%7C ! +module. exports.
968747b8c4d1130e3fa3eaf0da97b3c232277105
Remove useless return. warnings is always an array after a split.
index.js
index.js
module.exports = function parseWarningHeader (header) { if (!header || typeof header !== 'string') return var warnings = header.split(/([0-9]{3} [a-z0-9.@\-\/]*) /g) if (!warnings) return var previous function generateObject (all, w) { w = w.trim() var newError = w.match(/^([0-9]{3}) (.*)/) if (n...
JavaScript
0
@@ -166,32 +166,8 @@ /g) -%0A if (!warnings) return %0A%0A
a559a8766233e8766a9c496f3c4ccfa189e3d677
Use kFormatter for big money numbers
client/src/components/investments/InvestmentList.js
client/src/components/investments/InvestmentList.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchInvestments } from '../../actions'; import Card, { CardActions, CardContent } from 'material-ui/Card'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import Grid from 'material-ui/Gr...
JavaScript
0
@@ -804,24 +804,106 @@ ce_usd%0A %7D%0A%0A + kFormatter(num) %7B%0A return num %3E 999 ? (num/1000).toFixed(1) + 'k' : num%0A %7D%0A%0A calculateP @@ -989,106 +989,163 @@ * pa -stPrice%0A return ((parseInt(units, 10) * parseInt(currentPrice, 10))- parseInt(currentPrice, 10) +rseInt(pastPrice, 10)%0A co...
fbd6f19f3dc1754b8595cbf48dc4990fa0477434
Prepare for 1.1.1
src/game/typingmania.js
src/game/typingmania.js
import Viewport from '../graphics/viewport.js' import InputHandler from './input.js' import Sound from '../media/sound.js' import Sfx from '../media/sfx.js' import SongSystem from '../song/songsystem.js' import LoadingController from './controller/1-loading.js' import MenuController from './controller/2-menu.js' import...
JavaScript
0.000088
@@ -1409,17 +1409,17 @@ t, '1.1. -0 +1 ')%0A t
a41320136d495268a76b8c69aa901f4b56d8e9b4
delete wallet configs we couldn't migrate
renderer/store/db.js
renderer/store/db.js
import Dexie from 'dexie' import decode from 'lndconnect/decode' import encode from 'lndconnect/encode' export const getDb = name => { // Define the database. const db = new Dexie(name) db.version(1).stores({ settings: 'key', wallets: '++id, type, chain, network', nodes: 'id', }) // Migrate cus...
JavaScript
0.000001
@@ -407,22 +407,29 @@ .modify( +( wallet +, ref) =%3E %7B%0A @@ -643,24 +643,40 @@ et.type)) %7B%0A + try %7B%0A cons @@ -711,16 +711,18 @@ wallet%0A + @@ -780,24 +780,26 @@ %7D)%0A + wallet.type @@ -813,24 +813,26 @@ om'%0A + + wallet.lndco @@ -856,16 +8...
4ce8b625261a59b8a019fa022b5c507edc4b9e2f
support config with no initZoom
lib/components/map/bounds-updating-overlay.js
lib/components/map/bounds-updating-overlay.js
import isEqual from 'lodash.isequal' import coreUtils from '@opentripplanner/core-utils' import L from 'leaflet' import { MapLayer, withLeaflet } from 'react-leaflet' import { connect } from 'react-redux' import { getLeafletItineraryBounds, getLeafletLegBounds } from '../../util/itinerary' import { getActiveItiner...
JavaScript
0.000001
@@ -3644,16 +3644,22 @@ initZoom + %7C%7C 13 )%0A
8d7189d649980710da47300662c00fd52b27a821
Remove dead code
js/vm/documentsubmission.js
js/vm/documentsubmission.js
/*global FormData XMLHttpRequest*/ import ko from "knockout"; import api from "../api"; import makeSource from "../typeaheadsource"; import store from "../store"; export default class DocumentSubmission { constructor() { this.selectedLectures = []; this.selectedExaminants = []; this.date = null; thi...
JavaScript
0.001497
@@ -795,158 +795,8 @@ %7D%0A%0A - setFile(file) %7B%0A this.file = file;%0A %7D%0A%0A setType(type) %7B%0A this.doctype = type;%0A %7D%0A%0A setSubject(subject) %7B%0A this.subject = subject;%0A %7D%0A%0A su
010f101db948ae5ad0ee3b91c603cf462d24789d
set up flash triggering (function dependence); no flash css or timed state yet.
src/components/metrics/card/MetricCardViewSection/index.js
src/components/metrics/card/MetricCardViewSection/index.js
import React, {Component} from 'react' import Icon from 'react-fa' import Histogram from 'gComponents/simulations/histogram/index' import MetricName from 'gComponents/metrics/card/name/index' import {DistributionSummary} from 'gComponents/distributions/summary/index' import StatTable from 'gComponents/simulations/sta...
JavaScript
0
@@ -33,16 +33,39 @@ react'%0A%0A +import $ from 'jquery'%0A import I @@ -1934,16 +1934,434 @@ onent %7B%0A + componentDidUpdate() %7B%0A const %7BcanvasState: %7BmetricClickMode%7D, inSelectedCell%7D = this.props%0A const selfFunctionSelected = (metricClickMode === 'FUNCTION_INPUT_SELECT') && inSelectedCell%0...
f80dfb0ebad97ca8dfde14d94ddd759c3d7c9dcc
use es6 promise syntax
extra/fetch.js
extra/fetch.js
'use strict'; var request = require('request'), when = require('when'), baseURL = '/_fetch_/', config = {}, getURL = function (name) { var location; /*global window*/ try { location = window.location; if (location) { return location.protocol + '//' + location.host ...
JavaScript
0
@@ -46,36 +46,8 @@ '),%0A - when = require('when'),%0A @@ -455,20 +455,23 @@ return -when +Promise .reject( @@ -600,14 +600,13 @@ urn -when.p +new P romi
2010f119cf9c6cd019b2ad44492b60810b545b07
Use author's email address if no name given
src/add_communication.js
src/add_communication.js
"use strict"; var Immutable = require('immutable') const AUTHORS_BY_MSG_ID = {} const EMPTY_ITEM_MAP = Immutable.Map({ total: 0, trend: 0 }) , inc = n => n + 1 , incCounts = counts => counts.update('total', inc).update('trend', inc) , updateMapCounts = val => map => map.update(val, EMPTY_ITEM_MAP, incCou...
JavaScript
0.001414
@@ -583,16 +583,39 @@ %5B0%5D.name + %7C%7C msg.from%5B0%5D.address %0A , i
45f21786da90628cf004d01c54064562e09525c0
Improve batching of ids for querying
lib/get/get-destination-content-for-update.js
lib/get/get-destination-content-for-update.js
import {pluck} from 'lodash/collection' import Promise from 'bluebird' const BATCH_CHAR_LIMIT = 1990 /** * Gets the content already existent on the destination space that needs * updating, based on the response retrieved from the source space */ export default function getDestinationContentForUpdate (managementCli...
JavaScript
0.000002
@@ -1090,45 +1090,45 @@ %7B%0A -let currentB +const b atch +es = -''%0A const b +%5B%5D%0A let currentB atch -es = %5B @@ -1206,20 +1206,17 @@ atch - += id + ',' +.push(id) %0A @@ -1313,16 +1313,26 @@ entBatch +.join(',') )%0A @@ -1350,10 +1350,10 @@ h = -'' +%5B%5D %0A
1a61e1804b9ea9c8afb653672abcffe741a77467
add config.json to the voting booth app
VotingBooth/server.js
VotingBooth/server.js
var express = require('express'); var morgan = require('morgan'); var port = 3333; var path = 'webapp/'; var app = express(); app.use( morgan(':remote-addr [:date] :method :url :status / :referrer [:response-time ms]', {}) ); // logging app.use(express.static(path)); // static content var server = app.listen(port, ...
JavaScript
0.000001
@@ -1,12 +1,50 @@ +var config = require('./config.json')%0A var express @@ -113,12 +113,19 @@ t = -3333 +config.port ;%0Ava
5be07c6c3ae6612691174936cb10631da65c0f31
Stop logging timestamp matches
renderer-process/matchTimestamps.js
renderer-process/matchTimestamps.js
const matchTimestamps = function (inputText) { const lengthOfDelimiter = 1 // Have to advance past/before the opening/closing brackets let bracketPattern = /\[(\d{1,2}:){1,2}\d{2}\]/g let match = bracketPattern.exec(inputText) let matches = [] let startingIndex let matchLength while (match !== null) { ...
JavaScript
0.000002
@@ -589,31 +589,8 @@ %7D%0A - console.log(matches)%0A re
922ed2770489b1e0cd41b168685f4ccf739277ae
Improve argument check
index.js
index.js
#!/usr/bin/env node 'use strict'; var request = require('request'), moment = require('moment'), readline = require('readline'), open = require('open'); var rl = readline.createInterface({ input: process.stdin, output: process.stdout }); function openResult(HNID) { open('https://news.ycombina...
JavaScript
0.000002
@@ -1898,17 +1898,48 @@ .length -%3E +!== 3 && process.argv.length !== 4) %7B%0A
c6b8358bac6de9bebccd29f420c433d4ffd0cef1
Use grunt-browserify's watch option, for watchify in development.
Gruntfile.js
Gruntfile.js
'use strict'; var LIVERELOAD_PORT = 35729; module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks) grunt.initConfig({ watch: { grunt: { files: [ 'Gruntfile.js' ] }, livereload: { options: { l...
JavaScript
0
@@ -456,133 +456,8 @@ %7D,%0A - js: %7B%0A files: %5B%0A 'src/%7B,*/%7D*.js'%0A %5D,%0A tasks: %5B%0A 'browserify'%0A %5D%0A %7D,%0A @@ -1717,24 +1717,94 @@ %5D%0A %7D,%0A + server: %7B%0A options: %7B%0A watch: true%0A %...
0c2bb966b48073eb07de030c41f6457bd495e781
Remove junk logs
cron.js
cron.js
#!/usr/bin/env node function kick() { var proc = require('child_process').spawn('./aiseg_watch.js'); proc.stdout.on('data', function(data) { process.stdout.write(data); }); proc.stderr.on('data', function(data) { process.stdout.write(data); }); proc.once('error', function() { ...
JavaScript
0.000001
@@ -311,32 +311,34 @@ ion() %7B%0A +// process.stdout.w @@ -349,24 +349,24 @@ ('error.');%0A - %7D);%0A @@ -397,32 +397,34 @@ ion() %7B%0A +// process.stdout.w @@ -478,32 +478,32 @@ unction() %7B%0A - process.stdo @@ -482,32 +482,34 @@ ion() %7B%0A +// process.stdout....
d916bc1b09658ebeba23f3d49f39117bdf2a22d5
Use window location to inform URL
requests/requests.js
requests/requests.js
import {InvalidResponse} from 'tide/exceptions'; import {encode} from "./querystring"; import {ContentTypes, Credentials} from "./types"; import {debug_logging} from "./logging"; export const DefaultRequestOptions = { 'content_type': ContentTypes.content_type, 'method': 'GET', 'cache': 'default', 'mode...
JavaScript
0
@@ -833,16 +833,303 @@ %0A %7D); +%0A %0A if(!url.includes('http'))%7B%0A let start = '';%0A %0A start = window.location.protocol + %22//%22 + window.location.hostname;%0A if(window.location.port)%7B%0A start = start + %22:%22 + window.location.port;%0A %7D%0A ...
230259a342376b46f7d440d932971b12bb056ad6
Handle token API errors properly
src/helpers/authentication.js
src/helpers/authentication.js
import _passport from 'passport'; import URI from 'urijs'; import GitHubStrategy from 'passport-github2'; import { Strategy as WordpressStrategy } from 'passport-wordpress'; import { Strategy as StackExchangeStrategy } from 'passport-stackexchange'; import log from '../log'; import * as api from './api'; import * as he...
JavaScript
0
@@ -3120,24 +3120,162 @@ en(res =%3E %7B%0A + if (res.status !== 200) %7B%0A const error = new Error(res.error);%0A error.status = res.status;%0A return done(error);%0A %7D%0A%0A log.info @@ -3312,24 +3312,31 @@ API');%0A +return done(null, n
5e4fd8d86b4bfeb3996cb94048296f397717bf53
Add addHeader function into tableCreator.js
sashimi-webapp/src/database/create/tableCreator.js
sashimi-webapp/src/database/create/tableCreator.js
const constants = require('../constants'); const sqlCommands = require('../sql-related/sqlCommands'); const exceptions = require('../exceptions'); let isTableInitializedForCreation = constants.CONST_TABLE_CREATION_CLOSED; let sqlCreateTableString = constants.STRING_INITIALIZE; const stringConcat = function stringCo...
JavaScript
0.000002
@@ -1158,16 +1158,466 @@ %7D%0A %7D%0A%0A + static addHeader(headerName, dataType, ...extraConditions) %7B%0A if (isTableInitializedForCreation) %7B%0A sqlCreateTableString = stringConcat(sqlCreateTableString, headerName, ' ');%0A sqlCreateTableString = stringConcat(sqlCreateTableString, dataType);%0A ...
d5f3a14a0695a0b8908cce8ce9e7ec4d9da8995d
Use anonymous function wrapper to load after source page
iptorrents-time-until-spend-bonus-points.user.js
iptorrents-time-until-spend-bonus-points.user.js
// ==UserScript== // @name IPTorrents - Time Until Spend Bonus Points // @namespace http://github.com/taeram/user-scripts // @description Calculate the number of days until you should redeem your bonus points for 10GB credit // @match https://www.iptorrents.com/* // @match https...
JavaScript
0
@@ -417,17 +417,17 @@ 1.2. -0 +1 %0A// @lic @@ -764,27 +764,26 @@ ==%0A%0A -/* jshint -W097 */%0A +(function() %7B%0A 'use @@ -793,16 +793,20 @@ rict';%0A%0A + var seco @@ -871,16 +871,20 @@ minutes%0A + var bonu @@ -919,24 +919,28 @@ rents('a');%0A + var bonusPoi @@ -985,16 +985,20 @@ /,...
3da37f2a0085ba71953df0765f6c74489013f479
Extend getting achievements functions
AchieveMe/AchieveMe/scripts/templates-script.js
AchieveMe/AchieveMe/scripts/templates-script.js
/// <reference path="_references.js" /> var BROWSE_ACHIEVEMENTS_TEMPLATE_ID = 'browse-achievements-grid-template'; var MY_ACHIEVEMENTS_TEMPLATE_ID = 'my-achievements-grid-template'; var string; var browseAchTemplate; var myAchTemplate; var achievementProfileTemplate; string = document.getElementById(BROWSE_ACHIEVEMEN...
JavaScript
0
@@ -694,32 +694,50 @@ vementsTemplate( +sampleAchievements ));%0A%7D%0A%0Afunction @@ -857,16 +857,32 @@ emplate( +userAchievements ));%0A%7D%0A%0Af @@ -911,32 +911,37 @@ vementsTemplate( +items ) %7B%0A var html @@ -987,28 +987,14 @@ ents - : -sampleAchievement +item s%0A @@ -1054,16 +1054,21 @@ empl...
1a0af04d4a486762e68d4ee785b948ad00eba8bb
Add InProcessAddress._typeName
javascript/libjoynr-js/src/main/js/joynr/messaging/inprocess/InProcessAddress.js
javascript/libjoynr-js/src/main/js/joynr/messaging/inprocess/InProcessAddress.js
/* * #%L * %% * Copyright (C) 2011 - 2015 BMW Car IT GmbH * %% * 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.000004
@@ -950,24 +950,409 @@ keleton) %7B%0A%0A + /**%0A * @name InProcessAddress#_typeName%0A * @type String%0A * @readonly%0A */%0A /*jslint nomen: true */%0A Object.defineProperty(this, %22_typeName%22, %7B%0A configurable : false,%0A writable : f...
c3884dc3033bb894dde68657036009d4f7e174e8
update cleverbot
plugins/Cleverbot/cleverbot.js
plugins/Cleverbot/cleverbot.js
exports.commands = [ "talk" ] var cleverbot = require("cleverbot-node"); var token = require('../../token.js'); talkbot = new cleverbot; talkbot.configure({botapi: token.cleverKey}); exports.talk = { usage : "<message>", description : "Talk directly to the bot", process : function(bot,msg, suffix) { var conv ...
JavaScript
0.000001
@@ -29,17 +29,17 @@ %0A%5D%0A%0Avar -c +C leverbot @@ -63,13 +63,8 @@ rbot --node %22);%0A @@ -102,16 +102,21 @@ n.js');%0A +%0Alet talkbot @@ -121,25 +121,25 @@ t = new -c +C leverbot ;%0Atalkbo @@ -134,35 +134,16 @@ rbot -;%0Atalkbot.configure(%7Bbotapi +(%7B%0A key : to @@ -155,16 +155,17 @@ leverKe...
36c57f42d2a518d23704d292512e7cddcb95599b
Add a FIXME where implementation will break when other meters at Easton come online
src/app/components/services/SitesService.js
src/app/components/services/SitesService.js
(function(){ 'use strict'; angular.module('app') .service('sitesService', [ '$q', sitesService ]); function sitesService($q){ var siteData = [ { shortcode: 'kwmc', name: 'Knowle West Media Centre', meterSerial: 14230570, address: 'Leinste...
JavaScript
0
@@ -1093,16 +1093,144 @@ 5096967, + /* FIXME: There will be 4 generation meters when the older ones are connected! Better to use flow for site to retrieve data */ %0A
d1c897034c678196d7806d515bce9aa023546092
Fix `grunt test` command.
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { console.log(grunt.file.expand({ cwd: './modules' }, ['**/compile.js'])); // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concurrent: { dev: { tasks: ['watch', 'connect:server:keepalive'], opti...
JavaScript
0
@@ -1289,31 +1289,13 @@ , %5B' -connect:server', 'qunit +mocha '%5D);
07a0512d90eb0853211a2dae177e03744efbde07
Use TextNode's data property instead of goog.dom.setTextContent (fixes issue 27).
jsprettify/prettify_html.js
jsprettify/prettify_html.js
// Copyright 2010 Steven Dee. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
0
@@ -1639,100 +1639,50 @@ -goog.dom.setTextContent(ret,%0A jsprettify.prettifyStr(goog.dom.getRawTextContent(ret)) +ret.data = jsprettify.prettifyStr(ret.data );%0A
ad584c0dee17e739a87637f4e5d4ca10ec78ce85
Update messaging text
app/assets/javascripts/app/controllers/footer.js
app/assets/javascripts/app/controllers/footer.js
angular.module('app') .directive("footer", function(authManager){ return { restrict: 'E', scope: {}, templateUrl: 'footer.html', replace: true, controller: 'FooterCtrl', controllerAs: 'ctrl', bindToController: true, link:function(scope, elem, attrs, ctrl) { ...
JavaScript
0.000002
@@ -2678,16 +2678,36 @@ open it +after a brief delay to apply
d2dd6c12d44e85197323df3344b7c7ff9b210e34
remove dead code
lib/web/FetchCompileWasmMainTemplatePlugin.js
lib/web/FetchCompileWasmMainTemplatePlugin.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Template = require("../Template"); const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDependency"); class FetchCompileWasmMainTemplatePlugin { apply(mainTemplate) { mai...
JavaScript
0.000016
@@ -2462,199 +2462,8 @@ %09%7D%0A%0A -%09%09%09%09%09%09%09if (data.description.type === %22GlobalType%22) %7B%0A%09%09%09%09%09%09%09%09result = %60__webpack_require__($%7BJSON.stringify(%0A%09%09%09%09%09%09%09%09%09data.module.id%0A%09%09%09%09%09%09%09%09)%7D)%5B$%7BJSON.stringify(data.usedName)%7D%5D%60;%0A%09%09...
06811e3d96f918bfbac332dc6d18509e969e8a21
fix server side ready method
lib/controller_server.js
lib/controller_server.js
Controller.prototype.init = function () {}; // futures somehow. but not clear exactly what this means. Controller.prototype.wait = function () {}; // is future ready? Controller.prototype.ready = function () {};
JavaScript
0
@@ -42,66 +42,52 @@ %7D;%0A%0A -// futures somehow. but not clear exactly what this means. +Controller.prototype.wait = function () %7B%7D;%0A %0ACon @@ -96,36 +96,37 @@ oller.prototype. -wait +ready = function () %7B @@ -129,73 +129,172 @@ () %7B -%7D;%0A%0A// is futu +%0A // for now the re +a re -ady?%0ACon...
8024db4417926ebe119b7df8a7a00e8415ba4e2d
Correct spelling error.
sauce/features/budget/resize-inspector/settings.js
sauce/features/budget/resize-inspector/settings.js
module.exports = { name: 'ResizeInspector', type: 'checkbox', default: false, section: 'budget', title: 'Allow Resizing of Inspector', description: 'Adds a button to the Budget Toolbar that allows resizing the Budget Inspector to pre-determined widths of 33% (YNAB default), 25%, 20% or 15%. Note that smalle...
JavaScript
0.000051
@@ -242,9 +242,8 @@ pre -- dete
c80cafd9e8d889437c0b4d7be464d616742432d8
Fix the boys' team names.
fixTeamName.js
fixTeamName.js
module.exports = function fixTeamName(teamName) { var newName = teamName; newName = newName.replace('[+]', ''); // newName = newName.replace('101', '10'); // newName = newName.replace('111', '11'); // newName = newName.replace('121', '12'); // newName = newName.replace('122', '12'); // newName = newName.r...
JavaScript
0.001135
@@ -732,35 +732,32 @@ ('145', '14');%0A - // newName = newNa @@ -1090,35 +1090,32 @@ ('163', '16');%0A - // newName = newNa @@ -1358,35 +1358,32 @@ ('183', '18');%0A - // newName = newNa
5b141de924ce009956cd35a76af7623386ce1b13
Add redux middleware to Griddle props to be passed to the store upon creation.
src/index.js
src/index.js
import { createStore, combineReducers, bindActionCreators } from 'redux'; import Immutable from 'immutable'; import { createProvider } from 'react-redux'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import * as dataReducers from './reducers/dataReducer'; import...
JavaScript
0
@@ -50,16 +50,33 @@ Creators +, applyMiddleware %7D from @@ -2434,24 +2434,52 @@ = 'store',%0A + reduxMiddleware = %5B%5D,%0A ...use @@ -4392,24 +4392,67 @@ initialState +,%0A applyMiddleware(...reduxMiddleware) %0A );%0A%0A
236ca3e69e9ea3ca97d0743bbf6c0601617ed848
Handle content urls.
index.js
index.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Platform, View, Image, NativeModules, requireNativeComponent, ViewPropTypes, StyleSheet, } from 'react-native' const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource') const FastImageViewNat...
JavaScript
0.000001
@@ -554,24 +554,79 @@ return true%0A + if (source.uri.startsWith('content://')) return true%0A // We have
e623b8fc7f2816b8ac6faf59d5d387914f796015
fix test name
packages/carousel/src/Carousel.test.js
packages/carousel/src/Carousel.test.js
import React from "react"; import renderer from "react-test-renderer"; import Carousel from "."; describe("Carousel", () => { jest.useFakeTimers(); let clearIntervalSpy; let setIntervalSpy; beforeEach(() => { clearIntervalSpy = jest.spyOn(window, "clearInterval"); setIntervalSpy = jest.spyOn(window,...
JavaScript
0.000001
@@ -2057,20 +2057,19 @@ uld be c -lear +all ed on un
0fb282cc771707928510d54690cd766f47781aed
Make Chai-as-promised works in windows environment
index.js
index.js
var path = require('path'); var fs = require('fs'); // TODO Do not expect require to be included before plugins var requireUsed = function(files) { if (files) { for (var i = files.length, pattern; i > 0; i--) { pattern = files[i] && files[i].pattern; if (typeof pattern === 'string'...
JavaScript
0
@@ -317,16 +317,17 @@ ing' && +( pattern. @@ -334,17 +334,66 @@ indexOf( -' +%22%5C%5Ckarma-requirejs%5C%5C%22) !== -1 %7C%7C pattern.indexOf(%22 /karma-r @@ -401,17 +401,17 @@ quirejs/ -' +%22 ) !== -1 @@ -411,16 +411,17 @@ !== -1) +) %7B%0A @@ -526,24 +526,23 @@ n(file, -required +exclude ) %7B%0A ...
9aaf793bbef3445d296d166091366e2dc099f9cc
Use country label
src/app/patients/addresses/address-model.js
src/app/patients/addresses/address-model.js
function patientAddressModelFactory(Model) { function PatientAddressModel(modelName, data) { Model.call(this, modelName, data); } PatientAddressModel.prototype = Object.create(Model.prototype); PatientAddressModel.prototype.getAddress = function(demographics) { if (demographics === undefined) { ...
JavaScript
0.027364
@@ -798,16 +798,22 @@ .country +.label );%0A
8c0b3f592f6a325e250af431a1e9e77ecfa60cba
remove unneeded break
src/position/position.js
src/position/position.js
angular.module('ui.bootstrap.position', []) /** * A set of utility methods that can be use to retrieve position of DOM elements. * It is meant to be used where we need to absolute-position DOM elements in * relation to other, existing elements (this is the case for tooltips, popovers, * typeahead suggestions etc.)...
JavaScript
0.000001
@@ -4967,35 +4967,16 @@ %7D;%0A - break;%0A
0df3aac2b20888af2e32ed9116740121ea8ab211
Update input.js
res/js/back/input.js
res/js/back/input.js
/** Copyright 2018 LNFWebsite Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0.000004
@@ -1026,32 +1026,8 @@ x);%0A - if (youtubeMatch) %7B%0A if @@ -1056,34 +1056,32 @@ ubeListMatch) %7B%0A - output = %5Byo @@ -1117,26 +1117,24 @@ ch%5B1%5D%5D;%0A - - output = %5B%22p @@ -1150,30 +1150,26 @@ output%5D;%0A - %7D%0A +%7D%0A else if (y @@ -1183,26 +1183,24 @@ atch) %7B%0A...
a8464e25b75b3b9658d13b39f344f5bdb531ebe2
remove suffx & separator
src/index.js
src/index.js
'use strict'; const lessThanHundred = require('./lessThanHundred'); const suffix = { 100: 'and', 1000: ',', 1000000: '' }; const f = (input, divider, suffix, separator) => { const module = input % divider; const quotient = parseInt(input / divider); if (module == 0) { return convert(quotient) + ' ' + suffix;...
JavaScript
0.000001
@@ -63,16 +63,80 @@ red');%0A%0A +const separator = %7B%0A%09100: ' and',%0A%091000: ',',%0A%091000000: ','%0A%7D;%0A%0A const su @@ -151,18 +151,22 @@ %0A%09100: ' -an +hundre d',%0A%09100 @@ -161,33 +161,40 @@ ndred',%0A%091000: ' -, +thousand ',%0A%091000000: ''%0A @@ -191,16 +191,23 @@ 00000: ' +million '%0...
ed164e9b1033b86d51ac160df61d388c6a946bbc
remove debugging message which is visible on page
app/javascript/packs/dogs_manager.js
app/javascript/packs/dogs_manager.js
/* eslint no-console: 0 */ // Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and // <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component) // to the head of your layout file, // like app/views/layouts/application.html.erb. // All it does is render <div>Hello Vue</div> at the bo...
JavaScript
0
@@ -465,16 +465,18 @@ =%3E %7B%0A +// const el @@ -539,16 +539,18 @@ lo'))%0A +// const ap @@ -571,16 +571,18 @@ +// el,%0A rend @@ -577,16 +577,18 @@ el,%0A +// render: @@ -612,14 +612,18 @@ )%0A +// %7D)%0A%0A +// cons
913b76c348d6e297afffe134289a7a105255d633
Declare i :P
src/angular-resizable.js
src/angular-resizable.js
(function(angular, undefined) { 'use strict'; angular.module('resizable', []) .directive('resizable', function() { return { restrict: 'AE', scope: { rDirections: "=", rCenteredX: "=", rCenteredY: "=", ...
JavaScript
0.000005
@@ -3220,16 +3220,20 @@ for( +var i=0;i%3Cdi
b44d3e5d861950e4eb0349cd6611fcde3b89b6eb
Remove stat from edit
public/js/controllers.js
public/js/controllers.js
angular.module('starter.controllers', []) .controller('AppCtrl', function($scope, $ionicModal, $ionicSideMenuDelegate, $timeout, api, $timeout) { setTimeout(function() { $ionicSideMenuDelegate.toggleLeft(); }, 100); }) .controller('SectionCtrl', function($scope, $rootScope, api, $stateParams, $ionicPopup) { ...
JavaScript
0
@@ -5061,60 +5061,8 @@ tail -,%0A stat: $scope.selectedItem.stat %0A
22c7a8795ff35b0189449c535e3320ae6e973daa
Fix glob for sass/scss files directly in node module folders.
index.js
index.js
'use strict'; require('es6-shim'); // Object.assign (node 0.12.0) var path = require('path'), uniq = require('uniq'), glob = require('glob'), globSync = glob.sync, Promise = require('bluebird'), globAsync = Promise.promisify(glob), rubyInfo = require('./rubyInfo');...
JavaScript
0
@@ -989,54 +989,8 @@ ;%0D%0A - var globStr1 = path.join(args.basePath, '*'); // @@ -1038,16 +1038,23 @@ y in +side the module -s fol @@ -1058,16 +1058,106 @@ folder%0D%0A + var globStr1 = path.join(args.basePath, '*', sassFilesGlobStr);%0D%0A var gl
6e5f85cface626692b176dd517f12931f5d8a9f8
handle no telegram registered state
controllers/remindControllers/telegramController.js
controllers/remindControllers/telegramController.js
const TelegramBot = require('node-telegram-bot-api'); const async = require('async'); const crypto = require('crypto'); const User = require('../../models/User'); const Token = require('../../models/Token'); const Pill = require('../../models/Pill'); const telegramBotToken = process.env.TELEGRAM_BOT_TOKEN; const tele...
JavaScript
0
@@ -3619,16 +3619,120 @@ amToken%0A + if(!telegramChatId) %7B%0A // telegram is not connected%0A done()%0A %7D%0A
63c91ff08944e0b933cfd78ca92b1b28eef2df7d
Fix test
src/utils/__tests__/time.spec.js
src/utils/__tests__/time.spec.js
import moment from 'moment' import { FORMAT } from '../../constants' import { formatTime, getHoursDuration, getTimeCreated } from '../time' describe('time util', () => { describe('formatTime()', () => { it('should format the time with the passed-in format', () => { const time = '2019-03-23 17:00-0500' ...
JavaScript
0.000004
@@ -812,25 +812,60 @@ t = -'20190323T170000' +moment(time).format(%60$%7BFORMAT.DATE%7DT$%7BFORMAT.TIME%7D%60) %0A
bc32fcc905e0c12b906341356cbee3a891620893
add styleguide generation to the default task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jekyllFolder: '../alienlebargegithub/', // SASS is all about stylesheets sass: { dist: { options: { style: 'compressed' }, files: { ...
JavaScript
0
@@ -2500,33 +2500,32 @@ Default task(s) -. %0A grunt.registe @@ -2561,34 +2561,90 @@ ell' -%5D);%0A%0A // Default task(s). +, 'styleguide'%5D);%0A%0A // Dev watch task. Build the style, patternlab and styleguide %0A g
fce39ca84724ba80804bc5cc966b9f033cc2b963
Save and call original ajax function
src/jquery.ajaxretry.js
src/jquery.ajaxretry.js
/**! * jQuery Ajax Retry * * project-site: http://plugins.jquery.com/project/jquery-ajax-retry * repository: http://github.com/execjosh/jquery-ajax-retry * * @author execjosh * * Copyright (c) 2010 execjosh, http://execjosh.blogspot.com * Licenced under the terms of the MIT License * (http://github.com/execjo...
JavaScript
0
@@ -835,16 +835,47 @@ NC%0A%09%09%7D,%0A +%09%09original_ajax_func = $.ajax,%0A %09%09ajaxWi @@ -1094,22 +1094,34 @@ %7B%0A%09%09%09%09%09 -$.ajax +original_ajax_func (setting @@ -2175,22 +2175,34 @@ %09return -$.ajax +original_ajax_func (setting
8cac737c2a7b3cc1f076f308cdfcad76d696b424
Fix minor bug in weather source.
app/models/sources/weather_source.js
app/models/sources/weather_source.js
/** * Provides weather data from the Yahoo API. The ID of a location can be found at * http://woeid.rosselliot.co.nz/. * * Provides data in the form: * { * temperature: "14" // in Celsius * code: "weather_condition_code" // one from http://developer.yahoo.com/weather/#codes * city: "city na...
JavaScript
0
@@ -560,23 +560,12 @@ ='c' -&format=json %22;%0A +%0A @@ -621,16 +621,22 @@ ql?q=%22 + +%0A encodeU @@ -641,15 +641,41 @@ eURI -(query) +Component(query) + %22&format=json%22 ;%0A%0A
8c75bc66604f99e37f0decbd32d91d19cbe57d09
write hard data
data.js
data.js
module.exports = [ 'orc', 'goblin', 'ogre', 'elf', 'banshee', 'witch', 'werewolf', 'troll', 'zombie', 'skeleton', ];
JavaScript
0.000228
@@ -46,82 +46,462 @@ ,%0A%09' -elf',%0A%09'banshee',%0A%09'witch',%0A%09'werewolf',%0A%09'troll',%0A%09'zombie',%0A%09'skeleton', +minotaur',%0A%09'giant',%0A%09'cyclop',%0A%09'behemoth',%0A%09'golem',%0A%09'dwarf',%0A%09'demon',%0A%09'baphomet',%0A%09'elf',%0A%09'druid',%0A%09'ghoul',%0A%09'medusa',%0A%09'troll',%0A%...
e047eda83585ad136d60dbb1a7219658241a5683
create files attribute
lib/directory-encoder.js
lib/directory-encoder.js
/*global require:true*/ /*global module:true*/ (function(){ "use strict"; var fs = require( 'fs-extra' ); var path = require( 'path' ); var Handlebars = require( 'handlebars' ); var SvgURIEncoder = require( './svg-uri-encoder' ); var PngURIEncoder = require( './png-uri-encoder' ); function DirectoryEncoder( in...
JavaScript
0.000001
@@ -415,16 +415,60 @@ %7C%7C %7B%7D;%0A +%09%09this.files = fs.readdirSync( this.input ); %0A%09%09this. @@ -1178,36 +1178,18 @@ r%0A%09%09 -fs.readdirSync( this.input ) +this.files .for
2f34bca1b4318466785b524bd8038fb892ea3301
Remove awesome getPosition hack.
www/view.js
www/view.js
$(function () { var $source = $(new EventSource(String(window.location) + '/events')); var $content = $('.content'); var $flipButton = $('.flip-button'); var $contentContainer = $('.content-container'); var $statusIndicator = $('.status-indicator'); var speedVec = 0; var MAX_SPEED = 300; FastClick.atta...
JavaScript
0.000006
@@ -1314,149 +1314,43 @@ -var top = 0;%0A var none;%0A%0A function matrix(_, _, _, _, _, f) %7B top = Math.abs(f); %7D%0A eval($content.css('transform'));%0A%0A return top +return $content.position().top * -1 ;%0A @@ -2142,25 +2142,51 @@ etDelta( -deltaTime +isFinite(deltaTime) ? deltaTime : 0 );...
ae73662fce4c5e41ac78d0d5ee5d6a16fb8b1c2b
Check for global.self first (#148)
src/utils/polyfillEnvironment.js
src/utils/polyfillEnvironment.js
/** * Copyright 2017-present, Callstack. * All rights reserved. * * polyfillEnvironment.js * * This file is loaded as a part of user bundle */ /* eslint-disable import/no-extraneous-dependencies */ require('../../vendor/polyfills/console.js'); require('../../vendor/polyfills/error-guard.js'); require('../../ven...
JavaScript
0
@@ -1173,16 +1173,38 @@ ell.%0A//%0A +if (!global.self) %7B%0A global.s @@ -1242,16 +1242,18 @@ -line */ +%0A%7D %0A%0Arequir
3f5f965080e16a4206a1edebe1494d7311aebca8
Fix edited thing with markdown
public/js/lib/sockets.js
public/js/lib/sockets.js
define(function() { var Base, Config; var Sockets = { init: function(base, config, callback) { //todo I hate this Base = base; Config = config; callback(); }, onreceive: { register: function() { if (socket.listeners(Config.sockets.onReceive).length === 0) { socket.on(Config.sockets.onReceiv...
JavaScript
0
@@ -1454,16 +1454,42 @@ ').html( +$(data.content).wrapInner( '%3Cabbr t @@ -1506,28 +1506,8 @@ ed%22%3E -' + data.content + ' %3C/ab @@ -1511,16 +1511,17 @@ /abbr%3E') +) ;%0A%09%09%09%7D%0A%09
c3f71dc8b2f6b83f78835419f529033ff9e41547
extend clean task
Gruntfile.js
Gruntfile.js
const _URL__GRUNT_CONFIG_FILE = './config/grunt.json', _URL__NPM_MANIFEST_FILE = './package.json'; var _gruntRegisterTasks = require('grunt-register-tasks'), _loadGruntTasks = require('load-grunt-tasks'), _timeGrunt = require('time-grunt'); module.exports = function ( $grunt ) { var _$grunt__fil...
JavaScript
0.000192
@@ -1377,24 +1377,176 @@ TH__DIST %25%3E' +,%0A 'fwd': %5B%0A '%3C%25= cfg.PATH__LANG %25%3E',%0A '%3C%25= cfg.PATH__ROOT %25%3E/%3C%25= cfg.GLOB__LANG_JS %25%3E'%0A %5D %0A
8036d2dcce51478280af343731c5a3c893b00290
Fix bug in next match fixture date
app/components/footballModule/footballFactory.js
app/components/footballModule/footballFactory.js
angular.module('notificationApp.footballFactory', []). factory('footballFactory', function($http, $cacheFactory, UserConfig) { var currentTeam; return { getLeagueTable: function() { return $http({ method: 'GET', cache: true, url: 'http://api....
JavaScript
0
@@ -1858,13 +1858,8 @@ date -*1000 ).fr
3c6e2058eea4c93ff2e3d330cddee358b9e57a99
fix issue with private page on profiles
js/src/forum/pages/PrivateDiscussionsUserPage.js
js/src/forum/pages/PrivateDiscussionsUserPage.js
import UserPage from 'flarum/components/UserPage'; import PrivateDiscussionListState from '../states/PrivateDiscussionListState'; import Button from 'flarum/components/Button'; import Dropdown from 'flarum/components/Dropdown'; import ItemList from 'flarum/utils/ItemList'; import listItems from 'flarum/helpers/listItem...
JavaScript
0
@@ -1921,18 +1921,16 @@ his.user -() );%0A%0A
049ed54604ceeed50a694ba2e25e0dfeaa1dd2a4
Update server executable to use Properties and Soruces
bin/server.js
bin/server.js
#!/usr/bin/env node /* global Config, Log */ 'use strict'; const args = require('yargs') .usage('Usage: $0 [args]') .option('c', { alias: 'config', describe: 'Load configuration from file', type: 'string' }) .help('help') .argv; const deprecate = require('depd')('propsd'); const express = requi...
JavaScript
0
@@ -334,20 +334,20 @@ ;%0Aconst -http +HTTP = requi @@ -433,126 +433,482 @@ ');%0A -const app = express();%0A%0A// Load nconf into the global namespace%0Aglobal.Config = require('nconf')%0A .env()%0A .argv( +%0Aconst Properties = require('../lib/properties');%0Aconst Sources = require('../lib/sources');%0Aco...
7d36bd11e1d8729cb740d8f29cf8226ff8476e8d
update regex and let the message flow
bot_modules/duplicate.js
bot_modules/duplicate.js
// $ Duplicate // $ Authors: John // $ Created on: Sat Apr 2 01:21:11 UTC 2016 var Base = require('../src/base_module'); var Duplicate = function(bot) { Base.call(this, bot); var Links = this.registerModel('Links', { link: String, username: String, channel: String }); this.hea...
JavaScript
0
@@ -321,10 +321,8 @@ r(/( -%5Cb (htt @@ -653,16 +653,76 @@ el) -%3E +=== -1) %7B%0A + response.allowPropagation();%0A %7D else %7B%0A @@ -872,62 +872,8 @@ ) %7B%0A - console.log('found', result);%0A
ff6bae9cb2a33add49e9ebbfc9dff6738cbc9a52
kill the error
broadcast/broadcaster.js
broadcast/broadcaster.js
var dgram = require('dgram'); var os = require('os'); var networkinterfaces = []; exports.sendEvent = function(eventcontent) { var interfaces = os.networkInterfaces(); networkinterfaces = []; Object.keys(interfaces).forEach(function (ifname) { console.log(ifname); networkinterfaces.push(ifname); }); ...
JavaScript
0.000024
@@ -1598,27 +1598,40 @@ %22err -%22);%0A throw err + when sending send UDP Message%22) ;%0A
a6ed5b33794d3cea8cca9bdc5624d755b5c8f8c7
add documentation for creating a simple server
index.js
index.js
module.exports.OPCUAClient = require("./lib/opcua-client").OPCUAClient; module.exports.structures = require("./lib/structures"); module.exports.browse_service = require("./lib/browse_service"); module.exports.read_service = require("./lib/read_service"); module.exports.parseEndpointUrl = require("./lib...
JavaScript
0
@@ -598,108 +598,8 @@ er;%0A -module.exports.ClientSubscription = require(%22./lib/client/client_subscription%22).ClientSubscription;%0A modu
9b7a43b91df7acf57a950cffa047873c76348b14
Remove unnecessary semicolons
app/js/controllers/foyer/pensionsAlimentaires.js
app/js/controllers/foyer/pensionsAlimentaires.js
'use strict'; angular.module('ddsApp').controller('FoyerPensionsAlimentairesCtrl', function($scope, ressourceTypes, SituationService, IndividuService, RessourceService) { var momentDebutAnnee = moment($scope.situation.dateDeValeur).subtract('years', 1); $scope.debutAnneeGlissante = momentDebutAnnee.format('MM...
JavaScript
0.999991
@@ -1754,25 +1754,24 @@ %7D;%0A %7D -; %0A%0A var de @@ -2647,25 +2647,24 @@ leur);%0A %7D -; %0A%0A $scope
4b644f4801ce0da60152647db78e80e6e2e8af9e
use os.arch() to detect the OS architecture and then build the correct paths based on the OS architecture
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { development: { files: { 'www/css/index.css': 'src/less/index.less' } } }, nodewebkit: { options: { version: '0.12.0',...
JavaScript
0
@@ -489,19 +489,20 @@ inux32: -tru +fals e, @@ -544,19 +544,20 @@ inux64: -tru +fals e, @@ -2402,16 +2402,159 @@ ).name,%0A + architecture = os.arch(),%0A macPath = '',%0A winPath = '';%0A%0A switch (architecture) %7B%0A case 'x64':%0A @@ -2581...
89e71052130ec74642243f26d6d5b0bf4d962b9a
Fix typo
src/web/resources/scripts/dev.js
src/web/resources/scripts/dev.js
$.fn.isVisible = function() { return $.expr.filters.visible(this[0]); }; $(function() { $('#contents nav ul li ul').hide(); $('#contents nav ul li h1').click(function () { if($(this).parent().children('ul').isVisible() == true) { $(this).parent().children('ul').hide(250); } else { $(this).parent().childr...
JavaScript
0.999999
@@ -597,25 +597,27 @@ %E5%A4%B1%E6%95%97%E6%99%82%0A%09%09%7D);%0A%09%7D +); %0A - %0A%09$('#restAp @@ -904,16 +904,18 @@ %09%09%7D);%0A%09%7D +); %0A%0A%09$('#u @@ -1207,14 +1207,16 @@ %E6%99%82%0A%09%09%7D);%0A - %09%7D +); %0A%7D);
ca427c3017c06ceafcb5c42ccc6458681deb6564
Fix indentation
shared/chat/conversation/messages/popup.desktop.js
shared/chat/conversation/messages/popup.desktop.js
// @flow import React from 'react' import {PopupMenu} from '../../../common-adapters' import {fileUIName} from '../../../constants/platform' import MessagePopupHeader from './popup-header' import type {TextProps, AttachmentProps} from './popup' const stylePopup = { overflow: 'visible', width: 196, } export cons...
JavaScript
0.017244
@@ -1383,18 +1383,16 @@ r',%0A - (message @@ -1476,18 +1476,16 @@ null),%0A - down
ed61716a019ff0d663ffca403c307e4bcd231a4a
Update tooltip logic for ChangeTipOptionLabel (#5478)
protocol-designer/src/components/StepEditForm/fields/ChangeTipField/ChangeTip.js
protocol-designer/src/components/StepEditForm/fields/ChangeTipField/ChangeTip.js
// @flow import * as React from 'react' import { FormGroup, HoverTooltip, SelectField } from '@opentrons/components' import { i18n } from '../../../../localization' import { FieldConnector } from '../FieldConnector' import styles from '../../StepEditForm.css' import type { StepFieldName } from '../../../../steplist/fie...
JavaScript
0
@@ -41,16 +41,18 @@ import %7B +%0A FormGro @@ -58,35 +58,71 @@ oup, - HoverTooltip, SelectField +%0A SelectField,%0A Tooltip,%0A useHoverTooltip,%0A TOOLTIP_FIXED,%0A %7D fr @@ -1534,78 +1534,169 @@ %0A%7D%0A%0A -const ChangeTipOptionLabel = (%7B value %7D: %7B%7C value: string %7C%7D) =%3E (%0A %3C +type...
c8fdeea3ff5e3233ecd8240f59bc25b77362e462
fix recording issue
src/recorder/recorder.js
src/recorder/recorder.js
const audioContext = require('./audiocontext'); const getUserMedia = require('./getusermedia'); const Promise = require('es6-promise').Promise; const RecorderJS = require('../../vendor/recorderjs/recorder'); /** * Sets up the source node by either returning the provided source * or by requesting access to the brows...
JavaScript
0.000001
@@ -2154,35 +2154,336 @@ %7B%0A -this.stream.stop(); +// stream.stop() has been deprecated%0A // https://developers.google.com/web/updates/2015/07/mediastream-deprecations?hl=en%0A if (this.stream.stop) %7B%0A this.stream.stop();%0A %7D else if (this.stream.getTracks) %7B%0A const st...
a612ca250b18e03fda06c7a8dedc95af80e08d96
Update release version
website/pages/en/index.js
website/pages/en/index.js
const React = require("react"); const CompLibrary = require("../../core/CompLibrary.js"); // const variables = require(process.cwd() + "/variables.js"); const MarkdownBlock = CompLibrary.MarkdownBlock; const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; class HomeSplash extends React.C...
JavaScript
0
@@ -2329,12 +2329,8 @@ .0.0 --RC2 %22%0A%0A
19217a8b897bb181a984ebd3879d9baf3ee224ce
Add support for modifier keys when clicking post panel. (#247)
knowledge_repo/app/static/js/pages/index-feed.js
knowledge_repo/app/static/js/pages/index-feed.js
(function($) { function em_to_px(parent, em) { return parseFloat(getComputedStyle(parent).fontSize) * em; } function posts_open(event) { window.location = $(this).data('url'); } function posts_expand_tldr(event) { event.stopPropagation(); var tldr = $(this).parent(...
JavaScript
0
@@ -144,32 +144,238 @@ s_open(event) %7B%0A + var is_mac = navigator.platform.indexOf('Mac') != -1;%0A if (is_mac && event.metaKey %7C%7C !is_mac && event.ctrlKey) %7B%0A window.open($(this).data('url'), '_blank');%0A %7D else %7B%0A window.l @@ -401,24 +401,35 @@ ata('url...
09594cd303b29171fd992b45f4223a6cdba8324a
Fix a case where external xml documents would not be recognized by the XML3DHandler in IE 11 if their xml3d element was prefixed with a namespace identifier
src/base/formathandler.js
src/base/formathandler.js
var AdapterFactory = require("./adapter.js").AdapterFactory; var registerFormat = require("./resourcemanager.js").registerFormat; var config = require("../interface/elements.js").config; /** * A format handler is provide functionality for detecting format of resources * and providing format-specific services. * For...
JavaScript
0.000091
@@ -3945,24 +3945,252 @@ e(%22xml3d%22);%0A + if (!xml3ds.length) %7B%0A // Also check cases where the XML3D element may have been fitted with a NS prefix (eg. ns1:xml3d)%0A xml3ds = response.getElementsByTagNameNS(XML3D.xml3dNS, %22xml3d%22);%0A %7D%0A %7D%0A re
c02b79884c21f144264af7b6879582f39afc67e1
add comments
helpers/email-sender.js
helpers/email-sender.js
var config = require('./config'); var emailSender = require('nodemailer'); var Promise = require('bluebird'); var logger = require('./logger').FIDI.forModule(__filename); var senderTransport; function sendActivationEmail(options) { logger.debug('Sending activation email.'); var activationUrl = createActivationLin...
JavaScript
0
@@ -186,16 +186,254 @@ sport;%0A%0A +/**%0A * Sends an activation email. Options parameters expects and email and%0A * a token to be set. The function will send an email with an activation url%0A * generated based on the token.%0A * @param %7Bobject%7D options%0A * @return %7BPromise%7D%0A */%0A function @@ -992,33 ...
bfa04cb9945b25c48614dea2eccc2e61ffb5b92d
Update errorMessages.js
app/redux/constants/errorMessages.js
app/redux/constants/errorMessages.js
// relating to signup export const ERR_ACCOUNT_ALREADY_EXISTS = 'That e-mail address already has an account.'; // relating to login export const ERR_LOGIN_CREDS = 'Wrong username or password.'; // this one doesn't get surfaced to user; instead we redirect to /email-verification export const ERR_EMAIL_NOT_VERIFIED = 'Lo...
JavaScript
0.000001
@@ -546,32 +546,33 @@ 'An error occur +r ed while signing @@ -1970,17 +1970,16 @@ mber per -i missions @@ -3074,16 +3074,17 @@ or occur +r ed while
750cc1ccfaa7715554e75cd2d6289a1d4d67506f
Add onPress to FridgeDisplayInfo
src/widgets/FridgeDisplayInfo.js
src/widgets/FridgeDisplayInfo.js
/* eslint-disable react/forbid-prop-types */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; import { UIDatabase } from '../database'; import { formatTemperatureExposure, formatTemperature...
JavaScript
0
@@ -140,16 +140,34 @@ import %7B + TouchableOpacity, StyleSh @@ -652,16 +652,25 @@ isActive +, onPress %7D) =%3E %7B @@ -767,28 +767,188 @@ ge;%0A - return (%0A %3CView +%0A const Container = isActive ? View : TouchableOpacity;%0A%0A const onSelectFridge = React.useCallback(() =%3E onPress(fridge), %5B%5D)...